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
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
Get payment session by id GET
Returns the session document for one session — its current status, the payment parameters it was created with, and its history of state changes. This endpoint takes no credential. It is the read th…
Get payment session GET
Retrieves the current state (and history) of a payment session.