curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/sandbox/{partner_id}/scenarios/{scenario}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"lines": [
{
"description": "Two-person tent, green — replacement for damaged pole set.",
"quantity": "2",
"sku": "SKU-TENT-2P-GRN",
"sku_qualifier": "string",
"unit_price": "49.00",
"uom": "string"
}
],
"new_quantity": "string",
"po_number": "ORD-10042"
}'
Runs a retailer sandbox scenario for a **test** partner: synthesizes the…
Per-step processing results: document ids, statuses, and generated acknowledgments
POST
/
v1
/
sandbox
/
{partner_id}
/
scenarios
/
{scenario}
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/sandbox/{partner_id}/scenarios/{scenario}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"lines": [
{
"description": "Two-person tent, green — replacement for damaged pole set.",
"quantity": "2",
"sku": "SKU-TENT-2P-GRN",
"sku_qualifier": "string",
"unit_price": "49.00",
"uom": "string"
}
],
"new_quantity": "string",
"po_number": "ORD-10042"
}'
Path parameters
string
required
Test partner ID
string
required
po | po_change | po_cancel | bad_po
Request body
SandboxRequest,null
SandboxLine[]
string,null
po_change: the new quantity for line 1 (default: half the ordered quantity, at least 1).string,null
PO number for the synthetic 850 (default
SBX-<random>). Ignored by bad_po, which omits it on purpose.Response
No response body. Per-step processing results: document ids, statuses, and generated acknowledgments.Status codes
| Code | Meaning |
|---|---|
200 | Per-step processing results: document ids, statuses, and generated acknowledgments |
403 | Not this credential’s partner |
404 | Unknown partner |
409 | Partner is not a test (usage T) partner |
422 | Unknown scenario or invalid body |
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/sandbox/{partner_id}/scenarios/{scenario}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"lines": [
{
"description": "Two-person tent, green — replacement for damaged pole set.",
"quantity": "2",
"sku": "SKU-TENT-2P-GRN",
"sku_qualifier": "string",
"unit_price": "49.00",
"uom": "string"
}
],
"new_quantity": "string",
"po_number": "ORD-10042"
}'
Last modified on October 20, 2026