- API reference
- In-Person Payments API
Cancel session
https://api.kustom.co/ipp/v1/sessions/{session_id}/cancel
Cancels a session. Triggers a session.cancelled callback. This is a terminal state — no further payment collection is possible.
No field here matches the current filters.
Session cancelled.
Unique session identifier.
Current session status.
- CREATED
- ACTIVE
- FINALIZED
- CANCELLED
- EXPIRED
- FAILED
Device ID handling the session.
Order ID once created.
Total order amount in minor units.
Currency code (ISO 4217).
Timestamp when the purchase started.
Timestamp when the purchase was completed.
List of line items in the order.
9 fields in order_items
Type of the line item.
- physical
- discount
- shipping_fee
- sales_tax
- store_credit
- gift_card
- digital
- surcharge
- return_fee
- package
External reference ID for the item (e.g., SKU).
Name or description of the item.
Quantity of the item.
Unit price in minor units (e.g., cents).
Total amount for this line in minor units.
Tax rate in basis points (e.g., 2500 for 25%).
Total discount amount in minor units.
Total tax amount for this line in minor units.
First merchant reference.
Second merchant reference.
Total tax amount in minor units.
Arbitrary merchant data.
Timestamp when the session was created.
Timestamp when the session expires.
Timestamp when the session was last updated.
No field here matches the current filters.
Missing or invalid credentials.
No response body — this status returns headers only.
No field here matches the current filters.
Resource not found.
No response body — this status returns headers only.
No field here matches the current filters.
Session is already in a terminal state.
No response body — this status returns headers only.
No field here matches the current filters.
This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.