beel_provision_account
Provision a BeeL account with optional holder email and tax profile; returns a claim token for the holder to claim ownership. Idempotent via external_ref.
Instructions
Provisions a new account on BeeL and, when it is born with a holder, returns a single-use claim_token to deliver so they can set a password and take ownership. Send email to create the account with a holder; omit it and the account is created with no person at all, no person_id and no claim_token — a holder can be added later with POST /v1/accounts/{account_id}/claim-tokens. Send tax_profile and the account comes back ready to invoice, with its NIF, default invoice series and VeriFactu configuration set up and its company_id in the response; omit it and the account stays empty until its holder registers a NIF. access_level sets the access you retain over the account and defaults to NONE; OPERATE requires a tax_profile. Provisioning is idempotent by external_ref: resending the same one returns the existing account rather than creating a second.
If you previously ended your management of this account (DELETE /v1/accounts/{account_id}/management) and its holder has not claimed it yet, provisioning the same email reactivates that account instead of creating a new one: the same account, holder, NIFs and invoices come back under your management, with the external_ref and access_level of this request, and it counts towards your billable usage again. Once the holder has claimed the account it is theirs, and only they can grant you access again.
Requires the manage_accounts entitlement.
Endpoint: POST /v1/accounts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |