GET
/
v1
/
subscriptions
/
{user_id}
/
{origin}
/
{origin_id}
curl --request GET \
     --url https://client.corrily.com/v1/subscriptions/user_id/origin/origin_id \
     --header 'Accept: application/json'
{
  "success": true,
  "subscription": {
    "corrily_product_id2": 122,
    "latest_event_id": "corrily_evt_1628549872",
    "latest_event_timestamp": 1628549872,
    "org_id": 97,
    "origin": "stripe",
    "origin_id": "origin789",
    "type": "subscription",
    "created": 1628548983,
    "interval": "month",
    "interval_count": 1,
    "status": "active",
    "user_id": "user123"
  }
}

Custom payment gateway integrations only

You do not need to use this endpoint if you have granted Corrily automated access to your payment gateway’s subscription and charge events.

Path Params

origin
string
required

The payment gateway that handled the subscription. Accepted values: stripe, paypal, chargebee

origin_id
string
required

A unique identifier for the subscription. This can be the ID that the payment gateway assigned to the subscription.

user_id
string
required

The User ID that you provided when you created the subscription.