POST /subscriptions.json

POST /subscriptions.json
application/json

Body Required

Responses

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"
}