Direct payments

Collect money by virtual account or QRIS straight from the API, with no payment link.

Direct payments

Direct payments collect money without a payment link or checkout page. Momen issues a virtual account number or a QRIS code at once and returns it in instructions. Show it to your payer, then wait for the webhook.

There is one endpoint per group. The group decides the request, the shape of instructions and the generated title.

GroupEndpointinstructions.typeTitle
Virtual accountPOST /v1/payments/vavirtual_account<Bank> VA - <va_number>
QRISPOST /v1/payments/qrisqrisQRIS - <external_id>

The method must be enabled for your company. E-wallet, card and other banks are not available here. Read payments back with GET /v1/payments and GET /v1/payments/{id}, which cover both groups. The list takes a payment_method filter: QRIS, VA_BRI, VA_BNI, VA_MANDIRI, VA_BSI, VA_BCA, VA_PERMATA, VA_CIMB, VA_DANAMON or VA_MAYBANK.

title is never sent by you. type is always API Payment and created_by is your API key ({ "type": "API", "id", "name" }, where name is the key's name).

Virtual account (VA)

POST /v1/payments/va. All banks share one request and response shape. Send bank (required): BRI, BNI, MANDIRI, BSI, BCA, PERMATA, CIMB, DANAMON or MAYBANK. It is not case-sensitive, so mandiri is accepted.

Request:

{
  "amount": 150000,
  "bank": "MANDIRI",
  "reference_id": "ORDER-2026-1042"
}

201 response (data, trimmed):

{
  "title": "Mandiri VA - 0819189101901",
  "status": "pending",
  "payment_method": "VA_MANDIRI",
  "instructions": {
    "type": "virtual_account",
    "bank": "MANDIRI",
    "va_number": "0819189101901",
    "qr_string": null,
    "qr_image_url": null
  }
}
  • Show bank and va_number to the payer. They transfer the exact amount to that number.
  • qr_string and qr_image_url are always null.
  • The response payment_method is VA_<BANK> (VA_MANDIRI), which is also the value for the list filter.
  • Errors: bank missing is 422 parameter_missing. A bank outside the list, or one not enabled for your company, is 422 parameter_invalid with param: bank. An amount above the bank's limit is 422 parameter_invalid with param: amount.
  • Some banks cap the amount. Over the cap the call returns 422 parameter_invalid with param: amount, before any provider call. Singapay caps: BCA Rp10.000.000; Permata, CIMB, Danamon and BSI Rp50.000.000; Mandiri Rp100.000.000; BNI, BRI and Maybank Rp250.000.000. LinkQu takes up to Rp2.000.000.000 on every bank.
  • Title examples: Mandiri VA - 0819189101901, BNI VA - 2898101221.

QRIS

POST /v1/payments/qris. There is no payment_method or bank field.

A QRIS payment is limited per transaction by the provider that issues it for your company: Rp10.000.000 on Singapay, Rp20.000.000 on LinkQu. Over it the call returns 422 parameter_invalid with param: amount, before any provider call.

Request:

{
  "amount": 75000,
  "expires_at": "2026-09-20T16:59:00Z"
}

201 response (data, trimmed):

{
  "title": "QRIS - 278291081",
  "status": "pending",
  "payment_method": "QRIS",
  "instructions": {
    "type": "qris",
    "bank": null,
    "va_number": null,
    "qr_string": "0002010102122667...",
    "qr_image_url": "https://example.com/qris/278291081.png"
  }
}
  • Render qr_string as a QR code, or show qr_image_url when it is set.
  • bank and va_number are always null.
  • The number in the title is the provider's external_id. The provider issues no RRN at creation, so it is not used.
  • QRIS expiry is capped at 24 hours by the provider.
  • If QRIS is not enabled for your company, the request fails with 422 parameter_invalid and no param.

Common behavior

  • category_id is optional. Omitted, it falls back to your default Money In category.
  • expires_at defaults to 24 hours. The value in the response is authoritative and can be earlier than requested.
  • Fees are known at creation, so fee, payer_amount and net_amount are never null.
  • Send an Idempotency-Key on every create call. See Idempotency.
  • Status values follow Payment link status. Direct payments cannot be cancelled.
  • Webhooks: payment_link.succeeded and payment_link.expired, with data in the GET /v1/payments/{id} shape.

If the provider fails

A 502 provider_unavailable means Momen did not get a confirmation. If the provider rejected the request, the attempt is kept as a canceled payment titled <Method> - pending. After a timeout or dropped connection the payment stays pending, and the payer can still pay it if the VA or QR was issued. Check GET /v1/payments, or retry with the same Idempotency-Key, before creating another one.

On this page