Creates a new contact info for the company with the specified id.

POST

Creates a new contact info for the company with the specified id.

Required Permissions: The user must be an admin or have company-master-data:write permissions.

Path parameters

companyIdstringRequired

The id of the company.

Request

This endpoint expects an object.
typestringRequired=0 characters

The type of the contact info. Possible values are: ‘phone’, ‘email’, ‘address’, ‘custom’.

labelstringOptional=0 characters

The label of the contact info. Only necessary if type ‘custom’ is used.

valuestringOptional=0 characters

The value of the contact info.

subTypestringOptional=0 characters

The subtype of the contact info, Possible values are: phone: [ ‘central’, ‘other’ ] email: [ ‘central’, ‘invoice’, ‘other’ ] address: [ ‘central’, ‘invoice’, ‘other’ ] url: [ ‘primary’, ‘other’]

addressLine1stringOptional=0 characters

The first address line of the contact info.

addressLine2stringOptional=0 characters

The second address line of the contact info.

zipCodestringOptional=0 characters

The zipcode of the contact info.

citystringOptional=0 characters

The city of the contact info.

statestringOptional=0 characters

The state of the contact info.

countrystringOptional=0 characters

The 2 letter iso code of the country.

isAddressbooleanOptional

Flags whether this contact info is an address. If it’s an address, the address fields are required.

Response

OK

typestring=0 characters

The type of the contact info. Possible values are: ‘phone’, ‘email’, ‘address’, ‘custom’.

labelstringOptional=0 characters

The label of the contact info. Only necessary if type ‘custom’ is used.

valuestringOptional=0 characters

The value of the contact info.

subTypestringOptional=0 characters

The subtype of the contact info, Possible values are: phone: [ ‘central’, ‘other’ ] email: [ ‘central’, ‘invoice’, ‘other’ ] address: [ ‘central’, ‘invoice’, ‘other’ ] url: [ ‘primary’, ‘other’]

addressLine1stringOptional=0 characters

The first address line of the contact info.

addressLine2stringOptional=0 characters

The second address line of the contact info.

zipCodestringOptional=0 characters

The zipcode of the contact info.

citystringOptional=0 characters

The city of the contact info.

statestringOptional=0 characters

The state of the contact info.

countrystringOptional=0 characters

The 2 letter iso code of the country.

isAddressbooleanOptional

Flags whether this contact info is an address. If it’s an address, the address fields are required.

idstringOptional

The Id of the contact info.

createdOndatetimeOptional

The date this entity was created.

createdBystringOptional

The id of the user who created this entity.

updatedOndatetimeOptional

The date this entity was last modified.

updatedBystringOptional

The id of the user who last modified this entity.