SubblySubbly
Log inGet started
  • Get started
  • Developer resources
Private API reference
Docs
Information
    Base URLAuthenticationPaginationErrors
Customer
    Get list of customersCreate a customerGet customer by IDUpdate a customerDelete a customerChange a customer's store credit balanceCreate a customer noteUpdate a customer noteDelete a customer note
Address
    Create an addressUpdate an addressDelete an address
Pickup Info
    Get list of pickup infoCreate pickup infoUpdate pickup infoDelete pickup info
Subscription
    Get list of subscriptionsCreate a subscriptionGet subscription by IDUpdate a subscriptionCancel a subscriptionUndo cancellationPause a subscriptionResume a subscriptionSkip renewals until a dateReactivate a cancelled or expired subscriptionSwitch the subscription to another plan by starting overChange the plans of the subscription's itemsUpdate a subscription's shipping address and methodUpdate a subscription's payment methodUpdate a subscription's survey preferencesCreate a subscription itemShow a subscription itemUpdate a subscription itemRemove a subscription itemUpdate a subscription item's preferencesUpdate a subscription item's bundleChange the plan of a subscription itemChange the variant of a one-time itemApply a discount to a subscription itemRemove a subscription item discountApply a discount to a subscriptionRemove a subscription discount
Invoice
    Get list of invoicesGet invoice by IDSchedule the next payment for invoiceVoid an invoiceForgive an invoiceMark an invoice as paid
Order
    Get list of ordersGet order by IDUpdate an orderShip an orderCancel an orderMark an order as pendingArchive an orderMark an order as a future shipmentSync order shipping items
Payment Method
    Create a payment methodGet payment method by IDDelete a payment method
Transaction
    Get list of transactionsGet transaction by ID
Cancellation
    Get shop cancellation reasonsAdd a cancellation reasonRename a cancellation reasonDelete a cancellation reason
Product
    Get list of productsGet product by IDGet variant by IDUpdate variantGet plan by IDUpdate planCreate subscription productUpdate subscription productPublish subscription productUnpublish subscription productArchive subscription productSync subscription product metadataCreate one-time productUpdate one-time productPublish one-time productUnpublish one-time productArchive one-time productSync one-time product metadataCreate variantArchive variantBatch create/update/archive variantsCreate planArchive plan
Survey
    Get survey by IDGet list of surveys
Bundle
    Get list of bundlesCreate a new bundleGet bundle by IDUpdate a bundleGet list of bundle itemsCreate a bundle itemBatch create bundle itemsGet bundle item by IDUpdate a bundle itemDelete a bundle itemGet list of bundle groupsPublish a bundleUnpublish a bundleArchive a bundleSync bundle metadataCreate a bundle planGet bundle plan by IDUpdate a bundle planArchive a bundle plan
Tag
    Get list of tags
Metafield
    Get shop's metafieldsCreate a new metadataUpdate the metadataDelete a metafield
Metaobject
    List metaobjectsCreate a metaobjectGet a metaobjectUpdate a metaobjectDelete a metaobjectList the entries of a metaobjectCreate a metaobject entryGet a metaobject entryUpdate a metaobject entryDelete a metaobject entry
Funnel
    Get list of funnelsGet funnel by ID
Option
    Get list of options
Country
    Get list of countries
Currency
    Get list of currencies
Inventory
    Get list of inventory itemsCreate a new inventory itemGet inventory item by IDUpdate an inventory itemArchive an inventory itemGet list of inventory groupsCreate a new inventory groupGet inventory group by IDUpdate an inventory group
Coupon
    Get list of couponsCreate a couponGet coupon by IDUpdate a couponArchive a coupon
Custom Tax
    Get list of custom taxesCreate a custom taxGet a custom taxUpdate a custom taxDelete a custom taxPublish a custom taxUnpublish a custom taxGet list of custom tax groupsCreate a custom tax groupGet a custom tax groupUpdate a custom tax groupDelete a custom tax group
Product Collection
    Get list of product collectionsCreate a product collectionGet product collection by IDUpdate a product collectionPublish a product collectionUnpublish a product collectionArchive a product collectionGet list of collection groups with itemsSync collection items
Webhook
    Get list of webhook endpointsCreate a webhook endpointGet webhook delivery statisticsGet a webhook endpointUpdate a webhook endpointDelete a webhook endpointRotate the signing secretSend a test eventGet webhook deliveriesGet a delivery with its attemptsRetry a delivery manuallyGet the webhook event logGet one event with its deliveries across endpointsGet the catalogue of subscribable event types
Email Unsubscribe
    Unsubscribe an email address from marketing mail
Shipping
    Get list of shipping rulesCreate a shipping ruleGet shipping rule by IDUpdate a shipping ruleDelete a shipping rulePublish a shipping ruleUnpublish a shipping ruleGet list of shipping optionsCreate a shipping optionGet shipping option by IDUpdate a shipping optionDelete a shipping optionPublish a shipping optionUnpublish a shipping optionGet list of local pickupsCreate a local pickupGet local pickup by IDUpdate a local pickupDelete a local pickupPublish a local pickupUnpublish a local pickupGet list of local deliveriesCreate a local deliveryGet local delivery by IDUpdate a local deliveryDelete a local deliveryPublish a local deliveryUnpublish a local deliveryGet list of shipping methodsGet a shipping method
Team Member
    Get list of team membersAdd a team memberGet team member by IDUpdate a team memberRemove a team member
Shop
    Get the shop
Shop Settings
    Update the shop settings
Shop Owner
    Update the shop owner
Gateway
    Get list of gatewaysGet gateway by ID
Referral Program
    Update the referral program
ShopCurrency
    Get the shop currenciesAdd a shop currencyGet a shop currencyUpdate a shop currencyRemove a shop currencyPublish a shop currencyUnpublish a shop currency
StorefrontTranslation
    Get the storefront translationsAdd a storefront translationGet a storefront translationUpdate a storefront translationRemove a storefront translationPublish a storefront translationUnpublish a storefront translationMake a storefront translation primaryGet a storefront translation's textsUpdate a storefront translation's texts
Gift Card
    Get list of gift cardsIssue a gift cardGet gift card by IDUpdate a gift cardCancel a gift card
Metric
    Get list of metricsGet a metric

Metric

The shop's metrics over a date range: MRR, gross cash flow, refunds, churn rates, LTV, subscriptions, new subscriptions, cancellations and customers, abandoned cart reminders and failed payments, each with a headline value and one point per day, week or month.

Money is an integer in minor units of the shop base currency. Ratios are decimals (0.042 is 4.2%). Counts are integers. null means not computable.

Days are calendar days in UTC. The most recent day can still change.

Endpoints
  • GET/metrics
  • GET/metrics/{metric}

Get list of metrics

GET /metrics

Every metric, or only those in keys[], from date[gte] to date[lte], in the order MetricKey lists them. A day without data is 0, or null for ltv and ltv_with_early_churn. A range that starts before the shop's first recorded day starts on that day.

Query parameters

date[gte]Requiredstring

First day of the range, Y-m-d.

Format: date.

date[lte]Requiredstring

Last day of the range, Y-m-d, on or after date[gte] and before today (UTC).

Format: date.

intervaloptionalstring

What one point covers: a day (the default), a week (Monday to Sunday) or a calendar month. The first and last points are cut to the range.

Possible values: day, week, month.

Defaults to "day".

keys[]optionalMetricKey[]

Only these metrics. Values must be distinct.

ReturnsMetric[]

Metrics list response

Error responses

401object

The X-API-KEY header is missing or the key is invalid (invalid_api_key), or the shop has no active Subbly subscription (inactive_subscription).

403object

The connected app may not use this endpoint (plan_unauthorized).

422object

Validation failed: date[gte] or date[lte] is missing or not in Y-m-d format, date has another key, date[lte] is before date[gte] or not before today, interval is not day, week or month, or keys[] has an unknown or repeated key.

curl https://api.subbly.co/private/v1/metrics \ -H 'X-API-KEY: <api-key>'
Response
[ { "key": "mrr", "value": 1250000, "points": [ { "start": "2026-11-01", "end": "2026-11-01", "value": 1250000 } ] } ]

Get a metric

GET /metrics/{metric}

One metric from date[gte] to date[lte]. A day without data is 0, or null for ltv and ltv_with_early_churn. A range that starts before the shop's first recorded day starts on that day.

Path parameters

metricRequiredMetricKey

Metric key

Possible values: mrr, gross_cash_flow, refunds, subscription_churn_rate, daily_subscription_churn_rate, ltv, ltv_with_early_churn, subscriptions, new_subscriptions, new_cancellations, new_customers, abandoned_cart_reminders, failed_payments.

Query parameters

date[gte]Requiredstring

First day of the range, Y-m-d.

Format: date.

date[lte]Requiredstring

Last day of the range, Y-m-d, on or after date[gte] and before today (UTC).

Format: date.

intervaloptionalstring

What one point covers: a day (the default), a week (Monday to Sunday) or a calendar month. The first and last points are cut to the range.

Possible values: day, week, month.

Defaults to "day".

ReturnsMetric

Metric object response

Error responses

401object

The X-API-KEY header is missing or the key is invalid (invalid_api_key), or the shop has no active Subbly subscription (inactive_subscription).

403object

The connected app may not use this endpoint (plan_unauthorized).

404object

No metric has this key.

422object

Validation failed: date[gte] or date[lte] is missing or not in Y-m-d format, date has another key, date[lte] is before date[gte] or not before today, or interval is not day, week or month.

curl https://api.subbly.co/private/v1/metrics/{metric} \ -H 'X-API-KEY: <api-key>'
Response
{ "key": "mrr", "value": 1250000, "points": [ { "start": "2026-11-01", "end": "2026-11-01", "value": 1250000 } ] }
keyMetricKey

A metric, with its unit and how a point combines its days: the last day, the sum of the days, or their mean.

  • mrr (money, last day): Monthly recurring revenue at the end of the day, in the shop's time zone.
  • gross_cash_flow (money, sum): Money charged that day. Refunds are not subtracted.
  • refunds (money, sum): Money refunded that day.
  • subscription_churn_rate (ratio, last day): The subscription churn rate on that day.
  • daily_subscription_churn_rate (ratio, mean): Subscription churn on that day alone.
  • ltv (money, last day): Customer lifetime value.
  • ltv_with_early_churn (money, last day): Customer lifetime value, counting customers who churned early.
  • subscriptions (count, last day): Active subscriptions at the end of the day.
  • new_subscriptions (count, sum): Subscriptions started that day. A plan switch counts as a new subscription.
  • new_cancellations (count, sum): Subscriptions cancelled that day.
  • new_customers (count, sum): Customers added that day.
  • abandoned_cart_reminders (count, sum): Abandoned cart reminders sent that day.
  • failed_payments (count, sum): Failed payment attempts that day. Each retry counts.

Possible values: mrr, gross_cash_flow, refunds, subscription_churn_rate, daily_subscription_churn_rate, ltv, ltv_with_early_churn, subscriptions, new_subscriptions, new_cancellations, new_customers, abandoned_cart_reminders, failed_payments.

valuenumber | null

The headline value: the whole range combined like one point. null when there are no points, or when the last day of a last-day metric is null.

pointsMetricPoint[]

One point per day, week or month, oldest first. Empty when the range ends before the shop's first recorded day, or the shop has none yet.

keyMetricKey

A metric, with its unit and how a point combines its days: the last day, the sum of the days, or their mean.

  • mrr (money, last day): Monthly recurring revenue at the end of the day, in the shop's time zone.
  • gross_cash_flow (money, sum): Money charged that day. Refunds are not subtracted.
  • refunds (money, sum): Money refunded that day.
  • subscription_churn_rate (ratio, last day): The subscription churn rate on that day.
  • daily_subscription_churn_rate (ratio, mean): Subscription churn on that day alone.
  • ltv (money, last day): Customer lifetime value.
  • ltv_with_early_churn (money, last day): Customer lifetime value, counting customers who churned early.
  • subscriptions (count, last day): Active subscriptions at the end of the day.
  • new_subscriptions (count, sum): Subscriptions started that day. A plan switch counts as a new subscription.
  • new_cancellations (count, sum): Subscriptions cancelled that day.
  • new_customers (count, sum): Customers added that day.
  • abandoned_cart_reminders (count, sum): Abandoned cart reminders sent that day.
  • failed_payments (count, sum): Failed payment attempts that day. Each retry counts.

Possible values: mrr, gross_cash_flow, refunds, subscription_churn_rate, daily_subscription_churn_rate, ltv, ltv_with_early_churn, subscriptions, new_subscriptions, new_cancellations, new_customers, abandoned_cart_reminders, failed_payments.

valuenumber | null

The headline value: the whole range combined like one point. null when there are no points, or when the last day of a last-day metric is null.

pointsMetricPoint[]

One point per day, week or month, oldest first. Empty when the range ends before the shop's first recorded day, or the shop has none yet.