The setting to charge admin fee and channel fee to the customer does not
apply to the Invoice feature.
Authorization
Request Body
Price per item. Negative values are accepted and can be used as a discount line
(e.g.
{ "description": "Diskon", "quantity": 1, "rate": -10000 }). The
invoice total must remain greater than zero.Restrict the invoice to a specific payment method (lowercase). Accepts one of
the following values:
qrisva/bniva/briva/mandiriva/cimbva/permatava/bjbva/bsiewallet/danaewallet/gopayewallet/linkajaewallet/shopeepayewallet/jeniusoutlet/alfamart
400 with
"Payment method \"...\" is not available or disabled".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.Cashtag associated with the invoice. Only required when using
ewallet/jeniuspay as the paymentMethod.Response
Successful ResponseMain Structure (Root)
data Structure (Object)
Errors
Returned when the request body fails validation:
{ "statusCode": 400, "messages": "Validation Error" } or
{ "statusCode": 400, "messages": "extraData Validation Error" }.Returned when the sum of
rate × quantity (plus tax) is not positive, e.g. a
discount line larger than the subtotal:
{ "statusCode": 400, "messages": "Invoice total must be greater than zero" }.Returned when the customer could not be found or created:
{ "statusCode": 404, "messages": "Customer not found and failed to create new customer" }.Returned when an invoice with the same identifier already exists:
{ "statusCode": 409, "messages": "already exist" }.