Skip to Content
API ReferenceWallet

Quote a cashback rule

Check the cashback a purchase would earn for a product or store-wide.

Ask which cashback rule a purchase would earn and, with purchase_cents, how many USD cents it would add to the customer's wallet. Send product_id to check one product: a rule that names the product wins over the store-wide rule. Leave it out to check the store-wide rule only. Nothing is created or charged.

GET
/v2/cashback-rules/quote

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Query Parameters

product_id?integer

The product to quote. Leave it out to quote the store-wide rule.

Range1 <= value
purchase_cents?integer

The purchase amount to quote, in integer USD cents.

Range1 <= value

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X GET 'https://sell.app/api/v2/cashback-rules/quote' \  -H 'X-STORE: launch-lab'
{  "data": {    "product_id": 120,    "purchase_cents": 10000,    "eligible": true,    "cashback_cents": 500,    "reason": "A $100.00 purchase would earn $5.00 from 5.00% cashback up to $10.00.",    "matching_rule": {      "id": 71,      "percent_basis": 500,      "maximum_cashback_cents": 1000,      "is_active": true,      "product_ids": [        120      ],      "created_at": "2026-07-03T09:12:00.000000Z",      "updated_at": "2026-07-03T09:12:00.000000Z",      "deleted_at": null    }  }}