Skip to main content
Every REST API key carries a list of scopes that controls which endpoints it can call. The merchant sets them when creating the key in Shopify admin → Apps → Yuko Loyalty → Integrations → REST API:
  • Full Access Key: the highest access level each scope supports (read and write where available).
  • Read-Only Key: read access for every scope. It can’t credit or debit points.
  • Custom Key: No Access, Read Access or Read/Write Access per scope.

Scope format

Scopes are stored on the key as read:<scope> or write:<scope>, for example read:rewards or write:transactions.
  • read:<scope> allows the scope’s read endpoints.
  • write:<scope> allows the scope’s write endpoints and its read endpoints. Write implies read.

Available scopes

The points, referrals and tiers scopes also change what customer endpoints return. Without points, customer responses have no points object. Give your key these scopes if you need a customer’s balance, referral link or tier.

Endpoints by scope

All paths are relative to https://api.yukoapp.com/api/v1/public.

Missing scope errors

If the key doesn’t have the scope an endpoint needs, the API returns 403 Forbidden:
403
A key’s scopes can’t be changed after it’s created, and a store can only have one active key. To add a scope, revoke the old key, then create a new one with the scopes you need, and update your integration with it.