Obsah dokumentace

Reference API

Tržiště

Zakázky z Tržiště, kde je účet klientem nebo tvůrcem: stav, ceny se poplatky, termíny, časová osa, soubory a spory. Jen čtení; změny přicházejí webhooky market_order.* a market_dispute.*.

Každý endpoint přijímá i hlavičku DOOHUB-Account (agentury: id klientského účtu).

get/market/orders

Tržiště orders of the account

Orders for making ads on DOOHUB Tržiště where the account is the client (side=buyer) or the creator (side=creator). Read-only: contracts, payment, delivery and disputes happen in the portal. Changes come as market_order.status_changed and market_dispute.* webhooks.

Jakýkoli klíč

Parametry

NázevTypPopis
sidev dotazubuyer | creator
statusv dotazuawaiting_creator | awaiting_payment | in_progress | delivered | completed | cancelled
limitv dotazuinteger
offsetv dotazuinteger

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/market/orders" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": [
    {
      "id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "request_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "side": "buyer",
      "title": "string",
      "status": "awaiting_creator",
      "price": {
        "currency": "CZK",
        "amount_minor": 0
      },
      "buyer_pays": {
        "currency": "CZK",
        "amount_minor": 0
      },
      "creator_gets": {
        "currency": "CZK",
        "amount_minor": 0
      },
      "days": 0,
      "revisions": 0,
      "revisions_used": 0,
      "terms_hash": "string",
      "counterparty_account_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "creator_confirmed_at": "2026-11-02T09:30:00Z",
      "buyer_confirmed_at": "2026-11-02T09:30:00Z",
      "paid_at": "2026-11-02T09:30:00Z",
      "due_at": "2026-11-02T09:30:00Z",
      "delivered_at": "2026-11-02T09:30:00Z",
      "auto_accept_at": "2026-11-02T09:30:00Z",
      "completed_at": "2026-11-02T09:30:00Z",
      "cancelled_at": "2026-11-02T09:30:00Z",
      "created_at": "2026-11-02T09:30:00Z",
      "updated_at": "2026-11-02T09:30:00Z"
    }
  ],
  "meta": {
    "total": 0,
    "limit": 0,
    "offset": 0
  }
}
get/market/orders/{id}

One Tržiště order

With the timeline, the delivered files (names and sizes; the files themselves are downloaded in the portal) and disputes.

Jakýkoli klíč

Parametry

NázevTypPopis
idv cestě · povinnýstring (uuid)

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 404Not an order of this account.
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/market/orders/{id}" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": {
    "id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
    "request_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
    "side": "buyer",
    "title": "string",
    "status": "awaiting_creator",
    "price": {
      "currency": "CZK",
      "amount_minor": 0
    },
    "buyer_pays": {
      "currency": "CZK",
      "amount_minor": 0
    },
    "creator_gets": {
      "currency": "CZK",
      "amount_minor": 0
    },
    "days": 0,
    "revisions": 0,
    "revisions_used": 0,
    "terms_hash": "string",
    "counterparty_account_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
    "creator_confirmed_at": "2026-11-02T09:30:00Z",
    "buyer_confirmed_at": "2026-11-02T09:30:00Z",
    "paid_at": "2026-11-02T09:30:00Z",
    "due_at": "2026-11-02T09:30:00Z",
    "delivered_at": "2026-11-02T09:30:00Z",
    "auto_accept_at": "2026-11-02T09:30:00Z",
    "completed_at": "2026-11-02T09:30:00Z",
    "cancelled_at": "2026-11-02T09:30:00Z",
    "created_at": "2026-11-02T09:30:00Z",
    "updated_at": "2026-11-02T09:30:00Z",
    "events": [
      {
        "kind": "string",
        "note": "string",
        "created_at": "2026-11-02T09:30:00Z"
      }
    ],
    "files": [
      {
        "id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
        "round": 0,
        "file_name": "string",
        "size_bytes": 0,
        "mime": "string",
        "preview": false,
        "created_at": "2026-11-02T09:30:00Z"
      }
    ],
    "disputes": [
      {
        "id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
        "category": "string",
        "status": "open",
        "respond_by": "2026-11-02T09:30:00Z",
        "creator_amount": {
          "currency": "CZK",
          "amount_minor": 0
        },
        "created_at": "2026-11-02T09:30:00Z",
        "closed_at": "2026-11-02T09:30:00Z"
      }
    ]
  }
}

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.