Skip to content

The latest load of one journal

GET
/api/integration/v1/stock/loads/{ref}
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.

ref
required
string

Your key for the load — the transfer journal’s id in your ERP.

Example

TJ-JNL-0812

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
}
}

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
}
}