Add an organisation

Needs permission organisation:write.

Creates an organisation under your account. legalName is required; organisationType and businessType accept only the values listed in the schema, and anything else is refused with a 400 naming the choices.

Send an Idempotency-Key so a retry after a lost response cannot create the organisation twice. A replay answers 200 with the organisation the first attempt made; a fresh create answers 201; 202 means the organisation exists but a setup step did not finish, and outstandingSteps names it.

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 records your account's own identifier for it. Sending one needs organisation:write across your whole account (403 insufficient_permissions). It must be unique among your account's organisations: 409 external_id_taken before anything is created when another has it. A replay with the same Idempotency-Key is not a clash. Of two requests claiming one value at the same moment, one wins and the other answers 409 external_id_taken having created nothing.

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

Adds an organisation to your account. Only legalName is required.

string | null

Required. The registered legal name.

string | null

The trading name, if it differs from the legal name.

string | null
enum

One of Branch, Franchise, Independent, Parent or Subsidiary.

Allowed:
string | null
enum

One of Charity, LimitedCompany, LimitedLiabilityPartnership, Partnership,
PublicSector or SoleTrader.

Allowed:
string | null

The Companies House registration number.

registeredOfficeAddress
object

A postal address.

correspondenceAddress
object

A postal address.

primaryContactDetails
object

A named contact.

companyContactDetails
object

A named contact.

string | null

Your own identifier for this organisation, such as its id in your practice management system: 1 to 256 characters,
case-sensitive, unique among your account's organisations. Only your account sees it.

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