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

# Query Waybills

> Query waybill tracking numbers and shipping label URLs by `uniqueRequestId` or `orderNo`. At least one parameter must be provided.

Query waybill tracking numbers and shipping label URLs for your orders.

You can query by either:

* **`uniqueRequestId`** — the batch identifier used when creating orders, returns all waybills for that batch
* **`orderNo`** — the customer order number from individual order items, returns waybills for that specific order

At least one parameter must be provided.


## OpenAPI

````yaml GET /api/openapi/waybills
openapi: 3.1.0
info:
  title: Pod ERP OpenAPI
  description: Pod ERP Open API for order management
  license:
    name: MIT
  version: 2.0.0
servers:
  - url: https://api.platform.poderp.com
security:
  - bearerAuth: []
paths:
  /api/openapi/waybills:
    get:
      summary: Query Waybills
      description: >-
        Query waybill tracking numbers and shipping label URLs by
        `uniqueRequestId` or `orderNo`. At least one parameter must be provided.
      parameters:
        - name: uniqueRequestId
          in: query
          required: false
          description: >-
            The unique request ID used when creating the order. Returns all
            waybills for that batch.
          schema:
            type: string
        - name: orderNo
          in: query
          required: false
          description: >-
            The customer order number (the `orderNo` passed in each order item
            when creating the order). Returns waybills associated with that
            specific order.
          schema:
            type: string
      responses:
        '200':
          description: List of waybill information
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/QueryWaybillResponse'
        '400':
          description: Neither uniqueRequestId nor orderNo was provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    QueryWaybillResponse:
      type: object
      properties:
        customerOrderNo:
          type: string
          description: The customer order number
        waybillNo:
          type: string
          nullable: true
          description: Waybill tracking number
        trackingNumber:
          type: string
          nullable: true
          description: Last-mile delivery tracking number
        labelUrl:
          type: string
          nullable: true
          description: Shipping label URL
        status:
          type: string
          description: >-
            Waybill status (CREATED, PENDING, COMPLETED, FAILED, CANCELLED,
            INTERCEPTED)
    Error:
      required:
        - code
        - message
      type: object
      properties:
        code:
          type: string
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````