amount than the original captured transaction if no amount is provided the transaction will be fully refunded. You need to provide any discount and tax amount that was in the original transaction to perform a partial refund.Authorization: Bearer ********************{
"terminal": {
"id": 24
},
"amount": "1.10",
"source": "Internet",
"level": 1,
"card": {
"name": "John Wick",
"number": 5146312200000035,
"exp": "12/30",
"cvv": "998",
"address": {
"country": "United State of America",
"state": "CA",
"city": "Calabasas",
"street": "8320",
"zip": "85284"
}
},
"ip": {
"address": "123.123.123.123"
}
}curl --location --request POST '/payment/<id>/refund' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"terminal": {
"id": 24
},
"amount": "1.10",
"source": "Internet",
"level": 1,
"card": {
"name": "John Wick",
"number": 5146312200000035,
"exp": "12/30",
"cvv": "998",
"address": {
"country": "United State of America",
"state": "CA",
"city": "Calabasas",
"street": "8320",
"zip": "85284"
}
},
"ip": {
"address": "123.123.123.123"
}
}'{
"id": 884,
"amount": "0.99",
"origin": "API",
"type": "Return",
"level": 1,
"authCode": null,
"parent": {
"id": 884
},
"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": "173.239.211.192",
"isp": "Ipxo Limited",
"type": "hosting",
"location": {
"city": "New York",
"state": "NY",
"country": "US",
"zip": "10118"
},
"info": {
"isAnonymous": "Yes",
"isAnonymousVpn": "No",
"isPublicProxy": "No",
"isHostingProvider": "No",
"isTorExitNode": "No"
}
},
"status": {
"status": "Approved",
"reason": null
},
"updatedOn": "2023-05-09 15:56:59",
"createdOn": "2023-05-09 15:56:59"
}