Skip to main content
POST
/
v1
/
payins
/
qr-code
curl --location --request POST 'https://stablecoin-api.sandbox.getmeru.com/v1/payins/qr-code' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data-raw '{
    "externalId": "EXT-10001",
    "orderId": "ORD-12345",
    "amount": 99.99,
    "taxAmount": 8.99,
    "currency": "USD",
    "expireAt": "2026-04-17T12:46:44.310Z",
    "onBehalfOf": "cus_123"
}'
{
  "success": true,
  "paymentId": "pay_3ddd0e5b-6276-4b48-b756-c1fcc9a2efd1",
  "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
  "expireAt": "2026-04-17T12:46:44.310Z"
}

Body

externalId
string
Client reference id (must be unique per company). If omitted, defaults to orderId.
orderId
string
required
Client order identifier.
amount
number
required
Amount to be paid.
taxAmount
number
Tax portion (if applicable).
currency
string
Currency code (default USD).
expireAt
string
QR expiration timestamp (ISO-8601).
onBehalfOf
string
User/customer reference.

Response

success
boolean
Indicates whether the QR code payin was created successfully.
paymentId
string
The unique payment identifier generated by our system.
qrCode
string
The QR code image (base64-encoded data URL).
expireAt
string
The ISO 8601 timestamp when the QR code expires.
curl --location --request POST 'https://stablecoin-api.sandbox.getmeru.com/v1/payins/qr-code' \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data-raw '{
    "externalId": "EXT-10001",
    "orderId": "ORD-12345",
    "amount": 99.99,
    "taxAmount": 8.99,
    "currency": "USD",
    "expireAt": "2026-04-17T12:46:44.310Z",
    "onBehalfOf": "cus_123"
}'
{
  "success": true,
  "paymentId": "pay_3ddd0e5b-6276-4b48-b756-c1fcc9a2efd1",
  "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
  "expireAt": "2026-04-17T12:46:44.310Z"
}

Error Responses

{
  "success": false,
  "error": "externalId was already used"
}