Skip to content
StampyWalletDocs
API and webhooks / Reference / Get the business

Get the business

GET /v1/commerce returns the profile of the business linked to the key and the rules of its loyalty card.

GET/v1/commerce

Returns the business the key belongs to: its name, currency, time zone and card rules (mode, goal, rewards, amount rule). Handy to check a key, or to show the card rule in your POS.

Example

curl https://app.stampywallet.com/v1/commerce \
  -H "Authorization: Bearer sw_live_your_key"

Response

200 OK
{
  "id": "5f0c8e2a-3b1d-4c9e-9a51-2d7f3e8b6a10",
  "nom": "Boulangerie Lemaire",
  "mode": "tampons",
  "tampons_requis": 10,
  "recompense": "A free baguette",
  "recompenses": [ { "seuil": 10, "libelle": "A free baguette" } ],
  "devise": "EUR",
  "montant_par_tampon": 10,
  "points_par_unite": null,
  "tampons_bienvenue": 1,
  "conditions_exigees": false,
  "premium": null,
  "fuseau": "Europe/Paris",
  "langue": "fr"
}
FieldMeaning
modetampons, paliers or points (card types)
recompensesEach reward with its seuil (threshold)
montant_par_tamponThe "€10 = 1 stamp" rule, or null
points_par_uniteIn points mode: how many points for 1 unit of currency
conditions_exigeestrue if the business requires acceptance of its terms: then pass conditions_acceptees: true when creating a customer
premiumThe second counter, when the business has opened it, otherwise null

Updated

Was this page helpful?