Network tokens
Issue cryptogram
Issue a cryptogram for a stored network token of a stored card.
The endpoint is disabled by default, please contact our team for more information on enablement.
POST
/payment-methods/{payment_method_id}/network-tokens/{network_token_id}/cryptogram
curl --request POST \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/payment-methods/{payment_method_id}/network-tokens/{network_token_id}/cryptogram \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"merchant_initiated": false
}'
{
"cryptogram": "string"
}
This endpoint requires the payment-methods.write
scope.
Authorizations
Authorizationheaderrequired
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
payment_method_idrequired
string
The ID of the payment method.
network_token_idrequired
string
The ID of the network token.
Body
application/json
merchant_initiatedrequired
Default: falseboolean
Defines if the request is merchant initiated or not.
Response
201 - application/json
cryptogram
string
The cryptogram of the network token.
curl --request POST \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/payment-methods/{payment_method_id}/network-tokens/{network_token_id}/cryptogram \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"merchant_initiated": false
}'
{
"cryptogram": "string"
}