Gallantree Developer API

Create an organisation

POST /api/v1/organisations
x-api-key:        <your key>
Idempotency-Key:  <UUID v4>
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.

The body is the same organisation shape used inside the loan handover payload, and follows the same rules:

Create-if-absent: externalIds 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.

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.
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 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.

Was this page helpful?

Built with Token Gesture