Pular para o conteúdo principal
PATCH
Partially updates a product charge. Send only the fields you want to change.

Autorizações

X-API-Key
string
header
obrigatório

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.

Parâmetros de caminho

productChargeId
integer<int64>
obrigatório

Product charge to update.

Corpo

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.

Exemplo:

3

UnitPrice
number<double> | null

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

Exemplo:

179

UnitCost
number<double> | null

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

Exemplo:

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.

Exemplo:

2

Resposta

OK

StatusCode
enum<integer>
Opções disponíveis:
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
Exemplo:

null

Notifications
object[]