KashierDevelopersKashier Developers

Abandon a payment session

curl -X PATCH "https://test-api.kashier.io/v3/payment/sessions/string" \  -H "Content-Type: application/json" \  -d '{}'
{}

Marks a session as ABANDONED — the customer closed the checkout, or you decided the session is no longer wanted. Abandoning is the clean way to end a session you will not use, rather than leaving it to expire on its own at expireAt.

Like the read above, this call takes no credential — the hosted checkout page calls it directly when the customer walks away. It needs no request body.

Abandoning does not move money and cannot undo a payment: a session that has already reached a final state stays where it is. To reverse money that has already moved, use the refund, void or capture-release operations instead.

Path Parameters

sessionId*string

The session's _id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

No fields are required. Send an empty object.

Response Body

application/json

application/json

application/json

application/json

PATCH
/v3/payment/sessions/{sessionId}