curl --request POST \
--url https://api.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": "test@gmail.com"
}
'{
"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"
}Issue a full or partial refund for a completed charge
curl --request POST \
--url https://api.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": "test@gmail.com"
}
'{
"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"
}"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
The remaining amount to be refunded.
100.99
Payment ID for the successful payment request
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
The webhook URL
"https://www.google.com"
true, false "test@gmail.com"
200
"9858acaf-edc8-427d-b0e5-c32e1b1543db"
"Test QA"
"984e6b86-f0e2-4283-991c-d8236f67567e"
13
99.99
"usd"
"card"
1.1
"SGD"
"2025-05-21T09:17:52.000000Z"
"2023-01-30T16:10:17"
Was this page helpful?