支付配置
开发中
POST
/platformapi/settings.pay_config/setConfig
请求参数
Header 参数
version
string
可选
默认值:
2.0
token
string
可选
默认值:
{{ptoken}}
Body 参数application/json
object {0}
示例
{
"id": "177",
"name": "微信支付",
"pay_way": 2,
"icon": "https://likeshopb2cplusdoukai.yixiangonline.com/resource/image/adminapi/pay/wechat.png",
"sort": 100,
"remark": "",
"sid": 45,
"delete_time": null,
"domain": "https://likeshopb2cplusdoukai.yixiangonline.com",
"interface_version": "v2",
"merchant_type": "ordinary_merchant",
"mch_id": "11111",
"pay_sign_key": "22222",
"apiclient_cert": "33333",
"apiclient_key": "44444"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/platformapi/settings.pay_config/setConfig' \
--header 'version: 2.0' \
--header 'token: {{ptoken}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "177",
"name": "微信支付",
"pay_way": 2,
"icon": "https://likeshopb2cplusdoukai.yixiangonline.com/resource/image/adminapi/pay/wechat.png",
"sort": 100,
"remark": "",
"sid": 45,
"delete_time": null,
"domain": "https://likeshopb2cplusdoukai.yixiangonline.com",
"interface_version": "v2",
"merchant_type": "ordinary_merchant",
"mch_id": "11111",
"pay_sign_key": "22222",
"apiclient_cert": "33333",
"apiclient_key": "44444"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2022-11-27 12:22:14