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

# Create MAWB

> Create and submit MAWB with FWB/XFWB data elements

Create/submit Master Air Waybill (MAWB) with FWB/XFWB data elements.

<ParamField status="200" type="object">
  <ParamField name="mawbId" type="string">
    Unique MAWB identifier
  </ParamField>

  <ParamField name="awbNumber" type="string">
    MAWB number
  </ParamField>

  <ParamField name="status" type="string">
    Submission status
  </ParamField>
</ParamField>

### Reference Documentation

<Info>
  For more information on MAWB creation with FWB data set, please refer to:

  * Pages 52-60 of "Functional\_Requirements\_V18 FINAL": [https://belli.sg/4nxxCDR](https://belli.sg/4nxxCDR)
</Info>


## OpenAPI

````yaml POST /api/mawb
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/mawb:
    post:
      tags:
        - shipments-v1
      summary: Create MAWB
      description: Create and submit MAWB with FWB/XFWB data elements
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MAWBRequest'
      responses:
        '201':
          description: MAWB created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MAWBResponse'
components:
  schemas:
    MAWBRequest:
      type: object
      properties:
        awbNumber:
          type: string
          example: '15712345678'
        origin:
          type: string
          example: DOH
        destination:
          type: string
          example: LHR
        pieces:
          type: integer
          example: 10
        weight:
          type: number
          example: 500
        volume:
          type: number
          example: 2.5
        commodity:
          type: string
          example: GEN
        shipper:
          $ref: '#/components/schemas/Party'
        consignee:
          $ref: '#/components/schemas/Party'
      required:
        - awbNumber
        - origin
        - destination
        - pieces
        - weight
        - commodity
        - shipper
        - consignee
    MAWBResponse:
      type: object
      properties:
        awbNumber:
          type: string
          example: '15712345678'
        status:
          type: string
          example: created
        createdAt:
          type: string
          format: date-time
          example: '2024-01-01T10:00:00Z'
    Party:
      type: object
      properties:
        name:
          type: string
          example: Example Corp
        address:
          type: string
          example: 123 Main St, City, Country
        contact:
          type: string
          example: contact@example.com
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````