Vendor Management REST API Reference v1
Use the Vendor Management REST API to get information about a vendor.
API endpoint
The endpoint of the Vendor Management API is https://api.amazonalexa.com
.
Authentication
Each API request must have an authorization header whose value is the access token retrieved from Login with Amazon (LWA). For details, see Get an Access Token for SMAPI.
Operations
The Vendor Management API includes the following operations.
Operation | HTTP method and URI |
---|---|
|
Get vendor list
Get the list of vendor information associated with the access token.
Request
To get the vendor list, you make a GET
request to the vendors
resource.
Request path and header example
GET /v1/vendors
Host: api.amazonalexa.com
Content-Type: application/json
Authorization: Bearer {access token}
Request path and header parameters
Parameter | Located in | Description | Type | Required |
---|---|---|---|---|
|
Header |
String |
Yes |
Request body example
The request has no body.
Request body properties
The request has no body.
Response
A successful response returns HTTP 200 OK
, along with the vendor information.
On error, the response returns the appropriate HTTP status code and includes a response body with an error code and human readable message.
Response body example
The following example shows a response.
{
"vendors": [{
"id": "vendor.id.1",
"name": "vendor.name.1",
"roles": [
"ROLE_ADMINISTRATOR"
]
},
{
"id": "vendor.id.2",
"name": "vendor.name.2",
"roles": [
"ROLE_DEVELOPER"
]
}
]
}
Response body properties
Property | Description | Type |
---|---|---|
|
List of vendors associated with the account. |
Array of objects |
|
Name of the vendor. |
String |
|
Unique identifier of vendor. |
String |
|
Roles assigned to the account owner. |
Array of string |
HTTP status codes
Status | Description |
---|---|
|
Response body contains the vendor information. |
|
Indicates that one or more properties in the request body aren't valid.
|
|
Request didn't include the authorization token, or the included token expired or isn't valid. Or, you don't have access to the resource. |
|
Indicates that the authorization token is valid, but the requested operation isn't allowed. |
|
Requested resource not found. |
|
Permitted rate limit, specified as number of requests per unit of time, exceeded. Retry the request by using exponential back-off. |
|
Error occurred on the server. Retry the request by using exponential back-off. |
|
Server is down for maintenance, overloaded, or otherwise unavailable to handle the incoming request. |
Related topics
Last updated: Aug 01, 2024