Obsah dokumentace

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).

get/transactions

Ledger 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ázevTypPopis
walletv dotazucredit | reserved | earnings
kindv dotazutopup | reserve | release | spend | payout | refund | adjustment
currencyv dotazuCZK | EUR | PLN
fromv dotazustring (date-time)Default: 30 days before to.
tov dotazustring (date-time)Default: now.
limitv dotazuinteger
cursorv dotazustring

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.
Požadavek
curl "https://admin.doohub.online/api/v1/transactions" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "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
      }
    ]
  }
}
get/payouts

Payouts 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ázevTypPopis
statusv dotazupending | paid | failed
limitv dotazuinteger
offsetv dotazuinteger

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.
Požadavek
curl "https://admin.doohub.online/api/v1/payouts" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "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
  }
}

Cookies jsou malé soubory, které si web ukládá ve vašem prohlížeči. Nezbytné nelze vypnout, ostatní kategorie povolujete vy.

Nezbytné

Vždy zapnuté

Přihlášení, volba účtu a jazyka, uložení vaší volby cookies a ochrana plateb. Bez nich web nefunguje.

sb-…-auth-token, doohub_account, NEXT_LOCALE, doohub_consent, doohub_ref, doohub_sidebar, doohub_menu, doohub_theme, doohub_support_return, doohub_mfa_later, doohub_signed_in, __stripe_mid, __stripe_sid

Žádné analytické ani marketingové cookies nepoužíváme, proto se vás na souhlas neptáme. Kdybychom je zavedli, zeptáme se předem.