iFragment

Prices and balance

USD price list, OWN and PLATFORM modes, prepaid balance.

Prices

Prices are in USD: per star and for Premium for 3, 6 and 12 months.

GET /v1/prices
{
  "currency": "USD",
  "stars": { "unitPrice": "0.0165", "min": 50, "max": 1000000 },
  "premium": [
    { "months": 3, "price": "12.99" },
    { "months": 6, "price": "16.99" },
    { "months": 12, "price": "29.99" }
  ]
}

Amounts are strings in US dollars; the Stars price is unitPrice × quantity (500 stars × "0.0165" = $8.25). The price is locked into the order when it is created: if the price list changes, existing orders are not recalculated.

Pool modes

PLATFORMOWN
Who pays the supplierwe do, from the Platform account poolyou do, with your own Supplier Accounts
What is charged to your balancethe full price of Stars/Premiumthe service fee only
Best fora quick start, small volumeslarge volumes, your own wallets and sessions

The mode is set per account; the default prices for a mode can be overridden individually.

Balance

GET /v1/balance
{ "currency": "USD", "available": "250.00", "held": "8.25", "creditLimit": "0.00", "unlimitedCredit": false }
  • available is what you can spend; held is reserved for orders in progress.
  • Creating an order holds the amount (HOLD), SUCCEEDED charges it (CAPTURE), FAILED returns it (RELEASE).
  • If available + creditLimit is less than the order price, the response is 402 (-9301). With unlimitedCredit: true (set by iFragment on request) orders are not limited by the balance; the debt is settled by top-ups.
  • Top-ups are made manually under your contract; every movement is visible in the dashboard (ledger).
GET
/v1/prices

Your tenant's prices in USD. Stars price = unitPrice × quantity.

Authorization

apiKey
X-API-Key<token>

ifk_<clientId>_<secret>, for example ifk_48aa52d67c0fef6decb05b36_lVlZSWKN43sgb2vfEpFbqtzQ0ePNZya6yZr-RmJ4wxo

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/prices"
{  "success": true,  "data": {    "currency": "USD",    "stars": {      "unitPrice": "0.0165",      "min": 50,      "max": 1000000    },    "premium": [      {        "months": 3,        "price": "12.99"      },      {        "months": 6,        "price": "16.99"      },      {        "months": 12,        "price": "29.99"      }    ]  },  "meta": {    "requestId": "9f1c2b7e-3a4d-4e5f-8a6b-7c8d9e0f1a2b",    "timestamp": "2026-10-06T09:15:22.481Z",    "processingTimeMs": 38  }}
GET
/v1/balance

available is free funds, held is reserved for orders in progress, creditLimit is how far the balance may go below zero; with unlimitedCredit orders are not limited by the balance at all (the debt is settled by top-ups).

Authorization

apiKey
X-API-Key<token>

ifk_<clientId>_<secret>, for example ifk_48aa52d67c0fef6decb05b36_lVlZSWKN43sgb2vfEpFbqtzQ0ePNZya6yZr-RmJ4wxo

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/balance"
{  "success": true,  "data": {    "currency": "USD",    "available": "248.35",    "held": "1.65",    "creditLimit": "0.00",    "unlimitedCredit": false  },  "meta": {    "requestId": "9f1c2b7e-3a4d-4e5f-8a6b-7c8d9e0f1a2b",    "timestamp": "2026-10-06T09:15:22.481Z",    "processingTimeMs": 38  }}

On this page