POST
/
payment-methods
/
{payment_method_id}
/
network-tokens
/
{network_token_id}
/
cryptogram
curl --request POST \
  --url https://api.mattildapayments.com/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.

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.

Example:

"46973e9d-88a7-44a6-abfe-be4ff0134ff4"

network_token_id
string
required

The ID of the network token.

Example:

"454f6a32-a572-4dda-b885-3e8674086123"

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.

Example:

false

Response

201
application/json
Returns the created network token.

A network token cryptogram.

cryptogram
string

The cryptogram of the network token.