POST /v1/customers/:id/contacts

Associates a collection of contacts with any given customer.

curl -XPOST \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer 795d966936e24e19d4f9455be5ce44a4fd1d489623b966d20acf53ac0994cdfa" \
  https://api.invisiblecollector.com/v1/customers/2314234/contacts
  --data '...'
# example available soon
// example available soon
// example available soon

Endpoint

POST https://api.invisiblecollector.com/v1/customers/:id/contacts

Request body

The request is simply a list of contacts with following structure:

Attribute Type Mandatory Default Description
name string yes N/A The name of the contact.
email string no N/A The contact’s email address.
phone string no N/A The contact’s phone number.
mobile string no N/A The contact’s phone number.

Response body

Customer

Attribute Type Description
name string The name of this customer.
externalId string An external identification of this customer. Mainly used to facilitate integration with external systems.
vatNumber string The customer’s unique identification number for tax purposes.
address string The customer’s address.
zipCode string The customer’s zip code.
city string The customer’s city.
country string The customer’s ISO 3166-1 country code.
email string The customer’s email address. Will be used as the destination for email notifications.
phone string The customer’s phone number
mobile string The customer’s mobile number
gid string An unique identifier of this customer which can be used to retrive it.
locale string The customer’s locale. Will be used to set the language of notifications sent to the customer.
contacts array A list of registered secondary contacts linked to this customer.

Contact

Attribute Type Description
name string The name of this contact.
email string The contact's email address.
phone string The contact phone number
mobile string The contact mobile number

Errors

This endpoint may return the following errors

HTTP Code Description
401 Unauthorized Invalid credentials were supplied
404 Not found The user doesn’t have any customer registered with that specific id.

Feedback

If you have a question that needs an answer, please contact support.