-
Notifications
You must be signed in to change notification settings - Fork 2
46 Object Address
A postal address can be assigned to any object.
POST /api/v1/object/addressGet or set the postal address for an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. | |
| addresses | JSON array | null OR json | Variant. JSON array of address objects. |
addresses format:
| Key | Type | Description |
|---|---|---|
| id | UUID | Variant. Address identifier. |
| parent | UUID | Optional. Parent identifier. |
| type | STRING | Optional. Address type code. |
| code | STRING | Required if no other keys are specified. KLADR code: CC SS RRR CCC TTT SSSS. Where: CC = country code; SS = federal subject code; RRR = district code; CCC = city code; TTT = settlement code; SSSS = street code. |
| index | STRING | Optional. Postal code (ZIP). |
| country | STRING | Optional. Country. |
| region | STRING | Optional. Region. |
| district | STRING | Optional. District. |
| city | STRING | Optional. City. |
| settlement | STRING | Optional. Settlement. |
| street | STRING | Optional. Street. |
| house | STRING | Optional. House number. |
| building | STRING | Optional. Building. |
| structure | STRING | Optional. Structure. |
| apartment | STRING | Optional. Apartment. |
| address | STRING | Optional. Full address as a string. |
NOTE: If the id value is not specified or is null, a new postal address will be created; otherwise the existing address will be updated.
NOTE: If the addresses value is not specified or is null, the method works as Get; otherwise it works as Set.
POST /api/v1/object/address/setAssociate a previously created postal address with an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. | |
| address | JSON array | Required. Address identifier. | |
| datefrom | TIMESTAMP | Optional. Period start date. |
POST /api/v1/object/address/getRetrieve the postal address associated with an object.
Request parameters:
| Name | Type | Value | Description |
|---|---|---|---|
| id | UUID | Required. Object identifier. | |
| fields | JSON array | Optional. JSON array of field names to return. If omitted, the request returns all fields. |
POST /api/v1/object/address/listRetrieve postal addresses for an object as a list.
Request parameters: Common list request parameters
Concepts
API Guide
Authentication & Session
- Connection
- Registration
- Authorization (OAuth 2.0)
- Sign In
- Sign Out
- Password Recovery
- Verification Codes
- Authentication
- Authorization
- Who Am I?
Core Services
Object & Workflow Endpoints
Schema & Internals
Configuration Developer Guide
- Configuration Guide
- Creating an Entity
- Creating a Document
- Creating a Reference
- Workflow Customization
- REST Endpoint Guide
- Event Handler Guide
Operations