Skip to content
POSThttps://app.evoriqa.com/api/v1/reseller/clients/{workspaceId}/credits

Allocate or reclaim pooled credits

A **positive** `amount` allocates credits from the org pool to the client (floored at 1000); a **negative** `amount` reclaims still-unspent pool-sourced credit from the client back to the pool (no floor). `0` is rejected. An idempotency key is MANDATORY — as the standard `Idempotency-Key` header or an `idempotencyKey` body field; a request without one, or one outside `[A-Za-z0-9_-]`, returns 422. Replaying the same key is a no-op that returns the current figures instead of moving credit twice. An allocation against an empty pool returns 402. A reclaim above the client's reclaimable ceiling returns 422 naming the exact maximum, and a reclaim when nothing is reclaimable returns 422 ("Nothing to reclaim — the client has no unspent allocation."). Both actions require an active reseller plan — a lapsed plan returns 403. Reseller endpoints additionally require the key to live on the organization owner's own (primary) workspace — any other workspace returns 403.

Requires scope reseller:write

Warning:

Access is gated — enable it before your first call

The API is off by default. A request succeeds only when all three switches are on: the platform master switch (off by default), your organisation’s API toggle, and your plan or client entitlement. Any one off returns 403 API access is not enabled for this workspace.

Parameters

Request body

Content type: application/json

Request

Response

200 OK