The latest load of one journal
GET
/api/integration/v1/stock/loads/{ref}
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/TJ-JNL-0812"), 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/TJ-JNL-0812")) .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/TJ-JNL-0812';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/TJ-JNL-0812 \ --header 'Authorization: Bearer <token>'Whatever became of it, a cancelled one included; 404 NOT_FOUND only when the ref never reached SLFLO. For re-checking a load that has waited too long. Needs stock:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ref
required
string
Your key for the load — the transfer journal’s id in your ERP.
Example
TJ-JNL-0812Responses
Section titled “Responses”The latest load of one journal
Media typeapplication/json
object
data
required
object
answered_at
string
answered_by
object
code
string
id
required
string
name
required
object
key
additional properties
string
external_number
string
external_ref
required
string
from
required
object
code
required
string
id
required
string
name
required
object
key
additional properties
string
id
required
string
kind
required
string
lines
required
Array<object>
object
expires_on
string
lot
string
product
required
object
code
string
external_ref
string
id
required
string
quantity
required
string
unit
required
object
code
string
external_ref
string
id
required
string
loaded_at
required
string
note
string
number
required
string
refusal
object
note
required
string
reason
required
string
rep
object
code
string
id
required
string
name
required
object
key
additional properties
string
replaced_by
string
resent_as
string
resent_from
string
state
required
string
updated_at
required
string
van
required
object
code
required
string
id
required
string
name
required
object
key
additional properties
string
version
required
integer format: int64
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 }}default
Section titled “default”An error: the code says what, retryable whether to try again.
Media typeapplication/json
object
error
required
object
code
required
Stable code, e.g. SCOPE_MISSING, UNKNOWN_REFERENCE.
string
details
required
Field-level problems: {field, code}.
Array<object>
object
key
additional properties
string
message
required
What happened and how to fix it.
string
request_id
required
Quote it to support; it finds the server log.
string
retryable
required
Whether the same call may succeed later.
boolean
Example
{ "error": { "code": "SCOPE_MISSING", "details": [], "message": "This client does not hold the invoices:read scope.", "request_id": "req_01J9X4Q7T2M8P3NRT6V5WZ", "retryable": false }}
