Skip to main content
PATCH
Update invoice

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Path Parameters

id
integer
required

ID of the invoice to update

Body

application/json
company_id
integer

ID of the company (customer) this invoice is for

order_date
string<date>

Invoice date (YYYY-MM-DD)

payment_terms
string

Payment terms label (e.g. "Net 30")

ship_by_date
string<date> | null

Required ship by date (YYYY-MM-DD)

customer_po_number
string | null

Customer PO number

public_note
string | null

Note visible to the customer

private_note
string | null

Internal note

total_shipping
number<float> | null

Shipping charge to apply to the invoice

tax_amount
number<float> | null

Tax amount

order_discount_amount
number<float> | null

Order-level discount amount

warehouse_id
integer | null

Warehouse ID to associate with the invoice

sales_channel_id
integer | null

Sales channel ID

revenue_account_id
integer | null

Chart of accounts ID for revenue recognition

invoice_export_template_id
integer | null

Export template ID

alternate_ids
string[] | null

Alternate identifier strings for the invoice

tags
string[] | null

Tags to attach to the invoice

custom_fields
object | null

Custom field key/value pairs

ship_to
object | null

Shipping address

currency_code
string | null

ISO 4217 currency code (3 letters) for the invoice presentment currency

exchange_rate
number<float> | null

Exchange rate from the presentment currency to the base currency (must be greater than 0)

presentment_total_amount
number<float> | null

Invoice total in the presentment currency

presentment_net_total_amount
number<float> | null

Net total in the presentment currency

presentment_paid_amount
number<float> | null

Amount paid in the presentment currency

presentment_tax_amount
number<float> | null

Tax amount in the presentment currency

presentment_shipping_amount
number<float> | null

Shipping amount in the presentment currency

presentment_discount_amount
number<float> | null

Discount amount in the presentment currency

items
object[]

Replacement line items for the invoice. When provided, this replaces all existing line items, so include every line you want to keep.

Minimum array length: 1

Response

Invoice updated

data
object