The BigCommerce API lets you build eCommerce applications and integrations on top of the BigCommerce platform. With the API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bigcommerce: {
type: "app",
app: "bigcommerce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bigcommerce.com/stores/${this.bigcommerce.$auth.store_hash}/v3/catalog/summary`,
headers: {
"X-Auth-Token": `${this.bigcommerce.$auth.access_token}`,
},
})
},
})
BigCommerce uses API keys for authentication. When you connect your BigCommerce account, Pipedream securely stores the keys so you can easily authenticate to BigCommerce APIs in both code and no-code steps.
Navigate to Advanced Settings > API Accounts > Create API Account
Name the account (it will only be visible to store users)
In the OAuth Scopes section, select the minimum scopes the app will require
Press Save.
The base API path will look something like this: https://api.bigcommerce.com/stores/123456/
In example above, the store_hash
is 123456
. Enter this and the access token below.