Read inventory changes
Returns changes to sites, storage locations and units after the cursor. data is the current value at read time, so the receiver only upserts by id. Without a cursor it starts from the beginning, which syncs everything. Nothing is deleted: deactivation shows in isActive, and a unit leaving stock shows in status.
Keep reading with nextCursor while hasMore is true.
/inventory/changesAuthorizationOAuth2 access token · headerrequiredAuthorization code flow (PKCE S256 required). Send resource=https://api.toreca-cloud.com/partner/v1 with the authorization, token and refresh requests. Access tokens last 15 minutes; refresh tokens last 90 days and rotate on every refresh.
inventory:readcursorstringThe previous nextCursor. Treat it as opaque.
limitintegerincludestringExtras to receive, comma separated. sealed: also return BOX, pack and pre-built deck units (without it, only card units). snkrdunk: put the SNKRDUNK product on a unit's card.snkrdunk / product.snkrdunk. It is costly, so keep limit at 200 or below with it. The cursor points to the same place whatever include says. When you start sending it partway, or want new fields on units you already synced, read once from the beginning without a cursor.
The changes
changesChange[]requiredShow propertiesHide properties
Changetypestringrequiredsitelocationitemidstring<uuid>requireddataSite | Location | InventoryItemrequiredThe site, storage location or unit as of read time: Site for site, Location for location, InventoryItem for item.
Show propertiesHide properties
idstring<uuid>codestringnamestringkindstringcountryCodestringtimezonestringaddressobject | nullThe site's address; only the parts the shop entered.
Show propertiesHide properties
postalCodestringregionstringlocalitystringline1stringline2stringisActivebooleancreatedAtstring<date-time>updatedAtstring<date-time>locationsLocation[]Show propertiesHide properties
Locationidstring<uuid>siteIdstring<uuid>codestringnamestringkindstringisActivebooleancreatedAtstring<date-time>updatedAtstring<date-time>idstring<uuid>siteIdstring<uuid>codestringnamestringkindstringisActivebooleancreatedAtstring<date-time>updatedAtstring<date-time>idstring<uuid>requiredcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredassetNumberstringrequiredsourceKindstringrequiredpurchasereceipttenant_transferproductKindstringrequiredWhat the unit is. box, pack and deck are returned only with include=sealed.
cardboxpackdeckstatusstringrequiredversionintegerrequiredsiteIdstring<uuid> | nullrequiredShow propertiesHide properties
string<uuid>nulllocationIdstring<uuid> | nullrequiredShow propertiesHide properties
string<uuid>nullgradeUnitGrade | nullrequiredShow propertiesHide properties
serviceCodestringrequiredserviceNamestringrequiredserviceKindstringrequiredthird_partyinternalcodestringrequiredlabelstringrequirednumericScorenumber | nullrequiredShow propertiesHide properties
numbernullnullcertificationNumberstring | nullrequiredShow propertiesHide properties
stringnullcertificationVerifiedbooleanrequiredconditionNotestring | nullrequiredShow propertiesHide properties
stringnullacquisitionAmountMinorinteger | nullrequiredShow propertiesHide properties
integernullacquisitionCostBasisstringrequiredHow the acquisition amount is known: actual (a Toreca Cloud purchase, or an external purchase matched to the unit), estimated (estimated from external purchases), recorded (entered on receipt or correction, or carried over from a transfer), unset.
actualestimatedrecordedunsetpurchaseobject | nullrequiredThe purchase from the seller. null for units received without a linked external purchase and units accepted by transfer. Seller details and purchase amounts are not returned.
Show propertiesHide properties
purchasedAtstring<date-time>requiredThe purchase date: arrival time for an external purchase, completion time for a Toreca Cloud purchase (same as acquiredAt).
sourcestringrequiredtoreca_cloud for a Toreca Cloud purchase, external for one in the shop's other purchasing system.
toreca_cloudexternalmatchstringrequiredconfirmed when matched to the unit's certification number, estimated when inferred on import. Always confirmed for Toreca Cloud purchases.
confirmedestimatedcertificationNumberstring | nullrequiredThe certification number on the external purchase line; while estimated, only a candidate. null for Toreca Cloud purchases (see the unit's certificationNumber).
nullcurrencystringrequiredacquiredAtstring<date-time>requiredWhen the unit entered the shop's stock. For the purchase date, see purchase.purchasedAt.
lastMovedAtstring<date-time>requiredallocationstringrequiredyoursothersnoneholdablebooleanrequiredholdRefusalstring | nullrequiredWhy holdable is false: the error code a hold would be refused with now. unit_unavailable means the unit is not in stock (held, listed, on one of the shop's outbound orders, sold and so on), unit_not_allocated that it is set aside for another partner or kept by the shop for another use (or, on an allocated connection, not for this one), and receipt_not_confirmed that it was bought from a customer who has not yet confirmed receiving the payout. When several apply, the first in this order is given. null when holdable is true. More values may be added later.
unit_unavailableunit_not_allocatedreceipt_not_confirmednullcommitmentobject | nullrequiredShow propertiesHide properties
idstring<uuid>requiredpurposestringrequiredoripasalelabelstringrequiredexternalRefstring | nullrequiredShow propertiesHide properties
stringnullnullmarketValueMarketValue | nullrequiredShow propertiesHide properties
amountMinorintegerrequiredcurrencystringrequiredpricedAtstring<date-time>requirednullconditionTagsobject[]requiredShow propertiesHide properties
objectidstring<uuid>requirednamestringrequiredphotosobjectrequiredShow propertiesHide properties
frontobject | nullrequiredShow propertiesHide properties
urlstring<uri>requiredupdatedAtstring<date-time>requirednullbackobject | nullrequiredShow propertiesHide properties
urlstring<uri>requiredupdatedAtstring<date-time>requirednullcardobject | nullrequiredThe card of a card unit; null for BOX, pack and deck units.
Show propertiesHide properties
idstring<uuid>requirednamestringrequiredlocalizedNamesobjectrequiredcardNumberstring | nullrequiredShow propertiesHide properties
stringnulllanguageCodestringrequiredvariantstring | nullrequiredShow propertiesHide properties
stringnullfinishstring | nullrequiredShow propertiesHide properties
stringnullimageUrlstring | nullrequiredShow propertiesHide properties
stringnullrarityobject | nullrequiredShow propertiesHide properties
codestringrequirednamestringrequirednullsetobject | nullrequiredShow propertiesHide properties
idstring<uuid>requiredcodestringrequirednamestringrequirednameEnstring | nullrequiredShow propertiesHide properties
stringnullnullgameGamerequiredShow propertiesHide properties
idstring<uuid>codestringnamestringsnkrdunkSnkrdunkProduct | nullPresent only with include=snkrdunk. null means there is no link.
Show propertiesHide properties
productIdstringrequiredurlstring<uri>requirednullproductobject | nullrequiredThe product of a BOX, pack or deck unit; null for card units.
Show propertiesHide properties
idstring<uuid>requiredkindstringrequiredboxpackdecknamestringrequiredproductCodestring | nullrequiredjanCodestring | nullrequiredlanguageCodestringrequiredimageUrlstring | nullrequiredgameGamerequiredShow propertiesHide properties
idstring<uuid>codestringnamestringsnkrdunkSnkrdunkProduct | nullPresent only with include=snkrdunk. null means there is no link.
Show propertiesHide properties
productIdstringrequiredurlstring<uri>requirednullnullshrinkStatusstring | nullrequiredWhether a BOX, pack or deck still has its shrink wrap; null for card units.
presentabsentunknownnullnextCursorstringrequiredhasMorebooleanrequiredinvalid_request or invalid_cursor
errorstringrequiredThe error code. The main ones are below; more may be added.
400:invalid_request(bad parameters or body),invalid_cursor401:invalid_token403:insufficient_scope,connection_revoked,client_disabled,forbidden,ip_not_allowed404:not_found409:conflict(updated at the same time; read again and retry),idempotency_conflict(arequestIdreused for different content),receipt_not_confirmed(a purchase awaiting the customer's payment confirmation)422units:unit_unavailable(not in stock),unit_not_allocated(not allocated to this partner),unit_not_found422holds:invalid_expiry,hold_shipped,hold_cancelled,hold_confirmed,hold_blocked,sale_amount_required(neither a sale price nor a market value)422listings and shipments:commitment_not_on_sale,commitment_not_allocated,commitment_shipping,commitment_blocked,commitment_closed,commitment_not_on_shipment,shipment_shipped,shipment_cancelled,shipment_not_shipped,shipment_blocked,shipment_refused422moves:invalid_location,location_inactive,different_site,same_site,mixed_sites,invalid_site,site_inactive,wrong_site,unit_not_on_transfer,transfer_line_closed,unit_not_on_checkout,move_refused,transfer_refused,checkout_refused,return_refused422other:invalid_webhook_url,invalid_generated_at429:rate_limited503:photo_unavailable
scopestringWith insufficient_scope, the missing scope
requestIdstring<uuid>inventoryItemIdsstring<uuid>[]holdIdsstring<uuid>[]commitmentIdsstring<uuid>[]invalid_token: the token is missing, expired, or for another resource.
errorstringrequiredThe error code. The main ones are below; more may be added.
400:invalid_request(bad parameters or body),invalid_cursor401:invalid_token403:insufficient_scope,connection_revoked,client_disabled,forbidden,ip_not_allowed404:not_found409:conflict(updated at the same time; read again and retry),idempotency_conflict(arequestIdreused for different content),receipt_not_confirmed(a purchase awaiting the customer's payment confirmation)422units:unit_unavailable(not in stock),unit_not_allocated(not allocated to this partner),unit_not_found422holds:invalid_expiry,hold_shipped,hold_cancelled,hold_confirmed,hold_blocked,sale_amount_required(neither a sale price nor a market value)422listings and shipments:commitment_not_on_sale,commitment_not_allocated,commitment_shipping,commitment_blocked,commitment_closed,commitment_not_on_shipment,shipment_shipped,shipment_cancelled,shipment_not_shipped,shipment_blocked,shipment_refused422moves:invalid_location,location_inactive,different_site,same_site,mixed_sites,invalid_site,site_inactive,wrong_site,unit_not_on_transfer,transfer_line_closed,unit_not_on_checkout,move_refused,transfer_refused,checkout_refused,return_refused422other:invalid_webhook_url,invalid_generated_at429:rate_limited503:photo_unavailable
scopestringWith insufficient_scope, the missing scope
requestIdstring<uuid>inventoryItemIdsstring<uuid>[]holdIdsstring<uuid>[]commitmentIdsstring<uuid>[]One of insufficient_scope, connection_revoked, client_disabled or forbidden.
errorstringrequiredThe error code. The main ones are below; more may be added.
400:invalid_request(bad parameters or body),invalid_cursor401:invalid_token403:insufficient_scope,connection_revoked,client_disabled,forbidden,ip_not_allowed404:not_found409:conflict(updated at the same time; read again and retry),idempotency_conflict(arequestIdreused for different content),receipt_not_confirmed(a purchase awaiting the customer's payment confirmation)422units:unit_unavailable(not in stock),unit_not_allocated(not allocated to this partner),unit_not_found422holds:invalid_expiry,hold_shipped,hold_cancelled,hold_confirmed,hold_blocked,sale_amount_required(neither a sale price nor a market value)422listings and shipments:commitment_not_on_sale,commitment_not_allocated,commitment_shipping,commitment_blocked,commitment_closed,commitment_not_on_shipment,shipment_shipped,shipment_cancelled,shipment_not_shipped,shipment_blocked,shipment_refused422moves:invalid_location,location_inactive,different_site,same_site,mixed_sites,invalid_site,site_inactive,wrong_site,unit_not_on_transfer,transfer_line_closed,unit_not_on_checkout,move_refused,transfer_refused,checkout_refused,return_refused422other:invalid_webhook_url,invalid_generated_at429:rate_limited503:photo_unavailable
scopestringWith insufficient_scope, the missing scope
requestIdstring<uuid>inventoryItemIdsstring<uuid>[]holdIdsstring<uuid>[]commitmentIdsstring<uuid>[]
