POST
/authtokenAuthorization
This endpoint authenticates the validity of a username and password combination.
A valid token will be generated if the authentication is successful.
Use the username and password provided to you in your Car Rental Rates API packet.
POST
/authtokenBearer Token Authentication
The access token must be appended to the 'Authorization Header' as depicted in the example below:
Authorization: Bearer A90324XXZUZUgpO0dd6npHcM83CJ...Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | object | Required | none |
» userName | body | string | Optional | none |
» password | body | string | Optional | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 400 | Bad Request | Invalid grant type | None |
| 401 | Unauthorized | Authentication Failed or Account validity Expired | None |
| 403 | Forbidden | Forbidden - Access denied | None |
| 404 | Not Found | No user found with username: {userName} | None |
| 500 | Internal Server Error | Internal Server Error | None |
Code Samples
# You can also use wget
curl -X POST /authtoken \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}' \
-d '{"userName":"string","password":"string"}'
Example Response
200 Response
{
"type": "string",
"token": "string",
"expiresIn": "string",
"issued": "string",
"expires": "string"
}
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.