The reps' answers, 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/stock/loads?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Bstate%5D=ACCEPTED%2CREFUSED&filter%5Bkind%5D=LOAD&filter%5Bexternal_ref%5D=TJ-JNL-0812&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&per_page=100"), 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/stock/loads?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Bstate%5D=ACCEPTED%2CREFUSED&filter%5Bkind%5D=LOAD&filter%5Bexternal_ref%5D=TJ-JNL-0812&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&per_page=100")) .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/stock/loads?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Bstate%5D=ACCEPTED%2CREFUSED&filter%5Bkind%5D=LOAD&filter%5Bexternal_ref%5D=TJ-JNL-0812&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&per_page=100';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/stock/loads?filter%5Bversion_after%5D=18000&filter%5Bupdated_after%5D=2026-10-01T00%3A00%3A00Z&filter%5Bstate%5D=ACCEPTED%2CREFUSED&filter%5Bkind%5D=LOAD&filter%5Bexternal_ref%5D=TJ-JNL-0812&filter%5Bid%5D=ord_01J9X%2Cord_01J9Y&per_page=100' \ --header 'Authorization: Bearer <token>'Every load your ERP sent, oldest change first; an accept, a refusal, a replace or a cancel moves the load past your cursor. Act on a row only when its id is your journal’s current SLFLO load: a ref carries several loads over time. Needs stock: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:00ZComma list of WAITING, ACCEPTED, REFUSED, REPLACED, CANCELLED.
Example
ACCEPTED,REFUSEDLOAD or VAN_TRANSFER.
Example
LOADEvery load one journal ever had.
Example
TJ-JNL-0812Comma list of our ids, at most 100.
Example
ord_01J9X,ord_01J9Y1 to 500, default 100.
Example
100Responses
Section titled “Responses”The reps’ answers, by version
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "data": [ { "answered_at": "2026-10-09T06:40:03Z", "answered_by": { "code": "karim", "id": "u_karim", "name": { "en": "Karim Adel" } }, "external_number": "TJ-000812", "external_ref": "TJ-JNL-0812", "from": { "code": "WH-MAIN", "id": "loc_wh", "name": { "ar": "المخزن الرئيسي", "en": "Main warehouse" } }, "id": "op_01J9L", "kind": "LOAD", "lines": [ { "expires_on": "2027-03-31", "lot": "L2410", "product": { "code": "SKU-COLA", "external_ref": "ITEM-1001", "id": "P0000001" }, "quantity": "240", "unit": { "code": "PCS", "external_ref": "pcs", "id": "PCS" } } ], "loaded_at": "2026-10-09T05:02:11Z", "note": "Two cases are for Al Amal Market.", "number": "LD-000231", "refusal": { "note": "Two cases crushed at the bottom of the pallet.", "reason": "DAMAGED" }, "rep": { "code": "R012", "id": "rep_12", "name": { "ar": "كريم عادل", "en": "Karim Adel" } }, "replaced_by": null, "resent_as": null, "resent_from": null, "state": "REFUSED", "updated_at": "2026-10-09T06:40:03Z", "van": { "code": "VAN-03", "id": "loc_van03", "name": { "ar": "سيارة 3", "en": "Van 3" } }, "version": 9311 } ], "meta": { "has_more": false, "high_water": 9311, "next_version_after": 9311, "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 }}
