Create or update the Amazon-specific connection data for a channel.
Responses
-
A successful response returning the connection data.
-
The request requires user authentication or the user is not authorized to access this resource.
-
Forbidden - The user does not have permission to access this resource.
-
The specified resource was not found
-
Validation error - channel is not an Amazon channel
POST
/2024-09/channels/amazon/{channel}/connection-data
curl \
--request POST 'https://app.merchanthq.com/api/2024-09/channels/amazon/1e7f0a0f-b5a9-4d1a-a2d5-d0e0c2b1c3d4/connection-data' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"marketplace_id":"ATVPDKIKX0DER","access_token":"Atza|IwExxxxxxx","access_token_expires_at":"2024-10-10T14:59:16Z","refresh_token":"Atzr|IwExxxxxxx"}'
Request examples
{
"marketplace_id": "ATVPDKIKX0DER",
"access_token": "Atza|IwExxxxxxx",
"access_token_expires_at": "2024-10-10T14:59:16Z",
"refresh_token": "Atzr|IwExxxxxxx"
}
Response examples (200)
{
"data": {
"channel_id": "string",
"marketplace_id": "ATVPDKIKX0DER",
"has_access_token": true,
"has_refresh_token": true,
"access_token_expires_at": "2025-05-04T09:42:00Z",
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z"
}
}
Response examples (401)
{
"message": "Unauthorized"
}
Response examples (403)
{
"message": "This action is unauthorized."
}
Response examples (404)
{
"message": "Not found"
}