curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/edifact/outbound/invrpt/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"document_code": "string",
"inventory_date": "2026-08-31T14:22:05Z",
"lines": [
{
"item": "string",
"line_number": "string",
"location": "string",
"quantities": [
{
"location": "string",
"qualifier": "string",
"quantity": "2",
"uom": "string"
}
]
}
],
"location": "string",
"message_function": "string",
"report_date": "2026-08-31T14:22:05Z",
"report_number": "string",
"reporting_party": "string"
}'
Edifact outbound invrpt
Wire-ready UN/EDIFACT INVRPT interchange
POST
/
v1
/
edifact
/
outbound
/
invrpt
/
{partner_id}
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/edifact/outbound/invrpt/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"document_code": "string",
"inventory_date": "2026-08-31T14:22:05Z",
"lines": [
{
"item": "string",
"line_number": "string",
"location": "string",
"quantities": [
{
"location": "string",
"qualifier": "string",
"quantity": "2",
"uom": "string"
}
]
}
],
"location": "string",
"message_function": "string",
"report_date": "2026-08-31T14:22:05Z",
"report_number": "string",
"reporting_party": "string"
}'
Path parameters
string
required
Partner ID
Headers
string,null
Stable unique request key (1–128 ASCII letters/digits or -_.:). Requires Postgres. Retries return the original EDI bytes; changed JSON payload returns 409.
Request body
EdifactInventoryReport
string,null
BGM C002 1001 (
35 inventory report, 78 inventory movement advice, 79 inventory status advice).string,null
Header DTM+366 — the date the inventory was reported for.
EdifactInventoryLine[]
required
Show EdifactInventoryLine
Show EdifactInventoryLine
string
required
Item identifier from LIN C212 7140, else a PIA (5 outranks 1).
string
required
LIN 1082 (n..6).
string,null
SG9 LOC C517 3225 (an..25) — the item’s location, when the line states one before its quantities.
EdifactInventoryQuantity[]
required
SG11 quantities, in order.
string,null
SG2 LOC C517 3225 (an..25) under the reporting party — the reported location (written as LOC+18, warehouse).
string,null
BGM 1225 message function (
9 original, 5 replace, …).string,null
Header DTM+137 — the report’s date.
string
required
BGM C106 1004 — the report’s number.
string,null
SG2 NAD+GY — the inventory reporting party.
Response
No response body. Wire-ready UN/EDIFACT INVRPT interchange.Status codes
| Code | Meaning |
|---|---|
200 | Wire-ready UN/EDIFACT INVRPT interchange |
403 | Not this credential’s partner |
409 | Idempotency-Key reused with a different payload |
422 | Invalid payload |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/edifact/outbound/invrpt/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"document_code": "string",
"inventory_date": "2026-08-31T14:22:05Z",
"lines": [
{
"item": "string",
"line_number": "string",
"location": "string",
"quantities": [
{
"location": "string",
"qualifier": "string",
"quantity": "2",
"uom": "string"
}
]
}
],
"location": "string",
"message_function": "string",
"report_date": "2026-08-31T14:22:05Z",
"report_number": "string",
"reporting_party": "string"
}'
Last modified on October 20, 2026