Skip to content

Create a subscription intent

Request

Create a new Subscription Intent resource to indicate intent to subscribe to a paid plan

Security
bearerToken
Bodyapplication/jsonrequired
planRequestanyrequired
billingRequestobjectrequired

The billing details of the subscription you intend to pay for

signupUserobjectrequired

The details of the user that is signing up

couponIdsArray of stringsrequired

The coupon IDs to apply to the subscription you intend to pay for

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"
    ]
  }'

Responses

Success

Bodyapplication/json
resultobjectrequired
permittedActionsArray of objectsrequired
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": [ {} ] }