Property Owners
A property owner is Greenlight's client, the property management company whose renters you serve. This endpoint creates one and returns the slug to which every other Onboarding and Partner API call is scoped.
The same call both creates and updates, keyed on external_org_id; there is no separate update endpoint. It is the only Onboarding endpoint that accepts a single object rather than an array, and the only one not scoped to an owner_slug, because it is the call that returns one.
See Authentication & Environments for base URLs and tokens, and the Onboarding overview for the upsert and error conventions shared across these endpoints.
Create or update a property owner
POST /partners/property_owners
Content-Type: application/json
{
"external_org_id": "acme-mg-77931",
"name": "Hudson Residential Group",
"embedded_frame_ancestors": ["https://www.acme.com"],
"purchase_flow_enabled": false,
"max_coverage_amount_cents": 1000000,
"guarantor_coverage_capable": false
}
Request fields
| Field | Required | Default | Notes |
|---|---|---|---|
external_org_id | every call | String. Your own identifier for the management company. The upsert key; never shown to renters | |
name | on create | String. The company's display name, shown to renters and property managers. Must be unique across Greenlight. Optional on update; renaming does not change the slug | |
embedded_frame_ancestors | no | none | Array of https origins permitted to frame the enrollment flow and receive its postMessage events. An update replaces the entire list; null clears it |
purchase_flow_enabled | no | false | Boolean. Whether renters at this owner's buildings can enroll. Enable only after the roster is loaded. null clears it to false |
max_coverage_amount_cents | no | none | Integer cents, greater than 0 and at most 20000000 ($200,000). The most coverage any single renter at this owner can carry |
guarantor_coverage_capable | no | false | Boolean. Turns on Greenlight Guarantee for the properties you create from then on, and for the owner's existing active properties, except any where Greenlight Guarantee was last turned off on the building itself. Setting it to false removes Greenlight Guarantee from all of the owner's properties. null clears it to false. See Greenlight Guarantee on creation |
Response
{
"status_code": 201,
"property_owner": {
"external_org_id": "acme-mg-77931",
"name": "Hudson Residential Group",
"slug": "hudson-residential-group",
"status": "pending",
"purchase_flow_enabled": false,
"embedded_frame_ancestors": ["https://www.acme.com"],
"max_coverage_amount_cents": 1000000,
"guarantor_coverage_capable": false
}
}
The HTTP status is 201 on a create and 200 on an update; the status_code field mirrors it. A repeat call with the same external_org_id updates the existing owner.
Greenlight assigns the slug, derived from name ("Hudson Residential Group" becomes hudson-residential-group, with a numeric suffix if that is taken). Use it as the {owner_slug} path segment on every subsequent call: bank accounts, properties, units, and prospects. The slug is permanent: it appears in enrollment URLs already sent to renters, so renaming the owner later does not change it.
status reflects purchase_flow_enabled: pending while the flow is disabled, active once it is enabled. With the flow enabled and no roster loaded, a renter resolves no unit and receives no enrollment URL. Load the roster first, then enable the flow. See Provisioning an owner.
embedded_frame_ancestors must contain bare https origins: scheme, host, and optional port, with no path and no trailing slash. A wildcard may cover a subdomain, never a whole top-level domain: https://*.acme.com is accepted, https://*.com is rejected. A list containing an invalid entry is refused with the not_https_origins code and "has entries that are not https origins, or that wildcard a whole TLD rather than a subdomain: …", naming the entries. It governs both iframe rendering and postMessage delivery for the embedded flow.
max_coverage_amount_cents caps the coverage amount of any one renter's policy at this owner, whatever the property's coverage rule would otherwise produce. Greenlight never writes a policy above $200,000 regardless, so leaving it unset applies only that limit; configuring an owner-specific ceiling is recommended. It also bounds the flat coverage amounts you can set on properties and units. Lowering it withdraws any outstanding enrollment offers above the new ceiling. See Coverage amount for how coverage is calculated.
Turning guarantor_coverage_capable on also enables Greenlight Guarantee, with the same state defaults as a new property, on the owner's existing active properties, with the exceptions in the table above. This runs in the background after the call, so the response shows true before every property offers it; for a large roster allow a few minutes, during which a prospect may still be reported ineligible for Greenlight Guarantee. Sending true when the flag is already on does not run it again, and turning the flag off before it finishes stops it. A property that was inactive when you turned the flag on is not included; if one is still without Greenlight Guarantee once it is active, ask your Partner Success Manager. Sending an explicit null clears the flag back to false. See Greenlight Guarantee on creation.
Owners with an existing Greenlight relationship
Creation is keyed on external_org_id, and Greenlight cannot reliably determine that the company you are onboarding already has a direct Greenlight relationship. Where that is possible, coordinate with your Partner Success Manager before calling this endpoint. Creating the owner regardless produces a duplicate that must be merged manually.
For an owner that already works with Greenlight, you do not create it. Greenlight grants you access to named buildings and returns the slug (a single company may map to more than one), and its configuration, including purchase_flow_enabled and max_coverage_amount_cents, is owned by Greenlight. See Owner types.
The call returns 409 when the external_org_id you send belongs to an owner Greenlight manages directly, or when the owner it names no longer exists; talk to your Partner Success Manager rather than retrying. A field that fails validation is a 422. A name already used by another owner is one, with the taken code on name, on create or on a rename; a refused rename leaves the owner's name unchanged, so choose a distinct display name:
{
"status_code": 422,
"error": {
"code": "validation_failed",
"message": "Property owner invalid.",
"details": [
{ "field": "max_coverage_amount_cents", "code": "not_whole_cents", "message": "must be a whole number of cents" }
]
},
"request_id": "6f1c2b9e-7d4a-4c1e-9a55-0b8f3d2e1a77"
}
Errors
| Status | Meaning |
|---|---|
201 / 200 | Created / updated |
409 | conflict: the external_org_id belongs to an owner Greenlight manages directly, or the owner it names no longer exists |
422 | validation_failed. Each refused field is a detail in error.details, such as not_whole_cents on max_coverage_amount_cents, not_a_boolean on purchase_flow_enabled, blank on name for a create without one, taken on name when another owner already uses it, not_a_string on external_org_id or name when the value is not a string, blank on external_org_id when it is missing or empty, greater_than on max_coverage_amount_cents for 0 or less, less_than_or_equal_to on max_coverage_amount_cents above $200,000, not_a_list_of_origins on embedded_frame_ancestors when the value is not an array of strings, or not_https_origins on embedded_frame_ancestors when an entry is not a valid origin. See Errors |
See the Onboarding overview for 401, 403, and the error envelope.
Next steps
- Bank accounts: register where claims are paid
- Properties: load the building roster