Skip to main content
DELETE
/
payment-methods
/
{payment_method_id}
/
payment-service-tokens
/
{payment_service_token_id}
Delete payment service token
using RestSharp;


var options = new RestClientOptions("https://api.sandbox.{id}.gr4vy.app/payment-methods/{payment_method_id}/payment-service-tokens/{payment_service_token_id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);

Console.WriteLine("{0}", response.Content);
{
  "type": "error",
  "code": "unauthorized",
  "status": 401,
  "message": "No valid API authentication found",
  "details": []
}
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<uuid>
required

The ID of the payment method.

Example:

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

payment_service_token_id
string<uuid>
required

The ID of the payment service token.

Example:

"7e7ede54-616a-422e-8f58-89a79ae2baea"

Response

Returns an empty response.