POST api/v2/accounts
Request
URI Parameters
Body Parameters
AccountNew| Name | Description | Type | Additional information |
|---|---|---|---|
| Identification | string | ||
| Complement | string | ||
| Color | string | ||
| Active | boolean | ||
| ReferenceKey | string | ||
| AccountTypeId | integer | ||
| PriceListId | integer | ||
| CultureId | string | ||
| Emails | Collection of AccountEmailNew | ||
| Infos | Collection of AccountInfoNew | ||
| Addresses | Collection of AccountAddressNew | ||
| AccountAccounts | Collection of AccountAccountNew | ||
| ServiceCenters | Collection of ServiceCenterNew |
Request Formats
application/json, text/json
Sample:
{
"Identification": "sample string 1",
"Complement": "sample string 2",
"Color": "sample string 3",
"Active": true,
"ReferenceKey": "sample string 5",
"AccountTypeId": 6,
"PriceListId": 1,
"CultureId": "sample string 7",
"Emails": [
{
"Email": "sample string 1",
"EmailTypeId": 2,
"RequiredValue": true
},
{
"Email": "sample string 1",
"EmailTypeId": 2,
"RequiredValue": true
}
],
"Infos": [
{
"InfoId": 1,
"InfoTypeId": 2,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 3",
"ForceScale": 1,
"ForceSignifDigits": 1,
"ValueText": "sample string 4",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:10:49.8069934Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7
},
{
"InfoId": 1,
"InfoTypeId": 2,
"MeasurementUnitId": 1,
"DisplayValue": "sample string 3",
"ForceScale": 1,
"ForceSignifDigits": 1,
"ValueText": "sample string 4",
"ValueInteger": 1,
"ValueFloat": 1.1,
"ValueDateTime": "2026-02-02T21:10:49.8069934Z",
"ValueBoolean": true,
"ValueAccountId": 1,
"DependentInfoId": 1,
"Inherited": true,
"RequiredValue": true,
"Order": 7
}
],
"Addresses": [
{
"District": "sample string 1",
"ZipCode": "sample string 2",
"Address1": "sample string 3",
"Address2": "sample string 4",
"Latitude": 1.1,
"Longitude": 1.1,
"Notes": "sample string 5",
"AddressTypeId": 6,
"CityId": 7,
"RequiredValue": true
},
{
"District": "sample string 1",
"ZipCode": "sample string 2",
"Address1": "sample string 3",
"Address2": "sample string 4",
"Latitude": 1.1,
"Longitude": 1.1,
"Notes": "sample string 5",
"AddressTypeId": 6,
"CityId": 7,
"RequiredValue": true
}
],
"AccountAccounts": [
{
"RelationshipAccountTypeId": 1,
"RelationshipAccountId": 2,
"Active": true,
"AccountPrimaryId": 1,
"AccountSecondaryId": 1,
"RequiredValue": true
},
{
"RelationshipAccountTypeId": 1,
"RelationshipAccountId": 2,
"Active": true,
"AccountPrimaryId": 1,
"AccountSecondaryId": 1,
"RequiredValue": true
}
],
"ServiceCenters": [
{
"Identification": "sample string 1"
},
{
"Identification": "sample string 1"
}
]
}
text/html
Sample:
{"Identification":"sample string 1","Complement":"sample string 2","Color":"sample string 3","Active":true,"ReferenceKey":"sample string 5","AccountTypeId":6,"PriceListId":1,"CultureId":"sample string 7","Emails":[{"Email":"sample string 1","EmailTypeId":2,"RequiredValue":true},{"Email":"sample string 1","EmailTypeId":2,"RequiredValue":true}],"Infos":[{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:10:49.8069934Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7},{"InfoId":1,"InfoTypeId":2,"MeasurementUnitId":1,"DisplayValue":"sample string 3","ForceScale":1,"ForceSignifDigits":1,"ValueText":"sample string 4","ValueInteger":1,"ValueFloat":1.1,"ValueDateTime":"2026-02-02T21:10:49.8069934Z","ValueBoolean":true,"ValueAccountId":1,"DependentInfoId":1,"Inherited":true,"RequiredValue":true,"Order":7}],"Addresses":[{"District":"sample string 1","ZipCode":"sample string 2","Address1":"sample string 3","Address2":"sample string 4","Latitude":1.1,"Longitude":1.1,"Notes":"sample string 5","AddressTypeId":6,"CityId":7,"RequiredValue":true},{"District":"sample string 1","ZipCode":"sample string 2","Address1":"sample string 3","Address2":"sample string 4","Latitude":1.1,"Longitude":1.1,"Notes":"sample string 5","AddressTypeId":6,"CityId":7,"RequiredValue":true}],"AccountAccounts":[{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1,"RequiredValue":true},{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1,"RequiredValue":true}],"ServiceCenters":[{"Identification":"sample string 1"},{"Identification":"sample string 1"}]}
Response
integerResponse Format
application/json, text/json, text/html
Sample:
1