Create an order for the current buyer
Changed onCreates an order owned by the signed-in buyer. The order is attributed to the verified website client's account Team.
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Request body
Unique identifier of the event for which to create the order
List of items to include in the new order
Optional coupon code to apply discount to the order
Optional tenant-relative, same-tenant-origin, or explicitly approved native return URL. External web returns require returnDestinationKey.
Registered checkout confirmation destination, fixed when the order is created.
Optional channel metadata for where the order originated (for attribution and redirect routing).
Optional browser analytics metadata used for cross-domain checkout attribution.
Optional key that makes repeated order creation requests return the same order.
Example request
{
"eventId": "evt_01jps5cgsenjrazw6wswmyspa3",
"items": [
{
"quantity": 2,
"admissionId": "adm_01jps5cgsee0xvapbk92e8eb4g",
"sectionId": "sct_01jps5cgse0g3qj16kpq8t221r",
"admission": {
"id": "adm_01jps5cgsee0xvapbk92e8eb4g",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"sectionId": "sct_01jps5cgse0g3qj16kpq8t221r",
"teamId": "tem_01jqpjksnsen9vprw95et60t2m",
"promoterId": "pmt_01jqpjksnsen9vprw95et60t2m",
"eventId": "evt_01jps5cgsenjrazw6wswmyspa3",
"eventSlug": "test-event",
"name": "Final Release",
"subtitle": "Entry before 10pm",
"description": "Early bird pricing with priority entry. Must present valid ID at gate.",
"capacity": 100000,
"limit": -1,
"available": 70000,
"sold": 20000,
"reserved": 10000,
"order": 0,
"entryStartsAt": "2026-12-03T02:43:23",
"entryEndsAt": "2026-12-04T02:43:23",
"saleStartsAt": "2026-12-02T02:43:23",
"saleEndsAt": "2026-12-04T02:43:23",
"saleEndsBehavior": "SALE_ENDED",
"price": {
"base": 1000,
"booking": 200,
"currency": "AUD"
},
"visibility": "ALWAYS",
"tenantId": "tnt_01jqpj2t2kfvmstt6f6tzkbaf2",
"deleted": false,
"orderPadded": "0000000000"
},
"section": {
"id": "sct_01jps5cgse0g3qj16kpq8t221r",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"teamId": "tem_01jqpjksnsen9vprw95et60t2m",
"promoterId": "pmt_01jqpjksnsen9vprw95et60t2m",
"eventId": "evt_01jps5cgsenjrazw6wswmyspa3",
"eventSlug": "test-event",
"name": "General Admission",
"capacity": 1000,
"limit": -1,
"available": 700,
"sold": 200,
"reserved": 100,
"order": 0,
"visibility": "ALWAYS",
"location": {
"id": "loc_01hk153x00eh99pagyydz03sbz",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"googlePlaceId": "ChIJ6zWCPUyxEmsRmc6BPrNaP4s",
"name": "Watson's EQ",
"address": "The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia",
"city": "Moore Park",
"state": "New South Wales",
"postcode": "2021",
"country": "Australia",
"latitude": -33.8944593,
"longitude": 151.2252255,
"timeZone": "Australia/Sydney",
"types": [
"establishment",
"point_of_interest",
"restaurant",
"bar"
],
"image": {
"src": "https://assets.session.services/locations/watsons-eq.jpg",
"alt": "Watson's EQ",
"width": 1200,
"height": 800
}
},
"tenantId": "tnt_01jqpj2t2kfvmstt6f6tzkbaf2",
"deleted": false,
"orderPadded": "0000000000"
},
"tax": {
"settings": {
"supplier": {
"address": {
"countryCode": "AU"
}
},
"collection": {
"taxName": "GST",
"ratePpm": 100000,
"priceMode": "INCLUSIVE"
}
}
},
"id": "itm_01jps5cgsfwyxj0516571eaf17"
}
],
"couponCode": "TEST50",
"returnUrl": "/orders",
"channel": {
"name": "tenant-web",
"referrer": "https://sash.teams.mixmag.au/events/example-event",
"utmSource": "instagram",
"utmMedium": "social",
"utmCampaign": "summer-launch",
"deviceType": "MOBILE",
"browser": "Chrome",
"country": "Australia",
"region": "Australia - New South Wales",
"sessionId": "ses_01HX...",
"anonymousId": "aid_01HX..."
}
}Response
OK
An order created for the authenticated buyer
Example response
{
"order": {
"id": "ord_01jps5cgsfgve5b5g2666kyryh",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"status": "PENDING",
"payment": {
"method": "FREE",
"source": "APPLEPAY",
"brand": "VISA",
"last4": "4242",
"stripeId": "pi_1234567890abcdef",
"stripeClientSecret": "pi_1234567890abcdef_secret_xyz",
"stripeCustomerSessionClientSecret": "cuss_1234567890abcdef_secret_xyz",
"stripeAccountId": "acct_1234567890abcdef",
"airwallexId": "int_hkdmr7v9rg1j8donpkmv96",
"airwallexClientSecret": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiaW50ZW50X2lkIjoiaW50X2hrZG1yN3Y5cmcxajhkb25wa212OTYifQ.K8vLx2nPzQHdR5mT1wYcBfJkLmNpS3xG7aE9dH4qZvM",
"airwallexCustomerId": "cus_hkdmrhkh8he4j3kvela",
"airwallexCustomerClientSecret": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MDAwMDAwMDAsImV4cCI6MTcwMDAwMzYwMCwiY3VzdG9tZXJfaWQiOiJjdXNfaGtkbXJoa2g4aGU0ajNrdmVsYSJ9.abc123"
},
"items": [
{
"id": "itm_01jps5cgsfwyxj0516571eaf17",
"kind": "ADMISSION",
"quantity": 2,
"admissionId": "adm_01jps5cgsee0xvapbk92e8eb4g",
"sectionId": "sct_01jps5cgse0g3qj16kpq8t221r",
"admission": {
"id": "adm_01jps5cgsee0xvapbk92e8eb4g",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"sectionId": "sct_01jps5cgse0g3qj16kpq8t221r",
"teamId": "tem_01jqpjksnsen9vprw95et60t2m",
"promoterId": "pmt_01jqpjksnsen9vprw95et60t2m",
"eventId": "evt_01jps5cgsenjrazw6wswmyspa3",
"eventSlug": "test-event",
"name": "Final Release",
"subtitle": "Entry before 10pm",
"description": "Early bird pricing with priority entry. Must present valid ID at gate.",
"capacity": 100000,
"limit": -1,
"available": 70000,
"sold": 20000,
"reserved": 10000,
"order": 0,
"entryStartsAt": "2026-12-03T02:43:23",
"entryEndsAt": "2026-12-04T02:43:23",
"saleStartsAt": "2026-12-02T02:43:23",
"saleEndsAt": "2026-12-04T02:43:23",
"saleEndsBehavior": "SALE_ENDED",
"price": {
"base": 1000,
"booking": 200,
"currency": "AUD"
},
"visibility": "ALWAYS",
"tenantId": "tnt_01jqpj2t2kfvmstt6f6tzkbaf2",
"deleted": false,
"orderPadded": "0000000000"
},
"section": {
"id": "sct_01jps5cgse0g3qj16kpq8t221r",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"teamId": "tem_01jqpjksnsen9vprw95et60t2m",
"promoterId": "pmt_01jqpjksnsen9vprw95et60t2m",
"eventId": "evt_01jps5cgsenjrazw6wswmyspa3",
"eventSlug": "test-event",
"name": "General Admission",
"capacity": 1000,
"limit": -1,
"available": 700,
"sold": 200,
"reserved": 100,
"order": 0,
"visibility": "ALWAYS",
"location": {
"id": "loc_01hk153x00eh99pagyydz03sbz",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"googlePlaceId": "ChIJ6zWCPUyxEmsRmc6BPrNaP4s",
"name": "Watson's EQ",
"address": "The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia",
"city": "Moore Park",
"state": "New South Wales",
"postcode": "2021",
"country": "Australia",
"latitude": -33.8944593,
"longitude": 151.2252255,
"timeZone": "Australia/Sydney",
"types": [
"establishment",
"point_of_interest",
"restaurant",
"bar"
],
"image": {
"src": "https://assets.session.services/locations/watsons-eq.jpg",
"alt": "Watson's EQ",
"width": 1200,
"height": 800
}
},
"tenantId": "tnt_01jqpj2t2kfvmstt6f6tzkbaf2",
"deleted": false,
"orderPadded": "0000000000"
},
"price": {
"net": 1200,
"total": 1200,
"gross": 1200,
"base": 1000,
"booking": 200,
"currency": "AUD"
},
"tax": {
"settings": {
"supplier": {
"address": {
"countryCode": "AU"
}
},
"collection": {
"taxName": "GST",
"ratePpm": 100000,
"priceMode": "INCLUSIVE"
}
}
}
}
],
"fees": [
{
"id": "fee_01jps5cgsgamykd6kh2t738qkh",
"createdAt": "2026-12-02T02:43:23.597Z",
"reason": "Gateway Fee",
"amount": -30,
"currency": "AUD",
"requestId": "att_sgpdz4v2ph1axmdmdx8_m8w6qv",
"kind": "GATEWAY"
}
],
"price": {
"net": 500,
"total": 1400,
"gross": 2200,
"base": 1000,
"booking": 400,
"sms": 200,
"refunded": -700,
"discount": -1000,
"currency": "AUD"
},
"tax": {
"ticket": {
"supplier": {
"address": {
"countryCode": "AU"
}
},
"collection": {
"taxName": "GST",
"ratePpm": 100000,
"priceMode": "INCLUSIVE"
}
}
},
"settlement": {
"net": 500,
"total": 1400,
"gross": 2200,
"base": 1000,
"booking": 400,
"sms": 200,
"refunded": -700,
"discount": -1000,
"currency": "AUD",
"exchangeRate": 1.4
},
"couponCode": {
"id": "cod_01jps5cgsfzftw7hxcvr2wftk2",
"name": "TEST50",
"couponId": "cpn_01jps5cgsfzs1ksqaet5hba8ac"
},
"customer": {
"id": "cus_01jps5cgsf4pn2a32eamppnap1",
"firstName": "Test",
"lastName": "User",
"email": "test@session.services",
"phone": "+61411111111"
},
"timeline": [
{
"id": "tln_01jps5cgsfgve5b5g2666kyryh",
"createdAt": "2026-12-02T02:43:23.597Z",
"status": "SUCCESSFUL",
"kind": "ORDER_COMPLETED",
"description": "Order was created successfully",
"author": "System",
"userId": "usr_01jps5cgsd4tzjghtnt45qnhn0",
"externalId": "ses:01234567-89ab-cdef-0123-456789abcdef:Delivery"
}
],
"refunds": [
{
"id": "rfd_01jps5cgsfgve5b5g2666kyryh",
"request": {
"idempotencyKey": "refund_12345_customer_request"
},
"status": "PENDING",
"acceptedAt": "2026-12-02T02:43:23.598Z",
"failedAt": "2026-12-02T02:43:23.598Z",
"failure": {
"reason": "Insufficient funds for refund",
"message": "The refund could not be processed."
},
"price": {
"currency": "AUD",
"total": 1200,
"items": 1200
},
"reason": "CUSTOMER_REQUEST",
"note": "Customer requested refund due to schedule conflict",
"items": [
{
"orderItemId": "itm_01jps5cgsfwyxj0516571eaf17",
"quantity": 2,
"amount": 1200,
"ticketIds": [
"tkt_01jps5cgsg0s32w2pr73vbccde"
]
}
],
"tickets": {
"cancelRequested": true,
"cancelled": true,
"cancelledCount": 2
},
"gateway": {
"provider": "STRIPE",
"refundId": "re_1234567890abcdef",
"idempotencyKey": "rfd_01jps5cgsfgve5b5g2666kyryh"
},
"actor": {
"type": "USER",
"userId": "usr_01jps5cgsd4tzjghtnt45qnhn0"
},
"metadata": {
"supportTicket": "#12345"
},
"notification": {
"requested": true,
"sentAt": "2026-12-02T02:43:23.598Z"
},
"createdAt": "2026-12-02T02:43:23.598Z"
}
],
"offers": [
{
"kind": "SMS_DELIVERY",
"label": "SMS ticket delivery",
"price": {
"amount": 200,
"currency": "AUD"
}
}
],
"customerId": "cus_01jps5cgsf4pn2a32eamppnap1",
"createdBy": {
"id": "cus_01jps5cgsf4pn2a32eamppnap1",
"firstName": "Test",
"lastName": "User",
"email": "test@session.services",
"phone": "+61411111111"
},
"promoterId": "pmt_01jqpjksnsen9vprw95et60t2m",
"event": {
"id": "evt_01jps5cgsenjrazw6wswmyspa3",
"name": "Test Event",
"slug": "test-event",
"location": "Watson's EQ",
"locationAddress": "The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia",
"locationLatitude": -33.8944593,
"locationLongitude": 151.2252255
},
"payoutIds": [
"pay_01HQXYZ"
],
"eventId": "evt_01jps5cgsenjrazw6wswmyspa3",
"checkoutUrl": "https://example.com/checkout/ord_1234567890",
"returnUrl": "/orders",
"channel": {
"name": "tenant-web",
"referrer": "https://sash.teams.mixmag.au/events/example-event",
"utmSource": "instagram",
"utmMedium": "social",
"utmCampaign": "summer-launch",
"deviceType": "MOBILE",
"browser": "Chrome",
"country": "Australia",
"region": "Australia - New South Wales",
"sessionId": "ses_01HX...",
"anonymousId": "aid_01HX..."
},
"reservedAt": "2026-12-02T02:43:23.658Z"
}
}Changes
- breaking
the
analytics/postHogDistinctIdrequest property's minLength was increased from0to1 - breaking
the
idempotencyKeyrequest property's minLength was increased from0to1 - breaking
the
items/items/section/location/timeZonerequest property's minLength was increased from0to1
107 more changes in this revision
- breaking