版本:202201
更新周期性应用收费
PUT/openapi/2022-01/recurring_application_charges/:recurring_charge_id/customize
更新指定周期性应用收费的用量计费封顶金额。
请求
Path参数
recurring_charge_id string必填
- application/json
- 请求体
- 示例
请求体
capped_amountfloat必填
The maximum usage fee must be greater than the original maximum
{
"capped_amount": 0
}
响应
- 200
- 404
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
recurring_application_charge object
idstring
示例:
372269669345671159namestring
示例:
testpricestring
示例:
100activated_onstring
示例:
2024-04-23T00:00:00Zbilling_onstring
示例:
2024-05-23T00:00:00Zcancelled_on
capped_amountstring
示例:
10return_urlstring
示例:
https://shoplazza.comstatusstring
示例:
activetermsstring
示例:
termstestboolean
默认值:
true示例:
falsetrial_daysinteger
默认值:
0示例:
0trial_ends_on
update_capped_amount_urlstring
示例:
https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/s1deCNrkHePwO3HDDZb_zfWJAge07nzNckPyfM_Hvp0/372269669345671159/recurring_usage_charge/confirm?signature=1543b02176c185b4bfe70303b7f2b300&adjust_id=372273239407212535created_atstring
示例:
2024-04-23T06:26:46Zupdated_atstring
示例:
2024-04-23T06:40:51Z{
"recurring_application_charge": {
"id": "372269669345671159",
"name": "test",
"price": "100",
"activated_on": "2024-04-23T00:00:00Z",
"billing_on": "2024-05-23T00:00:00Z",
"cancelled_on": {},
"capped_amount": "10",
"return_url": "https://shoplazza.com",
"status": "active",
"terms": "terms",
"test": false,
"trial_days": 0,
"trial_ends_on": {},
"update_capped_amount_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/s1deCNrkHePwO3HDDZb_zfWJAge07nzNckPyfM_Hvp0/372269669345671159/recurring_usage_charge/confirm?signature=1543b02176c185b4bfe70303b7f2b300&adjust_id=372273239407212535",
"created_at": "2024-04-23T06:26:46Z",
"updated_at": "2024-04-23T06:40:51Z"
}
}
{
"recurring_application_charge": {
"id": "372269669345671159",
"name": "test",
"price": "100",
"activated_on": "2024-04-23T00:00:00Z",
"billing_on": "2024-05-23T00:00:00Z",
"cancelled_on": null,
"capped_amount": "10",
"return_url": "https://shoplazza.com",
"status": "active",
"terms": "terms",
"test": false,
"trial_days": 0,
"trial_ends_on": null,
"update_capped_amount_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/s1deCNrkHePwO3HDDZb_zfWJAge07nzNckPyfM_Hvp0/372269669345671159/recurring_usage_charge/confirm?signature=1543b02176c185b4bfe70303b7f2b300&adjust_id=372273239407212535",
"created_at": "2024-04-23T06:26:46Z",
"updated_at": "2024-04-23T06:40:51Z"
}
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Record not found"
]
}
{
"errors": [
"Record not found"
]
}
422
- text/plain
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"RecurringChargeId is required"
]
}
{
"errors": [
"RecurringChargeId is required"
]
}