Soft-delete a party
DELETE
/v1/tenants/{tenantId}/parties/{id}
const url = 'https://api.emite.cr/v1/tenants/example/parties/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.emite.cr/v1/tenants/example/parties/example \ --header 'Authorization: Bearer <token>'Sets deleted_at. Refused with 422 while any document names the contact as its counterpart (receiverId) — in either environment, whatever its status, drafts included. Use POST to reactivate by sending the same identification.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantId
required
string
Tenant UUID.
id
required
string
Party UUID.
Responses
Section titled “Responses”Party soft-deleted.
Missing or invalid JWT / API key
Tenant boundary violation or insufficient scope.
Party not found.
At least one document names the contact as its counterpart.