PUT /subscriptions/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
charged integer(int32) | null
Charged
-
createdAt string(date-time)
Created at
-
id integer(int32)
Id
-
shopifyChargeId string | null
Shopify charge
-
source string | null
Source
Values are
shopify
orstripe
. -
status string | null
Status
Values are
pending
,active
,error
,lapsed
,declined
, orcancelled
. -
stripeSubscriptionId string | null
Stripe subscription
-
updatedAt string(date-time)
Updated at
PUT
/subscriptions/{id}.json
curl \
-X PUT http://api.example.com/v1/subscriptions/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"charged":42,"createdAt":"2024-05-04T09:42:00+00:00","discount":{},"id":42,"shopifyChargeId":"string","source":"shopify","status":"pending","stripeSubscriptionId":"string","updatedAt":"2024-05-04T09:42:00+00:00"}'
Request example
{
"charged": 42,
"createdAt": "2024-05-04T09:42:00+00:00",
"discount": {},
"id": 42,
"shopifyChargeId": "string",
"source": "shopify",
"status": "pending",
"stripeSubscriptionId": "string",
"updatedAt": "2024-05-04T09:42:00+00:00"
}