版本:202201
创建一次性应用收费
POST/openapi/2022-01/application_charges
使用提供的详情创建新的一次性应用收费。
请求
- application/json
- 请求体
- 示例
请求体
application_charge object
Application charge
namestring必填
The application charge name.
pricestring必填
The amount of the charge, must match with the APP package setting amount
return_urlstring必填
Redirect URL after payment
testboolean
Whether it is a test charge
默认值:
false{
"application_charge": {
"name": "string",
"price": "string",
"return_url": "string",
"test": false
}
}
响应
- 200
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
idstring
示例:
372212374209312759application_idstring
示例:
Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhUnamestring
示例:
testpricestring
示例:
100confirm_urlstring
示例:
https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU/372212374209312759/one-time/confirm?signature=83207d1ad129d5c2ac36bd8b1b6ff8a8return_urlstring
示例:
https://shoplazza.comstatusstring
示例:
pendingtestboolean
默认值:
true示例:
falsecreated_atstring
示例:
2024-04-23T02:39:05Zupdated_atstring
示例:
2024-04-23T02:39:05Z{
"id": "372212374209312759",
"application_id": "Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU",
"name": "test",
"price": "100",
"confirm_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU/372212374209312759/one-time/confirm?signature=83207d1ad129d5c2ac36bd8b1b6ff8a8",
"return_url": "https://shoplazza.com",
"status": "pending",
"test": false,
"created_at": "2024-04-23T02:39:05Z",
"updated_at": "2024-04-23T02:39:05Z"
}
{
"id": "372212374209312759",
"application_id": "Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU",
"name": "test",
"price": "100",
"confirm_url": "https://test-shoplazza.stg.myshoplaza.com/admin/smart_apps/angora/app_store/charges/Kmby9zm_W1dlg11zyVY1XtVkG3teakrbTYPwwmE6WhU/372212374209312759/one-time/confirm?signature=83207d1ad129d5c2ac36bd8b1b6ff8a8",
"return_url": "https://shoplazza.com",
"status": "pending",
"test": false,
"created_at": "2024-04-23T02:39:05Z",
"updated_at": "2024-04-23T02:39:05Z"
}
422
- application/json
无 Schema