DELETE
/
payment-methods
/
{payment_method_id}
/
network-tokens
/
{network_token_id}
using Gr4vy;
using Gr4vy.Models.Components;

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

await sdk.PaymentMethods.NetworkTokens.DeleteAsync(
    paymentMethodId: "ef9496d8-53a5-4aad-8ca2-00eb68334389",
    networkTokenId: "f8dd5cfc-7834-4847-95dc-f75a360e2298"
);

// handle response
This response does not have an example.

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.

Examples:

"default"

Path Parameters

payment_method_id
string
required

The ID of the payment method

Examples:

"ef9496d8-53a5-4aad-8ca2-00eb68334389"

network_token_id
string
required

The ID of the network token

Examples:

"f8dd5cfc-7834-4847-95dc-f75a360e2298"

Response

204

Successful Response