Getting started with APIs

Here are a few resources to help you begin using our APIs.

fabric is a cloud-native headless commerce platform. We offer a suite of commerce APIs and applications that best suit high-growth and established businesses. fabric enables growth across all customer segments and channels and liberates your B2C, B2B, or multi-channel e-commerce business from the limits of monolithic platforms. The full reference guide for all our APIs can be found here.

fabric’s APIs include but are not limited to:

  • Product Information Manager (PIM): imports and manages a large volume and variety of SKUs across all your channels.
  • Offers: gauges the effectiveness of promotions giving an overview of orders and allowing you to make changes to SKUs easily.
  • Order Management System (OMS): employs end-to-end life cycle tracking to forecast and organize inventory and fulfillment.
  • Subscriptions: automates repeat sales by rewarding repurchasing customers, managing subscription sales campaigns, and visualizing its effectiveness.
  • Member: allows you to attract new customers and reward and inspire your existing customers.

These services and microservices are available via RESTful APIs and a user interface called Copilot that offers a complete merchant tools set.

There are a few convenient APIs that allow you add and update products, prices and inventory in bulk.

When making calls to our APIs a context needs to be provided via HTTP headers. The header “x-site-context” contains account and site information. Here’s an example of an API call:

1curl -I https://<fabric-base-url>/<endpoint> -H "x-site-context: {"date":<iso-date>, "channel": <channelId>, "account": "<accountId>", "stage": <stage>}"

Your account manager will provide you with the “accountId”, “stage” and “fabric-base-url”. For the “channelId”, the default is US, which is 12. You can contact your account manager to help you add more channels to target different markets. 

Some APIs require an “access token” via the “Authorization” header. The token is generated  when a user is authenticated using the login local user API. In some cases you will need an “API token” that will be provided to you by your account manager. You want to make sure to keep this token safe and secure.

Last update: Nov 29, 2021

Have any questions?
Let's Talk.