Transaction Refund
Process Your Refunds Using the Zotlo API Service
Last updated
Process Your Refunds Using the Zotlo API Service
Last updated
This API service is designed for processing refunds related to purchases and subscriptions made through Zotlo.
The refund service operates using the POST
method. To process a refund, the transactionId
parameter must be provided.
URL
İstek Parametreleri
transactionId:
The transactionId of the transaction to be refunded.
refundReason:
The reason for the refund.
refundUser:
The user information initiating the refund. This can be sent as a string.
To send a request to the refund service, you need the Access Key and Access Secret credentials, which can be found on the Developer Tools/API Keys page in the Zotlo Panel.
Providing the Application ID is optional.
The parameters included in a successful response are as follows:
providerResponse
This is the refund response provided by the payment provider.
transaction
The latest details of the refunded payment.
Our services return an HTTP status code of 200 for successful requests. In case of failure, an HTTP status code of 400 or 500 is returned. An example error response is shown below.
requestId
It is the unique request parameter generated and stored by Zotlo for your transaction.
httpStatus
It is the HTTP status code related to the response. The standard codes 400
or 500
are returned.
errorMessage
It is the detail of the received error. The error message is provided in the language specific to the parameter you sent.
errorCode
It is the error code from Zotlo.
result
The values this field can take are variable.If there’s an error, it will include data; otherwise, it will return as an empty object.