Add a wallet item
POST/v1/test/members/{id}/wallet
Puts a reward in the member's wallet as an available item, without an offer or a tier. Use it to test the wallet screen and wallet redemptions at checkout. A reward.issued webhook fires.
Permissions: Sandbox secret key.
Guide
SandboxRequest headers#
Idempotency-KeystringAny string up to 255 characters; use a UUID v4. Kept 24 hours per key (or member) and endpoint. Same key and body replays the first response withIdempotent-Replayed: true.Max Length 255
Path parameters#
idstring (uuid)Required
Request body#
reward_idstring (uuid)RequiredThe reward to add.
Response fields#
Returns 201 with WalletItem
idstring (uuid)Send this aswallet_item_idon previews and redemptions.rewardRewardThe reward, in the same shape as the catalog, withkind: "wallet"and nopoints_cost. Itsrulesapply at checkout.Show attributesReward
idstring (uuid)Send this asreward_idon previews and redemptions.namestringFor exampleFree drip coffee.descriptionstringShort text for the guest.image_urlstring (uri)NullableHTTPS image URL.kindstringpoints(catalog) orwallet(given to one member). May grow.One ofpoints,walletpoints_costintegerPoints the reward costs. Only onpointsrewards; wallet rewards don't have it.discountDiscountShow attributesDiscount
typestringOne ofamount,percent,free_item,bogoamount_centsintegerForamount.percentnumberForpercent.itemsarray of objectItem scope, by Square variation id.Show attributesHide attributes
pos_item_idstringnamestring
categoriesarray of objectCategory scope.Show attributesHide attributes
pos_category_idstringnamestring
max_itemsinteger
rulesRulesShow attributesRules
min_subtotal_centsintegerInteger cents.Min 0channelsarray of stringOne ofapp,weblocation_idsarray of string (uuid)fulfillmentarray of stringOne ofpickup,delivery,curbside,dine_inavailable_timesarray of AvailableTimeShow attributesAvailableTime
daysarray of stringShow valuesHide values
montuewedthufrisatsun
startstringLocal time, HH:MM.endstringLocal time, HH:MM.
tier_idsarray of string (uuid)
starts_atstring (date-time)NullableWhen the reward becomes available.nullmeans it already is.ends_atstring (date-time)NullableWhen it stops being available.nullmeans no end date.
sourcestringHow the member got it. See the table below. May grow.One oftier,offer,challenge,journey,support,birthdayoffer_idstring (uuid)NullableThe offer, whensourceisoffer.statusstringavailable,reserved,usedorexpired.One ofavailable,reserved,used,expiredissued_atstring (date-time)When it landed in the wallet.expires_atstring (date-time)NullableAfter this time it can't be used.nullmeans it doesn't expire.used_atstring (date-time)NullableWhen an order used it.order_idstring (uuid)NullableThe order that used it.
Error descriptions#
404Not found
member_not_found
No member with this id.
404Not found
reward_not_found
No reward with this id.
404Not found
not_found
Called on production.
Any endpoint can also return the common errors.