Skip to content

Delete a contract file from a customer

DELETE
/v1/customers/{id}/attachments/{attachmentId}
curl --request DELETE \
--url https://api.varman.io/v1/customers/cus_abc123/attachments/att_abc123 \
--header 'X-API-Key: <X-API-Key>'

Removes one contract file from a customer and deletes the stored file. Use list-customer-files to find the attachment ID.

id
required
string

Example

cus_abc123

Customer ID

attachmentId
required
string

Example

att_abc123

Attachment ID

Attachment deleted