Amazon Selling Partner v2
Provides integration with the Amazon Selling Partner API (SP-API), for businesses that sell on Amazon as sellers or as vendors.
Use this Node to connect your Amazon business to your other systems from a Workflow. For example, sellers can export new orders, confirm shipments, keep listing prices and stock up to date, check FBA inventory and request reports. Vendors can read and acknowledge purchase orders, submit shipments and invoices, and handle Direct Fulfillment orders, shipping labels and inventory.
Revision History
0.0.0.4 - Initial release.
Connection
The Connection stores the Login with Amazon credentials of your SP-API application and the region your selling account belongs to. Flowgear uses them to sign in to Amazon for every request.
| Property | Type | Description |
|---|---|---|
Region |
Enum | The selling region your refresh token was issued for. NorthAmerica (default) covers Canada, the United States, Mexico and Brazil. Europe covers Europe, the Middle East, India and Africa. FarEast covers Singapore, Australia and Japan. |
Environment |
Enum | Production (default) for your live Amazon data, or Sandbox for Amazon's test responses. |
ClientId |
String | Required. The Login with Amazon client identifier of your SP-API application. |
ClientSecret |
Masked | Required. The Login with Amazon client secret of your SP-API application. |
RefreshToken |
Masked | Required. The refresh token you get when you authorize the application for your selling account. |
AccessToken |
Masked | Managed by the Node. Leave it empty. Flowgear fills it in and renews it from the refresh token. |
AccessTokenExpiresAt |
String | Hidden. Managed by the Node. When the access token expires. |
TimeoutSeconds |
Integer | How long to wait for each request, from 1 to 100 seconds. The default is 60. |
MarketplaceId |
String | The marketplace used to list product types for the Upsert templates, for example ATVPDKIKX0DER for the United States. Needed only for Upsert. |
SellerId |
String | Optional. Your seller ID. When set, Upsert templates include values specific to your account, such as your brand names. |
Setup Notes
- Register an SP-API application in Seller Central or Vendor Central, and give it the roles for the data your Workflows use, for example orders, listings, inventory or Direct Fulfillment.
- Copy the application's Login with Amazon client ID and client secret.
- Authorize the application for your own selling account to get a refresh token.
- Create a Connection for
Amazon Selling Partner. Select theRegionyour selling account belongs to, then enterClientId,ClientSecretandRefreshToken. - Leave
EnvironmentasProduction, or selectSandboxto try requests against Amazon's test responses first. - To use
Upsert, enter yourMarketplaceId, and optionally yourSellerId. - Test and save the Connection. The test signs in to Amazon and reads your marketplace participations. For a vendor-only account, it reads your purchase order statuses instead.
Keep the following in mind:
- A refresh token only works in the region it was issued for. If requests are refused for a marketplace outside the Connection's
Region, checkRegion. - Flowgear renews the access token automatically, so you don't need to update the Connection when it expires.
- Reading Direct Fulfillment orders, shipping labels, customer invoices and packing slips needs the
Direct to Consumer Shipping (Restricted)role on your application. - This Node runs on the Cloud Runtime Cluster.
Methods
Select a template for each Step. The template sets OperationId and shows the Options or Items fields for that operation, using Amazon's field names. Templates are grouped by area, for example Orders, Listings or Vendor Shipments.
| Method | Templates |
|---|---|
Get |
Sellers account; order; catalog item; listings item; report and report document; vendor purchase order and transaction; Direct Fulfillment order, shipping label, customer invoice, packing slip and transaction status. |
List |
Marketplace participations; listings items; FBA inventory summaries; vendor purchase orders, purchase order statuses, shipment details and shipment labels; product types. |
Search |
Orders; catalog items; reports; Direct Fulfillment orders, shipping labels, customer invoices and packing slips. |
Create |
Report; vendor shipment; vendor invoice; Direct Fulfillment shipping labels, container label and invoice. |
Update |
Patch a listings item; Direct Fulfillment inventory update. |
Upsert |
Put a listings item, with one template per product type. |
Delete |
Listings item. |
Action |
Confirm an order shipment; cancel a report; vendor purchase order acknowledgement and shipment confirmation; Direct Fulfillment order acknowledgement, shipping label request, shipment confirmation and shipment status update. |
Get
Gets one record by its ID, such as an order, a listing or a vendor purchase order.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Options |
Object | The ID of the record to get, such as orderId, and any other values the template needs, for example sellerId and marketplaceIds for a listings item. |
| Return | Type | Description |
|---|---|---|
Response |
Array | The Amazon record. |
If you run a template without entering the ID it needs, the Step fails before Amazon is contacted, with a message that names the missing value and shows an example.
The report document template returns the document's details. The Node doesn't download or decompress the report itself.
List
Lists records. Filters are optional, except values a template needs to know what to read, such as sellerId for listings items.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Options |
Object | Optional filters for the selected template, plus any required values. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per Amazon record, across every page. An empty result returns zero rows. |
Search
Searches records. Supply at least one filter.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Options |
Object | The filters for the selected template. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per matching Amazon record, across every page. No matches return zero rows. |
Each Search template comes with sample filter values, so it runs as soon as you select it. Replace the samples with your own values:
- Orders need
createdAfterorlastUpdatedAfter. The template also setscreatedBefore, so the search covers a fixed period. - Catalog items need
marketplaceIdsand eitherkeywordsoridentifiers. The sample marketplace is the United States, so replace it if you sell elsewhere. - Reports need
reportTypes. - Direct Fulfillment searches need
createdAfterandcreatedBefore, no more than 7 days apart.
Create
Creates one record for each item, such as a report request or a vendor invoice.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Items |
Array | One record per item, with the fields shown in the template. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item: Amazon's result plus a Flowgear object with IsSuccess, Message and Request. |
To send report options with Create Report, add the option names that the report type documents as child fields of reportOptions, for example reportOptions.ShowSalesChannel.
Update
Changes part of a listing, such as its price or quantity, or submits a Direct Fulfillment inventory update.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Items |
Array | One change per item. A listing patch item has sellerId, sku, marketplaceIds, productType and patches. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item: Amazon's result plus a Flowgear object with IsSuccess, Message and Request. |
Each entry in patches has an op, such as replace or delete, a path in the form /attributes/<name>, and a plain-text value:
- For
/attributes/purchasable_offer,valueis the price, for example19.99, andCurrencyis required. - For
/attributes/fulfillment_availability,valueis a whole-number quantity. SetFulfillmentChannelCodeto choose the channel; it defaults toDEFAULT. - For any other attribute,
valueis sent as entered. SetLanguageTagwhen the attribute needs one.
Each patch sets one value per attribute. Images, lists of values, variations, business prices and sale prices are not supported. Set mode to VALIDATION_PREVIEW on an item to check a change without applying it.
Upsert
Creates a listing, or fully replaces the listing of an existing SKU. The templates are built from Amazon's product type definitions for the Connection's MarketplaceId, with one template per product type.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Items |
Array | One listing per item, with sellerId, sku, marketplaceIds and the product type's attributes. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item: Amazon's result plus a Flowgear object with IsSuccess, Message and Request. |
For sellers, product details you leave out are removed from the listing, while offer details are merged. Use Update to change only some fields. Set mode to VALIDATION_PREVIEW on an item first to see what Amazon would accept. Some complex attributes are not shown in the template, but Amazon still accepts them when you add them to an item.
Delete
Deletes the listing that each item names.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Items |
Array | One listing per item, with its sellerId, sku and marketplaceIds. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item: Amazon's result plus a Flowgear object with IsSuccess, Message and Request. |
Upsert and Delete work with one marketplace per item.
Action
Runs an action, such as confirming a shipment or acknowledging a purchase order, for each item.
| Parameter | Type | Description |
|---|---|---|
Connection |
Connection | Amazon Selling Partner Connection to use. |
OperationId |
String | Operation selected by the template. |
Items |
Array | One action per item, with the IDs it applies to, such as orderId or reportId, and the fields shown in the template. |
| Return | Type | Description |
|---|---|---|
Response |
Array | One row per item: Amazon's result plus a Flowgear object with IsSuccess, Message and Request. |
Usage Notes
- Each item carries its own IDs, such as
sellerId,sku,orderId,purchaseOrderNumberorwarehouseId, so one Step can change several records. Listing items can also carry their ownmode,includedDataandissueLocale, so you can preview one listing and apply another in the same Step. - Vendor and Direct Fulfillment submissions return a
transactionId. A successful row means Amazon accepted the submission, not that it has finished processing it. Use the vendorGet Transactionor Direct FulfillmentGet Transaction Statustemplate to check the result. - The Node handles paging, so paging values such as
nextToken,pageSizeandmaxResultsPerPageare not accepted inOptions. - Lists of text or numbers, such as
marketplaceIdsorincludedData, use comma-separated values, for exampleATVPDKIKX0DER,A2EUQ1WTGCTBG2. Quote a value that contains a comma or a quote. An empty string is an empty list. - Listing and catalog
attributesare not shown in the read templates, because they vary by product type. To map the attributes you need, add them as child fields using the names in Amazon's product type definitions. - When Amazon limits how many requests you make, the Node waits and tries again, up to 3 times per request. Each wait is between 1 second and 3 minutes, depending on the operation's rate limit. If Amazon's service is briefly unavailable during a read, the Node also tries again.
- Check
Flowgear.IsSuccessfor every write result. If the first item fails, the Node stops. If a later item fails, the Node returns a failed result for that item and continues with the rest. Sign-in failures, access refusals and losing the connection to Amazon always stop the Node. The exception is a later item for a marketplace outside the Connection'sRegion, which fails only that item. - Changes are not sent again after a timeout or a server error, because Amazon may already have applied them. The affected rows say that the outcome is unknown, so check the record in Amazon before you send the change again.
- If requests are refused with an invalid token after you switch between
SandboxandProduction, check thatEnvironmentandRegionmatch the credentials.
Examples
Search orders created in a date range
Select the Search Orders template from the Orders group of the Search method, and set the date range in Options:
{
"createdAfter": "2026-11-01T00:00:00Z",
"createdBefore": "2026-11-08T00:00:00Z"
}
Each row in Response is one order.
Preview a price change
Select the Patch Listings Item template from the Listings group of the Update method, and supply one item per listing:
[
{
"sellerId": "A1EXAMPLESELLER",
"sku": "FG-WIDGET-A",
"marketplaceIds": "ATVPDKIKX0DER",
"productType": "LUGGAGE",
"mode": "VALIDATION_PREVIEW",
"patches": [
{
"op": "replace",
"path": "/attributes/purchasable_offer",
"value": "19.99",
"Currency": "USD"
}
]
}
]
Check each row's Flowgear.IsSuccess and any issues Amazon returns. When the preview looks right, remove mode to apply the change.
Known Issues
- Feeds, downloading report documents, report schedules and website authorization are not available.
- Amazon expires the next page of FBA inventory results after 30 seconds. If later Steps take a long time to process a large inventory list, the Step can fail with an expired continuation error. Run it again, or process the results more quickly.
- The report document template can't read restricted report documents.
- In
Sandbox, Amazon returns fixed test responses that only match specific inputs. Search templates run with their sample filters can fail withCould not match input arguments. Test with the inputs from Amazon's sandbox examples instead.