Connect your AmeriCommerce store to EcomCentral using the REST API v1 with token-based authentication.
https://mystore.americommerce.com)X-AC-Auth-Token HTTP header. No OAuth flow is needed — just generate
a token in the admin panel.
| Key | Required | Description | Example |
|---|---|---|---|
store_url |
Required | Your store's base URL (no trailing slash) | https://mystore.americommerce.com |
access_token |
Required | API access token from Settings → API Access | eyJhbGci… |
storeUrl for the URL; accessToken or token for the API token.
| Operation | Method | Endpoint |
|---|---|---|
| Test connection | GET | /api/v1/stores |
| List orders | GET | /api/v1/orders?rows=N&page=P |
| Order detail | GET | /api/v1/orders/{id}?associations=order_items,addresses |
| Add tracking | POST | /api/v1/order_shipments |
| List products | GET | /api/v1/products?rows=N&page=P |
| Product detail | GET | /api/v1/products/{id}?associations=product_variants |
| Update stock | PATCH | /api/v1/products/{id} |
{ "documents": [...], "total_record_count": N }.
EcomCentral reads the documents array for pagination.
| Feature | Supported | Notes |
|---|---|---|
| View orders (paginated) | ✅ | Order number, date, status, total |
| View order detail | ✅ | Line items, shipping address, customer name |
| Add tracking / shipment | ✅ | POST to /order_shipments with tracking number + carrier |
| View products (paginated) | ✅ | SKU (item_number), name, price, stock |
| View product detail + variants | ✅ | Variant list from product_variants association |
| Update stock quantity | ✅ | PATCH /products/{id} with stock_quantity |
| Test connection | ✅ | Returns store name, ID, currency |
The access_token is invalid or has been revoked. Regenerate the token in
Settings → API Access and update the connection credentials via Rotate Keys.
Verify the store_url — it must be the root URL without a trailing slash,
e.g. https://mystore.americommerce.com not https://mystore.americommerce.com/.
The stock update endpoint targets the numeric product ID, not the item number (SKU). Use the product ID shown in the product detail panel.