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.PaymentServiceTokens.DeleteAsync(
paymentMethodId: "ef9496d8-53a5-4aad-8ca2-00eb68334389",
paymentServiceTokenId: "703f2d99-3fd1-44bc-9cbd-a25a2d597886"
);
// handle response{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}Delete a gateway tokens for a payment method.
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.PaymentServiceTokens.DeleteAsync(
paymentMethodId: "ef9496d8-53a5-4aad-8ca2-00eb68334389",
paymentServiceTokenId: "703f2d99-3fd1-44bc-9cbd-a25a2d597886"
);
// handle response{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}payment-methods.write scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
The ID of the payment method
"ef9496d8-53a5-4aad-8ca2-00eb68334389"
The ID of the payment service token
"703f2d99-3fd1-44bc-9cbd-a25a2d597886"
Successful Response