GET /2024-09/channels/amazon/{channel}/get-auth-url

Get the authorization URL for the specified Amazon channel, which the owner of the channel can use to get a refresh token.

Responses

  • 200 application/json

    A successful response returning the authorization URL.

    Hide response attribute Show response attribute object
    • url string

      The authorization URL

  • 401 application/json

    The request requires user authentication or the user is not authorized to access this resource.

    Hide response attribute Show response attribute object
    • message string
  • 403 application/json

    Forbidden - The user does not have permission to access this resource.

    Hide response attribute Show response attribute object
    • message string Required
  • 404 application/json

    The specified resource was not found

    Hide response attribute Show response attribute object
    • message string
GET /2024-09/channels/amazon/{channel}/get-auth-url
curl \
 --request GET 'https://app.merchanthq.com/api/2024-09/channels/amazon/{channel}/get-auth-url' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "url": "https://sellingpartnerapi-na.amazon.com/apps/authorize/consent?application_id=amzn1.sp.solution.aaaaaaa-bbbb-cccc-bc20-eeeeeeeeeeee?state=eyAAAAAAAA"
}
Response examples (401)
{
  "message": "Unauthorized"
}
Response examples (403)
{
  "message": "This action is unauthorized."
}
Response examples (404)
{
  "message": "Not found"
}