Boostigo Developers

Pricing & the amount field

Every API key has a configured selling price per diamond amount (set by Boostigo, optionally per store or per key). The amount you send in POST /likee/recharge must match that configured price exactly (2 decimals).

{ "diamond": 5000, "amount": "95.00" }
  • If your configured price for 5000 diamonds is $95.00 → accepted.
  • If you send "amount": "1.00"422 AMOUNT_MISMATCH, nothing is charged.
  • If diamond is not in your price list → 422 INVALID_DIAMOND_AMOUNT.

Boostigo is always the final authority on price. The amount field exists so your system and ours agree before money moves — it can never lower the price.

#Why send amount at all?

It protects you: if Boostigo updates your price list and your integration still uses the old price, the request is rejected instead of silently charging a different amount.

#Where do I see my prices?

Your account manager configures them. Contact Boostigo support for your current price list; typical amounts are 100, 500, 1000, 5000 and 10000 diamonds.

#Balance

The amount is debited from the API key that made the request at creation time. If the recharge later fails permanently, the same amount is refunded to that key (one refund_credit ledger entry per order — never twice).

{ "success": false, "error": { "code": "INSUFFICIENT_BALANCE", "message": "Insufficient API key balance." } }

Boostigo never pulls funds from other API keys or from the store's unallocated balance automatically. Allocate funds to the key in the Client Dashboard → Store.