Skip to main content
This guide walks you through the essential steps to go from zero to a working Mutasib integration. By the end you will have an API token, a product in your shop’s catalog, and your first recorded sale.
API tokens are not available on a free trial. An active paid plan is required to create and use them. Shops themselves are created and administered from the Mutasib dashboard; the API operates on an existing shop.
1

Generate an API token

Sign in to your Mutasib dashboard and create a new API token. Choose an expiration of 30, 60, or 90 days, then copy the token immediately, it is shown only once at creation time. Store it in a secure secret store such as an environment variable or a secrets manager. You can revoke the token anytime from the dashboard.Pass the token in the Authorization header on every request:
2

Get your shop details

Look up your shop by ID to confirm the token works and grab any details you need.
Replace 42 with your own shop ID (visible in the dashboard).
3

Add a product

Add your first product to the shop’s catalog.
Note the id of the product — you need it in the next step.
4

Record a sale

Record a point-of-sale transaction by posting to the shop’s sales endpoint. Pass an array of items, each with a product_id and quantity. Mutasib automatically decrements stock and issues a receipt token.
The receipt_token uniquely identifies the transaction and can be used to fetch a shareable receipt via the Public API.
Store your API token in environment variables or a secrets manager. Never hard-code it in your source code or commit it to version control. If a token is compromised, revoke it from the dashboard and generate a new one.

Next steps

Authentication

Review the API token scope, allowlist, and error codes.

Shops API

Read and update your shop’s details and settings.

Products API

Create, list, update, and manage your product catalog.

Sales API

Record transactions, list sales history, and fetch daily totals.