subscriptions/capped_amount_updated

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Triggered when a customer's usage approaches the capped limit set for their subscription, providing details about current usage and subscription limits.

Sample payload

{
  "topic": "subscriptions/capped_amount_updated",
  "subscription": {
    "id": "c48e9f72-514b-42d3-b6a8-79e517c8f3d2",
    "plan": {
      "id": "1c4ad139-3363-40b7-88de-82dbd34d5329",
      "name": "Pro",
      "amount": 29.99,
      "interval": "EVERY_30_DAYS",
      "currencyCode": "USD",
      "trialDays": 7,
      "public": true,
      "description": "Professional plan with API access and usage-based billing",
      "customFields": {
        "Recommended": "true"
      },
      "features": {
        "custom_reports": {
          "id": "25cc2437-6162-4d68-a81d-c8d1548ae518",
          "name": "Custom Reports",
          "type": "boolean",
          "value": true,
          "description": "Generate customized reports",
          "displayOrder": 0
        },
        "api_calls": {
          "id": "b3a34df8-eab8-4ad2-a13e-068285dd67e4",
          "name": "API Calls",
          "type": "limit_with_overage",
          "value": "10000",
          "description": "Monthly API call limit with overage charges",
          "displayOrder": 1
        }
      },
      "featuresOrder": [
        "custom_reports",
        "api_calls"
      ],
      "usageCharges": [
        {
          "id": "7d9e1b5a-c23f-48e6-90a7-3f5d8e12b946",
          "type": "unit",
          "terms": "Per API call over 10,000",
          "amount": 0.002,
          "eventName": "api_call",
          "cappedAmount": 100
        }
      ],
      "createdAt": "2025-01-22T14:40:39.436Z",
      "updatedAt": "2025-03-18T13:14:07.696Z"
    },
    "active": true,
    "cancelOn": null,
    "activatedAt": "2025-03-01T10:25:56.806Z",
    "canceledAt": null,
    "frozenAt": null,
    "currentPeriodStart": "2025-03-01T00:00:00.000Z",
    "currentPeriodEnd": "2025-04-01T00:00:00.000Z",
    "features": {
      "custom_reports": {
        "id": "25cc2437-6162-4d68-a81d-c8d1548ae518",
        "name": "Custom Reports",
        "type": "boolean",
        "value": true,
        "description": "Generate customized reports",
        "displayOrder": 0
      },
      "api_calls": {
        "id": "b3a34df8-eab8-4ad2-a13e-068285dd67e4",
        "name": "API Calls",
        "type": "limit_with_overage",
        "value": "10000",
        "description": "Monthly API call limit with overage charges",
        "displayOrder": 1
      }
    },
    "featuresOrder": [
      "custom_reports",
      "api_calls"
    ],
    "usageCharges": [
      {
        "id": "7d9e1b5a-c23f-48e6-90a7-3f5d8e12b946",
        "type": "unit",
        "terms": "Per API call over 10,000",
        "amount": 0.002,
        "eventName": "api_call",
        "cappedAmount": 100
      }
    ],
    "usageCappedAmount": 100,
    "usageBalanceUsed": 45,
    "createdAt": "2025-03-01T10:25:49.900Z",
    "confirmationUrl": "https://high-volume-store.myshopify.com/admin/charges/145072685057/39547699428/RecurringApplicationCharge/confirm_recurring_application_charge?signature=BAh7BzoHaWRsKwjkADo1CQA6EmF1dG9fYWN0aXZhdGVU--6ae0b6d3af7fcf6c7b650e20a36367f63eb8b2b9",
    "shopifySubscription": {
      "id": "gid://shopify/AppSubscription/39547699428"
    },
    "shopify": {
      "id": "gid://shopify/AppSubscription/39547699428"
    },
    "customer": {
      "id": "21d0a23a-30d7-406d-aee9-455bbd0b5bbd",
      "name": "high-volume-store",
      "email": "[email protected]",
      "tags": [
        "high-volume",
        "enterprise"
      ],
      "test": false,
      "platformId": "72364687588",
      "shopify": {
        "id": "72364687588",
        "shopId": "72364687588",
        "myshopifyDomain": "high-volume-store.myshopify.com",
        "planName": "Advanced",
        "isDevPlan": false,
        "isPlus": false
      },
      "installedAt": "2025-02-15T10:25:14.000Z",
      "uninstalledAt": null,
      "trialStartsAt": "2025-02-22T00:00:00.000Z",
      "trialExpiresAt": "2025-03-01T00:00:00.000Z",
      "billingStatus": "active",
      "lifetimeValue": 129.99,
      "averageMonthlyRevenue": 29.99
    }
  },
  "app": {
    "id": "app_123abc",
    "name": "My Awesome App"
  },
  "id": "21d0a23a-30d7-406d-aee9-455bbd0b5bbd",
  "name": "high-volume-store",
  "email": "[email protected]",
  "tags": [
    "high-volume",
    "enterprise"
  ],
  "test": false,
  "platformId": "72364687588",
  "shopify": {
    "id": "72364687588",
    "shopId": "72364687588",
    "myshopifyDomain": "high-volume-store.myshopify.com",
    "planName": "Advanced",
    "isDevPlan": false,
    "isPlus": false
  },
  "installedAt": "2025-02-15T10:25:14.000Z",
  "uninstalledAt": null,
  "trialStartsAt": "2025-02-22T00:00:00.000Z",
  "trialExpiresAt": "2025-03-01T00:00:00.000Z",
  "billingStatus": "active",
  "lifetimeValue": 129.99,
  "averageMonthlyRevenue": 29.99
}
{
  "id": "c48e9f72-514b-42d3-b6a8-79e517c8f3d2",
  "plan": {
    "id": "1c4ad139-3363-40b7-88de-82dbd34d5329",
    "name": "Pro",
    "amount": 29.99,
    "public": true,
    "features": {
      "api_calls": {
        "id": "b3a34df8-eab8-4ad2-a13e-068285dd67e4",
        "name": "API Calls",
        "type": "limit_with_overage",
        "value": "10000",
        "description": "Monthly API call limit with overage charges",
        "displayOrder": 4
      },
      "custom_reports": {
        "id": "25cc2437-6162-4d68-a81d-c8d1548ae518",
        "name": "Custom Reports",
        "type": "boolean",
        "value": true,
        "description": "Generate customized reports",
        "displayOrder": 0
      }
    },
    "interval": "EVERY_30_DAYS",
    "createdAt": "2025-01-22T14:40:39.436Z",
    "trialDays": 7,
    "updatedAt": "2025-03-18T13:14:07.696Z",
    "description": "Professional plan with API access and usage-based billing",
    "currencyCode": "USD",
    "customFields": {
      "Recommended": "true"
    },
    "usageCharges": [
      {
        "id": "7d9e1b5a-c23f-48e6-90a7-3f5d8e12b946",
        "type": "unit",
        "terms": "Per API call over 10,000",
        "amount": 0.002,
        "eventName": "api_call",
        "cappedAmount": 50
      }
    ],
    "featuresOrder": [
      "custom_reports",
      "api_calls"
    ],
    "stripe": {
      "id": "price_1OPsQrDLe8sBZHaIxT4vYwP5",
      "createdAt": "2025-01-22T14:40:39.436Z",
      "object": "price",
      "active": true,
      "currency": "usd",
      "unit_amount": 2999
    }
  },
  "topic": "subscriptions/approaching_capped_amount",
  "active": true,
  "customer": {
    "id": "21d0a23a-30d7-406d-aee9-455bbd0b5bbd",
    "name": "high-volume-store",
    "tags": [
      "high-volume",
      "enterprise"
    ],
    "test": false,
    "email": "[email protected]",
    "platformId": "cus_PXZNhG9vR7FwQz",
    "installedAt": "2025-03-01T10:25:14.000Z",
    "billingStatus": "active",
    "lifetimeValue": 129.99,
    "trialStartsAt": "2025-02-22T00:00:00.000Z",
    "uninstalledAt": null,
    "trialExpiresAt": "2025-03-01T00:00:00.000Z",
    "averageMonthlyRevenue": 29.99
  },
  "features": {
    "api_calls": {
      "id": "b3a34df8-eab8-4ad2-a13e-068285dd67e4",
      "name": "API Calls",
      "type": "limit_with_overage",
      "value": "10000",
      "description": "Monthly API call limit with overage charges",
      "displayOrder": 4
    },
    "custom_reports": {
      "id": "25cc2437-6162-4d68-a81d-c8d1548ae518",
      "name": "Custom Reports",
      "type": "boolean",
      "value": true,
      "description": "Generate customized reports",
      "displayOrder": 0
    }
  },
  "frozenAt": null,
  "createdAt": "2025-03-01T10:25:49.900Z",
  "canceledAt": null,
  "activatedAt": "2025-03-01T10:25:56.806Z",
  "usageCharges": [
    {
      "id": "7d9e1b5a-c23f-48e6-90a7-3f5d8e12b946",
      "type": "unit",
      "terms": "Per API call over 10,000",
      "amount": 0.002,
      "eventName": "api_call",
      "cappedAmount": 50
    }
  ],
  "featuresOrder": [
    "custom_reports",
    "api_calls"
  ],
  "confirmationUrl": "https://high-volume-store.myshopify.com/admin/charges/145072685057/39547699428/RecurringApplicationCharge/confirm_recurring_application_charge?signature=BAh7BzoHaWRsKwjkADo1CQA6EmF1dG9fYWN0aXZhdGVU--6ae0b6d3af7fcf6c7b650e20a36367f63eb8b2b9",
  "currentPeriodEnd": "2025-04-01T00:00:00.000Z",
  "usageBalanceUsed": 45,
  "usageCappedAmount": 50,
  "currentPeriodStart": "2025-03-01T00:00:00.000Z",
  "stripe": {
    "id": "sub_1ONkYzDLe8sBZHaICvRs2q8J",
    "object": "subscription",
    "current_period_end": 1743724800,
    "current_period_start": 1740560400,
    "customer": "cus_PXZNhG9vR7FwQz",
    "status": "active",
    "items": {
      "object": "list",
      "data": [
        {
          "id": "si_PXZPq5UkLt7rVn",
          "object": "subscription_item",
          "price": {
            "id": "price_1OPsQrDLe8sBZHaIxT4vYwP5",
            "object": "price",
            "unit_amount": 2999
          },
          "quantity": 1
        }
      ]
    },
    "usage_items": [
      {
        "id": "sui_PXzOp4TjKs6qWm",
        "object": "subscription_item",
        "usage_type": "metered",
        "price": {
          "id": "price_1OPtRsDLe8sBZHaIyU5wZxQ6",
          "object": "price",
          "unit_amount": 0.2
        }
      }
    ],
    "created": 1709291156
  }
}
Body Params

A subscription capped amount was updated

string

The topic of the webhook

subscription
object
Response
200

Return a 200 status to indicate that the data was received successfully

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!