Initiate Refund
To initiate a refund of an existing paid transaction back to source
- For refunding a payment made by Promptpay, WeChat, Linepay, Shopeepay and Truemoney in Thailand, the customer’s phone number is required. You can choose to pass it to Tazapay in the customer_details field of the checkout API. You can also use the Update Customer endpoint to attach the phone number to an existing customer you want to refund.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
ID of the payin for which refund is being created
Amount to be refunded. If omitted, the request will be registered for a refund of the full transaction amount. For decimal handling for various currencies, refer to the guide here
Three-letter ISO currency code in lowercase
Reason for the refund
ID of the payment Attempt for which the refund is being created
Set of key-value pairs that can be attached to the object (JSON string format)
"{\"key1\": \"value1\", \"key2\": \"value2\"}"
Customer details for refund operations
