POST /subscriptions.json
Body Required
-
charged integer(int32) | null
Charged
-
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
POST /subscriptions.json
curl \
-X POST http://api.example.com/v1/subscriptions.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"charged":42,"discount":{},"shopifyChargeId":"string","source":"shopify","status":"pending","stripeSubscriptionId":"string"}'
Request example
{
"charged": 42,
"discount": {},
"shopifyChargeId": "string",
"source": "shopify",
"status": "pending",
"stripeSubscriptionId": "string"
}
Response examples (200)
{
"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"
}