The invoice to update is selected by the
id field in the request body, not
by the {uuId} segment in the URL path. The path segment is cosmetic and is
ignored by the API — always send the target invoice id in the body.Authorization
Request Body
A unique identifier obtained when creating an invoice. This selects the invoice
to update (the
{uuId} URL segment is ignored).Example:6f8c19ff-5b97-4792-aa89-d2a12797b356paymentMethod determines the payment code returned by the API (for example a
VA number or a QRIS payload) for that specific method. The Mayar checkout page
link (link) still follows the payment methods configured in your Mayar
settings.Response
Successful ResponseMain Structure (Root)
data Structure (Object)
Errors
Returned when the API key is missing or invalid:
{ "statusCode": 401, "messages": "Unauthorized" }.Returned when no invoice matches the provided
id:
{ "statusCode": 404, "messages": "Invoice not found" }.