What do you want to automate

with Selling Partner API (SP-API) and Python?

Prompt, edit and deploy AI agents that connect to Selling Partner API (SP-API), Python and 3,000+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Run Python Code with Python API on New Inbound Shipment to FBA Created from Selling Partner API (SP-API) API
Selling Partner API (SP-API) + Python
Try it
Run Python Code with Python API on New Order Created from Selling Partner API (SP-API) API
Selling Partner API (SP-API) + Python
Try it
New Inbound Shipment to FBA Created from the Selling Partner API (SP-API) API

Emit new event when a new inbound shipment to FBA is created. See the documentation

Try it
New Order Created from the Selling Partner API (SP-API) API

Emit new event when a new order is created in Amazon Seller Central. See the documentation

Try it
Check FBA Inventory Levels with the Selling Partner API (SP-API) API

Retrieves inventory summaries from Amazon fulfillment centers to monitor stock availability. See the documentation

Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

Try it
Fetch Orders by Date Range with the Selling Partner API (SP-API) API

Retrieves a list of orders based on a specified date range, buyer email, or order ID. See the documentation

Try it
Generate Sales & Inventory Reports with the Selling Partner API (SP-API) API

Requests reports on sales, inventory, and fulfillment performance. See the documentation

Try it
Get Order Details with the Selling Partner API (SP-API) API

Fetches detailed information about a specific order using its order ID. See the documentation

Try it
Integrate the Selling Partner API (SP-API) API with the Python API
Setup the Selling Partner API (SP-API) API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate Selling Partner API (SP-API) and Python remarkably fast. Free for developers.

Connect Selling Partner API (SP-API)#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { axios } from "@pipedream/platform"
export default defineComponent({
 props: {
 amazon_selling_partner: {
 type: "app",
 app: "amazon_selling_partner",
 }
 },
 async run({steps, $}) {
 // Define the mapping between Seller Central URLs (from your App Config) and SP-API Endpoints
 const getEndpoint = (sellerCentralUrl) => {
 const na = "https://sellingpartnerapi-na.amazon.com";
 const eu = "https://sellingpartnerapi-eu.amazon.com";
 const fe = "https://sellingpartnerapi-fe.amazon.com";
 
 const map = {
 // North America
 "https://sellercentral.amazon.com": na,
 "https://sellercentral.amazon.ca": na,
 "https://sellercentral.amazon.com.mx": na,
 "https://sellercentral.amazon.com.br": na,
 
 // Europe (The Big 5 often share one URL, but newer ones have specific URLs)
 "https://sellercentral-europe.amazon.com": eu, 
 "https://sellercentral.amazon.com.be": eu,
 "https://sellercentral.amazon.nl": eu,
 "https://sellercentral.amazon.pl": eu,
 "https://sellercentral.amazon.se": eu,
 "https://sellercentral.amazon.com.tr": eu,
 
 // India (Uses EU endpoint)
 "https://sellercentral.amazon.in": eu,
 
 // Far East
 "https://sellercentral.amazon.sg": fe,
 "https://sellercentral.amazon.com.au": fe,
 "https://sellercentral.amazon.co.jp": fe,
 };
 
 return map[sellerCentralUrl];
 };
 
 // 1. Get the Marketplace URL selected by the user in the App Connection
 const marketplaceUrl = this.amazon_selling_partner.$auth.marketplace;
 
 // 2. Resolve the correct SP-API Endpoint
 const apiEndpoint = getEndpoint(marketplaceUrl);
 
 if (!apiEndpoint) {
 throw new Error(`Could not map Seller Central URL (${marketplaceUrl}) to an SP-API Endpoint.`);
 }
 
 // 3. Make the request
 return await axios($, {
 url: `${apiEndpoint}/inbound/fba/2024-03-20/inboundPlans`,
 headers: {
 "x-amz-access-token": `${this.amazon_selling_partner.$auth.oauth_access_token}`,
 },
 });
 },
})

Overview of Python#

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python#

1
2
3
4
5
def handler(pd: "pipedream"):
 # Reference data from previous steps
 print(pd.steps["trigger"]["context"]["id"])
 # Return data for use in future steps
 return {"foo": {"test":True}}

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Pipedream, Inc. — San Francisco, CA
About Twitter Docs Community Terms Privacy Cookie Settings Try String

AltStyle によって変換されたページ (->オリジナル) /