POST /reseller-subscriptions.json
Body Required
-
name string | null
Name
-
Reseller
-
Status
Values are
pending
,active
,error
,lapsed
,declined
, orcancelled
. Default value ispending
. -
stripeProductId string | null
Stripe product
-
stripeSubscriptionId string | null
Stripe subscription
POST /reseller-subscriptions.json
curl \
-X POST http://api.example.com/v1/reseller-subscriptions.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"discount":{},"name":"string","resellerId":42,"status":"pending","stripeProductId":"string","stripeSubscriptionId":"string"}'
Request example
{
"discount": {},
"name": "string",
"resellerId": 42,
"status": "pending",
"stripeProductId": "string",
"stripeSubscriptionId": "string"
}
Response examples (200)
{
"createdAt": "2024-05-04T09:42:00+00:00",
"discount": {},
"id": 42,
"name": "string",
"resellerId": 42,
"status": "pending",
"stripeProductId": "string",
"stripeSubscriptionId": "string",
"updatedAt": "2024-05-04T09:42:00+00:00"
}