TrackingEyes-API
  1. Authentication
TrackingEyes-API
  • Authentication
    • OAuth
      POST
  • Global Ocean Cargo Tracking
    • Ocean Status Code
    • Ocean Support List
    • Ocean Tracking Subscribe
      POST
    • Data Push Webhook
      POST
  • Global Air Cargo Tracking
    • Air Status Code
    • Air Support List
    • Air Tracking Subscribe
      POST
    • Data Push Webhook
      POST
  1. Authentication

OAuth

POST
/api/auth/authorization
1.The validity period of the token is 2 hours. If it expires, a new token needs to be obtained again.
2.After obtaining the token in the return value, when calling other API interfaces of TrackingEyes, you can splice the token value and company code on the url.
3.Application examples:server address:/api/v1/bngs?companyCode=Enterprise ID&token=4a8467e5-294c-11eb-8f8e-00163e0afef2

Request

Body Params application/json
companyCode
string 
required
Enterprise lD (Need to obtain from TrackingEyes)
secret
string 
required
Enterprise Key (Need to obtain from TrackingEyes)
Example
{
    "companyCode": "Enterprise number",
    "secret": "Secret key"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.trackingeyes.com/api/auth/authorization' \
--header 'Content-Type: application/json' \
--data-raw '{
    "companyCode": "Enterprise number",
    "secret": "Secret key"
}'

Responses

🟢200success
application/json
Body
code
integer 
required
200=sucess;other=fail
message
string 
required
Error message
result
string 
required
Encrypted signature token
Example
{
  "code": "200",
  "message": "",
  "result": "4a8467e5-294c-11eb-8f8e-00163e0afef2"
}
Next
Ocean Status Code
Built with