Access Token

Get a new access token for a specific seller using a one-time authorization code or a valid refresh token

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
grant_typeenumRequired

The type of grant used for the request. If authorization_code is used, the authorization code must be sent via the code parameter. If refresh_token is used, the refresh token must be sent via the refresh_token parameter

Allowed values:
client_idstringRequired
The account id given to you by Feedonomics as part of the onboarding process
client_secretstringRequired

A password associated with your client_id, given to you by Feedonomics as part of the onboarding process

codestringOptional

Single-use authorization code, for requesting new tokens using the authorization_code grant type

refresh_tokenstringOptional

A refresh_token obtained by a previous call to the POST /access_token endpoint, for requesting new tokens using the refresh_token grant type

Response

Authorization token
access_tokenstring
Authentication token used for making requests to insert or update orders
token_typeenum
The Oauth token type
Allowed values:
refresh_tokenstring

The token used to obtain new access and refresh tokens using the refresh_token endpoint

expires_ininteger

The lifetime in seconds of the access_token

Errors

401
Unauthorized Error