Skip to content

Read who earns

GET /program/eligibility
Scopeprogram:read
Customer session tokenNot accepted: call from your server with an API key
Rate limit classread (limits)
Idempotency keyNot used
MCP toolcharm_get_eligibility

Who can earn points and on what: the customer audience, excluded customer, order and product tags, excluded products, variants and collections, gift cards, discounted items, subscription renewals, membership purchases, and whether customers must opt in. Also what the automatic VIP tier and membership discount may touch at checkout (member_discounts).

Returns Eligibility.

FieldTypeDescription
revisioninteger
customer_audiencestring: all, b2c_only, b2b_onlyWho can earn: everyone, only retail (B2C) customers, or only B2B company customers.
excluded_customer_tagsarray of stringCustomers with any of these tags never earn.
excluded_order_tagsarray of stringOrders with any of these tags earn nothing.
excluded_product_tagsarray of stringProducts with any of these tags earn nothing.
excluded_productsarray of object
excluded_collectionsarray of object
exclude_gift_cardsboolean
exclude_discounted_itemsbooleanItems sold below their compare-at price earn nothing.
exclude_subscription_renewalsbooleanRecurring subscription orders earn nothing (the first order still does).
exclude_membership_purchasesbooleanBuying a paid membership earns no points.
opt_inobject
member_discountsobjectWhat the automatic VIP tier and membership discount may touch at checkout. Membership products and gift cards are never discounted.
{
"revision": 1,
"customer_audience": "all",
"excluded_customer_tags": [
"excluded customer tags"
],
"excluded_order_tags": [
"excluded order tags"
],
"excluded_product_tags": [
"excluded product tags"
],
"excluded_products": [
{
"id": "id",
"title": "title",
"variant_ids": [
"variant ids"
]
}
],
"excluded_collections": [
{
"id": "id",
"title": "title"
}
],
"exclude_gift_cards": false,
"exclude_discounted_items": false,
"exclude_subscription_renewals": false,
"exclude_membership_purchases": false,
"opt_in": {
"required": false,
"marketing_consent": false
},
"member_discounts": {
"combine_with_other_discounts": false,
"exclude_sale_items": false,
"exclude_subscription_items": false,
"excluded_product_tags": [
"excluded product tags"
],
"excluded_collections": [
{
"id": "id",
"title": "title"
}
]
}
}
Terminal window
curl -X GET "https://charm.appfleece.app/api/v1/program/eligibility" \
-H "Authorization: Bearer chrm_live_..."

unauthorized · invalid_token · insufficient_scope · access_required · validation_error · rate_limited

Every error body carries code, message, request_id and a doc_url pointing at the matching entry in the error catalog.