الانتقال إلى المحتوى الرئيسي
PATCH
Partially updates a product charge. Send only the fields you want to change.

التفويضات

X-API-Key
string
header
مطلوب

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.

معلمات المسار

productChargeId
integer<int64>
مطلوب

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
number<double> | null

Quantity to charge; greater than 0 and at most 99,999,999. Not clearable: null leaves it alone.

مثال:

3

UnitPrice
number<double> | null

Price of one unit, -99,999,999 to 99,999,999. Not clearable: null leaves it alone.

مثال:

179

UnitCost
number<double> | null

Cost of one unit, 0 to 99,999,999. Not clearable: null leaves it alone.

مثال:

142.5

Description
string | null

Description shown for the product. Send null to clear it; leave it out to keep it.

BillableStatusId
integer<int32> | null

1 Billable, 2 No charge, 3 Non-billable or 5 Void. Not clearable: null leaves it alone.

مثال:

2

الاستجابة

OK

StatusCode
enum<integer>
الخيارات المتاحة:
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
IsSuccess
boolean
Data
object

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.

DataContext
object | null
مثال:

null

Notifications
object[]