查询单个计划
通过Plan ID来查询对应的具体计划内容。
HTTP请求
GET /v1/payments/plans/{{planId}}
Request Headers{
"Content-Type": "application/json",
"Authorization": "Bearer {{access_token}}",
"x-api-key": "{{api_key}}"
}
Response{
"id": "UUID",
"type": "INSTALLMENT",
"planDetails": {
"installment": [
{
"modifierType": "RATE",
"rate": 0.02,
"installments": 3
},
{
"modifierType": "RATE",
"rate": 0.05,
"installments": 6
},
{
"modifierType": "RATE",
"rate": 0.1,
"installments": 12
}
]
}
}
| Key |
Value |
| Authorization |
"Bearer" + " " + {{access_token}} |
| x-api-key |
{{api_key}} |
PATH and Query 字段说明
| 参数 |
类型 |
描述 |
| planId |
String |
计划ID |
Response Body 字段说明
| 参数 |
类型 |
描述 |
| id |
String |
分期计划ID,UUID |
| type |
String |
分期计划类型 |
| planDetails |
JSON |
分期计划详情 |
对象字段说明
planDetails
| 参数 |
类型 |
描述 |
| installment |
JSON Array |
分期付款详情 |
| tax |
JSON Array |
税费计划详情 |
installment
| 参数 |
类型 |
描述 |
| modifierType |
String |
类型,RATE |
| rate |
Positive Float |
分期费率 |
| installments |
Integer |
分期付款期数 |
tax
| 参数 |
类型 |
描述 |
| modifierType |
String |
类型,RATE |
| rate |
Positive Float |
税率 |
| type |
String |
税率类型 |