Partially updates a product charge. Send only the fields you want to change.
Every field is optional and a field left out keeps its value; Description clears with
null, and Quantity, UnitPrice, UnitCost and BillableStatusId
are not clearable. What it is charged to and the item cannot change - remove the charge and add
another. Re-sending values the charge already holds changes nothing. Returns the charge in the
GET /v1/product-charges/{productChargeId} shape.
Refused with 409, as the app hides Edit, while the ticket is closed, the task’s project is closed, or the charge is waiting to be invoiced or has been invoiced.
التفويضات
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
معلمات المسار
Product charge to update.
الجسم
Fields to change.
Partial update of a product charge. Every field is optional and a field left out keeps its value.
What it is charged to and the item cannot change: a body carrying TicketId, TaskId
or ItemId is rejected as malformed, like any unknown field.
Quantity to charge; greater than 0 and at most 99,999,999. Not clearable: null leaves it alone.
3
Price of one unit, -99,999,999 to 99,999,999. Not clearable: null leaves it alone.
179
Cost of one unit, 0 to 99,999,999. Not clearable: null leaves it alone.
142.5
Description shown for the product. Send null to clear it; leave it out to keep it.
1 Billable, 2 No charge, 3 Non-billable or 5 Void. Not clearable: null leaves it alone.
2
الاستجابة
OK
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511 A catalog item charged to a ticket or to a project task: a row on the ticket's or the task's
Products tab, billed with that ticket's or project's other charges. The shape
GET /v1/product-charges, GET /v1/product-charges/{productChargeId} and PATCH
return. Exactly one of TicketId and TaskId is set.
null