Orders, by version
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://api.slflo.com/api/integration/v1/orders?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Back%5D=pending&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&filter%5Bexternal_ref%5D=SO-0012345&per_page=100&filter%5Bstatus%5D=ERP_PENDING"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.slflo.com/api/integration/v1/orders?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Back%5D=pending&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&filter%5Bexternal_ref%5D=SO-0012345&per_page=100&filter%5Bstatus%5D=ERP_PENDING")) .header("Authorization", "Bearer <token>") .method("GET", HttpRequest.BodyPublishers.noBody()) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());const url = 'https://api.slflo.com/api/integration/v1/orders?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Back%5D=pending&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&filter%5Bexternal_ref%5D=SO-0012345&per_page=100&filter%5Bstatus%5D=ERP_PENDING';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.slflo.com/api/integration/v1/orders?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Back%5D=pending&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&filter%5Bexternal_ref%5D=SO-0012345&per_page=100&filter%5Bstatus%5D=ERP_PENDING' \ --header 'Authorization: Bearer <token>'Oldest change first, keyset by version. Repeat with meta.next_version_after until has_more is false; stage by (id, version). Needs orders:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The cursor: the last version you staged, or meta.next_version_after. version_after is accepted too.
Example
18000ISO-8601 time; starts a first load at the first change from then. Not beside a cursor.
Example
2026-10-01T00:00:00ZPending (no ack at the current version), accepted, rejected or any (default).
Example
pendingComma list of our ids, at most 100.
Example
ord_01J9X,ord_01J9YYour key for the record, as you acked it.
Example
SO-00123451 to 500, default 100.
Example
100Comma list of order statuses.
Example
ERP_PENDINGResponses
Section titled “Responses”Orders, by version
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "data": [ { "ack": null, "branch": { "code": "MAIN", "external_ref": "CUST-0042/01", "id": "C0000001:main" }, "created_at": "2026-10-05T08:12:44Z", "currency": "EGP", "customer": { "code": "CUST-1", "external_ref": "CUST-0042", "id": "C0000001" }, "external_number": null, "external_ref": null, "id": "ord_01J9X", "idempotency_key": "op_7f3a", "lines": [ { "amount": "1255.00", "discount": "0.00", "is_free_goods": false, "line_number": 1, "line_total": "1430.70", "product": { "code": "SKU-COLA", "external_ref": "ITEM-1001", "id": "P0000001" }, "promotion_code": null, "quantity": "10.000", "tax": [ { "amount": "175.70", "code": "VAT", "rate": "14.00" } ], "unit": { "code": "CASE", "external_ref": "cs", "id": "CASE" }, "unit_price": "125.50" } ], "number": "SO-000123", "order_date": "2026-10-05", "prices_include_tax": false, "sales_rep": { "code": "R012", "external_ref": "EMP-0451", "id": "rep_12" }, "status": "ERP_PENDING", "totals": { "discount": "0.00", "gross": "1430.70", "net": "1255.00", "subtotal": "1255.00", "tax": "175.70" }, "updated_at": "2026-10-05T10:42:00Z", "version": 18342, "visit_id": "vis_01J9" } ], "meta": { "has_more": true, "high_water": 18990, "next_version_after": 18342, "per_page": 100 }}default
Section titled “default”An error: the code says what, retryable whether to try again.
object
object
Stable code, e.g. SCOPE_MISSING, UNKNOWN_REFERENCE.
Field-level problems: {field, code}.
object
What happened and how to fix it.
Quote it to support; it finds the server log.
Whether the same call may succeed later.
Example
{ "error": { "code": "SCOPE_MISSING", "details": [], "message": "This client does not hold the invoices:read scope.", "request_id": "req_01J9X4Q7T2M8P3NRT6V5WZ", "retryable": false }}
