Online Store (BigCommerce)

If you sell online with BigCommerce, Astra can mirror the store: the catalog and stock come down from BigCommerce into Astra, every web order becomes an invoice with its customer and its shipping line, and every inventory movement that happens in Astra — a counter sale, a purchase receipt, a manual adjustment — is pushed back to the store. It is an add-on: you connect it once from Settings → Integrations tab, and from then on it runs on its own, in the background.

Do you have your own website?

This page is about BigCommerce. If you want to publish products on your company website, see Your Own Website.

Availability

Online store sync comes with ERP Plus. If your organization does not have it, the section does not appear in the Integrations tab. Today the only provider built is BigCommerce, and you connect one store per organization.

What you need before connecting

The integration builds on things that must already work in Astra. Go through this list before asking for activation:

  • Electronic invoicing configured and submitting. Web orders end up as invoices that are sent to Hacienda through the normal electronic invoicing flow. If e-invoicing is not ready, the integration has nowhere to land.
  • BigCommerce API credentials. You create them in the BigCommerce control panel, in the store's API accounts section. You need the store identifier (it appears in the BigCommerce panel address), the access token, the client ID and the client secret.
  • A warehouse in Astra that will represent the online store's stock, and — if you use branches — the branch it belongs to.
  • CABYS codes. BigCommerce has no concept of CABYS, so Astra supplies it from its own side. See the warning below.
Warning — CABYS is the most common blocker

A web order whose line points at a product with no CABYS code does not become an invoice: the process stops and retries until the product has its code. Before opening the store, set your Códigos CABYS Predeterminados (Settings → Electronic Invoice tab): the default product code is stamped automatically on every new product that comes down from BigCommerce, and the Códigos CABYS Favoritos feed the shipping line. Products that already existed in Astra without a CABYS code have to be fixed by hand from the product page.

Connecting the store

Choose Settings at the bottom of the main sidebar. In the Connections group, open Integrations and scroll down to Online sales channels. While the store is not connected, BigCommerce is one line with a Connect button: click it to open the fields. Once connected, it moves to the top of the section with the Connected badge, and the Credentials button shows the fields again. Your own website can be connected at the same time.

BigCommerce in the Online sales channels section of the Integrations tab
BigCommerce in Settings → Integrations → Online sales channels, with its fields open. Next to the name it reads Connected; Waiting to be switched on when every detail is in and the Astra team still has to switch sync on; or Not finished when details are missing.
  1. Store hash — The store identifier. It comes from your BigCommerce panel address, the part between "store-" and ".mybigcommerce.com". It is the only value in this section that is shown back to you after saving.
  2. Client ID — The identifier of the API account you created in BigCommerce.
  3. Access token — The access token of that same API account. It is stored encrypted and never displayed again.
  4. Client secret — The API account's secret. Also encrypted.
  5. Webhook secret — You do not paste anything from BigCommerce here: you invent a long random string. Astra uses it to sign and verify every notification the store sends, so nobody else can inject fake orders.
  6. Held payment methods — Optional. Comma-separated keywords. See Orders waiting for payment confirmation.
  7. Click Save settings. The confirmation appears at the top right.
  8. Click Test connection. If everything is right, your store's name appears next to the button with a green check. If not, the reason is shown right there: credentials not saved yet, BigCommerce throttling calls for a while, or the status code and message BigCommerce returned.
Tip — secrets are typed once

The three secret fields (Access token, Client secret and Webhook secret) show a saved badge once a value is stored, and the field reads "leave blank to keep current". Leaving them empty does not erase them: they are only overwritten if you type something new. That way you can change the Store hash or the payment keywords without retyping the secrets.

Warning — this section saves itself

The Save settings button inside the BigCommerce section saves only that section; the settings screen's main save button handles everything else. If you fill in the credentials and leave the tab using the main button, the credentials were not saved. Use Save settings.

Going live

Saving the credentials and seeing your store name under Test connection is your part. The rest of the start-up is done by the Astra team together with you, because it involves decisions that cannot be guessed and is best done with the store paused:

  • Choosing the Astra warehouse and branch that represent the store's stock, and the matching location on the BigCommerce side.
  • Pulling the full catalog for the first time (initial load), product by product with their variants.
  • Pulling the stock levels of every known variant into that warehouse.
  • Registering the automatic notifications (webhooks) in BigCommerce, signed with the secret you saved.
  • Turning the sync on. Until it is on, Astra rejects any notification arriving from the store.

The section's status badge reflects exactly that: it only reads Conectado once the sync is on and the store identifier, the access token and the webhook secret are all stored. Until then it reads Pendiente de configurar, even if the connection test already returned your store name.

Tip — when to assign CABYS codes

The initial catalog load is a good moment to review your products. New ones take the organization's default CABYS code; ones that already existed in Astra keep whatever they had. You can reopen the store before finishing the review: orders for products without a CABYS code simply wait, and invoice themselves as soon as you assign the code.

What syncs, and how often

The sync runs in both directions, but not symmetrically: the store's catalog and stock are authoritative toward Astra, and inventory movements made in Astra are pushed back to the store.

WhatDirectionWhen
Products, variants and pricesStore → AstraImmediately on every change in the store; full nightly review
Stock levelsStore → AstraImmediately on every change; review every 15 minutes
Web ordersStore → AstraImmediately on creation or status change; review every 30 minutes
Store customersStore → AstraImmediately, and again when each order is invoiced
Inventory movementsAstra → StoreImmediately, with every recorded movement

"Immediately" means BigCommerce notifies Astra at the moment it happens and Astra processes the notification in the background — normally within seconds. The periodic reviews exist because those notifications can be lost: every so often Astra asks the store again what changed and fixes the differences. The reviews never duplicate work: if a change was already applied, it is detected and skipped.

Catalog: products, prices and variants

Each store product becomes an Astra product and stays linked to it. On the Astra side you get the name, description, SKU, price, currency and whether it is active. All of that is rewritten every time the product changes in the store.

What the store never overwrites. Some fields are your decision on the Astra side and the sync never touches them, no matter how often the product changes in BigCommerce:

  • The CABYS code (the default is stamped when the product is created; from then on your value wins).
  • The category, the VAT rate and the unit of measure.
  • The variant cost, which in Astra is your acquisition cost and does not exist with that meaning in the store.

Prices and sales. Astra takes the product's effective price in the store, not its list price: if the product has an active sale price in BigCommerce, the sale price is what comes down. When the sale ends, the next change restores the normal price. If your store manages prices with tax included, Astra can be configured to strip the tax before storing it, because in Astra a product price is always stored without tax and VAT is computed at invoicing time; the Astra team turns that on when connecting the store. The store's currency is stamped on the product, so a catalog priced in dollars is displayed and invoiced in dollars.

Variants and SKUs. BigCommerce keeps the SKU on the variant, not on the product. Astra follows the same logic:

  • If the product has options (size, color…), variants are created in Astra, each with its SKU, barcode and price, and the option lists are built so the variant picker works. See Products.
  • If the product is simple, no variant row is created: the SKU stays on the product. And if the store kept the SKU on the single variant, Astra lifts it onto the product so it can be searched and scanned.
  • If a variant disappears from the store, Astra does not delete it: it deactivates it. Old invoices that reference it stay intact.
  • If you move a SKU from one variant to another in the store (or swap two), Astra releases the SKU from the previous variant and hands it to the right one, so two variants never fight over the same code.
Product page showing its variants and SKUs
A product with options comes down with one variant per combination, each with its own SKU — the key used later to push the stock change back.

Inventory in both directions

From the store into Astra. When stock changes in BigCommerce, Astra writes the new quantity into the warehouse configured for the store and records the movement as an adjustment that says where it came from. It is not a sale, so nothing is deducted twice. There are three cases where Astra deliberately does not write:

  • When the store reports an absurd quantity (SKUs with inventory tracking disabled in BigCommerce return huge numbers).
  • When the local figure is newer than the snapshot the store sent — for example, you sold at the counter ten seconds ago. The next review re-reads and the two sides converge.
  • When the store's quantity would fall below what you already have reserved in Astra.

From Astra into the store. Here the trigger is not the invoice: it is any inventory movement. Everything that moves stock in Astra pushes the change to BigCommerce by SKU:

  • Sales invoice lines.
  • Receiving a purchase invoice and the purchase import.
  • Manual plus/minus adjustments.
  • Transfers and movements between warehouses.
  • The automatic restore when Hacienda rejects an invoice.

What is not pushed: movements the store itself originated (that would be an endless loop), invoices born from a web order, and lines without a SKU — services, free-form items — which do not exist in the store. See Inventory.

Tip — why immediacy matters

The Astra → store direction is what stops you from selling the last unit twice. If you sell at the counter and the deduction took hours to reach BigCommerce, somebody could buy online an item that no longer exists. That is why the change is sent with every movement, not in a nightly batch.

From web order to invoice

When an order comes in, Astra reads it in full — the order, its lines, the customer and the shipping method — and builds an invoice. Step by step:

  1. Non-sales are discarded. Incomplete, cancelled and declined orders do not produce an invoice.
  2. The customer is resolved. Astra looks for a contact with the same email. If it finds one, it reuses it and only fills in the blanks: it never overwrites a name, an ID number or an ID type you already had. If it finds none, it creates the contact from what the order carries (and for guest checkouts, from the order's own billing details). See Contacts.
  3. The lines are resolved. Each line is matched to its product — or its variant. If one has not come down from the store yet, the invoice is not built halfway: it waits and retries.
  4. The invoice is created with the organization's normal numbering, dated on the order date, and in the store's currency. If that currency is not colones, the official exchange rate for that day is applied.
  5. Shipping is added as its own line, with the carrier name the customer chose when the store reports it (for example "Envío - Correos de Costa Rica"). Without that line, the invoice detail would not add up to the total.
  6. It is labelled. The invoice note begins with Pedido en línea — Orden # and the store's order number; the customer's checkout comment, if any, is kept below it. If your organization uses invoice classification and has an option called "Website", it is applied.
Invoice created from a web order, showing the online-order note and the shipping line
How to recognize an invoice born in the store: the note with the order number, and the shipping line as the last row.
Two things the invoice does NOT do for you

It is not submitted to Hacienda on its own. The invoice is created in Astra and is issued through the normal electronic invoicing flow, like any other. And it arrives with no payment recorded. The money was collected in the store, but in Astra the invoice is born unpaid: record the payment received so it settles and does not sit in your receivables.

These invoices do not touch inventory. BigCommerce already deducted the stock when the customer checked out; if Astra deducted it again the on-hand figure would go negative. That is why invoices born from a web order are flagged and stay out of the local deduction and out of the push back to the store.

The same order is never invoiced twice. Each order is bound to its invoice, and both repeated BigCommerce notifications and the periodic reviews recognize that binding and do nothing. Even if two notifications arrive in the same second, only one creates the invoice.

Orders waiting for payment confirmation

If your store accepts offline payment methods — bank transfer, SINPE Móvil — the order arrives before any money has changed hands. Invoicing it right then is a problem: if the customer never deposits, you have to void the invoice, and voiding it returns the item to stock, which means somebody else could buy the last unit from under a customer who did pay.

That is what the Held payment methods field is for. Enter comma-separated keywords — for example transferencia, sinpe. Any order whose payment method contains one of those words and that is still awaiting payment is not invoiced. When you confirm the deposit and move the order to a paid status in BigCommerce, Astra invoices it automatically, right then.

  • The match ignores case and accents, so sinpe catches "Transferencia ó SINPE móvil".
  • The invoice is dated on the day of confirmation, not on the order date, so it does not land in a period you already closed.
  • Leave the field empty and every order is invoiced immediately.
  • An order that is never paid simply stays un-invoiced. Cancelling it in the store is harmless too.

When something does not line up

The integration is built to retry rather than fail, and to avoid making decisions with tax consequences on its own. These are the cases you will meet:

SituationWhat Astra doesWhat you do
The order uses a product that has not come down from the store yet Waits and retries; the catalog review pulls it in Nothing, unless it persists
The product has no CABYS code Does not invoice the order and keeps retrying Assign the CABYS code on the product page; the invoice is created by itself afterwards
The order is cancelled or declined in the store after being invoiced Leaves a note in the invoice's activity and does not void it Decide yourself: voiding an already-issued invoice is done with a credit note
The SKU does not exist on the BigCommerce side Does not push that movement Check that the Astra SKU matches the store's
BigCommerce throttles calls by volume Waits as long as the store asks and retries Nothing
The webhook secret does not match Rejects the notification without processing it Save the Webhook secret again and ask for the notifications to be re-registered
The day's exchange rate cannot be obtained Does not create the invoice at a made-up rate; retries Nothing; if it persists, contact support

How to tell it is working. There is no "sync log" screen in Astra today. What you do have at hand:

  • The status badge and the Test connection button in Settings → Integrations: they prove on the spot that the credentials still work.
  • The invoice list: if orders are coming in, new invoices appear carrying the Pedido en línea note.
  • The stock of the store's warehouse in Inventory, compared against what BigCommerce shows.
  • The invoice activity, where the note is left when an already-invoiced order is cancelled in the store.

If things stop arriving and the credentials are fine, write to support: the server keeps a record of every notification received and every review run, with the exact reason anything was skipped.

Permissions and availability

  • The Integrations tab opens with the organization-settings permission.
  • The BigCommerce section, on top of that, is handled only by the organization owner and its administrators. A user with the settings permission who is not an administrator cannot save credentials or test the connection.
  • All of the above requires the organization to have the Sincronización Ecommerce add-on active. Without it the section is not rendered, and Astra rejects any notification arriving from the store.

Astra re-checks both the add-on and the permission server-side on every action, so hiding the section is never the only control. To see or change your organization's plan and add-ons, see Subscription and billing.

Need more help?

Our team is ready to assist you.

EmailWhatsApp

Use Astra for your business

Astra · Astranexo

See plans and pricing