Important: We do not allow refunds without transaction.idand anamountthat exceeds the captured of the original transaction.
Important: In a refund request if the amountis present but theorder.taxandorder.discountsamounts are not present, theamountmust be less than or equal to the subtotal amount of the original order.
| Fields | Description | Type | Filterable | Required | Readonly |
|---|---|---|---|---|---|
| id | Unique ID of the refund record | Integer | Yes | No | Yes |
| terminal | Terminal Object | Object | No | Yes | No |
| terminal.id | Dashboard Terminal ID | Integer | Yes | Yes | No |
| amount | Amount of the refund | Number | No | No | No |
Authorization: Bearer ********************{
"id": 883,
"amount": "1.99",
"origin": "API",
"type": "Return",
"level": 1,
"authCode": null,
"parent": {
"id": 882
},
"terminal": {
"id": 24
},
"threeds": {
"id": null
},
"card": {
"bin": 530957,
"name": null,
"number": 2257,
"exp": "2030-12-31",
"verification": {
"cvv": null,
"address": null
},
"networkTransactionId": null
},
"contact": null,
"externalId": null,
"isRecurring": "No",
"split": null,
"refunded": false,
"captured": false,
"history": [],
"order": null,
"feeTransaction": null,
"batch": {
"id": null,
"number": null,
"batchedOn": null
},
"ip": {
"address": "216.73.161.60",
"isp": "Ipxo Limited",
"type": "hosting",
"location": {
"city": "New York",
"state": "NY",
"country": "US",
"zip": "10013"
},
"info": {
"isAnonymous": "Yes",
"isAnonymousVpn": "No",
"isPublicProxy": "No",
"isHostingProvider": "Yes",
"isTorExitNode": "No"
}
},
"status": {
"status": "Approved",
"reason": null
},
"updatedOn": "2023-05-09 15:51:36",
"createdOn": "2023-05-09 15:51:36"
}curl --location --request POST '/payment/<id>/refund' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 883,
"amount": "1.99",
"origin": "API",
"type": "Return",
"level": 1,
"authCode": null,
"parent": {
"id": 882
},
"terminal": {
"id": 24
},
"threeds": {
"id": null
},
"card": {
"bin": 530957,
"name": null,
"number": 2257,
"exp": "2030-12-31",
"verification": {
"cvv": null,
"address": null
},
"networkTransactionId": null
},
"contact": null,
"externalId": null,
"isRecurring": "No",
"split": null,
"refunded": false,
"captured": false,
"history": [],
"order": null,
"feeTransaction": null,
"batch": {
"id": null,
"number": null,
"batchedOn": null
},
"ip": {
"address": "216.73.161.60",
"isp": "Ipxo Limited",
"type": "hosting",
"location": {
"city": "New York",
"state": "NY",
"country": "US",
"zip": "10013"
},
"info": {
"isAnonymous": "Yes",
"isAnonymousVpn": "No",
"isPublicProxy": "No",
"isHostingProvider": "Yes",
"isTorExitNode": "No"
}
},
"status": {
"status": "Approved",
"reason": null
},
"updatedOn": "2023-05-09 15:51:36",
"createdOn": "2023-05-09 15:51:36"
}'{
"id": 883,
"amount": "1.99",
"origin": "API",
"type": "Return",
"level": 1,
"authCode": null,
"parent": {
"id": 882
},
"terminal": {
"id": 24
},
"threeds": {
"id": null
},
"card": {
"bin": 530957,
"name": null,
"number": 2257,
"exp": "2030-12-31",
"verification": {
"cvv": null,
"address": null
},
"networkTransactionId": null
},
"contact": null,
"externalId": null,
"isRecurring": "No",
"split": null,
"refunded": false,
"captured": false,
"history": [],
"order": null,
"feeTransaction": null,
"batch": {
"id": null,
"number": null,
"batchedOn": null
},
"ip": {
"address": "216.73.161.60",
"isp": "Ipxo Limited",
"type": "hosting",
"location": {
"city": "New York",
"state": "NY",
"country": "US",
"zip": "10013"
},
"info": {
"isAnonymous": "Yes",
"isAnonymousVpn": "No",
"isPublicProxy": "No",
"isHostingProvider": "Yes",
"isTorExitNode": "No"
}
},
"status": {
"status": "Approved",
"reason": null
},
"updatedOn": "2023-05-09 15:51:36",
"createdOn": "2023-05-09 15:51:36"
}