Reward Instances API

The Reward Instances API allows merchants to retrieve details of coupon-based rewards issued to their customers. This API supports querying reward instances based on discount type, expiration, and usage status.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

Authentication and pagination

  • Authenticate with your Yotpo access token in the X-Yotpo-Token header (how to generate one), not the Loyalty GUID and API key.
  • discount_type is required on the first request. To get the next page, send only page_info (the pagination.next_page_info value from the previous response); adding other filters to a page_info request returns 400.
  • used takes true or false; omit it to get both.

Supported Discount Types

Discount TypeDescription
fixed_amountDeducts a specific monetary value from the total price.
percentageApplies a percentage-based discount to the total price.
generic_fixed_amountDeducts a specific monetary value from the total price.

Response Structure

Reward Instance Object


KeyTypeDescription
idNumberThe unique ID of the reward instance.
reward_option_idNumberThe ID of the reward option.
reward_textStringThe unique coupon code.
discount_typeStringType of discount (fixed_amount, percentage).
usedBooleanIndicates whether the reward has been used.
created_atDateThe issue date of the reward.
expiration_dateDateThe expiration date (or NULL if there is no expiration or the data is unavailable). Only available for Shopify.
customer_idNumberThe ID of the customer linked to the reward (or NULL if unavailable).
customer_store_account_idStringThe store-specific customer ID (or NULL if unavailable).
customer_emailStringThe email of the associated customer (or NULL if unavailable).
custom_fieldsObjectAdditional data relevant to the discount type.

Custom Field Objects


KeyTypeApplicable Discount TypeDescription
value_centsStringfixed_amountThe coupon's value in cents.
discount_percentageNumberpercentageThe discount percentage applied to the price.

Pagination Object


KeyTypeDescription
next_page_infoStringEncoded information for retrieving the next set of results.
📘

Note

  • Query param expiration_days is only available for Shopify merchants.
  • If a merchant updates a coupon's expiration date after its creation, the API will not reflect the updated date.
  • There's a rate limit of 300 requests per minute.
Path Params
string
required

Your Yotpo store ID (app key).

Query Params
discount_type
array of strings
required

The coupon types to return, comma-separated. Required on the first request; omit it when you pass page_info. Requests without either return 400.

discount_type*
Allowed:
int32

Filters coupons expiring within the specified number of days. Only available for Shopify.

boolean

true returns only used coupons, false only unused ones. Omit it to return both. Must be true or false (1/0 return 400).

string

The pagination.next_page_info cursor from the previous response. Send it on its own: the cursor already carries your filters, and combining it with other filters returns 400.

int32

Number of records per page (default: 20, max: 500).

string

Use to filter only for the rewards relevant for this customer's Email

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/plain