- CSSS APIs
- Overview
- Internationalization
- Status code
- Sign code Example
- SIM
- Usage
- Plan
- SMS
- Customized
- Notification
- Mall APIs
- eSIM QR Mall APIs
创建Stripe订阅/自动续费
Demo UAT
Demo UAT
POST
/stripeSubDirectly
Request
Header Params
Content-Type
string
optional
Default:
application/json
Body Params application/json
email
string
required
partnerCode
string
required
payAmount
string
required
payCurrency
string
required
payId
string
required
plan_id
string
required
pm_id
string
required
sign
string
required
tradeTime
string
required
tradeType
string
required
version
string
required
Example
{
"email": "421516116@qq.com",
"partnerCode": "P000818",
"payAmount": "19.99",
"payCurrency": "usd",
"payId": "P0002702020110214193780630",
"plan_id": "string",
"pm_id": "pm_1GnMUDLnVNBddzslXw7xuoe6",
"sign": "b2a9e697bdff66049803d62ffeffccaf",
"tradeTime": "20181031256548",
"tradeType": "payPalPay",
"version": "3.0"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/stripeSubDirectly' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "421516116@qq.com",
"partnerCode": "P000818",
"payAmount": "19.99",
"payCurrency": "usd",
"payId": "P0002702020110214193780630",
"plan_id": "string",
"pm_id": "pm_1GnMUDLnVNBddzslXw7xuoe6",
"sign": "b2a9e697bdff66049803d62ffeffccaf",
"tradeTime": "20181031256548",
"tradeType": "payPalPay",
"version": "3.0"
}'
Responses
🟢200成功
application/json
Body
customer_id
string
required
pay_method
string
required
product_id
string
required
status
string
required
sub_id
string
required
Example
{
"customer_id": "string",
"pay_method": "string",
"product_id": "string",
"status": "string",
"sub_id": "string"
}
Modified at 2022-10-04 23:23:51