Create a new Subscription Intent resource to indicate intent to subscribe to a paid plan
Security
bearerToken
- Productionhttps://api-v2.dash.app/subscription-intents
- Staginghttps://api-v2.dashstaging.app/subscription-intents
- TIERED_VALUE_BASED
- STORAGE_AND_DOWNLOADS
- STORAGE_AND_DOWNLOADS_V7
- STORAGE_AND_DOWNLOADS_V8
curl -i -X POST \
https://api-v2.dash.app/subscription-intents \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"planRequest": {
"type": "TIERED_VALUE_BASED",
"planName": "STARTUP",
"extraAssets": 1000
},
"billingRequest": {
"billingPeriod": "MONTHLY",
"currency": "GBP",
"country": "GB"
},
"signupUser": {
"email": "some@email.com",
"name": "Some Name"
},
"couponIds": [
"string"
]
}'Response
{ "result": { "id": "cfb665ca-ce35-4418-b9d5-70ee815db4bd", "setupIntentId": "some-setup-intent-id", "setupIntentClientSecret": "some-setup-intent-client-secret", "accountId": "string", "amount": { … }, "planRequest": { … }, "billingRequest": { … }, "signupUser": { … }, "coupons": [ … ], "paymentStatus": { … } }, "permittedActions": [ { … } ] }