Skip to main content
POST
/
payment
/
refund
Refund POS payment
curl --request POST \
  --url https://olive-gateway-a6ba.onrender.com/api/v1/payment/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "150.00",
  "initiated_by": "admin-user-id",
  "original_transaction_id": "txn-uuid",
  "reason": "Customer returned goods"
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Refund details

amount
string
required

Accepts decimal format like "150.00" or "150"

Example:

"150.00"

initiated_by
string
required
Example:

"admin-user-id"

original_transaction_id
string
required
Example:

"txn-uuid"

reason
string
required
Example:

"Customer returned goods"

Response

Refund processed

The response is of type object.