PUT /reseller-subscriptions/{id}.json
Path parameters
-
id
integer(int64) Required Numeric ID of the instance
Minimum value is
1
.
Body
Required
-
createdAt
string(date-time) Created at
-
id
integer(int32) Id
-
name
string | null Name
-
resellerId
integer(int32) Required Reseller
-
status
string | null Required Status
Values are
pending
,active
,error
,lapsed
,declined
, orcancelled
. Default value ispending
. -
stripeProductId
string | null Stripe product
-
stripeSubscriptionId
string | null Stripe subscription
-
updatedAt
string(date-time) Updated at
PUT
/reseller-subscriptions/{id}.json
curl \
-X PUT http://api.example.com/v1/reseller-subscriptions/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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"}'
Request example
{
"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"
}