Reverses a payment for an account

POST /accounts/{account_id}/line_items/payment_reversals/{line_item_id}

Path parameters

Body Required

Body of request to create payment reversal.

Responses

  • 200

    Payment reversal successfully applied.

  • 401

    Unauthorized.

  • 403

    Forbidden.

  • 409

    Entity has an unexpected state. Please Contact Canopy Support.

  • 422

    Invalid input

  • 429

    Too many requests.

  • Unexpected Error.

POST /accounts/{account_id}/line_items/payment_reversals/{line_item_id}
curl \
 -X POST https://<your_environment_name>-uat-api.canopyservicing.com/accounts/can_52322/line_items/payment_reversals/can_52322 \
 -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"
    }
  ]
}