# 直连信用卡分期查询

# 请求接口ROOT地址

  测试环境 : https://gateway-sandbox.luxpag.com
  正式环境 : https://gateway.luxpag.com

# 接口

  /trade/installments

# Request Header

参数名 必须 描述
Content-Type 推荐 application/json
Authorization yes Basic Base64(app_id:secret_key)

# 请求参数(JSON格式)

参数名 类型 必须 最大长度/默认值 描述
app_id string yes 32 商户后台创建并获得
timestamp string yes 19 yyyy-MM-dd HH:mm:ss
currency string yes 3 订单币种
amount decimal yes 0.01 ~ 99999999.99 订单金额

# 请求样例

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}}
}'

# 响应(JSON格式)

参数名 类型 描述
code string 返回码
msg string 返回消息
fee[0].stage int 期数
fee[0].amount_each decimal 每期金额
fee[0].amount decimal 总金额
fee[0].rate decimal 费率

# 返回样例(成功)

{
    "code": "10000",
    "msg": "Success",
    "fee"[0]."stage": {{stage}},
    "fee"[0]."amount_each": {{amount_each}},
    "fee"[0]."amount": {{amount}},
    "fee"[0]."rate": {{rate}}
}

# 返回样例(失败)

{
    "code": "40002",
    "msg": "Business Failed",
    "sub_code": "invalid-signature",
    "sub_msg": "invalid signature"
}