> ## 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.

# Receive HAWB as Draft (XFZB/FHL)

> Ingest HAWB as a draft from XFZB/FHL sources before finalization.

Receive House Air Waybill (HAWB) as draft with FHL/XFZB data format.

<ParamField status="200" type="object">
  <ParamField name="hawbNumber" type="string">
    House Air Waybill number
  </ParamField>

  <ParamField name="status" type="string">
    Draft creation status
  </ParamField>
</ParamField>

<ParamField status="400" type="object">
  <ParamField name="error" type="string">
    Error message
  </ParamField>
</ParamField>

<ParamField status="401" type="object">
  <ParamField name="error" type="string">
    Unauthorized error message
  </ParamField>
</ParamField>

### Reference Documentation

<Info>
  For more information on HAWB draft handling with FHL/XFZB format, please refer to:

  * Pages 196–197 of "Functional\_Requirements\_V18 FINAL": [https://belli.sg/3Lu7pYH](https://belli.sg/3Lu7pYH)
</Info>


## OpenAPI

````yaml POST /api/hawb/drafts
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/hawb/drafts:
    post:
      tags:
        - shipments-v1
      summary: Receive HAWB as Draft (XFZB/FHL)
      description: Ingest HAWB as a draft from XFZB/FHL sources before finalization.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HAWBDraftRequest'
      responses:
        '200':
          description: Draft Created Successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HAWBDraftResponse'
components:
  schemas:
    HAWBDraftRequest:
      type: object
      properties:
        awbNumber:
          type: string
          example: 157-12345675
        hawbNumber:
          type: string
          example: HAWB-0001
        origin:
          type: string
          example: DOH
        destination:
          type: string
          example: LHR
        shipper:
          type: object
          properties:
            name:
              type: string
              example: ACME Export
            address:
              type: string
              example: 123 Export Street
        consignee:
          type: object
          properties:
            name:
              type: string
              example: ACME UK
            address:
              type: string
              example: 456 Import Avenue
        pieces:
          type: integer
          example: 5
        weight:
          type: number
          example: 250.5
        volume:
          type: number
          example: 1.2
        goodsDescription:
          type: string
          example: Electronics
        iataMessages:
          type: object
          properties:
            xfzb:
              type: string
              example: <XFZB XML or IMP here>
            fhl:
              type: string
              example: <FHL if sent>
      required:
        - awbNumber
        - hawbNumber
        - origin
        - destination
        - shipper
        - consignee
        - pieces
    HAWBDraftResponse:
      type: object
      properties:
        hawbId:
          type: string
          example: hawb_01HXYZ
        hawbNumber:
          type: string
          example: HAWB-0001
        status:
          type: string
          example: draft
        linkedAwb:
          type: string
          example: 157-12345675
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````