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{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}Delete a checkout session and all of its (PCI) data.
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{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Generic error",
"details": []
}checkout-sessions.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 checkout session.
"4137b1cf-39ac-42a8-bad6-1c680d5dab6b"
Successful Response