Basket

This endpoint is used to create a basket with a unique basket_id.

The basket_id needs to be passed to the availability endpoint to generate a URL for Tickitto's Ticket Selection Widget.

Basket_ids are anonymous and not associated with a specific ticket buyer; only at the checkout endpoint do you need to pass user specific data.

Each basket_id you generate with your API Key will be associated with your distributor_id so that ticket transactions occurring on your platform are recorded accurately on your Tickitto commission tracking dashboard.

You do not need to pass a URL parameter with this endpoint.

post/api/basket/

Request

  • Base URL
    https://tickitto.tech (the document declares no server; this is the origin it was published from)
  • URL
    https://tickitto.tech/api/basket/
  • Auth
    API key in header key

Query parameters

payment_method_type'stripe' | 'careem_pay' | 'tickitto'

STRIPE: Tickitto is MOR, and retrieves payment for the items via Stripe. CAREEM_PAY: Tickitto is MOR, and retrieves payment via Careem Pay. TICKITTO: The distributor is MOR, and tickitto purchases the items directly.

Payment method type to use for the basket. 'tickitto': on-account credit, distributor as MoR. 'stripe': Tickitto is MoR

currencystring

Currency to display event prices.

use_stripe_rateboolean

Whether to use the Stripe FXQuote exchange rate and total_local_price.

profile_namestring

Profile name

hostnamestring

Associated hostname

should_raiseboolean

Headers

originstring
accept-languagestring
X-Correlation-IDstring

Optional transaction reference provided by the client. Used to correlate API requests and responses with client flow in logs, errors etc.

Response

Successful Response

_idstring required
external_referencestring

Distributor reference for this basket

checkout_status'not_checked_out' | 'checkout_pending' | 'payment_failed' | 'checked_out' | 'checked_out_with_errors'
  • not_checked_out: the basket has neither been, nor is being checked out
  • checkout_pending: the basket is currently in the process of checking out
  • payment_failed: the basket payment failed, and thus wasn't checked out
  • checked_out: the basket has already been checked out
  • checked_out_with_errors: the basket has been checked out but 1 or more items errored
created_onstring date-time
distributor_idstring

User ID of the event distributor which created this basket

profile_external_user_idstring

External user ID used in handle_profile_post_checkout

total_local_price_ttlstring date-time

Expiry datetime for the total_local_price_currency value/exchange rate, set by Stripe.

total_local_price_exchange_ratenumber
    Exchange rate used to convert the total price to the local currency, set by Stripe. An average of exchange rates for all items in the basket.
    This only differs from total_local_price_base_exchange_rate when the basket contains items with their own exchange rate, such as vivid USD
    
total_local_price_base_exchange_ratenumber

Exchange rate set by Stripe.

Changes

    • info

      the response's property default value changed from 2026-11-02T01:51:23.495618+00:00 to 2026-11-02T00:14:07.237071+00:00 for the status

    • info

      the response's property default value changed from 2026-11-02T01:51:23.517383+00:00 to 2026-11-02T00:14:07.261514+00:00 for the status

    • info

      the response's property default value changed from 2026-11-01T10:08:40.779256+00:00 to 2026-11-02T01:51:23.495618+00:00 for the status

    • info

      the response's property default value changed from 2026-11-01T10:08:40.798176+00:00 to 2026-11-02T01:51:23.517383+00:00 for the status