/invoice/delete/item
This action deletes an invoice item from the invoice associated with a work order.
Request
| Field | Description | Type | Required |
|---|---|---|---|
line_id | Unique identifier for the invoice item in the invoice | number | Yes |
Example:
{
"line_id": 875
}
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{"line_id":875}' \
https://ppw.web/svc/invoice/delete/item
Response
| Field | Description | Type |
|---|---|---|
result | Delete invoice item result string | string |
Example successful response:
{
"result": "Invoice item deleted"
}
Errors
| Error Type | Description | Status Code |
|---|---|---|
access_denied | Access token is invalid or expired | 401 |
scope_invalid | Client app does not have the required OAuth scope | 403 |
line_id_required | line_id is required | 400 |