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

Path parameters

organizationIdstringRequired
Organization ID
merchantIdstringRequired
Merchant ID
contactIdstringRequired
ID of the contact whose documents will be deleted

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

Array of document IDs to delete
documentslist of stringsRequired
Array of document IDs to delete. Contact must have at least one document remaining after deletion.

Response

Documents deleted successfully

Errors