# Vendor contacts

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

This page and all 8 operation pages, in one file: https://developer.yoprint.com/llms/vendor-contacts.txt

The people at a vendor. One contact can be primary.

## Operations (8)

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