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

# Submit e-DGD

> Submit electronic Dangerous Goods Declaration (e-DGD)

Submit electronic Dangerous Goods Declaration (e-DGD).

<ParamField status="201" type="DangerousGoodsResponse">
  <ParamField name="dgdId" type="string">
    Unique Dangerous Goods Declaration identifier
  </ParamField>

  <ParamField name="awbNumber" type="string">
    Air Waybill number
  </ParamField>

  <ParamField name="status" type="string">
    Current status of the declaration (submitted, under\_review, approved, rejected)
  </ParamField>

  <ParamField name="submittedAt" type="string" format="date-time">
    Timestamp when the declaration was submitted
  </ParamField>

  <ParamField name="validUntil" type="string" format="date-time">
    Declaration validity end time
  </ParamField>

  <ParamField name="reviewNotes" type="string">
    Notes from the review process
  </ParamField>
</ParamField>

<ParamField status="400" type="DangerousGoodsErrorResponse">
  <ParamField name="error" type="string">
    Error code indicating validation failure
  </ParamField>

  <ParamField name="errorDescription" type="string">
    Human-readable error description
  </ParamField>

  <ParamField name="errorUri" type="string">
    Link to error documentation
  </ParamField>

  <ParamField name="validationErrors" type="array">
    Array of specific validation errors

    <ParamField name="field" type="string">
      Field name that failed validation
    </ParamField>

    <ParamField name="message" type="string">
      Validation error message
    </ParamField>

    <ParamField name="code" type="string">
      Error code for the validation failure
    </ParamField>
  </ParamField>
</ParamField>

<ParamField status="401" type="OAuthErrorResponse">
  <ParamField name="error" type="string">
    Error code (e.g., 'invalid\_client', 'invalid\_grant')
  </ParamField>

  <ParamField name="errorDescription" type="string">
    Human-readable error description
  </ParamField>

  <ParamField name="errorUri" type="string">
    Link to error documentation
  </ParamField>
</ParamField>

### Reference Documentation

<Info>
  For more information on DGD processes, please refer to:

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


## OpenAPI

````yaml POST /api/dangerous-goods
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/dangerous-goods:
    post:
      tags:
        - compliance-v1
      summary: Submit e-DGD
      description: Submit electronic Dangerous Goods Declaration (e-DGD)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DangerousGoodsRequest'
      responses:
        '201':
          description: Dangerous goods declaration submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DangerousGoodsResponse'
        '400':
          description: Invalid dangerous goods declaration data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DangerousGoodsErrorResponse'
        '401':
          description: Unauthorized - Invalid or missing authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthErrorResponse'
components:
  schemas:
    DangerousGoodsRequest:
      type: object
      properties:
        awbNumber:
          type: string
          example: '15712345678'
          description: Air Waybill number
        unNumber:
          type: string
          example: UN1234
          description: UN number for the dangerous goods
        properShippingName:
          type: string
          example: Example Dangerous Goods
          description: Proper shipping name as per IATA DGR
        class:
          type: string
          example: '3'
          description: Hazard class (1-9)
        packingGroup:
          type: string
          example: II
          description: Packing group (I, II, or III)
        quantity:
          type: number
          example: 100
          description: Quantity of dangerous goods
        netWeight:
          type: number
          example: 50.5
          description: Net weight in kilograms
        grossWeight:
          type: number
          example: 55
          description: Gross weight in kilograms
        packingInstructions:
          type: string
          example: P001
          description: Packing instructions code
        limitedQuantity:
          type: boolean
          example: false
          description: Whether goods are in limited quantity
        exceptedQuantity:
          type: boolean
          example: false
          description: Whether goods are in excepted quantity
        shipperDeclaration:
          type: string
          example: >-
            I hereby declare that the contents of this consignment are fully and
            accurately described above by the proper shipping name and are
            classified, packaged, marked and labeled/placarded and are in all
            respects in proper condition for transport according to applicable
            international and national governmental regulations.
          description: Shipper's declaration statement
        emergencyContact:
          type: object
          properties:
            name:
              type: string
              example: John Smith
            phone:
              type: string
              example: +1-555-123-4567
            email:
              type: string
              example: emergency@example.com
          required:
            - name
            - phone
      required:
        - awbNumber
        - unNumber
        - properShippingName
        - class
        - quantity
        - netWeight
    DangerousGoodsResponse:
      type: object
      properties:
        dgdId:
          type: string
          example: dgd-123456789
          description: Unique Dangerous Goods Declaration identifier
        awbNumber:
          type: string
          example: '15712345678'
          description: Air Waybill number
        status:
          type: string
          enum:
            - submitted
            - under_review
            - approved
            - rejected
          example: submitted
          description: Current status of the declaration
        submittedAt:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00Z'
          description: Timestamp when the declaration was submitted
        validUntil:
          type: string
          format: date-time
          example: '2024-01-22T10:30:00Z'
          description: Declaration validity end time
        reviewNotes:
          type: string
          example: Declaration approved for transport
          description: Notes from the review process
      required:
        - dgdId
        - awbNumber
        - status
        - submittedAt
    DangerousGoodsErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: validation_error
        errorDescription:
          type: string
          example: Invalid dangerous goods declaration parameters
        errorUri:
          type: string
          example: https://docs.example.com/dangerous-goods/errors
        validationErrors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                example: unNumber
              message:
                type: string
                example: UN number must be in format UN followed by 4 digits
              code:
                type: string
                example: INVALID_UN_NUMBER
          example:
            - field: unNumber
              message: UN number must be in format UN followed by 4 digits
              code: INVALID_UN_NUMBER
            - field: class
              message: Hazard class must be between 1 and 9
              code: INVALID_HAZARD_CLASS
    OAuthErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: invalid_grant
        errorDescription:
          type: string
          example: Invalid client credentials provided
        errorUri:
          type: string
          example: https://docs.example.com/oauth/errors
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````