Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Returns a list of AWBs

Request

Use this method to get an AWB list.

Tip

Valid Tokens: Company.


Filter by label (Content by label)
showLabelsfalse
max5
sorttitle
titleRelated Articles
cqllabel in ( "awb-api" , "api" , "awb" , "company-token" )
labelsawb awb-api api

Request


URL: https://api.kometsales.com/api/awb.list

Method: GET

Content-Type: URL

Params

Parameters.


Input parameters

:

authenticationToken (required)(string:50)

:

Komet Sales security token.


awb (required) (number:4)

: Last

The last four digits of the AWB.

This filter is required if

the ship date

shipDate is not provided. 


shipDate (required) (date)

: awb

The AWB ship date

(date

Date format YYYY-MM-DD

)

.

 This

 

This filter is required if

the

awb

number

is not provided. 


originCode (optional)(string:5)

: Origin

The origin code.

Example: UIO, MDE, or BOG

, etc

.


locationCode (optional)(string:10)

:

The AWB Location code

of the AWB

.

It

Only applies

for

to Multi-Location companies. 

Sample Request
Code Block
languagejs
https://api.kometsales.com/api/awb.list?
authenticationToken=token_info_goes_here&shipDate=2016-02-15

Response

Output:


status (integer:1)

: transaction

Transaction status. 1

for success or 0 for failure.

= Success | 0 = Failure


message (string:500)

: description of the status of the transaction

Transaction status description.


awbs

:

(array)

An array of

awbs

AWBs.


awbId (integer:20)

:

The Komet Sales internal AWB ID number.


awb (string:15)

:

The AWB number.


origin (string:5)

: Code of the origin.

The origin code.

Example: UIO, MDE, or BOG

, etc


shipDate (date)

:

The AWB ship date

of the AWB. (date format

.

Date format: YYYY-MM-DD

)

.


arrivalDate (date)

: Date when the AWB arrives to the warehouse. (date

The Warehouse arrival date.

Date format YYYY-MM-DD

)

.


pieces (integer:10)

: total of boxes

The number of Boxes in the AWB.


piecesReceived (integer:10)

:

The number of

boxes

Boxes scanned as received

in

by the

warehouse

Warehouse


boxesCodes (string:500)

: Codes of the boxes that belongs to the AWB separated by

The Box code of boxes in the AWB. Each code is separated by a comma. 


locationCode (string:20)

:

The AWB Location code

of the AWB

.

It

Only applies

for

to Multi-Location companies. 


status (integer: 0)

: 1 if the AWB is still Open, 0 if it's Closed. 

Sample Response

The AWB status. 1 = Open | 0 = Closed

Code Block
{
    "status" : 1,
    "message" : "OK",
    "awbs" :
    [
        {
            "awbId" : 148807,
            "awb" : "234-2367-0983",
            "origin" : "UIO",
            "shipDate" : "2016-02-15",
            "arrivalDate" : "2016-02-18",
            "pieces" : 3,
            "piecesReceived" : 2,
            "boxesCodes" : "KS2342342,KS0284353,KS3450923",
            "locationCode" : "06",
            "status" : 1
        },
        {
            "awbId" : 142817,
            "awb" : "092-0234-8762",
            "origin" : "UIO",
            "shipDate" : "2016-02-15",
            "arrivalDate" : "2016-02-18",
            "pieces" : 3,
            "piecesReceived" : 2,
            "boxesCodes" : "KS2542342,KS098412,KS3450956",
            "locationCode" : "06",
            "status" : 1
        },
        {
            "awbId" : 1423207,
            "awb" : "234-2342-0901",
            "origin" : "UIO",
            "shipDate" : "2016-02-15",
            "arrivalDate" : "2016-02-18",
            "pieces" : 3,
            "piecesReceived" : 2,
            "boxesCodes" : "KS2342309,KS0284387,KS3450996",
            "locationCode" : "06",
            "status" : 1
        }
    ]
}
Filter by label (Content by label)showLabelsfalsemax10showSpacefalsesorttitletitleRelated Articlescqllabel in ( "awb-api" , "api" , "awb" )labelsawb awb-api api