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