Skip to main content

Upload Payment Receipt

smilepayz teamsAbout 1 min

Thailand region Upload Payment Receipt API. Used when the response returns channel.uploadReceipt = 1. The payer must submit a bank transfer slip image or QR code as proof of payment.

Request

POST/v2.0/upload-receipt

Request Path:

sandbox: https://sandbox-gateway.smilepayz.com/v2.0/upload-receipt
production: https://gateway.smilepayz.com/v2.0/upload-receipt

Header Parameters

FieldRequiredTypeDescription
Content-TypeMStringapplication/json request body.
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm
X-SIGNATUREMStringSignature of JSON body (see product Signature doc).
X-PARTNER-IDMStringYour merchantID

Body Parameters

FieldRequiredTypeDescription
tradeNoMStringSmilepayz tradeNo returned by the pay-in response.
qrCodeOStringQR code string scanned from the payment slip. Either qrCode or imgBase64Data must be provided.
imgBase64DataOStringReceipt image encoded as Base64. Accepted formats: JPEG, PNG, GIF, WEBP. Maximum size: 5 MB. Use data:image/{type};base64,{data} URI format. Either qrCode or imgBase64Data must be provided.

Example Body:

Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00
X-SIGNATURE: 7MHd9v5/m9JeqmDZVwWBZUZ5J5...7120QnFEny7Qm7uQR1G0TWCh10fsU6nVxiRoeoQ==
X-PARTNER-ID: 20011

Responses

HTTP Response

FieldRequiredTypeDescription
Content-TypeMStringapplication/json
X-TIMESTAMPMStringFormat: yyyy-MM-ddTHH:mm:ss±HH:mm

Body Parameters

FieldRequiredTypeDescription
codeMString00 upload successful; other values indicate upload failure.
messageMStringUTF-8 human-readable result line.
responseCodeMStringComposite code: HTTP status + service code + case code (e.g. 2007400).
responseMessageMStringHuman-readable response description.
dataOObjectUpload result object. Present when code is 00.
    successOBooleantrue if the receipt was uploaded successfully.
Content-type: application/json
X-TIMESTAMP: 2020-12-17T10:55:00+07:00