Empty cart

Your cart is empty

Browse products and tap Add to Cart

Your wishlist is empty

Save items you love for later

Lofaz API guide

Connect your own software (billing, stock, another system) to your Lofaz store. You can add and update products by your own SKU, change stock and price, add pictures by link, and read your orders. The API is on the paid plans.

1. Make a key

Open Settings > API in the seller panel and tap Create key. Give it a name such as "My billing software". The key is shown only once: copy it and keep it secret. You can switch a key off or delete it at any time.

2. Send the key with every call

Authorization: Bearer lzk_your_key_here
Content-Type: application/json

Address: https://lofaz.com/api/v1. Every key may make a limited number of calls a minute (60 at first); the answer headers X-RateLimit-Limit and X-RateLimit-Remaining tell you how many are left, and 429 says wait.

3. Products

GET /products?page=1&page_size=20&sku=ABC-1 lists your products. GET /products/ABC-1 reads one by SKU.

PUT /products/ABC-1 creates the product, or updates it when the SKU is already there (a re-send never duplicates):

{
  "title": "Red silk saree",
  "price": 1499,
  "mrp": 1999,
  "stock": 12,
  "category": "Sarees",
  "picture_url": "https://example.com/pictures/saree-red.jpg"
}

A new SKU needs title, price and category (the id or the title of one of your categories; see GET /categories). Other fields are optional: mrp (the higher price), stock, description, status ("active" or "inactive"), unit (for example "KG"), picture_url (an https picture address, JPG, PNG or WebP up to 5 MB, added as a new picture).

PATCH /products/ABC-1 changes only the fields you send, for example { "stock": 3, "price": 1399 }, and answers 404 for an unknown SKU. A SKU is 1 to 64 letters, numbers, dot, dash or underscore, and it is not case sensitive.

4. Orders (read only)

GET /orders?page=1&page_size=20&status=&from=2026-11-01&to=2026-11-30 lists your orders, newest first. GET /orders/1042 reads one order with its items and customer.

5. Answers and errors

200 done, 400 something to fix (the message names the field, for example "Price: the price cannot be more than the MRP."), 401 the key is missing, wrong, switched off or deleted, 403 your plan has no API access or Lofaz blocked the key, 404 not found, 429 too many calls. Products you change are checked by the banned-items review like products added in the app, and every change is written to your Activity.

Example with curl

curl -X PUT https://lofaz.com/api/v1/products/SAREE-RED-1 \
  -H "Authorization: Bearer lzk_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"title":"Red silk saree","price":1499,"category":"Sarees","stock":12}'