RefundApi
Refund API
The Refund API allows you to submit a refund for a specific transaction by using the `transaction_id`. This endpoint processes the refund request and returns real-time confirmation of the refund status.
API Endpoint
Live APIProduction environment
POST
https://api.thepayment.company/api/v1/live/refundTest APISandbox environment
POST
https://api.thepayment.company/api/v1/test/refundRequest Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
transaction_id | String | Yes | Unique ID of the transaction that should be refunded. |
reason | String | Yes | Reason provided for the refund request. |
Headers
| Header Name | Description |
|---|---|
Content-Type | Defines the content type. Always use application/json. |
Authorization | Bearer token used for authentication. |