Skip to main content
POST
Entity Credit Transfers
Auth: secret key with entity:write when API permissions are enabled. Publishable keys are rejected. Allocate paid customer top-up value:
Return unused allocated value:
Amounts must be positive decimal strings with at most 12 fractional digits. Allocation can draw only from active paid customer top-ups. Deallocation returns unused value to each exact parent source; expiry, priority, payment provenance, and conservation remain enforced by PostgreSQL. The API is available to authenticated secret-key callers and does not require a deployment allowlist. Tenant isolation, Entity status, Credit System configuration, source eligibility, and available balance are validated for every transfer. Retry an uncertain response with the same idempotency key and identical payload. Reusing a key with a different customer, Entity, Credit System, direction, or amount returns a conflict.