AWB Print - celdotro/marketplace GitHub Wiki

About

  • Print an AWB

Class

celmarket\Orders\OrdersAWB

Method

printAwb

API

  • method: orders
  • action: downloadAwb

Parameters

  • awb_id = AWB ID

Response

An object with the following attributes

  • success = 1 or 0
  • awb_number = AWB number
  • pdf = PDF document encoded with base64

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/AWB/3.printAwb.php

Example - JSON

{
    "request": {
        "awb_id": "e59b2779414e8a2ab9f9c753cb33ef39"
    },

    "response": {
        "success": 1,
        "awb_number": 123456789,
        "pdf": "JVBERi0xLjQKMSAwIG9i..."
    }
}
⚠️ **GitHub.com Fallback** ⚠️