Yotpo Loyalty API

Loyalty and referrals customers, orders, and redemptions.

GitHub OpenAPI
Business capability
Loyalty & Retention Management BC-420.40

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /customers Get a loyalty customer's points balance · Fetch a loyalty customer's details #
Ask an LLM
“How many loyalty points does a customer have?”
“Can I look up a loyalty member by email?”
Tell an agent
Get the loyalty customer {customer_email}.
Show {customer_email}'s point balance.
POST /orders Record a customer's order and award points · Record a loyalty order #
Ask an LLM
“How do I award loyalty points for a customer's order?”
“Can I apply an order to active loyalty campaigns?”
Tell an agent
Record order {order_id} for {customer_email} worth {total_amount_cents} cents.
Apply {total_amount_cents} cents to {customer_email} and award points.
POST /redemptions Redeem a customer's points for a reward · Create a redemption #
Ask an LLM
“How do I redeem a customer's loyalty points for a reward?”
“Does the redemption check the customer's balance first?”
Tell an agent
Redeem {redemption_option_id} for {customer_email}.
Give {customer_email} the reward {redemption_option_id}.
GET /redemption_options List loyalty redemption options · List redemption options #
Ask an LLM
“What rewards can customers redeem their points for?”
“Which redemption options are available?”
Tell an agent
List the redemption options.
Show every reward a customer can redeem points for.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/yotpo:yotpo-loyalty-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

yotpo-loyalty-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Yotpo Loyalty API
  description: Specification of Yotpo's e-commerce retention APIs covering reviews and user-generated content, loyalty and referrals, SMS, subscriptions (Core API), and email. Reviews/UGC, SMS, Email, and Core API requests are authenticated with an app key and an OAuth utoken obtained from the store secret; the Loyalty & Referrals API is authenticated with x-guid and x-api-key headers.
  termsOfService: https://www.yotpo.com/terms-and-conditions/
  contact:
    name: Yotpo Support
    url: https://support.yotpo.com
  version: '1.0'
servers:
- url: https://api.yotpo.com
  description: Reviews / UGC, SMS, Email, and Core API
- url: https://loyalty.yotpo.com/api/v2
  description: Loyalty & Referrals API
tags:
- name: Loyalty
  description: Loyalty and referrals customers, orders, and redemptions.
paths:
  /customers:
    get:
      operationId: getLoyaltyCustomer
      tags:
      - Loyalty
      summary: Fetch a loyalty customer's details
      description: Retrieve a loyalty customer's point balance and details by email. Authenticated with x-guid and x-api-key headers.
      servers:
      - url: https://loyalty.yotpo.com/api/v2
      parameters:
      - name: customer_email
        in: query
        required: true
        schema:
          type: string
          format: email
      security:
      - LoyaltyGuid: []
        LoyaltyApiKey: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoyaltyCustomer'
  /orders:
    post:
      operationId: createLoyaltyOrder
      tags:
      - Loyalty
      summary: Record a loyalty order
      description: Record an order made by a customer. Applies the order to all matching active campaigns and awards the necessary points and/or discounts.
      servers:
      - url: https://loyalty.yotpo.com/api/v2
      security:
      - LoyaltyGuid: []
        LoyaltyApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoyaltyOrder'
      responses:
        '200':
          description: OK
  /redemptions:
    post:
      operationId: createRedemption
      tags:
      - Loyalty
      summary: Create a redemption
      description: Redeem a customer's points for a particular redemption option. Checks eligibility and balance, deducts points, generates a coupon code, and returns it in the response.
      servers:
      - url: https://loyalty.yotpo.com/api/v2
      security:
      - LoyaltyGuid: []
        LoyaltyApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RedemptionRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedemptionResponse'
  /redemption_options:
    get:
      operationId: listRedemptionOptions
      tags:
      - Loyalty
      summary: List redemption options
      servers:
      - url: https://loyalty.yotpo.com/api/v2
      security:
      - LoyaltyGuid: []
        LoyaltyApiKey: []
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RedemptionOptionList'
components:
  schemas:
    RedemptionResponse:
      type: object
      properties:
        coupon_code:
          type: string
        points_deducted:
          type: integer
    LoyaltyCustomer:
      type: object
      properties:
        email:
          type: string
          format: email
        first_name:
          type: string
        last_name:
          type: string
        points_balance:
          type: integer
        points_earned:
          type: integer
        vip_tier_name:
          type: string
    RedemptionRequest:
      type: object
      required:
      - customer_email
      - redemption_option_id
      properties:
        customer_email:
          type: string
          format: email
        redemption_option_id:
          type: integer
    LoyaltyOrder:
      type: object
      required:
      - customer_email
      - total_amount_cents
      properties:
        customer_email:
          type: string
          format: email
        total_amount_cents:
          type: integer
        currency_code:
          type: string
        order_id:
          type: string
    RedemptionOptionList:
      type: object
      properties:
        redemption_options:
          type: array
          items:
            $ref: '#/components/schemas/RedemptionOption'
    RedemptionOption:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        points_cost:
          type: integer
  securitySchemes:
    UToken:
      type: apiKey
      in: query
      name: utoken
      description: OAuth access token obtained from POST /oauth/token.
    LoyaltyGuid:
      type: apiKey
      in: header
      name: x-guid
      description: Loyalty & Referrals account GUID.
    LoyaltyApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Loyalty & Referrals API key.