Why can't I retrieve all Purchase Orders from Stocky API?

Why can't I retrieve all Purchase Orders from Stocky API?

sebshop96
Shopify Partner
4 0 3

I am trying to retrieve Purchase Orders via Stocky API. Without any filters, I always get the same 2 orders out of many hundreds with GET https://stocky.shopifyapps.com/api/v2/purchase_orders.json
Furthermore, from those two orders, if I attempt to get further details then I get a 404 / Not Found with
GET /api/v2/purchase_orders/{purchase_order_id}.json


curl --location 'https://stocky.shopifyapps.com/api/v2/purchase_orders.json' \
--header 'Store-Name: examplestore.myshopify.com' \
--header 'Authorization: API KEY=1234567890’

Reply 1 (1)

sebshop96
Shopify Partner
4 0 3

After a fair bit of wasted time trying to understand this I just realised what the issue or confusion was. Long story short, Shopify and Stocky have their owner Purchase Orders "modules" which are not related at all. They are completely separate entities, If you create a PO in Shopify it will not show in Stocky and vice versa.

I was trying to create POs in Shopify and then retrieve them via Stocky API but clearly that was never going to work... 😕