DOCS
API reference

Customer Metadata

Payments API operations for Customer Metadata.

Payments API

These operations are generated from the Payments API Swagger document. Use the sandbox host https://api.dhangodemo.com while testing and https://api.dhango.com in production.

PUT /v1/customers/{id}/metadata/flex

Sets the Flex domain metadata for a customer.

Parameter In Required Description
id path yes The customer identifier.

Request body: FlexTenantModel.

FlexTenantModel

Field Type Required Description
firstName string The tenant's first name. Customer.Name is a single field, so the split is collected here.
middleName string The tenant's middle name.
lastName string The tenant's last name.
status FlexTenantStatus
statusDetails string Free-text detail when dhango.Flex.Contracts.Models.FlexTenantModel.Status is dhango.Flex.Contracts.Enums.FlexTenantStatus.Other.
unitId string The identifier of the dhango.Flex.Contracts.Models.FlexUnit (on the owning property) this tenant occupies.
lease FlexLease
occupancy FlexOccupancy

FlexTenantStatus values: Applicant, Collections, Current, Eviction, Former, Future, Other.

FlexLease

Field Type Required Description
startDate string The start date of the lease (Flex start_date).
endDate string The end date of the lease, or null if open-ended (Flex end_date, nullable).
moveInDate string The date the tenant moved in (Flex move_in_date).
moveOutDate string The date the tenant moved out, or null if no move-out notice (Flex move_out_date, nullable).

FlexOccupancy

Field Type Required Description
id string The occupancy identifier provided by the platform partner (the Flex occupancy.id).
totalRentInCents integer The monthly total rent amount, in cents (Flex total_rent_in_cents).
allowOnlinePayments boolean If false, Flex blocks online payments for this occupancy.
allowOverpayments boolean Resident-level override for overpayments; null inherits the property-level setting.
allowPartialPayments boolean Resident-level override for partial payments; null inherits the property-level setting.
isHeadOfHousehold boolean Indicates whether this resident is the head of household.
isMinor boolean Indicates whether this resident is a minor.
lateDate integer The day of the month on which rent is considered late (e.g. 5 = the 5th).

Responses:

Status Description Schema
204 The metadata was saved.
400 The request body is invalid. ValidationProblemDetails
403 The customer does not belong to the caller's scope. ProblemDetails

GET /v1/customers/{id}/metadata/flex

Gets the Flex domain metadata for a customer.

Parameter In Required Description
id path yes The customer identifier.

Responses:

Status Description Schema
200 The Flex metadata for the customer. FlexTenantModel
404 No Flex metadata exists for the customer, or the customer does not exist. ProblemDetails

DELETE /v1/customers/{id}/metadata/flex

Removes the Flex domain metadata for a customer.

Parameter In Required Description
id path yes The customer identifier.

Responses:

Status Description Schema
204 The metadata was removed (or did not exist).