POST api/v2/accounts

Request

URI Parameters

Body Parameters

AccountNew
NameDescriptionTypeAdditional 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
    },
    {
      "Email": "sample string 1",
      "EmailTypeId": 2
    }
  ],
  "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": "2025-08-04T18:39:44.3534753Z",
      "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": "2025-08-04T18:39:44.3534753Z",
      "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
    },
    {
      "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
    }
  ],
  "AccountAccounts": [
    {
      "RelationshipAccountTypeId": 1,
      "RelationshipAccountId": 2,
      "Active": true,
      "AccountPrimaryId": 1,
      "AccountSecondaryId": 1
    },
    {
      "RelationshipAccountTypeId": 1,
      "RelationshipAccountId": 2,
      "Active": true,
      "AccountPrimaryId": 1,
      "AccountSecondaryId": 1
    }
  ],
  "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},{"Email":"sample string 1","EmailTypeId":2}],"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":"2025-08-04T18:39:44.3534753Z","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":"2025-08-04T18:39:44.3534753Z","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},{"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}],"AccountAccounts":[{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1},{"RelationshipAccountTypeId":1,"RelationshipAccountId":2,"Active":true,"AccountPrimaryId":1,"AccountSecondaryId":1}],"ServiceCenters":[{"Identification":"sample string 1"},{"Identification":"sample string 1"}]}

Response

integer

Response Format

application/json, text/json, text/html

Sample:
1