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.

Method

POST

URL

Request Parameters

Field
Type
Description

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”).

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!"
}
circle-info

You can find your AccessKey and AccessSecret in the Zotlo Panel under Developer Tools → API Keys

Sending ApplicationId is optional.

Successful Response

Key Response Fields

Field
Description

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