Skip to main content
Not generated in the PHP SDK yet. zavudev/sdk does not expose a sub-accounts resource today, so there is nothing to call. The endpoints exist and are stable: use the REST API below, the CLI, or the TypeScript SDK, which does cover it. See the coverage table.
Sub-accounts are isolated projects under your team, each with its own API keys and spending cap. Every charge still bills to the parent team’s balance.
These endpoints require a parent project API key. A sub-account key calling them receives 403.

Create a sub-account

creditLimit is in cents. The response includes apiKey, and that is the only time it is returned.
CLI

Retrieve, list and update

Spending

Returns the parent team’s balance alongside this sub-account’s totalSpent and creditLimit, all in cents.

API keys

Deactivate

Remaining balance returns to the parent team and every API key is revoked.

Sub-accounts guide

When to use them, and how billing works

API reference

Every field on the endpoints