Checkout sessions
Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.
Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant), Idempotency-Key (required header parameter), Body (is missing line_items)
Authorization
bearerAuth In: header
Header Parameters
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Required replay key for this create operation.
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The WHOLE new cart, never a delta: the engine is the sole cart authority and an update states the cart it wants.
1 <= items <= 50items <= 10A checkout-specific offer from your trusted backend, priced by the same engine as a discount code and bound to THIS session only: catalog prices do not change and the buyer sees it applied without typing a code. Best price wins against membership pricing (the member percentage is never applied again to the offer price); it stacks with ordinary codes exactly as a code of its kind would. Refused with checkout_offer_not_applicable if it covers no line or is in another currency. Retries with the same Idempotency-Key replay one session. Partner-plane only: a buyer-plane request cannot set or change it.
HTTPS return URL or the registered lsn://checkout-return app callback.
uriResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/checkout_sessions" \ -H "Ticketing-Organizer: string" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item_id": "string", "quantity": 1 } ] }'{ "id": "string", "status": "open", "created": "2019-08-24T14:15:22Z", "customer_id": "string", "currency": "string", "line_items": [ { "item_id": "string", "quantity": 1, "unit_list_price_minor": 0 } ], "quote": { "mode": "preview", "created": "2019-08-24T14:15:22Z", "currency": "string", "subject": { "kind": "authenticated", "customer_id": "string", "external_ref": "string" }, "line_items": [ { "item_id": "string", "event_id": "string", "description": "string", "quantity": 1, "unit_list_price_minor": 0, "unit_price_minor": 0, "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "effect_ids": [ "string" ], "sellable": true, "blocked_reason": "gated" } ], "applied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "unapplied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "superseded_effect_ids": [ "string" ], "rejected_codes": [ { "code": "string", "reason": "not_found" } ], "totals": { "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "total_minor": 0 }, "degraded": true, "degraded_providers": [ "discount_codes" ] }, "total_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "payment_method_types": [ "string" ], "hold_id": "string", "hosted_url": "string", "return_url": "string", "psp_refs": { "property1": null, "property2": null }, "locked_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "metadata": { "property1": null, "property2": null }, "client_secret": "string", "url": "string"}Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.
Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant)
Authorization
bearerAuth In: header
Query Parameters
1 <= value <= 10020Filters on the STORED status. payment_pending is the derived wire reading of an open session whose payment has started, so it is not a filter value.
Value in
- "open"
- "completed"
- "expired"
- "payment_refused"
Header Parameters
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/checkout_sessions" \ -H "Ticketing-Organizer: string"{ "data": [ { "id": "string", "status": "open", "created": "2019-08-24T14:15:22Z", "customer_id": "string", "currency": "string", "line_items": [ { "item_id": "string", "quantity": 1, "unit_list_price_minor": 0 } ], "quote": { "mode": "preview", "created": "2019-08-24T14:15:22Z", "currency": "string", "subject": { "kind": "authenticated", "customer_id": "string", "external_ref": "string" }, "line_items": [ { "item_id": "string", "event_id": "string", "description": "string", "quantity": 1, "unit_list_price_minor": 0, "unit_price_minor": 0, "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "effect_ids": [ "string" ], "sellable": true, "blocked_reason": "gated" } ], "applied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "unapplied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "superseded_effect_ids": [ "string" ], "rejected_codes": [ { "code": "string", "reason": "not_found" } ], "totals": { "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "total_minor": 0 }, "degraded": true, "degraded_providers": [ "discount_codes" ] }, "total_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "payment_method_types": [ "string" ], "hold_id": "string", "hosted_url": "string", "return_url": "string", "psp_refs": { "property1": null, "property2": null }, "locked_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "metadata": { "property1": null, "property2": null } } ], "has_more": true}Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.
Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant), id (required path parameter)
Authorization
bearerAuth In: header
Path Parameters
^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Header Parameters
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/checkout_sessions/string" \ -H "Ticketing-Organizer: string"{ "id": "string", "status": "open", "created": "2019-08-24T14:15:22Z", "customer_id": "string", "currency": "string", "line_items": [ { "item_id": "string", "quantity": 1, "unit_list_price_minor": 0 } ], "quote": { "mode": "preview", "created": "2019-08-24T14:15:22Z", "currency": "string", "subject": { "kind": "authenticated", "customer_id": "string", "external_ref": "string" }, "line_items": [ { "item_id": "string", "event_id": "string", "description": "string", "quantity": 1, "unit_list_price_minor": 0, "unit_price_minor": 0, "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "effect_ids": [ "string" ], "sellable": true, "blocked_reason": "gated" } ], "applied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "unapplied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "superseded_effect_ids": [ "string" ], "rejected_codes": [ { "code": "string", "reason": "not_found" } ], "totals": { "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "total_minor": 0 }, "degraded": true, "degraded_providers": [ "discount_codes" ] }, "total_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "payment_method_types": [ "string" ], "hold_id": "string", "hosted_url": "string", "return_url": "string", "psp_refs": { "property1": null, "property2": null }, "locked_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "metadata": { "property1": null, "property2": null }}Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.
Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant), id (required path parameter)
Authorization
bearerAuth In: header
Path Parameters
^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Header Parameters
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Optional replay key for this update operation.
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= propertiesThe WHOLE new cart, never a delta: the engine is the sole cart authority and an update states the cart it wants.
1 <= items <= 50items <= 10HTTPS return URL or the registered lsn://checkout-return app callback.
uriResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/checkout_sessions/string" \ -H "Ticketing-Organizer: string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "status": "open", "created": "2019-08-24T14:15:22Z", "customer_id": "string", "currency": "string", "line_items": [ { "item_id": "string", "quantity": 1, "unit_list_price_minor": 0 } ], "quote": { "mode": "preview", "created": "2019-08-24T14:15:22Z", "currency": "string", "subject": { "kind": "authenticated", "customer_id": "string", "external_ref": "string" }, "line_items": [ { "item_id": "string", "event_id": "string", "description": "string", "quantity": 1, "unit_list_price_minor": 0, "unit_price_minor": 0, "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "effect_ids": [ "string" ], "sellable": true, "blocked_reason": "gated" } ], "applied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "unapplied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "superseded_effect_ids": [ "string" ], "rejected_codes": [ { "code": "string", "reason": "not_found" } ], "totals": { "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "total_minor": 0 }, "degraded": true, "degraded_providers": [ "discount_codes" ] }, "total_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "payment_method_types": [ "string" ], "hold_id": "string", "hosted_url": "string", "return_url": "string", "psp_refs": { "property1": null, "property2": null }, "locked_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "metadata": { "property1": null, "property2": null }}Credentials are held in memory for this page only — never stored, never sent anywhere but the API above. They are cleared when you navigate away or close the tab.
Still needed: API key (this operation is keyed), Ticketing-Organizer (every keyed request names its tenant), id (required path parameter)
Authorization
bearerAuth In: header
Path Parameters
^cs_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Header Parameters
Required organizer tenant id. There is intentionally no default, even for single-grant keys.
^org_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Optional replay key for this update operation.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/checkout_sessions/string/expire" \ -H "Ticketing-Organizer: string"{ "id": "string", "status": "open", "created": "2019-08-24T14:15:22Z", "customer_id": "string", "currency": "string", "line_items": [ { "item_id": "string", "quantity": 1, "unit_list_price_minor": 0 } ], "quote": { "mode": "preview", "created": "2019-08-24T14:15:22Z", "currency": "string", "subject": { "kind": "authenticated", "customer_id": "string", "external_ref": "string" }, "line_items": [ { "item_id": "string", "event_id": "string", "description": "string", "quantity": 1, "unit_list_price_minor": 0, "unit_price_minor": 0, "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "effect_ids": [ "string" ], "sellable": true, "blocked_reason": "gated" } ], "applied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "unapplied_effects": [ { "id": "string", "provider_kind": "discount_codes", "provider_id": "string", "type": "percent_off", "state": "applied", "source": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "requires": { "kind": "string", "label": "string", "ref": "string", "plan_id": "string", "membership_id": "string", "plan_name": "string", "display": "string", "benefit_id": "string" }, "description": "string", "stackable": true, "consumable": true, "redemption_ref": "string", "percent_bps": 0, "amount_minor": 0, "currency": "string", "price_override_minor": 0, "applies_to_item_ids": [ "string" ], "applies_to_event_ids": [ "string" ], "unlocks_item_ids": [ "string" ] } ], "superseded_effect_ids": [ "string" ], "rejected_codes": [ { "code": "string", "reason": "not_found" } ], "totals": { "list_subtotal_minor": 0, "discount_minor": 0, "subtotal_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "total_minor": 0 }, "degraded": true, "degraded_providers": [ "discount_codes" ] }, "total_minor": 0, "booking_fee_minor": 0, "platform_fee_minor": 0, "payment_method_types": [ "string" ], "hold_id": "string", "hosted_url": "string", "return_url": "string", "psp_refs": { "property1": null, "property2": null }, "locked_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z", "metadata": { "property1": null, "property2": null }}