Payment Methods

Generate Cryptogram

POST
/payment-methods/{id}/cryptogram

Generate a Cryptogram using a previously stored Network Token.

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 stored payment method on the Global Payments system. Often referred to as the payment method token. This value can be used instead of payment method details such as a card number and expiry date.

Header Parameters

X-GP-Version*string

The version of the API to execute the request.

Length1 <= length <= 50
Default"2021-03-22"
X-GP-Idempotency?string

Integrator generated value submitted in the request header that is checked to ensure the same value has not been seen in the last 24 hours. It is used to ensure idempotency is maintained with this action.

Length1 <= length <= 50

Request Body

application/json

transaction*

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/payment-methods/PMT_3367f648-558a-4979-8b1f-7002961d5d37/cryptogram" \  -H "X-GP-Version: 2021-03-22" \  -H "Content-Type: application/json" \  -d '{    "transaction": {      "amount": "11099"    }  }'
{  "id": "PMT_f5bbdfde-3010-4802-8f5d-1cdb2a2381c2",  "time_created": "2021-05-03T21:23:39.718Z",  "merchant_id": "MER_c4c0df11039c48a9b63701adeaa296c3",  "merchant_name": "Sandbox_merchant_2",  "account_id": "TRA_86920f927028745yt34d077d88beb29b",  "account_name": "Tokenization",  "transaction": {    "amount": "11099"  },  "card": {    "cryptogram": "AwAAAAABI3p6kP8AAABMgkwAAAA=",    "cryptogram_expiry_month": "05",    "cryptogram_expiry_year": "25",    "eci": "7",    "masked_network_token_last4": "xxxxxxxxxxxx5262"  },  "action": {    "id": "ACT_uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "type": "PAYMENT_METHOD_CREATE",    "time_created": "2021-05-03T21:23:39.718Z",    "result_code": "SUCCESS",    "app_id": "uzFr7t4VOqxdLDI44hHmXIjHtOOE8d",    "app_name": "my_lovely_app"  }}