Skip to main content
Shopify holds your commerce truth — who buys, what they buy, how often they return, and where they drop off. These eight jobs pull that data through Mavera’s surfaces (Custom Personas, Mave Agent, Focus Groups, Generate, Brand Voices) so your personas reflect real purchasing behavior, your content matches actual inventory priorities, and your campaigns are informed by synthetic audience reactions grounded in real customer data.

API Reference Card

All examples use three environment variables: SHOPIFY_STORE (your myshopify.com subdomain, e.g. acme-store), SHOPIFY_ACCESS_TOKEN (private app access token starting with shpat_), and MAVERA_API_KEY. Python examples use requests; JavaScript examples use fetch. GraphQL queries target the 2024-10 API version.

Prerequisites

1

Shopify private app with required scopes

Create a custom app in Shopify Admin → Settings → Apps and sales channels → Develop apps. Grant scopes: read_customers, read_orders, read_products, read_inventory, read_checkouts. Copy the Admin API access token (starts with shpat_).
2

Mavera API key

Get your key from Mavera dashboard. The key starts with mvra_live_.
3

Install dependencies

4

Environment variables


Jobs



Rate Limits & Production Notes

Before going to production: store tokens in a secrets manager (never commit them), implement exponential backoff with jitter (start 1s, double, cap 30s), use Shopify Bulk Operations for 10k+ records, log all API responses for auditing, test on a development store first, and pin your API version to 2024-10.

Production Checklist

  • Secrets in env vars or secrets manager
  • Exponential backoff with jitter on all API calls
  • Bulk operations for datasets > 10k records
  • Structured logging and error alerting
  • Tested on Shopify development store
  • API version pinned to 2024-10; rate limit headers monitored
  • Pagination cursors handled for all list endpoints

Shopify GraphQL Admin API

Official GraphQL reference with schema explorer.

Mavera API Reference

Personas, focus groups, brand voices, and generations.

Shopify Bulk Operations

Async queries for large datasets.

Integration Quick Reference

Cross-platform patterns for all Mavera integrations.