Skip to main content

Partner Onboarding API Overview

The Partner Onboarding API lets you provision a property owner and maintain its property and unit roster programmatically, without manual setup by Greenlight for each owner. Use it when you onboard property management companies at a volume that manual, per owner setup cannot support.

It provides four write endpoints and extends the Partner Prospect API so that a prospect may identify its building and unit by your own identifiers:

EndpointPurpose
POST /partners/property_ownersCreate or update a property owner, and return its slug
POST /partners/{owner_slug}/bank_accountsRegister the accounts claim payments are sent to
POST /partners/{owner_slug}/propertiesCreate or update properties
POST /partners/{owner_slug}/unitsCreate or update units
POST /partners/{owner_slug}/prospectsExisting; a prospect may now reference or create its property and unit

Base URLs, authentication, and the owner_slug path segment are identical to the rest of the Partner API. See Authentication & Environments. Owner creation is the only call not scoped to a slug, because it is the call that returns one.

Upserts and identifiers​

Every resource is keyed on an identifier that you own, never a Greenlight one. Resending a payload updates the existing record rather than creating a duplicate, so a batch, or a single item within it, is safe to retry.

ResourceUpsert key
Property ownerexternal_org_id
Bank accountexternal_system_id, within the owner
Propertyexternal_system_id, within the owner
Unitexternal_system_id, within the owner

An external_system_id names one record across all of an owner's bank accounts, properties, and units, so the same value cannot be reused for two of them.

You never store a Greenlight identifier. Wherever a payload references another resource, such as a unit referencing its property or a property referencing its payout account, it does so with your identifier for that resource.

An upsert writes only the fields it carries. Omitting a field leaves the stored value unchanged, so a scheduled full refresh that drops a field does not revert a value set earlier. An explicit null clears only where noted: on the owner, it clears max_coverage_amount_cents and embedded_frame_ancestors and resets purchase_flow_enabled and guarantor_coverage_capable to false; on a property, it reverts bank_account_external_id to the owner's default account. Any other null on a property or unit is treated as omitted. The two array fields, embedded_frame_ancestors on the owner and authorized_members on a prospect, are the exception: when present, they replace the entire array rather than merging.

Batch requests​

Every endpoint on this page, apart from owner creation, accepts a bare JSON array at the top level of the body, even for a single item, and returns a result for each item. Send larger rosters in several batches; because every operation is an upsert, batching is safe.

EndpointItems per request
Properties, unitsAt most 500
Bank accountsAt least 1, at most 100

A body that is not an array, or that exceeds the limit, is rejected in full with a 422 before any item is processed. The error's message is "Request body invalid." and it carries one detail whose field is null; branch on its code (see Field codes), not the message text:

EndpointDetail codes
Properties, unitsnot_an_array, too_many_items
Bank accountsnot_an_array, blank (an empty array), too_many_items
{
"status_code": 200,
"results": [
{ "external_system_id": "acme-prop-123", "action": "created" },
{ "external_system_id": "acme-prop-124", "action": "updated" },
{ "external_system_id": "acme-prop-125", "action": "failed",
"error": { "code": "validation_failed", "message": "Property invalid.",
"details": [{ "field": "bank_account_external_id", "code": "unknown_bank_account", "message": "is not a known bank account" }] } }
],
"meta": { "created": 1, "updated": 1, "failed": 1 },
"request_id": "6f1c2b9e-7d4a-4c1e-9a55-0b8f3d2e1a77"
}

action is created, updated, or failed. A single invalid item does not fail the batch: the remaining items still apply, and the failed item carries an error naming each refused field (see Errors). Inspect the individual results rather than the HTTP status alone, because a 200 response may still contain failures.

Owner types​

  • Owners you create. An owner you created through POST /partners/property_owners. You own all of its configuration: the coverage ceiling, the payout accounts, and the entire roster.
  • Owners with an existing Greenlight relationship. A property management company that worked with Greenlight directly before your integration. You do not create these. Greenlight grants you access to named buildings and returns the slug; certain fields (purchase_flow_enabled, max_coverage_amount_cents) remain owned by Greenlight, and the owner's payout accounts typically already exist. Coordinate with your Partner Success Manager before sending data for one.

Greenlight cannot automatically detect that an owner you are onboarding already works with Greenlight. Where that is possible, coordinate before creating the owner; creating it regardless produces a duplicate that must later be merged manually. See Owners with an existing Greenlight relationship.

Provisioning an owner​

  1. POST /partners/property_owners returns the owner_slug, with purchase_flow_enabled: false. If the owner will offer Greenlight Guarantee, send guarantor_coverage_capable: true on this call, so each property gets Greenlight Guarantee as it is created. Turning it on later also works; Greenlight then enables it on the existing properties in the background.
  2. POST /partners/{owner_slug}/bank_accounts registers payout accounts. The first account becomes the owner's default, so that claims can be paid from the outset.
  3. POST /partners/{owner_slug}/properties, then POST /partners/{owner_slug}/units. A unit's property must already exist, so send properties in an earlier request than their units.
  4. POST /partners/property_owners again with purchase_flow_enabled: true sets the owner to active.
  5. Prospects resolve against the roster, and renters enroll.

Adding buildings later is limited to steps 3 and 5: new buildings are covered automatically and pay claims to the default account unless the property specifies another.

Errors​

Errors use the shared error envelope.

StatusMeaning
400bad_request: the request body is not valid JSON
401Token missing, expired, or invalid. Refused by the gateway; see Token failures
403The gateway refused your token's scopes, or Greenlight refused the caller (forbidden): your credentials are not registered as a partner, or are not granted this slug
404Unknown owner_slug
409The external_org_id belongs to an owner Greenlight manages directly, or the owner it names no longer exists; coordinate rather than creating it. See Property owners
422The request as a whole is invalid. Each refused field is a detail in error.details

Every error uses the envelope in Errors. On the collection endpoints a body that is not an array or is over the item limit, or an empty array of bank accounts, is a 422 with one detail whose field is null. An empty array of properties or units is accepted and does nothing.

Per item failures within a collection are returned as 200 with action: "failed" on the affected item, rather than as a request level error. Ambiguous matches, unknown references, and a unit whose name cannot be derived are all per item failures.

Next steps​