Developer docs
App API reference
In short
The App API lives at https://api.dispenseflow.com/v1/app-api. Every list is cursor-paginated (limit up to 100, cursor = the last item's id, meta.nextCursor in the answer) and every read is scoped to the store the token belongs to. The full machine-readable document is at api.dispenseflow.com/api-docs.
Endpoints
| Method and path | Scope | Returns |
|---|---|---|
GET /app-api/store | read_store | The store (id, name, slug), your app and the granted scopes |
GET /app-api/products | read_products | Products: name, price, compare-at price, prescription or not, published state, image |
GET /app-api/products/{id} | read_products | One product with its description |
GET /app-api/orders | read_orders | Orders: number, source, status, payment and fulfillment status, totals, test flag, dates |
GET /app-api/orders/{id} | read_orders | One order |
GET /app-api/customers | read_customers | Customers: name and email |
GET /app-api/subscriptions | read_subscriptions | Product subscriptions: status, next charge, charge count |
GET /app-api/visits | read_visits (PHI) | Visits: status, provider decision and date, product. Never answers or prescriptions |
GET /app-api/webhooks | none | This install's webhook endpoint and its last fifty deliveries |
Pagination
Pass limit (1 to 100, default 25). When meta.hasMore is true, pass meta.nextCursor as cursor for the next page. Newest first.
curl "https://api.dispenseflow.com/v1/app-api/customers?limit=100&cursor=4b1e..." \
-H "Authorization: Bearer dfapp_..."
Errors
Errors are JSON with error and code: 401 for a missing, revoked or unknown token, 403 SCOPE_NOT_GRANTED with requiredScope, 404 for anything outside the store, 429 when you pass the rate limit.
What is not in the API yet?
Writes. Today the App API reads; writes (fulfillment updates, tags, notes) are on the roadmap. Never what a store pays for a product: merchants' costs are not exposed to apps.
Questions
Is there an SDK?
Not yet. The API is plain HTTPS and JSON, and the OpenAPI document generates a client in any language.