About 15 minutes
By the end you will have a placed order with a Sandbox test store, made with the same calls you will use in production.
How it works
- Your server finds products from merchants your app can sell.
- Your server creates a cart for the shopper and adds items and a delivery address.
- Ignyt asks each store for live prices, shipping and tax, and returns one quote.
- The shopper approves the exact total, and your server submits the cart once.
- The shopper pays on the payment provider’s page. Ignyt places one order with each store.
- You confirm the result by reading the purchase or receiving a webhook.
Before you start
1
Get Sandbox access
Sign in to the Ignyt dashboard and select your company’s Sandbox environment. If you don’t have access yet, ask your Ignyt contact for an invitation.
2
Add a test store
In the dashboard, connect a built-in Sandbox test store. It has a fixed catalog with scenario products, described in Test in Sandbox. You can also use a merchant that Ignyt has approved for your Sandbox app.
3
Create a server API key
Create a key with the scopes
catalog:read, cart:write, checkout:write and orders:read. Keep it on your server. Never put it in browser code or a URL.Response examples on this page are based on a real Sandbox run against the built-in test store, shortened to the fields you need. Your IDs will differ. Amounts are in minor units:
24900 means AED 249.00.1. Check your key
Response (abridged)
environment is sandbox and the scopes include the four above. GET /v1/me is described in the API reference.
2. Find a product
Response (abridged)
id; you add variants to carts, not products. If items is empty, your app has no merchant with selected products yet; see Merchant access.
3. Create a cart
Response (abridged)
shopper_ref is your own identifier for the shopper. Don’t put an email or name in it.
4. Add an item and a delivery address
version. Items are grouped by store in merchant_groups, because one cart can contain products from several stores.
5. Get a quote
Response (abridged)
expires_at. Show the shopper the total_minor and get their approval. If unsupported lists any lines, those items can’t be bought right now; tell the shopper before you continue.
6. Submit the cart
Send the quote ID and the exact total the shopper approved. TheIdempotency-Key makes the submission safe to retry: create it once, save it, and send the same key and body again if you don’t get a response.
Response
202 Accepted means Ignyt has the order and will process it. It does not yet mean the payment succeeded.
7. Take the payment
Read the cart’s purchase to get the payment step:Response (abridged)
payment_action.url for presentation: "redirect". An app enabled for inline checkout can also
receive presentation: "embed" and load the provider form in its checkout iframe. The provider
collects the card details in both cases. Use a test card from Test in Sandbox.
If payment is still pending, read the original cart purchase again after a few seconds.
8. Confirm the order
After the shopper returns, read the purchase. Don’t rely on the return URL alone; only Ignyt’s response confirms the payment.Response (abridged)
merchant_orders with its own status, because a purchase can include several stores.
Next steps
Build your checkout
Handle quote changes, partial orders and lost responses.
Receive webhooks
Get notified when payments and orders change.
Test in Sandbox
Trigger sold-out items, price changes and failed orders.
Error codes
What each error means and what to do next.