Delete contact documents
Deletes specified contact documents with the following validations:
1. **Document Validation**:
- All specified documents must exist and belong to the contact
- Contact must have at least one document remaining after deletion
- Cannot delete all documents from a contact
2. **Default Document Handling**:
- If the default document is deleted, the first remaining document will be set as default
- Documents are ordered by creation date for default selection
3. **Permissions**:
- User must have MERCHANT_CONTACTS_EDIT_CONTACT permission
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
organizationId
Organization ID
merchantId
Merchant ID
contactId
ID of the contact whose documents will be deleted
Headers
x-admin-api-key
Request
This endpoint expects an object.
documents
Array of document IDs to delete. Contact must have at least one document remaining after deletion.