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

Response

Refund initiated successfully.

refund_payid
string

The PayID to which the refund amount should be paid to complete the refund process.

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