StripeSubscriptionCreateRequest
Body for POST /stripe/subscriptions. The platform validator (subscription_creation) is authoritative and expects customerId + items[]; the flattened priceId form is the shape currently sent by the LDS client. Provide either items or priceId.
Stripe customer id (cus_…) to attach the subscription to.
Possible values: non-empty
cus_QabC123def456Convenience single-price form used by LDS. Equivalent to items: [{ priceId }].
Possible values: non-empty
price_1NXYZabcDEFitems object[]
Platform-authoritative subscription items. Each item carries a Stripe Price id and optional discounts.
Possible values: non-empty
price_1NXYZabcDEFdiscounts object[]
Possible values: non-empty
Possible values: non-empty
Possible values: non-empty
When false, the platform rejects a price that already appears on an active subscription for the customer (STRIPE_DUPLICATE_SUBSCRIPTION_ITEM).
{
"customerId": "cus_QabC123def456",
"priceId": "price_1NXYZabcDEF",
"items": [
{
"priceId": "price_1NXYZabcDEF",
"discounts": [
{
"couponId": "string",
"discountId": "string",
"promotionCodeId": "string"
}
]
}
],
"allowDoubleSubscriptions": true
}