Skip to main content
PUT
Replace an additional charge of an invoice

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Path Parameters

invoiceId
string<uuid>
required

The unique identifier of the invoice in our system.

lineItemId
string<uuid>
required

The unique identifier of the line item of the additional charge in our system.

Body

application/json

The additional charge that replaces the one that the path names. Leave itemId out, or send null, when the additional charge names no catalog item.

productId
string<uuid>
required

The unique identifier of the product that the additional charge belongs to.

name
string
required

The name of the additional charge, as the invoice shows it.

Example:

"Taxa de entrega extra"

amount
integer
required

The amount that the additional charge bills, in cents.

Required range: x >= 1
startDate
string<date>
required

The first day of the period that the additional charge bills.

endDate
string<date>
required

The last day of the period that the additional charge bills.

itemId
string<uuid> | null

The unique identifier of the catalog item that the additional charge bills. Null when the additional charge names no item.

Response

The additional charge that replaces the one that the path names, with a new lineItemId. Monetary amounts are integers in cents.

lineItemId
string<uuid>
required

The unique identifier of the line item of the additional charge in our system.

productId
string<uuid>
required

The unique identifier of the product that the additional charge belongs to.

itemId
string<uuid> | null
required

The unique identifier of the catalog item that the additional charge bills. Null when the additional charge names no item.

name
string
required

The name of the additional charge, as the invoice shows it.

Example:

"Taxa de entrega extra"

amount
integer
required

The amount that the additional charge bills, in cents.

Required range: x >= 1
startDate
string<date>
required

The first day of the period that the additional charge bills.

endDate
string<date>
required

The last day of the period that the additional charge bills.