# Create an organisation ``` POST /api/v1/organisations x-api-key: Idempotency-Key: Content-Type: application/json { "externalId": "borrower-001", "organisationName": "Test Borrower Holdings Pty Ltd", "organisationStructure": "privateCompany", "domicile": "australia", "roles": ["borrower"], "registrations": { "abn": "12345678901", "acn": "123456789" }, "web": { "website": "https://borrower.example.com" } } ``` **Required scope:** `organisations:write`. **Idempotency-Key header:** required. See [Idempotency](../../idempotency.md). The body is the same organisation shape used inside the loan [handover payload](../loans/create.md), and follows the same rules: - `externalId`, `organisationName` and `domicile` are required. `domicile` is one of `australia`, `newZealand`, `singapore`, `unitedStates`, `caymanIslands`. - Enum-like fields (`roles`, `organisationStructure`, `organisationIndustry`) must hold a recognised value, matched ignoring case. An unrecognised value is rejected with a `400` that names the field. See [Enum values must be recognised](../loans/create.md#enum-values-must-be-recognised). - Stored on create: the name fields, `domicile`, `organisationStructure`, `organisationIndustry`, `roles`, `registrations`, `web`, `contact.marketingEmail`, `trust`, `addresses` and `credit`. - `addresses.registered` and `addresses.principalPlaceOfBusiness` each need `line1`, `suburb`, `state` and `postCode`; an incomplete address is a field error. - `credit.score` is stored as a number. `credit.rating` accepts either a credit-score band (`A1` to `E`) or an agency-style grade (`aaa`, `bbb+` and so on). - `contact.email`, `contact.phone`, `contact.primary` and `financials` are accepted but **not stored yet**. **Create-if-absent:** `externalId`s are scoped to your lender. If an organisation with this `externalId` already exists for your lender, the platform returns it with `200 OK` and `"created": false` **without changing it**. A new record returns `201 Created` and `"created": true`. ```json { "id": "65f3...c4f2", "externalId": "borrower-001", "created": true, "organisation": { "id": "65f3...c4f2", "organisationName": "Test Borrower Holdings Pty Ltd", "...": "..." } } ``` The full field list is at the [API reference → `HandoverOrganisation`](../../../reference/openapi.md). ## Errors | Status | When | |--------|------| | `400` | Body validation failed (missing required field, wrong type, field too long), or a field holds an unrecognised value. For the latter, `errors` lists each field as `{ field, message }`; see [Field errors](../loans/create.md#field-errors). | | `403` | Insufficient scope | | `409` | Idempotency-Key conflict (same key, different body) | | `409` | Also returned when the `externalId` is already registered to your lender by a different integration source | | `500` | Server-side failure — retry with a new idempotency key | ## Bulk creation via handover If you're creating an organisation **as part of** creating a loan — e.g. bootstrapping a new borrower on their first loan — send the organisation inside the loan's [handover payload](../loans/create.md) instead of making two API calls. The platform handles the ordering (organisations first, then collaterals, then the loan) and rolls back if any part fails. Use the standalone `POST /api/v1/organisations` when you're pre-provisioning organisations before you create loans against them.