Errors

API parameter validation

HTTP/1.1 400 BAD REQUEST

Ex.:

radius=abc

{
   "header":{
      "requestId":"f2f84566-4104-40a5-8040-bd6c41a25acd",
      "inputParameters":{
         "c_pc":[
            "vd65 7we"
         ],
         "r_t":[
            "lsc"
         ],
         "wh_l2":[
            "London"
         ],
         "e_maxdim":[
            "0"
         ],
         "c_l2":[
            "London"
         ],
         "wh_l1":[
            "12/16 Laystall Street"
         ],
         "c_l1":[
            "12/16 Laystall Street"
         ],
         "e_maxweight":[
            "0"
         ],
         "c_phone":[
            "0123 3476"
         ],
         "c_cc":[
            "GBR"
         ],
         "wh_cc":[
            "GBR"
         ],
         "e_n":[
            "1"
         ],
         "r_f":[
            "json"
         ],
         "wh_pc":[
            "EC1R 4PF"
         ],
         "e_w":[
            "1.67"
         ],
         "radius":[
            "abc"
         ],
         "wh_code":[
            "DEFAULT"
         ],
         "e_v":[
            "51.45"
         ],
         "key":[
            "UUID"
         ]
      },
      "requestDate":"2016-12-14T11:12:46.500Z",
      "responseDate":"2016-12-14T11:12:46.508Z"
   },
   "errorMessage":"radius must be an integer"
}

r_t=abc

{
   "header":{
      "requestId":"2ca8a1df-38f3-4c79-be23-38fb2358ae9e",
      "inputParameters":{
         "c_pc":[
            "vd65 7we"
         ],
         "r_t":[
            "abc"
         ],
         "wh_l2":[
            "London"
         ],
         "e_maxdim":[
            "0"
         ],
         "c_l2":[
            "London"
         ],
         "wh_l1":[
            "12/16 Laystall Street"
         ],
         "c_l1":[
            "12/16 Laystall Street"
         ],
         "e_maxweight":[
            "0"
         ],
         "c_phone":[
            "0123 3476"
         ],
         "c_cc":[
            "GBR"
         ],
         "wh_cc":[
            "GBR"
         ],
         "e_n":[
            "1"
         ],
         "r_f":[
            "json"
         ],
         "wh_pc":[
            "EC1R 4PF"
         ],
         "e_w":[
            "1.67"
         ],
         "radius":[
            "1000"
         ],
         "wh_code":[
            "DEFAULT"
         ],
         "e_v":[
            "51.45"
         ],
         "key":[
            "7cda774d-8e64-432c-9781-288530b0e09d"
         ]
      },
      "requestDate":"2016-12-14T11:14:19.516Z",
      "responseDate":"2016-12-14T11:14:19.616Z"
   },
   "errorMessage":"return type value must be either of ggg, gss, gsc, lgg, lss, lsc, lsd, lpf or lpa"
}

Authentication

Invalid or missing credentials:

HTTP/1.1 401 UNAUTHORIZED

Authorisation

User doesn't have the required permission:

HTTP/1.1 403 FORBIDDEN

Internal errors (MetaPack)

HTTP 5XX

Ex.:

HTTP/1.1 500 INTERNAL SERVER ERROR

results matching ""

    No results matching ""