Skip to main content
POST
/
payment-methods
/
{payment_method_id}
/
network-tokens
/
{network_token_id}
/
cryptogram
C#
using Gr4vy;
using Gr4vy.Models.Components;

var sdk = new Gr4vySDK(
    id: "example",
    server: SDKConfig.Server.Sandbox,
    bearerAuthSource: Auth.WithToken(privateKey),
    merchantAccountId: "default"
);

var res = await sdk.PaymentMethods.NetworkTokens.Cryptogram.CreateAsync(
    paymentMethodId: "ef9496d8-53a5-4aad-8ca2-00eb68334389",
    networkTokenId: "f8dd5cfc-7834-4847-95dc-f75a360e2298",
    cryptogramCreate: new CryptogramCreate() {
        MerchantInitiated = false,
    }
);

// handle response
{
  "type": "network-token-cryptogram",
  "cryptogram": "A3F9C2D47E1B56A9"
}
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

Headers

x-gr4vy-merchant-account-id
string
Examples:

Path Parameters

payment_method_id
string<uuid>
required
Examples:
network_token_id
string<uuid>
required
Examples:

Body

application/json
merchant_initiated
boolean
required
Examples:

Response

cryptogram
string
required
Examples:
type
string
default:network-token-cryptogram
Allowed value: "network-token-cryptogram"
Examples: