POST
Payment services/payment-services/{provider}/selectSelect payment service
Evaluates provider selection and returns the next action for the client.
Access tierauthenticatedRate limitpay_apiIdempotencynoneAuthenticationBearerAuth
Source
LuxApi/Modules/PayAPI/Controllers/PaymentServiceController.php::selectLuxPayProjects @ 146e98baa44eParameters
X-Request-IDheaderClient correlation identifier. LuxPay may generate one when omitted.
Example:req_01J...providerpathProvider code registered by LuxPay.
Example:walletRequest body
PaymentServiceSelectionRequestRequired
amountnumber | null
currencystring | null
payment_methodstring | null
payment_channelstring | null
customerobject | null
metadataobject | null
JSON example
{
"amount": 1,
"currency": "string",
"payment_method": "string",
"payment_channel": "string",
"customer": {},
"metadata": {}
}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/payment-services/wallet/select' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"amount": 1,
"currency": "string",
"payment_method": "string",
"payment_channel": "string",
"customer": {},
"metadata": {}
}'Responses
200Successful response.
successboolean
Example:
truedataobject
{
"success": true,
"data": {
"service": {
"provider": "wallet",
"display_name": "LuxPay Wallet",
"enabled": true,
"can_select": true,
"currencies": [
"string"
],
"methods": [
"string"
],
"channels": [
"string"
]
},
"next_action": {},
"trace_id": "string"
}
}