Skip to main content
POST
/
payment-methods
/
{payment_method_id}
/
network-tokens
/
{network_token_id}
/
resume
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.ResumeAsync(
    paymentMethodId: "ef9496d8-53a5-4aad-8ca2-00eb68334389",
    networkTokenId: "f8dd5cfc-7834-4847-95dc-f75a360e2298"
);

// handle response
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "expiration_date": "<string>",
  "payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "active",
  "token": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "type": "network-token"
}
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.

Headers

x-gr4vy-merchant-account-id
string | null

The ID of the merchant account to use for this request.

Example:

"default"

Path Parameters

payment_method_id
string<uuid>
required

The ID of the payment method

network_token_id
string<uuid>
required

The ID of the network token

Response

Successful Response

id
string<uuid>
required

The ID for the network token.

expiration_date
string
required

The expiration date for the network token.

Required string length: 5
payment_method_id
string<uuid>
required

The ID of the payment method used to generate this token

status
enum<string>
required

The state of the network token.

Available options:
active,
inactive,
suspended,
deleted
token
string
required

The token value. Will be present if succeeded.

Required string length: 1 - 300
created_at
string<date-time>
required

The date and time when this network token was first created in our system.

updated_at
string<date-time>
required

The date and time when this network token was last updated in our system.

type
string
default:network-token

Always network-token.

Allowed value: "network-token"