Update a one-time invoice

POST https://api.tamio.com/v2/orders/update/{uuid}

Updates an existing one-time invoice with new customer details, products, payment configuration, and other settings.

Path Parameters

uuid string*

UUID of the one-time invoice to update

Body Parameters

customer object*
date object*

Invoice date (ISO format or Unix timestamp)

due_date object

Payment due date

label string
locale string
currency string*
taxes string
accountoff
prefix string
invoice_number integer
send_to_customer boolean
custom_payment string
payments array of string
fulfillment_options FulfillmentOptions
shipping object
products array of InvoiceProduct*

Responses

200 Invoice updated successfully

Invoice updated successfully

status integer
transaction object

Updated transaction object

invoice string

UUID of the updated invoice

400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/orders/update/{uuid}
1const response = await fetch("https://api.tamio.com/v2/orders/update/{uuid}", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "transaction": {},
  "invoice": "string"
}