# Customer contacts

Section: Customers. Part of the [API reference](https://developer.yoprint.com/reference.md). Web page: https://developer.yoprint.com/reference/customer-contacts/

This page and all 9 operation pages, in 2 files: https://developer.yoprint.com/llms/customer-contacts.txt (operations 1 to 6), https://developer.yoprint.com/llms/customer-contacts-2.txt (operations 7 to 9)

The people at a customer. One contact can be primary; documents and emails use the contacts you pick.

## Operations (9)

- [Add a contact to a customer](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-store.md): `POST /v1/api/store/{team_slug}/customer/{hash_id}/contact`. Adds a contact to the customer and returns it.
- [Create or update a customer contact by email or phone](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-upsert.md): `POST /v1/api/store/{team_slug}/customer/{hash_id}/contact/upsert`. Updates the customer's contact that has this `email` or `phone`, or adds a new contact.
- [List a customer's contacts](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-index.md): `GET /v1/api/store/{team_slug}/customer/{hash_id}/contact`. Lists every contact of the customer, deleted ones included: check `trashed`.
- [Get a customer contact](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-show.md): `GET /v1/api/store/{team_slug}/customer/{hash_id}/contact/{id}`. Returns one live contact of the customer.
- [Update a customer contact](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-update-put.md): `PUT /v1/api/store/{team_slug}/customer/{hash_id}/contact/{id}`. Changes the fields you send and returns the contact.
- [Update a customer contact (PATCH)](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-update-patch.md): `PATCH /v1/api/store/{team_slug}/customer/{hash_id}/contact/{id}`. Changes the fields you send and returns the contact.
- [Set the primary contact](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-primary.md): `PATCH /v1/api/store/{team_slug}/customer/{hash_id}/contact/{id}/primary`. Makes this contact the customer's primary contact; the previous primary contact stops being primary.
- [Delete a customer contact](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-destroy.md): `DELETE /v1/api/store/{team_slug}/customer/{hash_id}/contact/{id}`. Deletes a contact.
- [Restore a deleted customer contact](https://developer.yoprint.com/reference/customer-contacts/v1-customer-contact-restore.md): `PATCH /v1/api/store/{team_slug}/customer/{hash_id}/contact/{id}/restore`. Brings back a deleted contact.
