I looking for a way to retrieve inventory data related to an order.
I have a webhook setup in Stripe, to get notifications when orders are placed. Stripe passes along the Squarespace
, so I'm able to use the Orders API to get data about the order. The Inventory API, though, expects a
, and it doesn't seem like that is included in the Orders API response. The only inventory-related values I'm seeing in the order response are
, but neither of those work as values to send to the Inventory ID.
Is there a way to do this, other than requesting the entire inventory from the API and paging through it until I find the correct SKU?