Add several organisations at once

Needs permission organisation:write.

State the shared details once in defaults; any entry may override any of them. Leave a field out of an entry to inherit the default, or set it to override — an address set on an entry replaces the default address as a whole rather than merging field by field.

Every organisation is created exactly as POST /organisations creates one. One Idempotency-Key covers the whole batch and each entry claims under it by position, so retrying a partly successful batch finds the organisations it already made instead of making them again. Resend the batch unchanged: entries added, removed or reordered make it a different request, which answers 409 idempotency_key_reused.

201 when every entry went through, 207 when some did, 400 when none did. In all three the body lists what happened to each entry. An organisation in created can still be incomplete — its own complete and outstandingSteps say so.

403 billing_not_set_up when billing is not set up for the account yet — email [email protected] to agree pricing and set it up. Accounts onboarded by Flow Payroll are already set up.

externalId on an entry is that organisation's own, never a default; two entries with the same one are 400 duplicate_external_id, and one another organisation already has fails that entry with external_id_taken.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Adds several organisations to your account in one request: shared defaults plus per-entry overrides.

defaults
object

What every organisation in the request gets unless its own entry says otherwise.

entries
array of objects | null

The organisations to create, each processed exactly as POST /organisations would process it.
One Idempotency-Key covers the whole batch, and each entry claims under it by position.

entries
Headers
string
length ≤ 255

Your own key for this create, so a retry after a lost response finds what the first attempt made instead of making a second one. Any unique string up to 255 characters; a UUID is the usual choice. Send the same value on every retry of the same request, and a new value for a new one — reusing a key for a different body answers 409 idempotency_key_reused. Keys are remembered for 24 hours. Optional, and a request without one simply has no replay protection.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json