Working with customer data
Before you can surface data in your app's frontend, you need to establish the foundational pieces on your backend. This section covers the essential backend operations that power your Mantle integration: identifying customers, tracking usage, managing features, and responding to system events.
Backend operations with Mantle
Your backend integration typically involves:
-
Customer identification
- Connecting new customers to Mantle when they install
- Enriching customer data with shop details
- Managing API tokens for frontend access
-
Usage tracking
- Sending events for feature usage
- Creating metrics from events
- Supporting usage-based billing
-
Feature management
- Controlling access to premium features
- Setting up usage limits
- Managing entitlements
-
Event handling
- Setting up webhooks
- Processing subscription changes
- Responding to system notifications
Each of these components builds on the others, creating a complete backend foundation that your frontend can rely on. The following sections will guide you through implementing each piece.
Updated over 1 year ago
Did this page help you?