Skip to main content
PUT
Update Invoice
The PUT request is used to fully replace an existing entity with a new one based on the provided ID. This means:
  • All fields in the request body will overwrite the existing entity.
  • Any missing fields will be removed from the entity.
  • The request is idempotent, meaning multiple identical PUT requests will always result in the same final state.

Authorizations

X-API-Key
string
header
required

API Key for authentication

Path Parameters

id
string
required

Invoice ID

Body

application/json

Invoice

reference_id
string
required
Maximum string length: 255
Example:

"INV-20250101"

order_id
string
required
Maximum string length: 255
Example:

"ORD-20250101"

invoice_number
string
required
Maximum string length: 255
Example:

"INV-20250101"

total_amount
number
required
Example:

1000000

paid_amount
number
required
Required range: x >= 0
Example:

0

due_date
string
required
Example:

"2025-01-01T00:00:00Z"

items
object[]
required
status
enum<string>
Available options:
PAID,
PENDING,
PARTIALLY_PAID,
OVERPAID
Example:

"PAID"

remarks
string
Maximum string length: 255
Example:

"Remarks"

url
string
Example:

"https://example.com/invoice/INV-20250101"

created_at
string
Example:

"2025-01-01T00:00:00Z"

updated_at
string

Updated at must be later than the order creation date

Example:

"2025-01-01T00:00:00Z"

Response

Created

data
object