Consents

Cancel a Consent

POST
/consents/{id}/cancel

Cancel a consent obtained previously between the Merchant and the Payer. This is required when the Payer cancels an order with the Merchant.

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /accesstoken, sent as Authorization: Bearer <token>.

In: header

Path Parameters

id*string

Unique Global Payments generated id used to reference a consent on the Global Payments system. Often referred to as the consent id.

Header Parameters

X-GP-Version*string

The version of the API to execute the request.

Length1 <= length <= 50
Default"2021-03-22"

Request Body

application/json

reference?string

Merchant defined field to reference this consent request.

Length8 <= length <= 50
description?string

The reason specified by the merchant for the cancellation of consent.

Length1 <= length <= 50

Response Body

application/json

curl -X POST "https://example.com/consents/string/cancel" \  -H "X-GP-Version: 2021-03-22" \  -H "Content-Type: application/json" \  -d '{    "reference": "becf9f3e-4d33-459c-8ed2-0c4affc9555e",    "description": "Cancelled by customer"  }'
{  "id": "CON_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",  "time_created": "2026-05-03T21:23:39.718Z",  "status": "CANCELLED",  "merchant_id": "MER_880c34767b184d5e82b10e767201e648",  "merchant_name": "James_Mason49",  "account_id": "transaction_processing",  "account_name": "TRA_86920f927028745yt34d077d88beb29b",  "reference": "becf9f3e-4d33-459c-8ed2-0c4affc9555e",  "reason": "Cancelled by customer",  "action": {    "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "type": "CONSENT_CANCEL",    "time_created": "2026-05-03T21:23:39.718Z",    "result_code": "SUCCESS",    "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "app_name": "my_lovely_app"  }}