curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/mappings/preview' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"definition": {
"fields": [
{
"target": "order_number",
"source": "/po_number",
"required": true
}
],
"arrays": []
},
"input": {
"po_number": "PO-123"
}
}'
Preview
Deterministic mapped output; no publication or delivery
POST
/
v1
/
mappings
/
preview
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/mappings/preview' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"definition": {
"fields": [
{
"target": "order_number",
"source": "/po_number",
"required": true
}
],
"arrays": []
},
"input": {
"po_number": "PO-123"
}
}'
Request body
MappingPreview
MappingDefinition
required
Show MappingDefinition
Show MappingDefinition
any
required
Response
No response body. Deterministic mapped output; no publication or delivery.Status codes
| Code | Meaning |
|---|---|
200 | Deterministic mapped output; no publication or delivery |
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/mappings/preview' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"definition": {
"fields": [
{
"target": "order_number",
"source": "/po_number",
"required": true
}
],
"arrays": []
},
"input": {
"po_number": "PO-123"
}
}'
Last modified on October 20, 2026