Sign in
Informatie/Saldo

Saldo

Haal de lijst met merchantaccounts op met hun saldi per valuta.

Het Balance-endpoint geeft alle merchantaccounts in het project terug, inclusief hun beschikbare saldi, USD-equivalenten en eventuele vergrendelde bedragen.

Saldo opvragen

Geeft de lijst met merchantaccounts terug. Het verzoek heeft geen body — de handtekening wordt berekend over een lege string.

Responsevelden

Elk account in result bevat:

VeldTypeBeschrijving
uuidstringAccount-UUID
statusstringAccountstatus (active, disabled)
currency_codestringAccountvaluta
balancedecimalBeschikbaar saldo
balance_usddecimalBeschikbaar saldo in USD
locked_balancedecimalBedrag vergrendeld vanwege AML

Voorbeeld van een response

JSON
{
  "state": 0,
  "result": [
    {
      "uuid": "abc123-def456-...",
      "status": "active",
      "currency_code": "USDT",
      "balance": "1250.50",
      "balance_usd": "1250.50",
      "locked_balance": "0.00"
    },
    {
      "uuid": "def456-abc789-...",
      "status": "active",
      "currency_code": "BTC",
      "balance": "0.01320000",
      "balance_usd": "1251.20",
      "locked_balance": "0.00000000"
    }
  ]
}
Credentials
RequestGET/v1/balance
curl -X GET https://api.2328.io/api/v1/balance \
  -H "Content-Type: application/json" \
  -H "User-Agent: MyShop/1.0 (+https://myshop.example)" \
  -H "project: YOUR_PROJECT_UUID" \
  -H "sign: YOUR_HMAC_SIGNATURE"
Response
Click Try it to see the response here.