Skip to main content

Get Started

The Axim Commerce Open API is a JSON REST API for reading and writing your store's catalog, customers, companies, orders, invoices and B2B data. Use it to connect an ERP, PIM, OMS or any back-office system to your store.

Base URL​

Every endpoint path in these docs is relative to your store's base URL:

https://<your-store-domain>/open-api/api

For example, if your store is https://mystore.com, the endpoint GET /brands is called at:

https://mystore.com/open-api/api/brands

In the examples, <BASE_URL> stands for this full base URL.

note

Paths are case-sensitive. Use them exactly as documented, for example /wareHouse/all and /salesRep, not /warehouse/all or /salesrep.

Authentication​

Every request must send an access token in the accessToken header:

curl --request GET '<BASE_URL>/asset/all' \
--header 'accessToken: <ACCESS_TOKEN>'

The header is a plain token. Do not prefix it with Bearer.

Create an API account​

  1. Sign in to the Admin Portal and open Settings.

    Settings

  2. Under General, select API Accounts.

    API Accounts

  3. Click Add, enter a name and select the scopes your integration needs.

    Scope selection

  4. Click Submit. The portal shows a Client ID, Client Secret and Access Token.

    Generated credentials

danger

The credentials are shown only once. Store them in a secrets manager, never in client-side code or source control.

Scopes​

Each endpoint page lists the scope it requires. In general, GET endpoints need the READ_* scope and endpoints that create, change or delete data need the READ_WRITE_* scope. A token with READ_WRITE_* can also call the matching READ_* endpoints. Some endpoints require no specific scope and accept any valid token.

Grant only the scopes your integration needs.

ResourceRead scopeRead and write scope
Products, product filters, product zonesREAD_PRODUCTREAD_WRITE_PRODUCT
CategoriesREAD_CATEGORYREAD_WRITE_CATEGORY
Companies, addressesREAD_COMPANYREAD_WRITE_COMPANY
CorporatesREAD_WRITE_COMPANYREAD_WRITE_COMPANY
CustomersREAD_CUSTOMERREAD_WRITE_CUSTOMER
Sales repsREAD_CUSTOMERREAD_WRITE_CUSTOMER (READ_WRITE_QUOTE for sales rep quotes)
Customer part numbersREAD_CUSTOMERPARTNUMBERREAD_WRITE_CUSTOMERPARTNUMBER
Orders, checkout, customer loginREAD_ORDERREAD_WRITE_ORDER
Payment terms, payment methodsREAD_ORDERREAD_WRITE_ORDER
InvoicesREAD_INVOICEREAD_WRITE_INVOICE
Price listsREAD_PRICELISTREAD_WRITE_PRICELIST
Product groupsREAD_PRODUCTGROUPREAD_WRITE_PRODUCTGROUP
Company groupsREAD_COMPANYGROUPREAD_WRITE_COMPANYGROUP
WarehousesREAD_WAREHOUSEREAD_WRITE_WAREHOUSE
Shipping zonesREAD_SHIPPINGZONEREAD_WRITE_SHIPPINGZONE
Shopping listsREAD_SHOPPINGLISTREAD_WRITE_SHOPPINGLIST
QuotesREAD_QUOTEREAD_WRITE_QUOTE
AssetsREAD_ASSETREAD_WRITE_ASSET
Payment access and payment rulesREAD_PAYMENTREAD_WRITE_PAYMENT

Some endpoints, such as brands and metafields, accept any valid token. The exact scope for each endpoint is on its page.

Requests​

  • Send request bodies as JSON with Content-Type: application/json.
  • IDs are 24-character hexadecimal strings (MongoDB ObjectIds), for example 663a0f1e4587085935a4fa21.
  • Request bodies are validated strictly. A field that is not documented for an endpoint is rejected, not ignored.
  • Timestamps are ISO 8601 strings in UTC.

Responses​

Successful responses wrap the result in a data field:

{
"success": true,
"data": { "id": "663a0f1e4587085935a4fa21", "name": "Acme Tools" }
}

Pagination​

List endpoints accept page (1-based) and limit query parameters and return a pagination object:

{
"success": true,
"data": [{ "id": "663a0f1e4587085935a4fa21", "name": "Acme Tools" }],
"pagination": { "page": 1, "total": 245, "count": 10 }
}
FieldDescription
pageCurrent page number.
totalTotal number of records that match the filters.
countNumber of records in this page.

Default page sizes differ between endpoints; each list page states its default.

Filtering​

Many list endpoints share these query-parameter filters. Each endpoint page lists the filters it supports.

ParameterExampleMeaning
id:inid:in=6650...a1,6650...b2Return only these IDs (comma-separated).
date_created:min / date_created:maxdate_created:min=2024-01-01Created on or after / on or before a date.
date_modified:min / date_modified:maxdate_modified:max=2024-06-30Updated on or after / on or before a date.
metafields:<code>metafields:erp_id=10045Metafield <code> equals a value.
metafields-in:<code>metafields-in:region=east,westMetafield <code> equals any of the values.

See Metafields for how custom fields work.

Errors​

Failed requests return success: false and a human-readable message:

{
"success": false,
"message": "\"name\" is required"
}

Most endpoints return HTTP 400 for every failure, including validation errors, unknown IDs and authentication problems, so check success and message rather than relying on the status code alone. Endpoint pages note where a different status code is used.

messageCause
Invalid or missing access tokenThe accessToken header is missing or does not match an API account.
Access deniedThe token does not have a scope the endpoint requires.
request body is emptyA create or update endpoint was called without a body.
"<field>" is required, "<field>" is not allowedThe body failed validation.

Your first request​

List the first page of brands:

curl --request GET '<BASE_URL>/brands?page=1&limit=10' \
--header 'accessToken: <ACCESS_TOKEN>'

Next, browse the endpoint reference in the sidebar, starting with Products.