API Documentation

Delete Document

This API endpoint allows you to delete a document such as an invoice, estimate, or purchase order.

Endpoint

DELETE /api/document/delete

Parameters

Parameter Type Description Required
doc_type String The type of document (invoice, estimate, purchase_order). Yes
guid String The unique identifier (GUID) of the document to delete. Yes

Example Request

DELETE /api/document/delete?doc_type=invoice&guid=your-document-guid
            

Response

{
    "success": true,
    "message": "Deleted successfully"
}
            

Error Response

{
    "success": false,
    "message": "Error message detailing what went wrong"
}