Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

  • API Location:
    /consignment/track

  • Params:(POST or GET)
    track_reference(mandatory field): track references imploded by ',';
    newest(true/false default to be false): true with results not loading from cache.

  • Response Data:
    success(true/false): true with data returns and false with message returns;
    data(array): track info in associate array like ['TRACK_REFERENCE' => [TIME_LINE]];
    message(string): error info.

  • For Example:
    We send a request like: /consignment/track?track_reference=1
    It will returns json data like:

    {
      "success":true,
      "data":{
        "16465436":[
          {"create_time":"2015-01-01 08:10:19","current_status":"PREPARING","note":"Create consignment, preparing."},
          {"create_time":"2015-01-01 08:10:19","current_status":"PENDING","note":"Consignment from [PREPARING] to [PENDING]"},
          {"create_time":"2015-01-02 15:48:40","current_status":"WAIT_PICKING","note":"Consignment from [PENDING] to [WAIT_PICKING]"}
        ]
      },
      "message":[]
    }

{

  "success":true,

  "data":{

    "16465436":[

      {"create_time":"2015-01-01 08:10:19","current_status":"PREPARING","note":"Create consignment, preparing."},

      {"create_time":"2015-01-01 08:10:19","current_status":"PENDING","note":"Consignment from [PREPARING] to [PENDING]"},

      {"create_time":"2015-01-02 15:48:40","current_status":"WAIT_PICKING","note":"Consignment from [PENDING] to [WAIT_PICKING]"}

    ]

  },

  "message":[]

}

or error response like:

{

  "success": false,

  "data": [],

  "message": "Invalid track reference."

}

Related pages

Filter by label

There are no items with the selected labels at this time.

Useful hint

Confluence Administrators can also make templates that are available across your whole Confluence instance.

  • No labels