Creates a new company address.
Request Information
URI Parameters :
None.
Body Parameters :
db_address_company| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary key |
globally unique identifier | |
| name |
Name of the address |
string |
Max length: 50 |
| street |
Street |
string |
Max length: 100 |
| street2 |
Bus |
string |
Max length: 100 |
| street_number |
Street number. Can be not used |
string |
Max length: 50 |
| zip |
Zip code |
string |
Max length: 50 |
| city |
City |
string |
Max length: 50 |
| phone |
Phone number |
string |
Max length: 50 |
| mobile |
Cell phone number |
string |
Max length: 50 |
| fax |
Fax number |
string |
Max length: 50 |
|
Email address |
string |
Max length: 250 |
|
| url |
Url |
string |
Max length: 255 |
| db_country_id |
Foreign key to table Country |
globally unique identifier | |
| latitude_decimal |
Latitude of the address, used for map display and route optimization. |
decimal number | |
| longitude_decimal |
Longitude of the address, used for map display and route optimization. |
decimal number | |
| archived |
You cannot delete an address. The only way is to archive it. |
boolean | |
| company_id |
Foreign key of the company this address belongs to. |
globally unique identifier | |
| db_address_type_id |
Foreign key to the db_address_type. Please use controller DbAddressType to find the correct it to use |
globally unique identifier | |
| db_state_id |
Foreign key to the db_state |
globally unique identifier | |
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Request Formats :
application/json, text/json
{
"id": "9f95c63f-ae74-46e2-864f-363bf44aace4",
"name": "sample string 2",
"street": "sample string 3",
"street2": "sample string 4",
"street_number": "sample string 5",
"zip": "sample string 6",
"city": "sample string 7",
"phone": "sample string 8",
"mobile": "sample string 9",
"fax": "sample string 10",
"email": "sample string 11",
"url": "sample string 12",
"db_country_id": "125abe0a-6ee6-45f5-a444-48192907e0ca",
"latitude_decimal": 14.0,
"longitude_decimal": 15.0,
"archived": true,
"company_id": "33883df1-8321-4fc5-b851-1f106f10a278",
"db_address_type_id": "8ac00751-f5de-465b-a36b-9c86fd50f55a",
"db_state_id": "241f8c8c-0ced-40a0-bfc6-fe09db1c5334",
"modified_dateutc": "2026-09-16T08:35:21.3790692+00:00"
}
application/xml, text/xml
<db_address_company xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Odyssee.ServiceAppAPI.Models"> <archived>true</archived> <city>sample string 7</city> <company_id>33883df1-8321-4fc5-b851-1f106f10a278</company_id> <db_address_type_id>8ac00751-f5de-465b-a36b-9c86fd50f55a</db_address_type_id> <db_country_id>125abe0a-6ee6-45f5-a444-48192907e0ca</db_country_id> <db_state_id>241f8c8c-0ced-40a0-bfc6-fe09db1c5334</db_state_id> <email>sample string 11</email> <fax>sample string 10</fax> <id>9f95c63f-ae74-46e2-864f-363bf44aace4</id> <latitude_decimal>14</latitude_decimal> <longitude_decimal>15</longitude_decimal> <mobile>sample string 9</mobile> <modified_dateutc>2026-09-16T08:35:21.379Z</modified_dateutc> <name>sample string 2</name> <phone>sample string 8</phone> <street>sample string 3</street> <street2>sample string 4</street2> <street_number>sample string 5</street_number> <url>sample string 12</url> <zip>sample string 6</zip> </db_address_company>
Response Information
Resource Description :
IHttpActionResult containing the created company address.
db_address_company| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary key |
globally unique identifier | |
| name |
Name of the address |
string |
Max length: 50 |
| street |
Street |
string |
Max length: 100 |
| street2 |
Bus |
string |
Max length: 100 |
| street_number |
Street number. Can be not used |
string |
Max length: 50 |
| zip |
Zip code |
string |
Max length: 50 |
| city |
City |
string |
Max length: 50 |
| phone |
Phone number |
string |
Max length: 50 |
| mobile |
Cell phone number |
string |
Max length: 50 |
| fax |
Fax number |
string |
Max length: 50 |
|
Email address |
string |
Max length: 250 |
|
| url |
Url |
string |
Max length: 255 |
| db_country_id |
Foreign key to table Country |
globally unique identifier | |
| latitude_decimal |
Latitude of the address, used for map display and route optimization. |
decimal number | |
| longitude_decimal |
Longitude of the address, used for map display and route optimization. |
decimal number | |
| archived |
You cannot delete an address. The only way is to archive it. |
boolean | |
| company_id |
Foreign key of the company this address belongs to. |
globally unique identifier | |
| db_address_type_id |
Foreign key to the db_address_type. Please use controller DbAddressType to find the correct it to use |
globally unique identifier | |
| db_state_id |
Foreign key to the db_state |
globally unique identifier | |
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Response Formats
application/json, text/json
{
"id": "fe1704e6-964b-4a0c-b071-0275293f6e50",
"name": "sample string 2",
"street": "sample string 3",
"street2": "sample string 4",
"street_number": "sample string 5",
"zip": "sample string 6",
"city": "sample string 7",
"phone": "sample string 8",
"mobile": "sample string 9",
"fax": "sample string 10",
"email": "sample string 11",
"url": "sample string 12",
"db_country_id": "61975815-6eee-46ef-ba3f-1bed345ea29e",
"latitude_decimal": 14.0,
"longitude_decimal": 15.0,
"archived": true,
"company_id": "3d89a80e-a276-4a37-92bd-d643466ac8d1",
"db_address_type_id": "3c617843-c6b4-4662-b2a9-26757e43db4f",
"db_state_id": "d3a36a41-e065-4f23-b386-6588b59d3366",
"modified_dateutc": "2026-09-16T08:35:21.4282346+00:00"
}
application/xml, text/xml
<db_address_company xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Odyssee.ServiceAppAPI.Models"> <archived>true</archived> <city>sample string 7</city> <company_id>3d89a80e-a276-4a37-92bd-d643466ac8d1</company_id> <db_address_type_id>3c617843-c6b4-4662-b2a9-26757e43db4f</db_address_type_id> <db_country_id>61975815-6eee-46ef-ba3f-1bed345ea29e</db_country_id> <db_state_id>d3a36a41-e065-4f23-b386-6588b59d3366</db_state_id> <email>sample string 11</email> <fax>sample string 10</fax> <id>fe1704e6-964b-4a0c-b071-0275293f6e50</id> <latitude_decimal>14</latitude_decimal> <longitude_decimal>15</longitude_decimal> <mobile>sample string 9</mobile> <modified_dateutc>2026-09-16T08:35:21.428Z</modified_dateutc> <name>sample string 2</name> <phone>sample string 8</phone> <street>sample string 3</street> <street2>sample string 4</street2> <street_number>sample string 5</street_number> <url>sample string 12</url> <zip>sample string 6</zip> </db_address_company>