Developer docs

App API reference

Dispense Flow developers

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 pathScopeReturns
GET /app-api/storeread_storeThe store (id, name, slug), your app and the granted scopes
GET /app-api/productsread_productsProducts: name, price, compare-at price, prescription or not, published state, image
GET /app-api/products/{id}read_productsOne product with its description
GET /app-api/ordersread_ordersOrders: number, source, status, payment and fulfillment status, totals, test flag, dates
GET /app-api/orders/{id}read_ordersOne order
GET /app-api/customersread_customersCustomers: name and email
GET /app-api/subscriptionsread_subscriptionsProduct subscriptions: status, next charge, charge count
GET /app-api/visitsread_visits (PHI)Visits: status, provider decision and date, product. Never answers or prescriptions
GET /app-api/webhooksnoneThis 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.