Back to reference
POST/merchant-wallets/{merchantId}/qr-payment
Merchant wallets

Create QR payment payload

Returns a serialized LuxPay QR payload for the selected merchant wallet.

Access tiermerchantRate limit60/minIdempotencynoneAuthenticationBearerAuth
SourceLuxApi/Modules/LuxPayIdentity/Http/Controllers/Api/MerchantWalletApiController.php::qrPaymentLuxPayProjects @ 146e98baa44e

Parameters

X-Request-IDheader
stringOptional

Client correlation identifier. LuxPay may generate one when omitted.

Example: req_01J...
merchantIdpath
integerRequired

Merchant/business identifier.

Example: 10101

Request body

QrPaymentRequestRequired
wallet_id
integer

JSON example

{
  "wallet_id": 1
}

Code examples

The displayed sandbox host is a placeholder until an official host is provisioned. Never paste a production token into a public browser.
curl --request POST \
  --url 'https://sandbox-api.luxpay.example/v1/merchant-wallets/10101/qr-payment' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "wallet_id": 1
}'

Responses

200Successful response.
status
boolean
Example: true
data
object
{
  "status": true,
  "data": {
    "qr_string": "string"
  }
}
400
401
403
404
409
422
429
500
OpenAPI JSONOpenAPI YAMLPostman collection