> ## Documentation Index
> Fetch the complete documentation index at: https://developers.weticket.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List orders

> The orders of your organization with their line items, oldest first. Sort with `sort=createdAt:desc` (also `updatedAt`). Filter on `filters[eventId][$eq]`, `filters[status][$eq]` and `filters[createdAt][$gte]`. Use `filters[updatedAt][$gte]` to fetch only what changed since your last sync. Amounts are in cents.



## OpenAPI

````yaml /openapi/public-v1.json get /public/v1/orders
openapi: 3.1.1
info:
  title: WeTicket API
  description: >-
    Read the data of your organization from your own software: events,

    timeslots, ticket types, orders and tickets.


    Create an API key in the WeTicket dashboard (Settings, Integrations) and
    send

    it with every request as `Authorization: Bearer <key>`. Keep the key on your

    server: anyone who has it can read what its scopes allow. Requests are

    limited per key; a `429` response tells you to wait for the number of
    seconds

    in its `Retry-After` header.
  version: 1.1.1
servers:
  - url: https://api.weticket.io
security:
  - ApiKey: []
tags:
  - name: Endpoint
paths:
  /public/v1/orders:
    get:
      tags:
        - Endpoint
      summary: List orders
      description: >-
        The orders of your organization with their line items, oldest first.
        Sort with `sort=createdAt:desc` (also `updatedAt`). Filter on
        `filters[eventId][$eq]`, `filters[status][$eq]` and
        `filters[createdAt][$gte]`. Use `filters[updatedAt][$gte]` to fetch only
        what changed since your last sync. Amounts are in cents.
      operationId: PublicGetOrders
      parameters:
        - name: filters[eventId][$eq]
          in: query
          schema:
            type: string
            format: uuid
        - name: filters[status][$eq]
          in: query
          description: '`completed`, `awaiting-payment`, `draft`, `expired` or `failed`.'
          schema:
            enum:
              - completed
              - awaiting-payment
              - draft
              - expired
              - failed
            type: string
        - name: filters[createdAt][$gte]
          in: query
          schema:
            type: string
            format: date-time
        - name: filters[updatedAt][$gte]
          in: query
          schema:
            type: string
            format: date-time
        - name: sort
          in: query
          schema:
            type: string
        - name: pagination[limit]
          in: query
          schema:
            type: integer
            format: int32
        - name: pagination[after]
          in: query
          schema:
            type: string
        - name: pagination[before]
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedListResponseOfPublicOrderResponse
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    PaginatedListResponseOfPublicOrderResponse:
      required:
        - pagination
        - items
      type: object
      properties:
        pagination:
          $ref: '#/components/schemas/PaginationMetadata'
        items:
          type: array
          items:
            $ref: '#/components/schemas/PublicOrderResponse'
    ProblemDetails:
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
        title:
          type:
            - 'null'
            - string
        status:
          type:
            - 'null'
            - integer
          format: int32
        detail:
          type:
            - 'null'
            - string
        instance:
          type:
            - 'null'
            - string
    PaginationMetadata:
      required:
        - hasPreviousPage
        - hasNextPage
      type: object
      properties:
        hasPreviousPage:
          type: boolean
        previousPageCursor:
          type:
            - 'null'
            - string
        hasNextPage:
          type: boolean
        nextPageCursor:
          type:
            - 'null'
            - string
    PublicOrderResponse:
      required:
        - id
        - reference
        - eventId
        - status
        - source
        - buyer
        - voucherCode
        - subtotal
        - discount
        - total
        - paid
        - refunded
        - totalAfterRefunds
        - lineItems
        - createdAt
        - updatedAt
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 0193a8f2-5c1e-7b3a-9d4f-2e6c8a1b3d5f
        reference:
          type: string
          description: The order number the buyer sees in the confirmation email.
          example: WT-8F3K2Q
        eventId:
          type: string
          format: uuid
          example: 0193a7c1-2b4d-7e8f-a1c3-5d7e9f1b3a5c
        status:
          $ref: '#/components/schemas/OrderStatus'
          description: >-
            `completed` once paid (or free), `awaiting-payment` while a payment
            is pending,
                    `draft` during checkout, and `expired` or `failed` when it was not completed.
          examples:
            - completed
        source:
          $ref: '#/components/schemas/OrderSource'
          description: >-
            Where the order was made: `storefront`, `point-of-sale`,
            `guestlist`,

            `transfer` or `import`.
          examples:
            - storefront
        buyer:
          $ref: '#/components/schemas/PublicOrderBuyerResponse'
        voucherCode:
          type:
            - 'null'
            - string
          description: The voucher code the buyer used, if any.
          example: EARLYBIRD
        subtotal:
          $ref: '#/components/schemas/MoneyResponse'
          description: >-
            Prices plus service costs of all items, including VAT, before the
            discount.
        discount:
          $ref: '#/components/schemas/MoneyResponse'
          description: >-
            The voucher discount, as a positive amount (`0` without a voucher).
            `total` is `subtotal` minus this.
        total:
          $ref: '#/components/schemas/MoneyResponse'
          description: >-
            What the buyer pays, including VAT: the subtotal minus the discount.
            Use this for revenue.
        paid:
          $ref: '#/components/schemas/MoneyResponse'
          description: >-
            What the buyer has paid so far. Equal to `total` for a completed
            order, `0` while payment is pending or for a free order.
        refunded:
          $ref: '#/components/schemas/MoneyResponse'
          description: >-
            What was refunded to the buyer, as a positive amount (`0` when
            nothing was refunded).
        totalAfterRefunds:
          $ref: '#/components/schemas/MoneyResponse'
          description: '`total` minus `refunded`: what the order is still worth.'
        lineItems:
          type: array
          items:
            $ref: '#/components/schemas/PublicOrderLineItemResponse'
          description: 'One line per item: a ticket, guest list ticket or product.'
        createdAt:
          type: string
          format: date-time
          example: '2026-11-28T14:03:12+01:00'
        updatedAt:
          type: string
          description: >-
            When the order itself last changed, for example its status or the
            buyer's details. A

            refund or a change to one of its tickets does not change it.
          format: date-time
          example: '2026-11-28T14:05:40+01:00'
      description: An order as the public API shows it, in the list and on its own.
    OrderStatus:
      enum:
        - draft
        - expired
        - completed
        - awaiting-payment
        - failed
    OrderSource:
      enum:
        - point-of-sale
        - storefront
        - transfer
        - guestlist
        - import
    PublicOrderBuyerResponse:
      required:
        - firstName
        - lastName
        - emailAddress
      type: object
      properties:
        firstName:
          type:
            - 'null'
            - string
          example: Sanne
        lastName:
          type:
            - 'null'
            - string
          example: de Vries
        emailAddress:
          type:
            - 'null'
            - string
          example: sanne@example.com
    MoneyResponse:
      required:
        - amount
        - currency
      type: object
      properties:
        amount:
          type: integer
          description: >-
            The amount in the smallest unit of the currency (cents): `4500` is
            45.00.
          format: int64
          example: 4500
        currency:
          type: string
          description: ISO 4217 currency code.
          example: EUR
    PublicOrderLineItemResponse:
      required:
        - id
        - productId
        - productName
        - productType
        - timeslotId
        - price
        - serviceCosts
        - discount
        - refunded
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 0193a8f2-6a10-7c2b-8e3d-4f5a6b7c8d9e
        productId:
          type: string
          description: >-
            The ticket type or product, as listed by `GET
            /events/{eventId}/products`.
          format: uuid
          example: 0193a7c2-1a2b-7c3d-9e4f-5a6b7c8d9e0f
        productName:
          type: string
          example: Regular ticket
        productType:
          $ref: '#/components/schemas/ProductType'
          examples:
            - ticket
        timeslotId:
          type:
            - 'null'
            - string
          description: >-
            The timeslot, as listed by `GET /events/{eventId}/timeslots`. `null`
            when the event has no timeslots, or for a product (such as a locker
            or merchandise) that is not tied to one.
          format: uuid
          example: 0193a7c1-9f8e-7d6c-b5a4-3c2d1e0f9a8b
        price:
          $ref: '#/components/schemas/MoneyResponse'
          description: Price including VAT, without service costs.
        serviceCosts:
          $ref: '#/components/schemas/MoneyResponse'
          description: Service costs including VAT.
        discount:
          $ref: '#/components/schemas/MoneyResponse'
          description: >-
            The part of the order's discount that went to this item, as a
            positive amount.
        refunded:
          $ref: '#/components/schemas/MoneyResponse'
          description: What was refunded for this item, as a positive amount.
    ProductType:
      enum:
        - product
        - ticket
        - guestlist-ticket
  securitySchemes:
    ApiKey:
      type: http
      description: An API key from the WeTicket dashboard, starting with wt_live_.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.