This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
| Parameter | Type | Description |
|---|---|---|
| id | integer | Invoice ID to update |
| Field | Type | Description |
|---|---|---|
| date | string | Invoice date (YYYY-MM-DD) |
| notes | string | Invoice notes |
| discount | number | Percentage discount |
| discount_amount | number | Fixed amount discount |
| draft | integer | Draft status (0/1) |
| po_number | string | Purchase order number |
| payment_status | integer | Payment status (only if sufficient permissions) |
{
"Invoice": {
"date": "2023-03-24",
"notes": "Updated invoice for March services",
"discount": 5
}
}{
"code": 200,
"result": "successful"
}curl --location -g --request PUT '{{subdomain}}/api2/api2/invoices/{{id}}.json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: text/plain' \
--data-raw '{
"Invoice": {
"date": "2023-03-24",
"notes": "Updated invoice for March services",
"discount": 5
}
}'{}