Skip to main content
POST
/
v1
/
refund
Refund
curl --request POST \
  --url https://api.sandbox.hit-pay.com/v1/refund \
  --header 'Content-Type: application/json' \
  --header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
  --data '{
  "amount": 100.99,
  "payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "webhook": "https://www.google.com",
  "send_email": "true",
  "email": "[email protected]"
}'
{
  "id": "9ef6957e-6b1b-4e08-8cde-d5f5c908418d",
  "refunded_by": "QA SG",
  "payment_id": "9a934d94-a41f-46c7-a934-c1ebf2436008",
  "amount_refunded": 1,
  "total_amount": 96.49,
  "currency": "sgd",
  "status": "succeeded",
  "payment_method": "card",
  "provider_fee": null,
  "provider_fee_currency": null,
  "refunded_at": "2025-05-21T09:17:52.000000Z",
  "created_at": "2025-05-21T17:17:52"
}

Headers

X-BUSINESS-API-KEY
string
required
Example:

Body

application/json
amount
number
required
Example:
payment_id
string<uuid>
required
Example:
webhook
string<uri>
Example:
send_email
enum<string>
Available options:
true,
false
email
string<email>
Example:

Response

200 - application/json
id
string
Examples:
refunded_by
string
Example:
payment_id
string
Example:
amount_refunded
integer
default:0
Example:
total_amount
number
default:0
Example:
currency
string
Example:
status
string
default:succeeded
payment_method
string
Example:
provider_fee
integer
Example:
provider_fee_currency
string
Example:
refunded_at
string
Example:
created_at
string
Example: