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": true
}'
{
  "cryptogram": "<string>"
}

This endpoint requires the payment-methods.write scope.

Authorizations

Authorization
string
headerrequired

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
merchant_initiated
boolean
default: falserequired

Defines if the request is merchant initiated or not.

Response

201 - application/json
cryptogram
string

The cryptogram of the network token.