DOCS
API reference

Account Metadata

Payments API operations for Account 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/accounts/{accountKey}/metadata/flex

Sets (replaces) the Flex-domain metadata for the specified property account. Preserves all other metadata entries on the account.

Parameter In Required Description
accountKey path yes The dhango-assigned account key (Account.Key) -- the same identifier the existing Payments API uses to reference accounts.

Request body: FlexPropertyModel.

FlexPropertyModel

Field Type Required Description
allowOnlinePayments boolean If false, Flex blocks online payments for this property. Required by Flex; no dhango source.
allowOverpayments boolean Indicates whether overpayments are allowed. Required by Flex; no dhango source.
allowPartialPayments boolean Indicates whether partial payments are allowed. Required by Flex; no dhango source.
partialPaymentCutoffDate string The date after which partial payments are no longer accepted. Drives the Flex PARTIAL_PAYMENT_CUTOFF_DATE_PASSED rejection on tenant payments.
type FlexPropertyType
typeDetails string Free-text detail when dhango.Flex.Contracts.Models.FlexPropertyModel.Type is dhango.Flex.Contracts.Enums.FlexPropertyType.Other.
statusOverride FlexEntityStatus
statusDetails string Free-text detail when the property status is other.
address2 string The second line of the property address. dhango stores only a single street line.
units array of FlexUnit The rentable units at this property. dhango has no Unit entity, so units are collected here.

FlexPropertyType values: Commercial, Residential, Student_Housing, Other.

FlexEntityStatus values: Active, Inactive, Other.

FlexUnit

Field Type Required Description
id string The unit identifier provided by the platform partner (the Flex id).
name string The unit name or number (e.g. "204", "B-12"). Nullable per the Flex spec.
address1 string The first line of the unit address. When null, the property address is used.
address2 string The second line of the unit address.
city string The city of the unit address. When null, the property city is used.
state string The state of the unit address. When null, the property state is used.
postalCode string The postal code of the unit address. When null, the property postal code is used.
countryCode string The two-letter country code of the unit address. When null, the property country code is used.
status FlexUnitStatus
statusDetails string Free-text detail when dhango.Flex.Contracts.Models.FlexUnit.Status is dhango.Flex.Contracts.Enums.FlexUnitStatus.Other.

FlexUnitStatus values: Occupied, Notice, Notice_Rented, Vacant, Vacant_Rented, Other. Responses:

Status Description Schema
204 No Content
400 Bad Request ValidationProblemDetails
401 Unauthorized ProblemDetails
403 Forbidden ProblemDetails

GET /v1/accounts/{accountKey}/metadata/flex

Gets the Flex-domain metadata for the specified property account. Returns 404 if no Flex metadata has been set.

Parameter In Required Description
accountKey path yes The dhango-assigned account key (Account.Key).

Responses:

Status Description Schema
200 OK FlexPropertyModel
401 Unauthorized ProblemDetails
403 Forbidden ProblemDetails
404 Not Found ProblemDetails

DELETE /v1/accounts/{accountKey}/metadata/flex

Removes the Flex-domain metadata from the specified property account. Preserves all other metadata entries on the account.

Parameter In Required Description
accountKey path yes The dhango-assigned account key (Account.Key).

Responses:

Status Description Schema
204 No Content
401 Unauthorized ProblemDetails
403 Forbidden ProblemDetails