DELETE
/
checkout
/
sessions
/
{session_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.CheckoutSessions.DeleteAsync(sessionId: "4137b1cf-39ac-42a8-bad6-1c680d5dab6b");

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

This endpoint requires the checkout-sessions.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

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

Examples:

"default"

Path Parameters

session_id
string
required

The ID of the checkout session.

Examples:

"4137b1cf-39ac-42a8-bad6-1c680d5dab6b"

Response

204

Successful Response