GET /v1/customers/:id/contacts
Returns a list of contacts from the customer with a specific id.
The provided id
is the global id Invisible Collector assigned to the customer when it was first registered;
curl -XGET \
--header "Content-Type: application/json" \
--header "Authorization: Bearer 795d966936e24e19d4f9455be5ce44a4fd1d489623b966d20acf53ac0994cdfa" \
https://api.invisiblecollector.com/v1/customers/2314234/contacts
require "net/https"
require "uri"
uri = URI.parse("https://api.invisiblecollector.com/v1/customers/2314234/contacts")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri.request_uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer 4a415cc660e67d8f4d26d5a7f390183a86fc3a4524ded78dc2448e86c48b2739'
response = http.request(request)
// example available soon
// example available soon
Endpoint
GET https://api.invisiblecollector.com/v1/customers/:id/contacts
Response body
Contact
<tr>
<td>email</td>
<td>string</td>
<td>The contact's email address.</td>
</tr>
<tr>
<td>phone</td>
<td>string</td>
<td>The contact phone number</td>
</tr>
<tr>
<td>mobile</td>
<td>string</td>
<td>The contact mobile number</td>
</tr>
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. |