Karauti API documentation
/
Sign in

Product list

POST https://karauti.com/api/v1/products

Every product you can sell, for your own storefront. Free to call.

Parameters

ParameterTypeRequiredDescription
merchant_idstringyes See Authentication.
gamestringno Game code, e.g. ff. Returns that game from every supplier.
supplierstringno Supplier code, e.g. unipin. From /v1/suppliers.
availablebooleanno true: only what can be bought right now.
connectedbooleanno true: only suppliers you have linked an account at.
kindstringnotopup or giftcard.
updated_sinceintegerno Unix time. Only products changed at or after it.
limitintegerno1 to 500. Default 200.
cursorstringnoThe previous page's meta.next_cursor.
curl -X POST https://karauti.com/api/v1/products \ -H 'Content-Type: application/json' \ -H 'X-Karauti-Timestamp: 1786686400' \ -H 'X-Karauti-Nonce: 9f2b41c7d0e8a35b' \ -H 'X-Karauti-Signature: …' \ -d '{"merchant_id":"M2608001","available":true,"connected":true}'
{ "status": 1, "data": [ { "code": "UNIFF25", "name": "25 Diamonds", "game": { "code": "ff", "name": "Free Fire", "region": "BD" }, "supplier": "unipin", "cost": 20, "cost_unit": "UP", "available": true, "connected": true, "kind": "topup", "inputs": [ "user_id" ], "sort": 16, "updated_at": 1788239464 } ], "meta": { "unix_timestamp": 1788250000, "count": 1, "next_cursor": null } }
{ "status": 0, "error_msg": "Unknown supplier: unipn. Call /v1/suppliers for the list.", "failure_code": "INVALID_REQUEST" }

Fields

FieldDescription
codeSend this as sku when you order.
nameWhat the customer is buying.
gameThe game, and the region it is sold for.
supplierWho fulfils it. Each code belongs to one supplier.
cost, cost_unitWhat your own supplier account pays, in that supplier's unit. Our fee is separate.
availableWe can sell it right now.
connectedYou have a working account at its supplier. When both are true, the order will go through.
kindtopup or giftcard.
inputsWhat to ask the customer for: user_id, sometimes server_id, nothing for a gift card. Read it per product.
sortThe supplier's own order. Sort a game's products on it to list them smallest first, with passes after.
updated_atUnix time of the last change. Send it back as updated_since.

Import one supplier

The same game is sold by more than one supplier, and each supplier's pack is its own product with its own code. 115 Diamonds from two suppliers is two products. To import one supplier's catalogue, send its code as supplier:

curl -X POST https://karauti.com/api/v1/products \ -H 'Content-Type: application/json' \ -H 'X-Karauti-Timestamp: 1786686400' \ -H 'X-Karauti-Nonce: 9f2b41c7d0e8a35b' \ -H 'X-Karauti-Signature: …' \ -d '{"merchant_id":"M2608001","supplier":"unipin"}'

Add game to narrow it to one game from that supplier.

Warning

Key your products on code. Matching on game and amount merges two suppliers' packs into one, and orders go to the wrong supplier.

Paging

Follow meta.next_cursor until it is null.

One product

POST https://karauti.com/api/v1/products/UNIFF25

The same object in data. Sign the full path. Unknown code: 404 NOT_FOUND.

Note

Turn on product updates instead of polling.