GET /urns

GET /urns/{email}

This endpoint is used to get all urns linked to your afklcargo.com account

Customer List : By using your Cargo Account e-mail address, the API will retrieve the list of customers linked to your Cargo account. Same as the login on afklcargo.com, it will be possible to switch between Customer/URN to display information regarding this Customer/URN only.

List of data whoich can be displayed : 

  • List of the customers linked to the Cargo e-mail address used on aflkcargo.com

HEADER

Name
Value
Required
Authorization Bearer {{token}} true

RESOURCE

  GET https://api.klm.com/cargo/tracking/urns/{email}

QUERY PARAMETERS

Name
Value
Required
Email email of the afklcargo.com account true

RESPONSE PARAMETERS

Name
Type
Multiplicity
Description

- Agents

Arrays of Objects 0..n List of agents linked to the provided email
| - customerId String 0..1 agent Id, ie URN
| - links Array of HATEOAS links 1 Represent a HATEOAS link to get the list of awb linked to this URN
| - name String 0..1 agent name
| | - href String 1  
| | - rel String 1  

SAMPLE REQUEST

GET https://api.ute1.klm.com/cargo/tracking/urns/email@airfrance.fr

SAMPLE RESPONSE

{
  "agents": [
    {
      "name": "TEST AGENT",
      "customerId": "12345",
      "links": [
        {
          "rel": "self",
          "href": "http://api.ute1.klm.com/cargo/tracking/awbs/12345"
        }
      ]
    },
    {
      "name": "TEST IT CUSTOMER",
      "customerId": "54321",
      "links": [
        {
          "rel": "self",
          "href": "http://api.ute1.klm.com/cargo/tracking/awbs/54321"
        }
      ]
    }
  ]
}

ERROR RESPONSES

400 : Bad Request : invalid email format

"Email must be ^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*(\\.[A-Za-z]{2,})$",

 

412 : Precondition failed : No accound found in the database

Docs Navigation