- drafts
- test 23
- Welcome
- Getting Started
- Authorization
- OverView
- Sample APIs
- Client
- Product
- Category
- Invoices
- Clients
- Products
- Suppliers
- Taxes
- General Listing
- Site Info
- Staff
- Authentication
- Api V2
- Last
- 1. Invoices
- 2. Estimates
- 3. Credit Notes
- 5. Clients
- 6. Suppliers
- 7. Work Orders
- 8. Client Appointments
- 9. Invoice Appointments
- 10. Estimate Appointments
- 11. Work Order Appointments
- 12. Notes
- Invoices
- Full Version
- Invoices
- Estimates
- Credit Notes
- Refund Receipts
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Staff
- Client Attendance
- Client Appointments
- Invoice Appointments
- Estimate Appointments
- Work Order Appointments
- Notes
- Products
- Time Tracking
- Work Orders
- Product Categories
- Taxes
- Invoice Payments
- Client Payments
- Expenses
- Incomes
- Stores
- Treasuries
- Stock Transactions
- Journals
- Journal Accounts
- Journal Categories
- Follow Up Statuses
- Follow Up Actions
- General Listing
- Site Info
- Authentication
- Documentation
- tests
- Authentication
- Site Information
- Invoices
- Estimates
- Credit Notes
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Products
- General Listings
- Edit Estimate
- Delete Estimate
- Edit Credit Note
- Delete Credit Note
- Edit Refund Receipt
- Delete Refund Receipt
- Edit Purchase Order
- Delete Purchase Order
- Edit Purchase Refund
- Delete Purchase Refund
- Edit Client
- Delete Client
- Edit Supplier
- Delete Supplier
- Edit Product
- Delete Product
- Docs
- Untitled Doc
- Invoices
- Estimates
- Credit Notes
- Refund Receipts
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Staff
- Client Attendance
- Client Appointments
- Invoice Appointments
- Estimate Appointments
- Work Order Appointments
- Notes
- Products
- Time Tracking
- Work Orders
- Product Categories
- Taxes
- Invoice Payments
- Client Payments
- Expenses
- Incomes
- Stores
- Treasuries
- Stock Transactions
- Journals
- Journal Accounts
- Journal Categories
- Follow Up Statuses
- Follow Up Actions
- General Listing
- Site Info
- Authentication
- Documentation
- ttt
- Authentication
- Site Information
- Invoices
- Estimates
- Credit Notes
- Purchase Orders
- Purchase Refunds
- Clients
- Suppliers
- Products
- General Listings
- Edit Estimate
- Delete Estimate
- Edit Credit Note
- Delete Credit Note
- Edit Refund Receipt
- Delete Refund Receipt
- Edit Purchase Order
- Delete Purchase Order
- Edit Purchase Refund
- Delete Purchase Refund
- Edit Client
- Delete Client
- Edit Supplier
- Delete Supplier
- Edit Product
- Delete Product
Delete Invoice
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
DELETE
{{subdomain}}/api2
Last modified:2025-03-23 22:24:55
Maintainer:Not configured
Required URL Parameter#
Parameter | Type | Description |
---|---|---|
id | integer | Invoice ID to delete |
Constraints#
Response#
{
"code": 200,
"result": "successful"
}
Error Responses#
{
"result": "failed",
"code": 400,
"message": "Can't delete item. Remove its transactions first."
}
{
"result": "failed",
"code": 404,
"message": "Item not found"
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request DELETE '{{subdomain}}/api2/api2/invoices/{{id}}.json' \
--header 'Authorization: Bearer {{token}}'
Response Response Example
{}
Request
Path Params
id
stringÂ
required
Example:
123
Header Params
Authorization
stringÂ
required
Example:
Bearer {{token}}
Responses
🟢200Success
application/json
Body
object {0}