Feeds API v2021-06-30 Reference
Upload data to Amazon to manage a selling business.
Overview
The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner.
Version information
Version : 2021-06-30
Contact information
Contact : Selling Partner API Developer Support
Contact URL : https://sellercentral.amazon.com/gp/mws/contactus.html
License information
License : Apache License 2.0
License URL : http://www.apache.org/licenses/LICENSE-2.0
URI scheme
Host : sellingpartnerapi-na.amazon.com
Schemes : HTTPS
Consumes
application/json
Produces
application/json
Operations
getFeeds
createFeed
getFeed
cancelFeed
createFeedDocument
getFeedDocument
Paths
GET /feeds/2021-06-30/feeds
Operation: getFeeds
Description
Returns feed details for the feeds that match the filters that you specify.
Usage Plan:
Rate (requests per second) | Burst |
---|---|
0.0222 | 10 |
The x-amzn-RateLimit-Limit
response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
Parameters
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Query | feedTypes optional | A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. Min count : 1 Max count : 10 | < string > array | - |
Query | marketplaceIds optional | A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. Min count : 1 Max count : 10 | < string > array | - |
Query | pageSize optional | The maximum number of feeds to return in a single call. Minimum : 1 Maximum : 100 | integer | 10 |
Query | processingStatuses optional | A list of processing statuses used to filter feeds. Min count : 1 | < enum (ProcessingStatuses) > array | - |
Query | createdSince optional | The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. | string (date-time) | - |
Query | createdUntil optional | The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. | string (date-time) | - |
Query | nextToken optional | A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. | string | - |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 | Success. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | GetFeedsResponse |
403 | Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
404 | The specified resource does not exist. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
415 | The request's Content-Type header is invalid. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
For additional error status codes, descriptions and schemas, see Error responses and schemas.
POST /feeds/2021-06-30/feeds
Operation: createFeed
Description
Creates a feed. Upload the contents of the feed document before calling this operation.
Usage Plan:
Rate (requests per second) | Burst |
---|---|
0.0083 | 15 |
The x-amzn-RateLimit-Limit
response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
The rate limit for the JSON_LISTINGS_FEED
feed type differs from the rate limit for the createFeed
operation. For more information, refer to the Building Listings Management Workflows Guide.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body | body required | Information required to create the feed. | CreateFeedSpecification |
Responses
HTTP Code | Description | Schema |
---|---|---|
202 | Success. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | CreateFeedResponse |
403 | Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
404 | The specified resource does not exist. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
415 | The request's Content-Type header is invalid. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
For additional error status codes, descriptions and schemas, see Error responses and schemas.
GET /feeds/2021-06-30/feeds/{feedId}
Operation: getFeed
Description
Returns feed details (including the resultDocumentId
, if available) for the feed that you specify.
Usage Plan:
Rate (requests per second) | Burst |
---|---|
2 | 15 |
The x-amzn-RateLimit-Limit
response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path | feedId required | The identifier for the feed. This identifier is unique only in combination with a seller ID. | string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 | Success. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | Feed |
403 | Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
404 | The specified resource does not exist. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
415 | The request's Content-Type header is invalid. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
For additional error status codes, descriptions and schemas, see Error responses and schemas.
DELETE /feeds/2021-06-30/feeds/{feedId}
Operation: cancelFeed
Description
Cancels the feed that you specify. Only feeds with processingStatus=IN_QUEUE
can be cancelled. Cancelled feeds are returned in subsequent calls to the getFeed
and getFeeds
operations.
Usage Plan:
Rate (requests per second) | Burst |
---|---|
2 | 15 |
The x-amzn-RateLimit-Limit
response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path | feedId required | The identifier for the feed. This identifier is unique only in combination with a seller ID. | string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 | Success. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | No Content |
403 | Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
404 | The specified resource does not exist. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
415 | The request's Content-Type header is invalid. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
For additional error status codes, descriptions and schemas, see Error responses and schemas.
POST /feeds/2021-06-30/documents
Operation: createFeedDocument
Description
Creates a feed document for the feed type that you specify. This operation returns a presigned URL for uploading the feed document contents. It also returns a feedDocumentId
value that you can pass in with a subsequent call to the createFeed
operation.
Usage Plan:
Rate (requests per second) | Burst |
---|---|
0.5 | 15 |
The x-amzn-RateLimit-Limit
response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body | body required | Specifies the content type for the createFeedDocument operation. | CreateFeedDocumentSpecification |
Responses
HTTP Code | Description | Schema |
---|---|---|
201 | Successfully created a feed document that is ready to receive contents. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | CreateFeedDocumentResponse |
403 | Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
404 | The resource specified does not exist. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
415 | The request payload is in an unsupported format. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
For additional error status codes, descriptions and schemas, see Error responses and schemas.
GET /feeds/2021-06-30/documents/{feedDocumentId}
Operation: getFeedDocument
Description
Returns the information required for retrieving a feed document's contents.
Usage Plan:
Rate (requests per second) | Burst |
---|---|
0.0222 | 10 |
The x-amzn-RateLimit-Limit
response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits in the Selling Partner API.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path | feedDocumentId required | The identifier of the feed document. | string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 | Success. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | FeedDocument |
403 | Indicates access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
404 | The specified resource does not exist. Headers : x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation. x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
415 | The request's Content-Type header is invalid. Headers : x-amzn-RequestId (string) : Unique request reference identifier. | ErrorList |
For additional error status codes, descriptions and schemas, see Error responses and schemas.
Error Responses and Schemas
This table contains HTTP status codes and associated information for error responses.
HTTP Code | Description | Schema |
---|---|---|
400 | Request has missing or invalid parameters and cannot be parsed. Headers: x-amzn-RateLimit-Limit (string):Your rate limit (requests per second) for this operation. x-amzn-RequestId (string):Unique request reference identifier. | ErrorList |
401 | The request's Authorization header is not formatted correctly or does not contain a valid token. Headers: x-amzn-RequestId (string):Unique request reference identifier. | ErrorList |
413 | The request size exceeded the maximum accepted size. Headers: x-amzn-RequestId (string):Unique request reference identifier. | ErrorList |
429 | The frequency of requests was greater than allowed. Headers: x-amzn-RequestId (string):Unique request reference identifier. | ErrorList |
500 | An unexpected condition occurred that prevented the server from fulfilling the request. Headers: x-amzn-RequestId (string):Unique request reference identifier. | ErrorList |
503 | Temporary overloading or maintenance of the server. Headers: x-amzn-RequestId (string):Unique request reference identifier. | ErrorList |
Definitions
Error
An error response returned when the request is unsuccessful.
Name | Description | Schema |
---|---|---|
code required | An error code that identifies the type of error that occurred. | string |
message required | A message that describes the error condition. | string |
details optional | Additional details that can help the caller understand or fix the issue. | string |
ErrorList
A list of error responses returned when a request is unsuccessful.
Name | Description | Schema |
---|---|---|
errors required | An error response returned when the request is unsuccessful. | < Error > array |
CreateFeedResponse
Response schema.
Name | Description | Schema |
---|---|---|
feedId required | The identifier for the feed. This identifier is unique only in combination with a seller ID. | string |
Feed
Detailed information about the feed.
Name | Description | Schema |
---|---|---|
feedId required | The identifier for the feed. This identifier is unique only in combination with a seller ID. | string |
feedType required | The feed type. | string |
marketplaceIds optional | A list of identifiers for the marketplaces that the feed is applied to. | < string > array |
createdTime required | The date and time when the feed was created, in ISO 8601 date time format. | string (date-time) |
processingStatus required | The processing status of the feed. | enum (ProcessingStatus) |
processingStartTime optional | The date and time when feed processing started, in ISO 8601 date time format. | string (date-time) |
processingEndTime optional | The date and time when feed processing completed, in ISO 8601 date time format. | string (date-time) |
resultFeedDocumentId optional | The identifier for the feed document. This identifier is unique only in combination with a seller ID. | string |
FeedList
A list of feeds.
Type : < Feed > array
GetFeedsResponse
Response schema.
Name | Description | Schema |
---|---|---|
feeds required | The feeds. | FeedList |
nextToken optional | Returned when the number of results exceeds pageSize. To get the next page of results, call the getFeeds operation with this token as the only parameter. | string |
FeedDocument
Information required for the feed document.
Name | Description | Schema |
---|---|---|
feedDocumentId required | The identifier for the feed document. This identifier is unique only in combination with a seller ID. | string |
url required | A presigned URL for the feed document. If compressionAlgorithm is not returned, you can download the feed directly from this URL. This URL expires after 5 minutes. | string |
compressionAlgorithm optional | If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to Step 7. Download the feed processing report in the use case guide, where sample code is provided. | enum (CompressionAlgorithm) |
FeedOptions
Additional options to control the feed. These vary by feed type.
Type : < string, string > map
CreateFeedSpecification
Information required to create the feed.
Name | Description | Schema |
---|---|---|
feedType required | The feed type. | string |
marketplaceIds required | A list of identifiers for marketplaces that you want the feed to be applied to. | < string > array |
inputFeedDocumentId required | The document identifier returned by the createFeedDocument operation. Upload the feed document contents before calling the createFeed operation. | string |
feedOptions optional | Additional options to control the feed. These vary by feed type. | FeedOptions |
CreateFeedDocumentSpecification
Specifies the content type for the createFeedDocument operation.
Name | Description | Schema |
---|---|---|
contentType required | The content type of the feed. | string |
CreateFeedDocumentResponse
Information required to upload a feed document's contents.
Name | Description | Schema |
---|---|---|
feedDocumentId required | The identifier of the feed document. | string |
url required | The presigned URL for uploading the feed contents. This URL expires after 5 minutes. | string |
ProcessingStatuses
Type : enum
Value | Description |
---|---|
CANCELLED | The feed was cancelled before it started processing. |
DONE | The feed has completed processing. Examine the contents of the result document to determine if there were any errors during processing. |
FATAL | The feed was aborted due to a fatal error. Some, none, or all of the operations within the feed may have completed successfully. |
IN_PROGRESS | The feed is being processed. |
IN_QUEUE | The feed has not yet started processing. It may be waiting for another IN_PROGRESS feed. |
ProcessingStatus
The processing status of the feed.
Type : enum
Value | Description |
---|---|
CANCELLED | The feed was cancelled before it started processing. |
DONE | The feed has completed processing. Examine the contents of the result document to determine if there were any errors during processing. |
FATAL | The feed was aborted due to a fatal error. Some, none, or all of the operations within the feed may have completed successfully. |
IN_PROGRESS | The feed is being processed. |
IN_QUEUE | The feed has not yet started processing. It may be waiting for another IN_PROGRESS feed. |
CompressionAlgorithm
If the feed document contents have been compressed, the compression algorithm used is returned in this property and you must decompress the feed when you download. Otherwise, you can download the feed directly. Refer to Step 7. Download the feed processing report in the use case guide, where sample code is provided.
Type : enum
Value | Description |
---|---|
GZIP | The gzip compression algorithm. |
Updated about 2 months ago