Refund Payment
This endpoint processes refunds for purchases through Zotlo. It allows you to issue refunds for any payment processed by Zotlo, including one-time purchases, subscriptions.
Use the POST method to create a refund. You must provide the transactionId of the original payment.
Request Parameters
transactionId
Required
The ID of the transaction to refund.
refundReason
Required
Explanation or reason for the refund.
refundUser
Optional
Who initiated the refund. Can be any descriptive string (e.g., “API”, “Support Agent”, “System Rule”).
refundPrice
Optional
The amount of the refund. Set a value lower than the original payment amount to process a partial refund.
Sample Request
POST https://api.zotlo.com/v1/payment/refund HTTP/1.1
AccessKey: ••••••
AccessSecret: ••••••
Content-Type: application/json
ApplicationId: •
Language: ••
{
"transactionId": "0741a0ac-21d8-4750-941f-064f340700c3",
"refundReason": "User request!"
}Successful Response
Key Response Fields
providerResponse
Raw response returned by the payment provider during the refund.
transaction
Updated transaction record after the refund. Contains refund amount, refund date, status, and provider information.
refundHistory
List of all refunds issued for this transaction (useful for partial or multiple refunds).
Failed Response
All failed responses follow the same standard error format. (See: Error Handling)
Last updated

