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

# Get order

> Retrieve the full detail of a single order belonging to the authenticated customer, including items, addresses, payment and tracking information.



## OpenAPI

````yaml /api-reference/openapi.json get /account/orders/{orderId}
openapi: 3.0.0
info:
  title: Marzipan API
  version: 1.0.0
servers:
  - url: https://api.marzipan.co/v1
security:
  - tenantAuth: []
tags:
  - name: Account
    description: >-
      Account management endpoints including registration, login, and user
      details
  - name: Carts
    description: Shopping cart management endpoints
  - name: Products
    description: Product catalog and search endpoints
  - name: Subscriptions
    description: Subscription management and renewal endpoints
  - name: CMS
    description: Content management system endpoints
  - name: Messaging
    description: Message and communication endpoints
  - name: Search
    description: Search functionality endpoints
  - name: Settings
    description: >-
      Storefront settings and market detection used to configure the web
      components and checkout.
  - name: Analytics
    description: Storefront visit and attribution tracking.
  - name: Rewards
    description: >-
      Loyalty and rewards programme endpoints for the authenticated customer,
      covering points balance, tier status, perks, exclusive products and
      transaction history.
  - name: Forms
    description: Render and submit dynamic storefront forms defined in the CMS.
  - name: Events
    description: >-
      Check event availability, browse occurrences and recurring dates, generate
      ticket QR codes, and manage event waitlists (join, leave, check status,
      and claim promoted spots).
paths:
  /account/orders/{orderId}:
    parameters:
      - name: orderId
        in: path
        required: true
        description: The public order reference (order_id)
        schema:
          type: string
    get:
      tags:
        - Account
      summary: Get order
      description: >-
        Retrieve the full detail of a single order belonging to the
        authenticated customer, including items, addresses, payment and tracking
        information.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderDetail'
              example:
                id: 73d5c504-adbb-43ac-891e-9b3dd4900de4
                ref: '1010744'
                email: jane@example.com
                currencyCode: GBP
                items:
                  - id: 1f2e3d4c-5b6a-7980-a1b2-c3d4e5f60718
                    name: Sea Salt Caramels
                    price: £9.99
                    quantity: 2
                    lineTotal: £19.98
                    options: []
                    bundledItems: []
                    type: physical
                    sku: SSC-100
                    image: null
                subtotal: £19.98
                shipping: £3.50
                tax: £0.00
                discount: null
                discountCodes: ''
                pointsRedeemed: 0
                pointsDiscount: null
                total: £23.48
                totalRaw: 2348
                status: processing
                paymentMethod: null
                paymentStatus: paid
                shippingAddress:
                  firstName: Jane
                  lastName: Doe
                  addressLine1: 12 Baker Street
                  addressLine2: Flat 2
                  city: London
                  county: Greater London
                  postcode: W1U 6TU
                  country: United Kingdom
                  countryCode: GB
                billingAddress:
                  firstName: Jane
                  lastName: Doe
                  addressLine1: 12 Baker Street
                  addressLine2: Flat 2
                  city: London
                  county: Greater London
                  postcode: W1U 6TU
                  country: United Kingdom
                  countryCode: GB
                  phone: '+447700900123'
                  email: jane@example.com
                shippingMethod: Standard Delivery
                tracking: null
                deliveryInstructions: null
                giftMessage: null
                createdAt: 08/06/2024
                updatedAt: 08/06/2024
                paymentProviders: {}
        '401':
          description: Unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Unauthenticated.
        '404':
          description: Order not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Order not found
      security:
        - accountAuth: []
components:
  schemas:
    OrderDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        ref:
          type: string
          description: Public order reference
        email:
          type: string
          format: email
        currencyCode:
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/OrderItem'
        subtotal:
          type: string
        shipping:
          type: string
        tax:
          type: string
        discount:
          type: string
          nullable: true
        discountCodes:
          type: string
        pointsRedeemed:
          type: integer
        pointsDiscount:
          type: string
          nullable: true
        total:
          type: string
        totalRaw:
          type: number
        status:
          type: string
        paymentMethod:
          type: object
          nullable: true
          properties:
            id:
              type: string
              format: uuid
            createdAt:
              type: string
            provider:
              type: string
            status:
              type: string
            amount:
              type: string
            amountRaw:
              type: number
            card:
              type: object
              nullable: true
              properties:
                last4:
                  type: string
                type:
                  type: string
                expiryMonth:
                  type: integer
                expiryYear:
                  type: integer
                wallet:
                  type: string
                  nullable: true
            failureReason:
              type: string
              nullable: true
        paymentStatus:
          type: string
          nullable: true
        shippingAddress:
          type: object
          properties:
            firstName:
              type: string
              nullable: true
            lastName:
              type: string
              nullable: true
            addressLine1:
              type: string
              nullable: true
            addressLine2:
              type: string
              nullable: true
            city:
              type: string
              nullable: true
            county:
              type: string
              nullable: true
            postcode:
              type: string
              nullable: true
            country:
              type: string
              nullable: true
              description: Full country name
            countryCode:
              type: string
              nullable: true
        billingAddress:
          type: object
          properties:
            firstName:
              type: string
              nullable: true
            lastName:
              type: string
              nullable: true
            addressLine1:
              type: string
              nullable: true
            addressLine2:
              type: string
              nullable: true
            city:
              type: string
              nullable: true
            county:
              type: string
              nullable: true
            postcode:
              type: string
              nullable: true
            country:
              type: string
              nullable: true
              description: Full country name
            countryCode:
              type: string
              nullable: true
            phone:
              type: string
              nullable: true
            email:
              type: string
              nullable: true
        shippingMethod:
          type: string
          nullable: true
        tracking:
          type: object
          nullable: true
          properties:
            courier:
              type: string
              nullable: true
            reference:
              type: string
              nullable: true
            url:
              type: string
              nullable: true
            shippedAt:
              type: string
              nullable: true
            deliveredAt:
              type: string
              nullable: true
            status:
              type: string
              nullable: true
        deliveryInstructions:
          type: string
          nullable: true
        giftMessage:
          type: string
          nullable: true
        createdAt:
          type: string
        updatedAt:
          type: string
        paymentProviders:
          type: object
          description: >-
            Enabled payment provider configuration (paypal, stripe, payfast) for
            paying the order
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
      required:
        - message
    OrderItem:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        price:
          type: string
          description: Formatted unit price, or '-' for zero
        quantity:
          type: integer
        lineTotal:
          type: string
          description: Formatted line total
        options:
          type: array
          items:
            type: object
        bundledItems:
          type: array
          items:
            type: object
        type:
          type: string
          description: Product type
        sku:
          type: string
          nullable: true
        image:
          type: object
          nullable: true
          description: Primary product image
  securitySchemes:
    tenantAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your API token.
      bearerFormat: JWT
    accountAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is the account token returned from the `Login` endpoint.

````