The payment request 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 payment request
id in the body.Authorization
Request Body
A unique identifier obtained when creating a single payment request. This selects
the payment request to update (the
{uuId} URL segment is ignored).Example:6f8c19ff-5b97-4792-aa89-d2a12797b356The transaction expiration date and time. After this time, the payment link is
no longer valid.
paymentMethod 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 payment request matches the provided
id:
{ "statusCode": 404, "messages": "Payment not found" }.