Skip to main content
POST
Refund Payment

Authorizations

app-id
string
header
required

A unique identifier assigned to each application.

secret-key
string
header
required

A secure token associated with the app-id.

Body

application/json
payment_request_id
integer
required

The unique identifier for the original payment request that is to be refunded.

Example:

1

reason
string
required

The reason for the refund, which must be at least 5 characters long. This is required for record-keeping and can help in cases of partial refunds.

Example:

"Partial refund due to customer request"

refund_amount
number

The amount to be refunded. If this is not specified, the refund will default to the total original payment amount.

Example:

100

external_id
string

An idempotency key provided by the client to safely retry this request multiple times without creating duplicate refunds. If a request with the same external_id is received again for the same payment request, the result of the original refund is returned instead of processing a new one.

Example:

"refund-req-2024-12-31-0001"

Response

Refund initiated successfully.

refund_payid
string
deprecated

The PayID to which the refund amount should be paid to complete the refund process. Note: this field is deprecated and will be removed in a few upcoming versions.

Example:

"refund_payid@example.com"

refund_amount
number

The total amount that was refunded.

Example:

100

reason
string

The reason provided for the refund.

Example:

"Partial refund due to customer request"

payment_request
object