DELETE
/
payment-services
/
{payment_service_id}
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.PaymentServices.DeleteAsync(paymentServiceId: "fffd152a-9532-4087-9a4f-de58754210f0");

// handle response
"<any>"

This endpoint requires the payment-services.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_service_id
string
required

the ID of the payment service

Examples:

"fffd152a-9532-4087-9a4f-de58754210f0"

Response

200
application/json

Successful Response

The response is of type any.