Authentication
This REST API is used to get access token via POST method from the partner for authentication purpose. The Unicommerce sends valid user credentials, which are validated by Partner to generate an access token. This token is used in all subsequent API requests by the Uniware.
If you prefer not to use OAuth, you can opt for Basic Auth instead.
Tip
- As the token is unique for each seller, this seller-token mapping helps partner to identify responses for each sellers and maps the correct seller data to the api response.
Basic Information
NAME | DETAILS |
---|---|
BaseUrl: | https://{PartnerBaseUrl} |
Endpoint: | /oauth/token |
Auth Type: | Basic Auth |
Request Type: | POST |
Scheme: | HTTPS |
Header (Content-Type): | application/json |
Basic Auth details
Pass the basicAuthUsername, basicAuthPassword with auth type as Basic Auth
PARAMETERS | TYPE | DESCRIPTION | MANDATORY | NOTES |
---|---|---|---|---|
username | string | basicAuth Username | Yes | - |
password | string | basicAuth Password | Yes | - |
Response Payload
The response is a valid token which is unique for each seller using Uniware.
{
"status": "SUCCESS",
"access_token": "string"
}
Response Payload Details
PARAMETER | TYPE | DESCRIPTION | NOTES |
---|---|---|---|
status | string | Status of the API request | Allowable: SUCCESS, INVALID_CREDENTIALS |
access_token | string | Unique token | E.g.: as23djaexnsnJsnJSW34snapl |
Error Codes
Refer Response Codes section to know about specific errors codes.