Skip to content

Command 100 — List ordersrework

The behaviour differs, read the whole section. Two things bite: closed orders are no longer listed by default, and paging is gone.

V2 checks an app permission on every call — V1 checked none — and a call whose permission is missing answers 400 with errorCode 15, the same status as an invalid payload (see 4.4). Grant these to the API user before porting the command; the names are the ones of the permission tree in flowww.

CallPermission
GET /orderStock Control - Orders → List
API V1
curl --location --request GET 'https://euapi.flowww.net/v1/fwa_external_get.asp?cmd=100&doctor=USER_LOGIN&pass=USER_PASS&country=ES&key=SYSTEM_KEY&ClinicID=1&OrdersPage=0' \
--data-urlencode 'OrderGReady=1' \
--data-urlencode 'OrderGStatus=0' \
--data-urlencode 'OrderGClosed=0'
API V2
curl --location 'https://api.flowww.net/v2/order?clinicID=1' \
--header 'Authorization: Bearer <api_key>'
Response
[ { "OrderGID": 41, "OrderGPartNum": 0,
"OrderFullNumber": "000001P/40",
"OrderGDate": "17/04/2026",
"OrderGNumProducts": 1, "OrderGTotalAmount": 0,
"OrderGReady": true, "OrderGStatus": "PENDING",
"OrderGClosed": false,
"Details": [ { "OrderProductDesc": "…",
"OrderProductUnits": 1 } ] } ]
API V1API V2Notes
ClinicID?clinicID=The clinic whose orders are listed. If that clinic is itself a purchasing centre, the list shows instead the orders it receives.
OrderGStatus (0 Pending / 1 Processed / 2 Sent)?orderState=Same numeric codes, comma-separated (orderState=0,1), plus 3 for closed orders. Default: 0,1,2 — closed orders are not listed unless you add 3 (V1 listed them). In the response the status comes as text: PENDING, PROCESSED, SENT_TO_CLINIC.
OrderGReady, OrderGClosed—No query filter, but both come back on every row as booleans (true/false instead of 1/0). Filter on your side.
—?searchText=New: free text over order number, clinic or date.
OrdersPage + <PageInfo>—Gap: no paging. The response is a bare array with at most 50 order parts. With a high volume of orders, narrow the query with orderState and searchText so that it returns fewer than 50.
error 108011 (page out of range)—Cannot happen any more.
  • The V2 list already embeds a Details summary per order, so for a simple “what is in this order” you may not need command 101’s replacement at all.
  • An empty list answers 404: treat it as “no orders”.