Reference API
Peníze
Pohyby peněženek účtu (kredit, rezervace, výnosy) se zůstatky a výplaty. Jen pro čtení a jen s oprávněním finance.
Každý endpoint přijímá i hlavičku DOOHUB-Account (agentury: id klientského účtu).
/transactionsLedger entries of the account
Key with the finance scope (agencies: the client's accountant role). Entries of the account's wallets in booking order: credit (top-ups, spending), reserved (held for bookings) and earnings (screen revenue, available after the holding period). Amounts are signed; each entry belongs to a transaction whose other side is another wallet or the platform. meta.balances has each wallet's balance (earnings also what is available now). Page with cursor = meta.next_cursor.
Klíč s oprávněním finance
Parametry
| Název | Typ | Popis |
|---|---|---|
| walletv dotazu | credit | reserved | earnings | |
| kindv dotazu | topup | reserve | release | spend | payout | refund | adjustment | |
| currencyv dotazu | CZK | EUR | PLN | |
| fromv dotazu | string (date-time) | Default: 30 days before to. |
| tov dotazu | string (date-time) | Default: now. |
| limitv dotazu | integer | |
| cursorv dotazu | string |
Chyby
401Missing, invalid or revoked API key.403No finance scope on the key (finance_required), or the client's role doesn't allow it (client_role).429More than 120 requests a minute; see Retry-After.
curl "https://admin.doohub.online/api/v1/transactions" \
-H "Authorization: Bearer dh_…"{
"data": [
{
"id": "string",
"transaction_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"wallet": "credit",
"kind": "topup",
"amount": {
"currency": "CZK",
"amount_minor": 0
},
"campaign_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"payment_id": "string",
"settle_day": "2026-11-02",
"available_on": "2026-11-02",
"created_at": "2026-11-02T09:30:00Z"
}
],
"meta": {
"limit": 0,
"next_cursor": "string",
"from": "string",
"to": "string",
"finance_enabled": false,
"balances": [
{
"wallet": "string",
"currency": "string",
"balance_minor": 0,
"available_minor": 0
}
]
}
}/payoutsPayouts of the account's earnings
Key with the finance scope. Read-only: payouts are set up and started in the portal by the owner with two-factor authentication. meta.payout_account is the state of the Stripe Connect account.
Klíč s oprávněním finance
Parametry
| Název | Typ | Popis |
|---|---|---|
| statusv dotazu | pending | paid | failed | |
| limitv dotazu | integer | |
| offsetv dotazu | integer |
Chyby
401Missing, invalid or revoked API key.403No finance scope on the key (finance_required), or the client's role doesn't allow it (client_role).429More than 120 requests a minute; see Retry-After.
curl "https://admin.doohub.online/api/v1/payouts" \
-H "Authorization: Bearer dh_…"{
"data": [
{
"id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"status": "pending",
"amount": {
"currency": "CZK",
"amount_minor": 0
},
"failure_message": "string",
"created_at": "2026-11-02T09:30:00Z",
"updated_at": "2026-11-02T09:30:00Z"
}
],
"meta": {
"total": 0,
"limit": 0,
"offset": 0
}
}