Consents

Get a Consent

GET
/consents/{id}

Retrieve the details for a single consent that was created on the Global payments system during the checkout process.

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"

Response Body

application/json

curl -X GET "https://example.com/consents/string" \  -H "X-GP-Version: 2021-03-22"
{  "id": "CON_cd1f16d0-b7ee-4a4c-8097-5579d61e721f",  "time_created": "2021-05-03T21:23:39.718Z",  "time_last_updated": "2021-05-03T21:23:39.718Z",  "status": "APPROVED",  "status_description": "Cancelled by - FI",  "merchant_id": "MER_A6A1EC44522F96630ABEA17A",  "merchant_name": "ABC INDUSTRIES",  "account_id": "TRA_86920f927028745yt34d077d88beb29b",  "account_name": "transaction_processing",  "reference": "becf9f3e-4d33-459c-8ed2-0c4affc9555e",  "merchant_category_code": "String",  "addresses": [    {      "functions": [        "BUSINESS"      ],      "building_name": "Winners",      "reference": "Clothing store",      "line_1": " ",      "line_2": "11",      "line_3": "Shrubsall St",      "city": "Cambridge",      "state": "ON",      "postal_code": "N1T 0G9",      "country": "Canada",      "po_box_numer": "1234"    },    {      "functions": [        "SHIPPING"      ],      "name": "James Mason",      "reference": "Home Address",      "line_1": "716",      "line_2": " ",      "line_3": "Main St E",      "city": "Milton",      "state": "ON",      "postal_code": "L9T 0G9",      "country": "CA",      "po_box_numer": "String"    }  ],  "order": {    "reference": "James_order",    "delivery_timeframe": "STANDARD",    "shipping_type": "SINGLE",    "shipping_cost": "600",    "amount": "10000",    "currency": "CAD",    "tax_amount": "700",    "item_amount": "7000",    "items": [      {        "label": "T-shit Red",        "reference": "ORD-23455",        "type": "OTHER",        "amount": "1250",        "quantity": "2",        "descritpion": "Red t-shirt Zango",        "payment_type": "RECURRING",        "recurring": {          "type": "SUBSCRIPTION",          "amount_capped": "7000",          "amount_variance": "10",          "interval": "MONTH",          "interval_count": 1,          "day_of_month": 5,          "day_of_week": "MON",          "week_of_month": "FIRST",          "start_date": "2026-05-03T21:23:39.718Z",          "end_date": "2026-09-03T21:23:39.718Z",          "max_count": 6        }      }    ]  },  "payer": {    "first_name": "James",    "last_name": "Mason",    "email": "james.mason@test.com",    "mobile_phone": {      "country_code": "+1",      "subscriber_number": "9054628524"    },    "account_type": "GUEST",    "age": 35  },  "payment_method": {    "digital_wallet": {      "provider": "KONEK",      "token_format": "CARD_TOKEN",      "masked_token_last4": "XXXXXXXXXXX9876",      "masked_number_last4": "XXXXXXXX8765",      "brand": "VISA",      "funding": "CREDIT",      "account_type": "SAVING"    }  },  "action": {    "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "type": "CONSENT_SINGLE",    "time_created": "2021-05-03T21:23:39.718Z",    "result_code": "SUCCESS",    "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "app_name": "my_lovely_app"  }}