Skip to main content

Update Bill

PUT 

/api/bills/:id

Updates an existing bill's header data and allocations.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Fields:

  • invoice_number (required): Updated invoice number
  • invoice_date (required): Updated invoice date (YYYY-MM-DD)
  • supplier_id (required): Supplier ID — must be a service-type supplier
  • currency_id (optional): Currency ID
  • currency_rate (optional): Exchange rate
  • proration_strategy (optional): One of cost_based, quantity_based, manual
  • allocations (optional): Updated allocations array (replaces existing)

Allowed proration_strategy values: cost_based, quantity_based, weight_based, volume_based, specific_line, revenue_based, manual, duty_estimate_based. duty_estimate_based ("By estimated duty") splits the bill across purchase order lines in proportion to each line's estimated customs duty — the duty frozen at receipt, or the shipment-stage estimate for units not yet received. If every covered line's estimated duty is zero it falls back to cost_based and the bill response carries an allocation_warnings entry with code duty_estimates_zero_fallback.

Request​

Responses​

OK

Response Headers
    Content-Type