POST
Merchant wallets/merchant-wallets/{merchantId}/payment-linkCreate payment link
Creates a payment-link payload for the merchant and amount.
Access tiermerchantRate limit60/minIdempotencynoneAuthenticationBearerAuth
Source
LuxApi/Modules/LuxPayIdentity/Http/Controllers/Api/MerchantWalletApiController.php::paymentLinkLuxPayProjects @ 146e98baa44eParameters
X-Request-IDheaderClient correlation identifier. LuxPay may generate one when omitted.
Example:req_01J...merchantIdpathMerchant/business identifier.
Example:10101Request body
PaymentLinkRequestRequired
amountnumber
currency_codestring
descriptionstring | null
JSON example
{
"amount": 1,
"currency_code": "string",
"description": "string"
}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/payment-link' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 1,
"currency_code": "string",
"description": "string"
}'Responses
200Successful response.
statusboolean
Example:
truedataobject
{
"status": true,
"data": {
"merchant_id": 1,
"amount": 1,
"currency_code": "string",
"description": "string",
"payment_link": "string"
}
}