Purchases
Buy an item for the person if its price drops
Live
https://shopitup.ca/api/v1/price-watches
A price watch: ShopItUp buys the item for the person when its price is max_price or less and the total with
shipping and tax is within max_total, holding their saved card (charged 24 hours later unless they cancel) and shipping to their saved address, within the
spending limits they set — at most once, before it expires (up to 30 days). It does not reserve the item before it buys; if the item
sells first the watch ends. The person is emailed when it is set (with a cancel link) and when it buys, ends or
needs them. Same permission and stores as POST /purchases. Refused, among others, with already_at_price when
the item is already at or under max_price (buy it now instead), already_watching, too_many_watches (25),
store_requires_checkout_link, over_spending_limit, spending_limit_not_set, purchases_paused.
- Access
-
purchase:writeHow to get a token - Returns
- The price watch
Request body
JSON, sent with Content-Type: application/json.
-
catalog_item_idstring Required -
max_pricenumber RequiredBuy when the item's price is this or less (before shipping and tax).
-
max_totalnumber RequiredThe most to spend in all, including shipping and tax.
-
daysinteger
Response
201 The price watch
-
price_watch_idinteger -
statusstring -
catalog_item_idstring -
titlestring -
max_priceMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
max_totalMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
current_priceMoney2 child attributes
-
amountstring RequiredDecimal string, two places
-
currencystring Required
-
-
outcomestringWhy it ended, when it did (e.g.
bought,item_sold,over_your_total,card_declined,limits_lowered,assistant_disconnected,expired). -
order_numberstring -
expires_atstring date-time -
created_atstring date-time
Status codes
The price watch
Refused; no watch was set
The request is invalid; fields says which field and why
Missing, invalid or expired access token
The token does not carry the scope this endpoint needs
Too many requests; retry after the number of seconds in Retry-After
A service the API depends on is briefly unavailable; retry after the number of seconds in Retry-After