List AWBs - celdotro/marketplace GitHub Wiki

About

  • Lists all order AWBs

Class

celmarket\Orders\OrdersAWB

Method

getAwbs

API

  • method: orders
  • action: getOrderAwbs

Parameters

  • orders_id = order ID

Response

An object with the following attributes

  • success = 1 or 0
  • list = AWB list -> array
    • (element din array) = one AWB -> object
      • id = AWB ID
      • courier_account = courier account ID
      • courier_id = courier ID
      • courier = courier name
      • awb_number = AWB number
      • status_id = AWB status ID
      • added = added date (Y-m-d H:i:s)

Example - PHP

https://github.com/celdotro/marketplace_examples/blob/master/AWB/2.getAwbs.php

Example - JSON

{
    "request": {
        "orders_id": 123
    },

    "response": {
        "success": 1,
        "list": [
            {
                "id": "e59b2779414e8a2ab9f9c753cb33ef39",
                "courier_account": 6,
                "courier_id": 1,
                "courier": "Fan Courier",
                "awb_number": "2225000120072",
                "status_id": 1,
                "added": "12-08-2020 11:09"
            }
        ]
    }
}