BigCommerce

Create products, list products, and manage orders in BigCommerce.

E-commerceAPI key11 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (11)
  4. findOrCreateProduct
  5. createAProduct
  6. createBlogPost
  7. createCustomer
  8. createCustomerAddress
  9. custom_api_call
  10. findOrCreateCustomer
  11. findOrCreateCustomersAddress
  12. searchCustomer
  13. searchCustomerAddress
  14. searchProduct
  15. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("bigcommerce", action, input) resolves with the provider's answer and rejects when BigCommerce isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "bigcommerce"} says whether yours can call it.

Workflow
// workflows/notify.ts: call BigCommerce when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellBigcommerce = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when BigCommerce isn't connected.
  const output = await step.run("BigCommerce", () =>
    step.ctx.integrations.invoke("bigcommerce", "findOrCreateProduct", {
      "name": "<product name>",
      "type": "physical",
      "weight": 1,
      "price": 1
    }),
  );
  step.ctx.log("BigCommerce answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "bigcommerce",
    "piece_action": "findOrCreateProduct",
    "input": {
      "name": "<product name>",
      "type": "physical",
      "weight": 1,
      "price": 1
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
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

findOrCreateProduct

Find or Create Product. Finds or creates a product

InputTypeDescription
namerequiredtextProduct Name
skuoptionaltextSKU
typerequiredone of "physical" | "digital"Product Type
weightrequirednumberWeight
pricerequirednumberPrice
descriptionoptionallong textDescription
brand_idoptionalnumberBrand ID

createAProduct

Create a Product. Creates a Product

InputTypeDescription
namerequiredtextName of the product
typerequiredone of "physical" | "digital"Type of product
skuoptionaltextProduct SKU
descriptionoptionallong textProduct description
weightrequirednumberProduct weight
pricerequirednumberProduct price
brand_idoptionalnumberBrand ID

createBlogPost

Create Blog Post. Creates a blog post

InputTypeDescription
titlerequiredtextBlog post title
bodyrequiredlong textBlog post content (HTML supported)
authoroptionaltextAuthor name
urloptionaltextURL for the public blog post. Example - /blog/welcome-bigcommerce/
published_dateoptionaldate-time (ISO)Published Date for the blog post. Example - Wed, 10 Aug 2022 15:39:15 -0500
meta_descriptionoptionallong textDescription text for this blog post’s <meta/> element.
meta_keywordsoptionallong textComma seperated (,) Keywords for this blog post’s <meta/> element. Eg welcome, bigcommerce
tagsoptionalarrayArray of tags
is_publishedoptionalbooleanWhether the post is published

createCustomer

Create Customer. Creates a customer

InputTypeDescription
emailrequiredtextCustomer email address
first_namerequiredtextCustomer first name
last_namerequiredtextCustomer last name
companyoptionaltextCustomer company name
phoneoptionaltextCustomer phone number
notesoptionallong textCustomer notes

createCustomerAddress

Create Customer Address. Creates a customer's address

InputTypeDescription
customer_idrequiredid (picked from your account)Select the customer
first_namerequiredtextFirst Name
last_namerequiredtextLast Name
address1requiredtextAddress Line 1
address2optionaltextAddress Line 2
cityrequiredtextCity
state_or_provincerequiredtextState/Province
postal_coderequiredtextPostal Code
country_coderequiredtextISO 3166-1 alpha-2 country code
phoneoptionaltextPhone

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

findOrCreateCustomer

Find or Create Customer. Finds or creates a customer

InputTypeDescription
emailrequiredtextCustomer email address
first_namerequiredtextCustomer first name
last_namerequiredtextCustomer last name
companyoptionaltextCustomer company name
phoneoptionaltextCustomer phone number
notesoptionallong textCustomer notes

findOrCreateCustomersAddress

Find or Create Customer’s Address. Finds or creates a customer’s address

InputTypeDescription
customer_idrequiredid (picked from your account)Select the customer
first_namerequiredtextFirst Name
last_namerequiredtextLast Name
address1requiredtextAddress Line 1
address2optionaltextAddress Line 2
cityrequiredtextCity
state_or_provincerequiredtextState/Province
postal_coderequiredtextPostal Code
country_coderequiredtextISO 3166-1 alpha-2 country code
phoneoptionaltextPhone

searchCustomer

Search Customer. Searches for a registered customer

InputTypeDescription
emailoptionaltextCustomer email to search for
phoneoptionaltextPhone Number to search for
nameoptionaltextCustomer name to search for

searchCustomerAddress

Search Customer Address. Searches for a customer’s address

InputTypeDescription
customer_idsoptionalids (picked from your account)Select the customers
nameoptionaltextCustomer name to search for

searchProduct

Search Product. Searches for a product in the catalog

InputTypeDescription
nameoptionaltextProduct name to search for
skuoptionaltextProduct SKU to search for
typeoptionalone of "physical" | "digital"Product Type
brand_idoptionaltextBrand ID to search for
weightoptionalnumberWeight
priceoptionalnumberPrice

Details

Id
bigcommerce
Category
E-commerce
Tags
store, products, orders, enterprise
Package
@activepieces/piece-bigcommerce@0.1.4
Runs
Through the integration runner