Reverse a charge for an account
Path parameters
-
account_id
string Required Account ID
-
line_item_id
string Required Line Item ID of the original charge to be reversed
Body
Required
Body of request to create charge reversal.
-
external_fields
array[object] | null An array of static references to fields in a third party system.
Not more than
10
elements.
POST
/accounts/{account_id}/line_items/charge_reversals/{line_item_id}
curl \
-X POST https://sandbox-api.canopyservicing.com/accounts/31mNprzLd2bKl6koVna68ARM/line_items/charge_reversals/31mNprzLd2bKl6koVna68ARM \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"external_fields":[{"key":"Globex Card Processing Account ID","value":"22445702-a389-431f-927d-07b8d0750787"}]}'
Request example
{
"external_fields": [
{
"key": "Globex Card Processing Account ID",
"value": "22445702-a389-431f-927d-07b8d0750787"
}
]
}
Request examples
{
"external_fields": [
{
"key": "Globex Card Processing Account ID",
"value": "22445702-a389-431f-927d-07b8d0750787"
}
]
}