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

# Get AWB Stock Allocations

> Get airline AWB stock allocations with prefixes, ranges, and validity

Retrieve airline AWB stock allocations (prefix, ranges, validity).

<ParamField status="200" type="array">
  <ParamField name="airline" type="string">
    Airline IATA code
  </ParamField>

  <ParamField name="prefix" type="string">
    AWB prefix
  </ParamField>

  <ParamField name="startRange" type="string">
    Start of AWB number range
  </ParamField>

  <ParamField name="endRange" type="string">
    End of AWB number range
  </ParamField>

  <ParamField name="validFrom" type="string" format="date">
    Validity start date
  </ParamField>

  <ParamField name="validTo" type="string" format="date">
    Validity end date
  </ParamField>

  <ParamField name="availableCount" type="integer">
    Number of available AWBs
  </ParamField>
</ParamField>

### Reference Documentation

<Info>
  For more information on airline AWB stock allocation, please refer to:

  * Page 13 of "Functional\_Requirements\_V18 FINAL": [https://belli.sg/4nxxCDR](https://belli.sg/4nxxCDR)
</Info>


## OpenAPI

````yaml GET /api/awb-stock/allocations
openapi: 3.0.3
info:
  title: Mock API
  version: 1.0.0
  description: >-
    Mock OpenAPI spec for QR API Service. All endpoints require API key
    authentication via 'Authorization: Bearer <token>' or 'x-api-key: <token>'
    headers.
servers:
  - url: https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io
    description: Production server
security:
  - ApiKeyAuth: []
  - ApiKeyHeader: []
tags:
  - name: auth-v1
    description: Authentication and user management
  - name: reference-data-v1
    description: Reference data and master data
  - name: flights-v1
    description: Flight schedules and capacity
  - name: quotes-v1
    description: Quotation and pricing
  - name: awb-stock-v1
    description: AWB Stock Management
  - name: bookings-v1
    description: Booking management
  - name: shipments-v1
    description: Shipment documents and tracking
  - name: compliance-v1
    description: Compliance and safety declarations
  - name: operations-v1
    description: Operational events and manifests
  - name: webhooks-v1
    description: Webhook management
  - name: admin-v1
    description: Administrative and audit functions
  - name: qr-exp-cgo-ext-availability-v1
    description: Legacy availability service
  - name: qr-exp-cgo-ext-booking-v1
    description: Legacy booking service
  - name: qr-exp-cgo-ext-flight-schedules-v1
    description: Legacy flight schedules service
  - name: qr-exp-cgo-shipments-v1
    description: Legacy shipments service
  - name: qr-exp-cgo-stock-v1
    description: Legacy stock service
  - name: qr-exp-cgo-tables-v1
    description: Legacy table data service
paths:
  /api/awb-stock/allocations:
    get:
      tags:
        - awb-stock-v1
      summary: Get AWB stock allocations
      description: Get airline AWB stock allocations with prefixes, ranges, and validity
      parameters:
        - name: organizationId
          in: query
          schema:
            type: string
          description: Filter by organization ID
        - name: airlinePrefix
          in: query
          schema:
            type: string
          description: Filter by airline prefix
        - name: status
          in: query
          schema:
            type: string
          description: Filter by status
      responses:
        '200':
          description: Stock allocations
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AWBStockAllocationsResponse'
components:
  schemas:
    AWBStockAllocationsResponse:
      type: object
      properties:
        allocations:
          type: array
          items:
            $ref: '#/components/schemas/AWBStockAllocation'
    AWBStockAllocation:
      type: object
      properties:
        organizationId:
          type: string
          example: org-123
        airlinePrefix:
          type: string
          example: '157'
        startNumber:
          type: string
          example: '157000001'
        endNumber:
          type: string
          example: '157000100'
        validFrom:
          type: string
          format: date
          example: '2024-01-01'
        validTo:
          type: string
          format: date
          example: '2024-12-31'
        status:
          type: string
          enum:
            - active
            - expired
            - revoked
          example: active
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````