BigCommerce
Create products, list products, and manage orders in BigCommerce.
On this page
Connect
Auth type: API key (secret_text). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("bigcommerce", "findOrCreateProduct", {
"name": "<product name>",
"type": "physical",
"weight": 1,
"price": 1
});
if (!res.success) throw new Error(res.error);
ctx.log.info("BigCommerce answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "bigcommerce-findorcreateproduct",
name: "BigCommerce: Find or Create Product",
description: "Calls BigCommerce when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("bigcommerce", {
"action": "findOrCreateProduct",
"name": "<product name>",
"type": "physical",
"weight": 1,
"price": 1
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/bigcommerce/findOrCreateProduct" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"name":"<product name>","type":"physical","weight":1,"price":1}}'Actions
findOrCreateProductin catalog
Find or Create Product. Finds or creates a product
| Input | Type | Description |
|---|---|---|
namerequired | text | Product Name |
skuoptional | text | SKU |
typerequired | one of "physical" | "digital" | Product Type |
weightrequired | number | Weight |
pricerequired | number | Price |
descriptionoptional | long text | Description |
brand_idoptional | number | Brand ID |
createAProduct
Create a Product. Creates a Product
| Input | Type | Description |
|---|---|---|
namerequired | text | Name of the product |
typerequired | one of "physical" | "digital" | Type of product |
skuoptional | text | Product SKU |
descriptionoptional | long text | Product description |
weightrequired | number | Product weight |
pricerequired | number | Product price |
brand_idoptional | number | Brand ID |
createBlogPost
Create Blog Post. Creates a blog post
| Input | Type | Description |
|---|---|---|
titlerequired | text | Blog post title |
bodyrequired | long text | Blog post content (HTML supported) |
authoroptional | text | Author name |
urloptional | text | URL for the public blog post. Example - /blog/welcome-bigcommerce/ |
published_dateoptional | date-time (ISO) | Published Date for the blog post. Example - Wed, 10 Aug 2022 15:39:15 -0500 |
meta_descriptionoptional | long text | Description text for this blog post’s <meta/> element. |
meta_keywordsoptional | long text | Comma seperated (,) Keywords for this blog post’s <meta/> element. Eg welcome, bigcommerce |
tagsoptional | array | Array of tags |
is_publishedoptional | boolean | Whether the post is published |
createCustomer
Create Customer. Creates a customer
| Input | Type | Description |
|---|---|---|
emailrequired | text | Customer email address |
first_namerequired | text | Customer first name |
last_namerequired | text | Customer last name |
companyoptional | text | Customer company name |
phoneoptional | text | Customer phone number |
notesoptional | long text | Customer notes |
createCustomerAddress
Create Customer Address. Creates a customer's address
| Input | Type | Description |
|---|---|---|
customer_idrequired | id (picked from your account) | Select the customer |
first_namerequired | text | First Name |
last_namerequired | text | Last Name |
address1required | text | Address Line 1 |
address2optional | text | Address Line 2 |
cityrequired | text | City |
state_or_provincerequired | text | State/Province |
postal_coderequired | text | Postal Code |
country_coderequired | text | ISO 3166-1 alpha-2 country code |
phoneoptional | text | Phone |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
findOrCreateCustomer
Find or Create Customer. Finds or creates a customer
| Input | Type | Description |
|---|---|---|
emailrequired | text | Customer email address |
first_namerequired | text | Customer first name |
last_namerequired | text | Customer last name |
companyoptional | text | Customer company name |
phoneoptional | text | Customer phone number |
notesoptional | long text | Customer notes |
findOrCreateCustomersAddress
Find or Create Customer’s Address. Finds or creates a customer’s address
| Input | Type | Description |
|---|---|---|
customer_idrequired | id (picked from your account) | Select the customer |
first_namerequired | text | First Name |
last_namerequired | text | Last Name |
address1required | text | Address Line 1 |
address2optional | text | Address Line 2 |
cityrequired | text | City |
state_or_provincerequired | text | State/Province |
postal_coderequired | text | Postal Code |
country_coderequired | text | ISO 3166-1 alpha-2 country code |
phoneoptional | text | Phone |
searchCustomer
Search Customer. Searches for a registered customer
| Input | Type | Description |
|---|---|---|
emailoptional | text | Customer email to search for |
phoneoptional | text | Phone Number to search for |
nameoptional | text | Customer name to search for |
searchCustomerAddress
Search Customer Address. Searches for a customer’s address
| Input | Type | Description |
|---|---|---|
customer_idsoptional | ids (picked from your account) | Select the customers |
nameoptional | text | Customer name to search for |
searchProduct
Search Product. Searches for a product in the catalog
| Input | Type | Description |
|---|---|---|
nameoptional | text | Product name to search for |
skuoptional | text | Product SKU to search for |
typeoptional | one of "physical" | "digital" | Product Type |
brand_idoptional | text | Brand ID to search for |
weightoptional | number | Weight |
priceoptional | number | Price |
Details
- Id
bigcommerce- Category
- E-commerce
- Tags
- store, products, orders, enterprise
- Package
@activepieces/piece-bigcommerce@0.1.4- Tier
- Community