Edit Invoice
Updates an existing invoice. Only invoices with PENDING status can be edited.
When to Use
▾
Use this endpoint when:
- Correcting invoice details (amount, description, expiry) before payment
At the moment, editing an invoice requires passing in all fields. Partial updates will be supported in the future.
Every field marked required must be included in each edit request, even when you are changing only one field. Missing fields return a 422 Unprocessable Entity with a VALIDATION_ERROR.
How to Use
▾
/api/v3/invoice/{id}- Provide the invoice
idin the URL path - Send the full set of invoice fields (changed and unchanged)
- Read the updated
itemin the response
Path Parameters
▾
Invoice ID
Example: 1779260530271049335
Request Parameters
▾
Merchant-defined reference ID
Example: my-order-001
Store ID
Example: 1608714483132458121
Email address of the payer
Example: [email protected]
Name of the payer
Example: John Doe
Subject line for the invoice email
Example: Your Invoice #001
Send email notification to the payer
Example: false
Invoice expiry date time (ISO 8601)
Example: 2026-05-21T08:02:00.000Z
Invoice amount in cents (e.g. 100 = RM 1.00)
Example: 120
Currency code
Example: MYR
Invoice description
Example: Order #001
URL to redirect the payer after payment
Example: https://example.com/success
Additional remarks
Response Parameters
▾
Updated invoice object. See [Get Invoices](./get-invoices) for the full field list.
Result code ("SUCCESS" on success).