Resource Overview
Ordergroove’s data model is built around four core resources: Customers, Subscriptions, Orders, and Items. Resource Extensions allow you to enrich a primary resource with its related data, reducing the need for multiple API calls and providing a more complete picture of a customer’s state in a single interaction.
By using extensions, you can “link” resources together—for example, including a customer’s saved addresses and payment methods when retrieving their subscription details.
Core Resources at a Glance
- Customers: The central profile containing contact info, linked addresses, and payment methods.
- Subscriptions: The recurring logic that dictates when and how often a customer receives a product.
- Orders: The records created by subscriptions that are sent to your eCommerce platform for fulfillment.
- Items: The individual products contained within an order or tied to a subscription.
Enriching Webhook Payloads
While Resource Extensions can be used across the Ordergroove platform, they are most commonly configured to enrich Webhook payloads. By configuring extensions in your Ordergroove Dashboard, you can ensure that every event notification includes the specific related data your system needs to process the update.
The Snapshot Object
When extensions are enabled for webhooks, the payload includes a snapshot object containing the selected resources.
- Single Objects: The
customerresource is always returned as a single object within the snapshot. - List Objects: All other resources—such as
subscriptions,orders, anditems—are returned as list objects, even if only a single record exists.
For an example payload, see Installing Webhooks 2.0.
Available Resources
The table below outlines the core resources, the endpoints used to access them, and the related data available through Resource Extensions.