The Stockie API
Available on: Pro Plus.
The Stockie API lets a system you control read purchase orders, receipts, inventory, reorder suggestions and suppliers out of Stockie, and create, order and receive purchase orders in it. It suits an ERP, a warehouse or finance system, or an internal dashboard that should stay in step with Stockie instead of someone re-entering the same numbers in two places.
The reference for implementing it, with every endpoint, field and example request, is at stockie.app/developers/api. If you only need the data in a file now and then, exporting a report is the shorter route.
The API is part of Stockie. There is nothing to apply for and no separate charge for it. Everything it covers is purchase order data, so the keys sit with the purchase orders feature set and a store needs the Pro Plus plan to create a key or make requests.
Creating a key
Settings → Integrations holds a Stockie API card. Until a key exists it says "No API keys yet. Create a key to connect your first tool."
Create API key asks for two things. A Name, up to 80 characters, that tells you later what uses the key, and no two live keys can share one. Then Permissions, where you tick only what that tool needs: Read purchase orders, Write purchase orders, Read inventory, Write inventory and Read suppliers.
The key itself is shown once, right after you create it. Copy it then and put it wherever that system keeps its secrets, because Stockie stores only a hashed copy and cannot show it again. Keys begin with stk_ , so one is recognisable as Stockie's if it turns up somewhere it should not.
A key works only for the store that created it, and a store can hold up to ten live keys at a time. Revoke key on any row stops that key working immediately and cannot be undone, though you can create a replacement at any time.
A key's permissions can't be changed after it is created, so to give a key different access, create a new key with the permissions you need and revoke the old one.

What it can read and write
The reads cover purchase orders as a list and one order in full, with its line items, invoices and payments; a feed of receipts, with unreceives as their own entries; the lines still to arrive across your open purchase orders, found by SKU, barcode or variant; inventory levels per location; Stockie's reorder suggestions and your min/max levels; and suppliers, one supplier, and the variants a supplier supplies with their supplier SKUs.
The writes cover a purchase order from start to finish: create a draft, from lines you choose or from Stockie's suggestions; add, change and remove its lines; update its details and costs; mark it as ordered; receive a delivery in full or in part; record supplier invoices and payments; close it; and delete a draft.
Orders created through the API arrive as drafts. Marking as ordered, receiving, closing and changing lines on an ordered purchase order change your Shopify stock the same as doing it in Stockie, so they need the Write inventory permission as well as Write purchase orders. The API never emails your supplier, and a receipt follows the order's inventory setting, as receiving in Stockie does. What Stockie writes to your store covers the inventory effects.
Worth knowing
Inventory levels are Stockie's live copy of your Shopify inventory, with the time each row was last confirmed against Shopify on the row itself. Purchase orders and receipts can be filtered by date range, so a nightly job can ask only for what changed.
Money always comes back as an amount plus its currency, never a bare number. Stockie's own records are identified by Stockie ids, while anything that belongs to Shopify, such as variants, products and locations, uses its Shopify id.
What it does not cover
Stockie does not send outgoing webhooks, so an integration asks for changes rather than being notified of them. If you need something the API does not reach, tell us what you are building.