---
title: "Generate an MPM QR"
method: POST
path: "/v3/qr/mpm/generate"
---

# Generate an MPM QR

`POST /v3/qr/mpm/generate`

Generate a Merchant Presenter Mode QR

## Request body

- object
  - `nation` 'ph', required — The nation in which the QR is to be transacted in.
  - `mode` 'p2p' | 'p2b' | 'p2m' | 'p2micro', required — The QR mode to be used.
  - `type` 'dynamic' | 'static', required — The type of QR to be generated. Dynamic QRs require the `transaction_amount` field to be populated, while static QRs will prompt the user for the amount upon scanning.
  - `metadata` object — Arbitrary metadata, to be used for merchants in identifying individual QRs.
  - `transaction_currency` 'PHP', required — The transaction currency in which the transaction amount will be in (e.g. PHP)
  - `transaction_amount` integer — The transaction amount in the smallest denominator of the transaction currency, e.g. centavos for PHP. This is required for dynamic QRs and must not be specified for static QRs For example, an amount of 15 Pesos means `transaction_amount=1500`
  - `expiry_seconds` integer — How many seconds until the QR expires from 60 to 9000 seconds, only applies to dynamic QRs.
  - `qr_image` boolean — Whether or not to include a base64 encoded image of the QR

## Response `200`

- object
  - `data` object
    - `id` string
    - `nation` string
    - `type` string
    - `mode` string
    - `status` string
    - `metadata` object
      - `nested` object
        - `key with space` integer
      - `testmetakey` string
    - `merchant_category_code` string
    - `transaction_currency` string
    - `transaction_amount` integer
    - `country_code` string
    - `merchant_name` string
    - `merchant_city` string
    - `postal_code` string
    - `bic` string
    - `merchant_id` string
    - `credit_account_number` string
    - `proxy_notify_flags` string
    - `reference_label` string
    - `purpose_of_transaction` string
    - `created_at` string
    - `updated_at` string
    - `expires_at` string
    - `qr_string` string

---

[API](https://skmtc.net/paymongo/apis/paymongo-api.md) · [All operations](https://skmtc.net/paymongo/apis/paymongo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymongo/paymongo-api/revisions/c18f9a027b2c/schema)
