# Direct credit card installment query
# Request Base URL
Test Environment : https://gateway-sandbox.luxpag.com
Prod Environment : https://gateway.luxpag.com
# EndPoints
/trade/installments
# Request Header
| Parameter | Required | Description |
|---|---|---|
| Content-Type | recommend | application/json |
| Authorization | yes | Basic Base64(app_id:secret_key) |
# Request Body (JSON format)
| Parameter | Type | Required | Max Length(or Default Value) | Description |
|---|---|---|---|---|
| app_id | string | yes | 32 | created app's id at dashboard |
| timestamp | string | yes | 19 | yyyy-MM-dd HH:mm:ss |
| currency | string | yes | 3 | order currency |
| amount | decimal | yes | 0.01 ~ 99999999.99 | order amount |
# Request Sample
curl --location --request POST 'https://gateway.luxpag.com/trade/installments' \
--header 'Authorization: Basic Base64(appid:secret_key)' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "app_id",
"timestamp": "{{datetime}}",
"currency": "{{currency}}",
"amount": {{amount}}
}'
# Http Response (JSON format)
| 参数名 | 类型 | 描述 |
|---|---|---|
| code | string | 返回码 |
| msg | string | 返回消息 |
| fee[0].stage | int | 期数 |
| fee[0].amount_each | decimal | 每期金额 |
| fee[0].amount | decimal | 总金额 |
| fee[0].rate | decimal | 费率 |
# Return Code (Success)
{
"code": "10000",
"msg": "Success",
"fee"[0]."stage": {{stage}},
"fee"[0]."amount_each": {{amount_each}},
"fee"[0]."amount": {{amount}},
"fee"[0]."rate": {{rate}}
}
# Return Code (Fail)
{
"code": "40002",
"msg": "Business Failed",
"sub_code": "invalid-signature",
"sub_msg": "invalid signature"
}