POST
/
payment-methods
/
{payment_method_id}
/
network-tokens
/
{network_token_id}
/
cryptogram
curl --request POST \
  --url https://api.{gr4vy_id}.gr4vy.app/payment-methods/{payment_method_id}/network-tokens/{network_token_id}/cryptogram \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "merchant_initiated": false
}'
{
  "cryptogram": "<string>"
}

This endpoint requires the payment-methods.write scope. Network token provisioning via the API is not enabled by default in production. Please contact support for further guidance.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

payment_method_id
string
required

The ID of the payment method.

network_token_id
string
required

The ID of the network token.

Body

application/json

Request body for issue a cryptogram for a network token.

merchant_initiated
boolean
default:
false
required

Defines if the request is merchant initiated or not.

Response

201
application/json
Returns the created network token.

A network token cryptogram.

cryptogram
string

The cryptogram of the network token.