Get retailer authentication token

POST /api/oauth/v1/retailer/token

This endpoint allows you to get a retailer authentication token. No need to be authenticated to use this endpoint.

Headers

  • Authorization string Required

    Equal to 'Basic xx', where 'xx' is the base 64 encoding of the client id and secret. Find out how to generate them in the Create an OAuth client section.

  • Content-type string Required

    Equal to 'application/json', no other value allowed

Responses

  • Return an authentication token

    Hide response attributes Show response attributes object
  • Bad request

    Hide response attributes Show response attributes object
    • code integer

      HTTP status code

    • message string

      Message explaining the error

  • Unsupported Media type

    Hide response attributes Show response attributes object
    • code integer

      HTTP status code

    • message string

      Message explaining the error

  • Unprocessable entity

    Hide response attributes Show response attributes object
    • code integer

      HTTP status code

    • message string

      Message explaining the error

POST /api/oauth/v1/retailer/token
curl \
 -X POST https://content.winkelstraat.nl/api/oauth/v1/retailer/token \
 -H "Authorization: string" \
 -H "Content-type: string"
"ZTZmYjU4ZmQxZWNmMzk1M2NlYzA5NmFhNmIzVjExMzE4NmJmODBkZGIyYTliYmQyNjk2ZDQwZThmNjdiZDQzOQ"
3600
"bearer"
null
"M2FlODI0OTE3ODMyNjViMzRiOWE5ODMyNWViMThkNDU5YzJjNjFiZjNkZWFjMzIyYjc4YTgzZWY1MjE5ZTY5Mw"
Response examples (200)
{
  "access_token": "string",
  "expires_in": 42,
  "token_type": "string",
  "scope": "string",
  "refresh_token": "string"
}
Response examples (400)
400
"Invalid JSON message received"
Response examples (400)
{
  "code": 42,
  "message": "string"
}
Response examples (415)
415
"‘xxx’ in ‘Content-type’ header is not valid.  Only ‘application/json’ is allowed."
Response examples (415)
{
  "code": 42,
  "message": "string"
}
Response examples (422)
422
"Property \"labels\" expects an array as data, \"NULL\" given. Check the API reference documentation."
{
  "documentation": {
    "href": "http://api.akeneo.com/api-reference.html"
  }
}
Response examples (422)
{
  "code": 42,
  "message": "string"
}