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

# List shipments for a purchase order

> Get a paginated list of shipments scoped to a specific purchase order. Returns the same
shape as `GET /purchase-order-shipments`, filtered to shipments that have at least one
line item tied to `{purchaseOrderId}`.

Supports the same filter parameters as `GET /purchase-order-shipments`.




## OpenAPI

````yaml /api-reference/build.yaml get /purchase-orders/{purchaseOrderId}/shipments
openapi: 3.0.0
info:
  title: Luminous API
  version: 1.0.0
  description: API documentation for Luminous
servers:
  - url: https://{companyName}.api.joinluminous.com/external/api/v1
    variables:
      companyName:
        default: companyName
        description: Your company-specific subdomain
security: []
tags:
  - name: Products
    description: Get and manage products
  - name: Pricing
    description: Manage price schedules, levels, and customizations
  - name: BOMs
    description: Manage Bills of Materials (BOMs)
  - name: Labels
    description: Label rendering via Labelary ZPL service
  - name: Companies
    description: Manage business accounts and their associated data
  - name: Contacts
    description: Manage contact information for individuals
  - name: Suppliers
    description: Manage suppliers (factories) — vendors used on purchase orders
  - name: Supplier SKUs
    description: Manage per-supplier SKU and unit-cost overrides for products
  - name: Locations
    description: Manage warehouses and locations
  - name: Inventory
    description: Get and adjust product stock levels
  - name: Lots
    description: Create, update, and delete product lots (batches)
  - name: Transfer Orders
    description: Manage transfer orders
  - name: Fulfillment Orders
    description: Manage fulfillment orders and picklists
  - name: Purchase Orders
    description: Get and modify purchase orders
  - name: Receiving Reports
    description: Manage receiving reports
  - name: Payment Obligations
    description: Manage payment obligations for purchase orders
  - name: Sales Orders
    description: Manage sales orders and sales order shipments
  - name: Purgatory
    description: >-
      Inspect and resolve non-posted sales orders in the purgatory staging
      workflow
  - name: PickFlow Shipping
    description: >-
      Provider-agnostic shipping rates, services, packages, and label purchase
      for PickFlow
  - name: Cycle Counts
    description: >-
      Create, drive, and post PickFlow cycle counts — batches, per-warehouse
      sessions, and CSV import/export
  - name: Print Stations
    description: List paired print stations and enqueue print jobs to them
  - name: Invoices
    description: Get and manage invoices
  - name: Work Orders
    description: >-
      Manage work orders — production lifecycle, steps, materials, links,
      shipments, and comments
  - name: Production Batches
    description: Group and manage work orders as production batches
  - name: Bills
    description: >-
      Accounts payable bill management, payments, attachments, allocations, and
      variance
  - name: Prepayments
    description: Manage vendor prepayments and applications
  - name: Vendor Credits
    description: Manage vendor credits and applications
  - name: Vendor Returns
    description: Manage vendor returns and credit generation
  - name: Customer Returns
    description: Manage customer returns (sales returns), receiving, and restock behavior
  - name: Stock Snapshot
    description: Point-in-time stock snapshots with export support
  - name: Consumption
    description: Consumption reports and exports
  - name: Inventory Aging
    description: Cost-layer-based inventory aging reports
  - name: Bills Reports
    description: Accounts payable bills aging reports
  - name: Forecast
    description: Materialized forecast data
  - name: Reports
    description: Close the books, inventory discrepancy, transaction COGS, and EDI reports
  - name: Tags
    description: Add/remove tags across various resources
  - name: Custom Fields
    description: Get and set custom fields across various resources
  - name: Currency
    description: Currency configuration, exchange rates, and conversion
  - name: Integration Mappings
    description: Manage integration mappings for external systems
  - name: Integration Field Mappings
    description: Manage field-level mappings between Luminous and external systems
paths:
  /purchase-orders/{purchaseOrderId}/shipments:
    get:
      tags:
        - Purchase Order Shipments
      summary: List shipments for a purchase order
      description: >
        Get a paginated list of shipments scoped to a specific purchase order.
        Returns the same

        shape as `GET /purchase-order-shipments`, filtered to shipments that
        have at least one

        line item tied to `{purchaseOrderId}`.


        Supports the same filter parameters as `GET /purchase-order-shipments`.
      operationId: getPurchaseOrderShipmentsByPurchaseOrder
      parameters:
        - in: path
          name: purchaseOrderId
          required: true
          schema:
            type: integer
          description: Purchase order ID
        - in: query
          name: page
          schema:
            type: integer
            default: 1
          description: Page number for pagination
        - in: query
          name: per_page
          schema:
            type: integer
            default: 10
            maximum: 100
          description: Number of items per page (max 100)
        - in: query
          name: updated_at
          schema:
            type: string
            format: date-time
          description: Filter by last update date (YYYY-MM-DD HH:mm:ss)
        - in: query
          name: reference_number
          schema:
            type: string
          description: Filter by reference number
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        created_at:
                          type: string
                          format: date-time
                          nullable: true
                        updated_at:
                          type: string
                          format: date-time
                          nullable: true
                        reference_number:
                          type: string
                          description: Supplier reference number for this shipment
                        total_shipping_cost:
                          type: number
                          format: float
                        shipping_date:
                          type: string
                          format: date-time
                          nullable: true
                        warehouse_id:
                          type: integer
                          nullable: true
                          description: Destination warehouse ID
                        shipment_status_id:
                          type: integer
                          nullable: true
                        notes:
                          type: string
                          nullable: true
                          description: Free-text notes on the shipment
                        tracking_number:
                          type: string
                          nullable: true
                          description: Carrier tracking number
                        shipped_by:
                          type: string
                          nullable: true
                          enum:
                            - Freight
                            - Supplier
                          description: Who is responsible for shipping
                        shipment_type:
                          type: string
                          nullable: true
                          enum:
                            - Air
                            - Sea
                            - Road
                            - Rail
                            - Express
                          description: Mode of transport for the shipment
                        estimated_arrival:
                          type: string
                          format: date
                          nullable: true
                          description: Estimated arrival date
                        is_closed:
                          type: boolean
                          description: >-
                            Whether the shipment is marked as closed. This is a
                            manual label only — it has no enforced behavior
                            (closing does not gate edits, pushes, or receiving)
                            and is provided for filtering and reporting.
                        sync_status:
                          type: string
                          nullable: true
                          description: Integration sync status (e.g. "synced", "unsynced")
                        last_synced_at:
                          type: string
                          format: date-time
                          nullable: true
                        last_synced_status:
                          description: >-
                            Raw sync status payload from the integration (shape
                            varies)
                          nullable: true
                        shipment_status:
                          type: object
                          nullable: true
                          properties:
                            id:
                              type: integer
                            name:
                              type: string
                        warehouse:
                          allOf:
                            - type: object
                              properties:
                                id:
                                  type: integer
                                status:
                                  type: string
                                name:
                                  type: string
                                parent_id:
                                  type: integer
                                  nullable: true
                                created_at:
                                  type: string
                                  format: date-time
                                updated_at:
                                  type: string
                                  format: date-time
                          nullable: true
                        shipment_items:
                          type: array
                          description: Line items (present when the relation is loaded)
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                              created_at:
                                type: string
                                format: date-time
                                nullable: true
                              updated_at:
                                type: string
                                format: date-time
                                nullable: true
                              supplier_purchase_order_shipment_id:
                                type: integer
                              supplier_purchase_order_id:
                                type: integer
                              supplier_purchase_order_item_id:
                                type: integer
                              quantity:
                                type: number
                                format: float
                              unit_of_measure_id:
                                type: integer
                              cbm:
                                type: number
                                format: float
                                nullable: true
                                description: Cubic meters (volume) for this line
                              carton_quantity:
                                type: integer
                                nullable: true
                                description: Number of cartons for this line
                              carton_dimensions:
                                type: string
                                nullable: true
                                description: Carton dimensions for this line
                        shipment_extra_costs:
                          type: array
                          description: >-
                            Extra costs applied to the shipment (present when
                            the relation is loaded)
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                              created_at:
                                type: string
                                format: date-time
                                nullable: true
                              updated_at:
                                type: string
                                format: date-time
                                nullable: true
                              supplier_purchase_order_shipment_id:
                                type: integer
                              name:
                                type: string
                              quantity:
                                type: number
                                format: float
                              unit_price:
                                type: number
                                format: float
                              line_total:
                                type: number
                                format: float
                              cost_allocation_type:
                                type: string
                                nullable: true
                        custom_fields:
                          type: object
                          nullable: true
                          description: >-
                            Custom field values for this shipment as a label =>
                            value map. Present only when the relation is loaded.
                          additionalProperties: true
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        description: The current page number
                        example: 1
                      from:
                        type: integer
                        description: The starting index of the paginated results
                        example: 1
                      last_page:
                        type: integer
                        description: The last page number
                        example: 5
                      per_page:
                        type: integer
                        description: Number of items per page
                        example: 10
                      to:
                        type: integer
                        description: The ending index of the paginated results
                        example: 10
                      total:
                        type: integer
                        description: Total number of items across all pages
                        example: 50
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
        '404':
          description: Purchase order not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authenticate using a bearer token. To create a token, navigate to
        /settings/api-tokens and click Create API Token.

````