Path parameters
-
id
integer(int64) Required Numeric ID of the instance
Minimum value is
1
.
Body
Required
-
charged
integer(int32) | null Charged
-
createdAt
string(date-time) Created at
discount
object | null | array | boolean | integer | number | string Discount
-
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 \
--request PUT 'http://api.example.com/v1/subscriptions/{id}.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"charged":42,"createdAt":"2025-05-04T09:42:00Z","discount":{},"id":42,"shopifyChargeId":"string","source":"shopify","status":"pending","stripeSubscriptionId":"string","updatedAt":"2025-05-04T09:42:00Z"}'
Request examples
{
"charged": 42,
"createdAt": "2025-05-04T09:42:00Z",
"discount": {},
"id": 42,
"shopifyChargeId": "string",
"source": "shopify",
"status": "pending",
"stripeSubscriptionId": "string",
"updatedAt": "2025-05-04T09:42:00Z"
}