One recorded unload
GET
/api/integration/v1/stock/unloads/{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/unloads/TJ-JNL-0815"), 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/unloads/TJ-JNL-0815")) .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/unloads/TJ-JNL-0815';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/unloads/TJ-JNL-0815 \ --header 'Authorization: Bearer <token>'The unload recorded under your journal id, with what each product and lot held and counted, and the shortages; result is null. 404 NOT_FOUND when the ref never reached SLFLO. Needs stock:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ref
required
string
Your key for the unload — the posted transfer journal’s id in your ERP.
Example
TJ-JNL-0815Responses
Section titled “Responses”One recorded unload
Media typeapplication/json
object
data
required
object
business_day
required
string
counted_at
required
string
entity
required
string
external_number
string
external_ref
required
string
from
required
object
code
required
string
id
required
string
name
required
object
key
additional properties
string
held_back
required
boolean
id
required
string
lines
required
Array<object>
object
counted
required
string
held
required
string
lot
string
overage
required
string
product
required
object
code
string
external_ref
string
id
required
string
shortage
required
string
unit
required
object
code
string
external_ref
string
id
required
string
number
required
string
rep
object
code
string
id
required
string
name
required
object
key
additional properties
string
result
string
shortages
required
Array<object>
object
currency
string
id
required
string
lot
string
product
required
object
code
string
external_ref
string
id
required
string
quantity
required
string
unit_price
string
value
string
to
required
object
code
required
string
id
required
string
name
required
object
key
additional properties
string
van
required
object
code
required
string
id
required
string
name
required
object
key
additional properties
string
version
required
integer format: int64
Example
{ "data": { "business_day": "2026-10-09", "counted_at": "2026-10-09T15:10:00Z", "entity": "van_unload", "external_number": "TJ-000815", "external_ref": "TJ-JNL-0815", "from": { "code": "VAN-03", "id": "loc_van03", "name": { "ar": "سيارة 3", "en": "Van 3" } }, "held_back": false, "id": "op_01J9U", "lines": [ { "counted": "22", "held": "24", "lot": "L2410", "overage": "0", "product": { "code": "SKU-COLA", "external_ref": "ITEM-1001", "id": "P0000001" }, "shortage": "2", "unit": { "code": "PCS", "external_ref": "pcs", "id": "PCS" } } ], "number": "UL-000044", "rep": { "code": "R012", "id": "rep_12", "name": { "ar": "كريم عادل", "en": "Karim Adel" } }, "result": null, "shortages": [ { "currency": "EGP", "id": "vs_01J9V", "lot": "L2410", "product": { "code": "SKU-COLA", "external_ref": "ITEM-1001", "id": "P0000001" }, "quantity": "2", "unit_price": "100.00", "value": "200.00" } ], "to": { "code": "WH-MAIN", "id": "loc_wh", "name": { "ar": "المخزن الرئيسي", "en": "Main warehouse" } }, "van": { "code": "VAN-03", "id": "loc_van03", "name": { "ar": "سيارة 3", "en": "Van 3" } }, "version": 9420 }}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 }}
