Tickets

Create a new ticket

Changed on
post/tickets

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Request body

object required
status, 'ACTIVE' | 'REDEEMED' | 'CANCELLED' required

Current status of the ticket: ACTIVE (can be used), REDEEMED (already used), CANCELLED (invalidated or refunded)

admissionId, string required

Unique identifier of the admission type/tier this ticket represents

orderItemId, string

Unique identifier of the specific order item this ticket represents

orderId, string required

The order this ticket belongs to

customerId, string required

The customer who purchased this ticket

attendee, object

Optional attendee information - defaults to order customer details if not provided

Example request

{
  "status": "ACTIVE",
  "admissionId": "adm_01jps5cgsee0xvapbk92e8eb4g",
  "orderItemId": "itm_01jps5cgsfwyxj0516571eaf17",
  "orderId": "ord_01jps5cgsfgve5b5g2666kyryh",
  "customerId": "cus_01jps5cgsf4pn2a32eamppnap1",
  "attendee": {
    "firstName": "Test",
    "lastName": "User",
    "email": "test@session.services",
    "phone": "+61411111111"
  }
}

Response

OK

object required
ticket, Ticket required

A ticket represents a customer's admission to an event. It tracks the purchase, scanning history, and current status.

Example response

{
  "ticket": {
    "id": "tkt_01jps5cgsg0s32w2pr73vbccde",
    "createdAt": "2026-12-02T02:43:23.598Z",
    "updatedAt": "2026-12-02T02:43:23.598Z",
    "scans": [
      {
        "id": "scn_01jq4rjmtzyzgtsavn9f34mxan",
        "scannedAt": "2026-12-02T02:43:23.597Z",
        "scannedById": "usr_01jps5cgsd4tzjghtnt45qnhn0",
        "scannedBy": {
          "id": "usr_01jps5cgsd4tzjghtnt45qnhn0",
          "firstName": "Jay",
          "lastName": "McMullen",
          "email": "test@session.services"
        },
        "deviceId": "dev_01jq4rjvrgar43zwvyakbje22m",
        "kind": "CHECK_IN"
      }
    ],
    "status": "ACTIVE",
    "attendee": {
      "firstName": "Test",
      "lastName": "User",
      "email": "test@session.services",
      "phone": "+61411111111"
    },
    "customerId": "cus_01jps5cgsf4pn2a32eamppnap1",
    "eventId": "evt_01jps5cgsenjrazw6wswmyspa3",
    "event": {
      "id": "evt_01jps5cgsenjrazw6wswmyspa3",
      "name": "Test Event",
      "slug": "test-event",
      "location": {
        "id": "loc_01hk153x00eh99pagyydz03sbz",
        "googlePlaceId": "ChIJP3Sa8ziYEmsRUKgyFmh9AQM",
        "createdAt": "2026-12-02T02:43:23.597Z",
        "updatedAt": "2026-12-02T02:43:23.597Z",
        "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",
          "stadium"
        ],
        "description": "Historic outdoor amphitheater known for summer concerts",
        "image": {
          "src": "https://assets.session.services/my-image.jpg",
          "alt": "My Image",
          "width": 1080,
          "height": 1080
        }
      },
      "entryStartsAt": "2026-12-03T02:43:23",
      "entryEndsAt": "2026-12-04T02:43:23",
      "images": {
        "mobile": {
          "src": "https://assets.session.services/my-image.jpg",
          "alt": "My Image",
          "width": 1080,
          "height": 1080
        },
        "desktop": {
          "src": "https://assets.session.services/my-image.jpg",
          "alt": "My Image",
          "width": 1080,
          "height": 1080
        }
      }
    },
    "admissionId": "adm_01jps5cgsee0xvapbk92e8eb4g",
    "admission": {
      "id": "adm_01jps5cgsee0xvapbk92e8eb4g",
      "name": "VIP Access",
      "price": {
        "currency": "USD"
      },
      "entryStartsAt": "2025-03-15T19:30:00",
      "entryEndsAt": "2025-03-15T19:30:00"
    },
    "section": {
      "id": "sct_01jps5cgse0g3qj16kpq8t221r",
      "name": "Floor Section A",
      "location": {
        "timeZone": "America/New_York"
      }
    },
    "orderId": "ord_01jps5cgsfgve5b5g2666kyryh",
    "orderItemId": "itm_01jps5cgsfwyxj0516571eaf17",
    "teamId": "tem_01jqpjksnsen9vprw95et60t2m",
    "promoterId": "pmt_01jqpjksnsen9vprw95et60t2m"
  }
}

Changes

    • breaking

      the attendee/firstName request property's minLength was increased from 0 to 1

    • breaking

      the attendee/lastName request property's minLength was increased from 0 to 1

    • breaking

      added the pattern ^adm_[0-9a-z]{26}$ to the request property admissionId

    15 more changes in this revision