Get Refunds
You can use this call to retrieve details of the refunds for payments made with an in3 transaction.
Prerequisite
Get an access_token
and use it as 'Bearer' token in your request. Find more details here.
Request
GET https://api.pay.cm.com/api/v1/paymentmethods/in3/v1/transactions/{transactionId}/refunds
Response
{
"refunds": [
{
"id": "8db1e7fa-ba8a-4189-92fd-67a20217443d",
"transactionId": "8db1e7fa-ba8a-4189-92fd-67a20217443d",
"amount": 1200,
"reason": "Refund requested by consumer",
"created": "2006-01-02T15:04:05Z",
"updated": "2006-01-02T15:04:05Z"
}
]
}
Parameters
Parameter | Type | Description | Constraints |
---|---|---|---|
refunds | Array of refund objects | Refunds made for the transaction. |
Response codes
HTTP status | Description |
---|---|
200 | Refund details are successfully retrieved. |
4XX | Client error response (See message for details). This response is given when the User input was incorrect or something illegal was attempted (eg. using a service without having that service configured for the user, or not being authorized). |
5XX | Server error response (See message for details). |
Updated about 1 month ago