Skip to main content

Authentication

You will need to authenticate every request you make to our API.

Authentication Works by sending us your username and password, and we will reply with an Access Token.

Access Token

You would attach the Access Token to the Authorization header of all requests sent to our API.

An Access Token is valid for 120 seconds (this value might increase in the future).

Request

Request URL :

https://srv.eliexpress.com.tr/api/v2/client-integration/authenticate

Request Method :

POST

Content-Type :

application/json

Request Body :

{
"username": "test-username",
"password": "some-strong-secret-password"
}

Response

Response Body :

I you successfully authenticated, the server will respond with a success true, and the access token that you will need to use.

{
"success": true,
"message": "Authorization Successful",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbiI6Il
ZUSkdjMlJIVasdm10WU1TdFNNM3BrZUdGblRscDVjRWNasd2ZW5sVFFUbFFPVzlXYTJwdlVsaFhi
bkJuZGxWQ1asdoxUkJlamxTZEhGMFNTdFZVbTFMVG5KeVVasdBPT0iLCJpYXQiOjE2asdNTQ5MDM0Nz
R9.9DhRgeZ37S3qKouNNasdZUnEa0kkfQ1Fzbp85Bqxg1r-F8"
}

If you failed to authenticate the server will respond with a request unauthorized message.

{
"success": false,
"message": "Request Unauthorized"
}