Delete invoice attachment

View as MarkdownOpen in Claude
Deletes a file attached to an invoice.

Authentication

requestTokenstring
API Key authentication via header

Path parameters

filenamestringRequired

The filename in Payabli. Get this from the zipName field in the DocumentsRef.filelist array returned by /api/Invoice/{idInvoice}. Example: 0_Bill.pdf.

idInvoiceintegerRequired
Invoice ID

Response

Success
isSuccessboolean

Boolean indicating whether the operation was successful. A true value indicates success. A false value indicates failure.

responseCodeinteger

Code for the response. Learn more in API Response Codes.

responseDatastring or integer

If isSuccess = true, this contains the identifier of the invoice. If isSuccess = false, this contains the reason for the failure.

responseTextstring

Response text for operation: ‘Success’ or ‘Declined’.

pageidentifierstring or null
Auxiliary validation used internally by payment pages and components.
roomIdlong

Field not in use on this endpoint. It always returns 0.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error