GitHub

Auth

Authentication is the process of verifying the identity of the user. All users connecting with the eWarehousing APIs must authenticate when making API requests.

Authentication setup

To learn more about the authentication, visit the authentication docs.

POST Authenticate

Parameters

usernamestring

passwordstring

Example

1curl --location --request POST 'https://eu-dev.middleware.ewarehousing-solutions.com/wms/auth/login/' \
2--header 'X-Customer-Code: AMZN' \
3--header 'X-Wms-Code: DEV' \
4--data-raw '{
5 "username": "",
6 "password": ""
7}'

Response

1{
2 "token": "your-new-token",
3 "iat": 1664975406,
4 "exp": 1664979006,
5 "refresh_token": "your-new-refresh-token"
6}

POST Refresh

Refreshes your requested JWT token. A refresh token can only be used once.

Parameters

refresh_tokenstring

Example

1curl --location --request POST 'https://eu.middleware.ewarehousing-solutions.com/wms/auth/refresh/' \
2--header 'X-Customer-Code: AMZN' \
3--header 'X-Wms-Code: DEV' \
4--header 'Content-Type: application/json' \
5--data-raw '{
6 "refresh_token": "your-refresh-token"
7}'

Response

1{
2 "token": "your-new-token",
3 "iat": 1664975406,
4 "exp": 1664979006,
5 "refresh_token": "your-new-refresh-token"
6}