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 The
items, each with a product_id and quantity. Mutasib automatically decrements stock and issues a receipt token.receipt_token uniquely identifies the transaction and can be used to fetch a shareable receipt via the Public API.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.