Creates a new contact info for the company with the specified id.
Creates a new contact info for the company with the specified id.
Required Permissions
The user must be an admin or havecompany-master-data:write
permissions.Path parameters
companyId
The id of the company.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
type
The type of the contact info. Possible values are: ‘phone’, ‘email’, ‘address’, ‘custom’.
label
The label of the contact info.
Only necessary if type 'custom' is used.
value
The value of the contact info.
subType
The subtype of the contact info, Possible values are: phone: [ ‘central’, ‘other’ ] email: [ ‘central’, ‘invoice’, ‘other’ ] address: [ ‘central’, ‘invoice’, ‘other’ ] url: [ ‘primary’, ‘other’]
addressLine1
The first address line of the contact info.
addressLine2
The second address line of the contact info.
zipCode
The zipcode of the contact info.
city
The city of the contact info.
state
The state of the contact info.
country
The 2 letter iso code of the country.
isAddress
Flags whether this contact info is an address. If it's an address, the address fields are required.
Response
OK
type
The type of the contact info. Possible values are: ‘phone’, ‘email’, ‘address’, ‘custom’.
label
The label of the contact info.
Only necessary if type 'custom' is used.
value
The value of the contact info.
subType
The subtype of the contact info, Possible values are: phone: [ ‘central’, ‘other’ ] email: [ ‘central’, ‘invoice’, ‘other’ ] address: [ ‘central’, ‘invoice’, ‘other’ ] url: [ ‘primary’, ‘other’]
addressLine1
The first address line of the contact info.
addressLine2
The second address line of the contact info.
zipCode
The zipcode of the contact info.
city
The city of the contact info.
state
The state of the contact info.
country
The 2 letter iso code of the country.
isAddress
Flags whether this contact info is an address. If it's an address, the address fields are required.
id
The Id of the contact info.
createdOn
The date this entity was created.
createdBy
The id of the user who created this entity.
updatedOn
The date this entity was last modified.
updatedBy
The id of the user who last modified this entity.