Authentication
Authentication for the eTMS Partner API requires a legacy PARTNER domain account to be used for username/password retrieval of the token.
Login
Allows the supplier or consumer to obtain a security token.
Resource URL
POST /auth/login
Resource Information
Requires authentication? | No |
---|---|
Content-Type Required | application/x-www-form-urlencoded |
JSON Parameters
None
JSON BODY
Username=:username&Password=:password&grant_type=password
Example Request
POST /api/auth/login
Content-Type: application/x-www-form-urlencoded
Username=PARTNER\SENE.serviceaccount&Password=Test123!&grant_type=password
Example Responses
Success
Http response code: 200 OK
{
"access_token": "XqJ6c75GCc7LLg8lwloqq-WchmPWmQ9idkeiorFBF2Sgk5LsU0ghieTMIMDAh24WXvh7GkyeUqj1I-5E4EoYaiolA_8D- lN1ydgPyaGLWLIbEcpr4XI8JScftJfZ1Isf381AHuPGKFKvvGjeBf7uhMSRwuevHzW2LgcjIEW1XQUYXv7kyj3pWfdZ-XJEfGEujo0852aRBdWC8xoZmgZfpseDa9NT5zrEsnqbIKSD4fXcJlCtdpnFdUWuCTnzsf7uyTSEIPEAQ",
"token_type": "bearer",
"expires_in": 3599,
"refresh_token": "7PrqT-VZJjMW7wrRikNT0oZryyKSU3zNb_tSy-vgS3v2G6ihIhqBBLg8kk2d4c-AcmvX6fPUDoJMp0U_KiEGhfbH56T9Z5AIMosnH-c5L8b7QAe9GydaC5jta03x7HDUyddoEvCe3qGx99qjPS6F2RYGdswAbc9WNFAxqwuB684ElC0ZwCZyhPhGNDZOJecbKIPjTbHGMscodiaBUVQVOKpdOXr80B-rdPKbdKOwyxKPsQNZTTM4n-4av-UxPNa5pJmtZmCihfWu8jsM7CO6-pVfoy5pDu9iTVLQKrf-4sr0u1LucuPhS26V_db9gNPk"
}
Failure
Http response code: 400 Bad Request
{
"error": "invalid_grant",
"error_description": "The user name or password is incorrect."
}