curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/partners/{id}/xref/locations' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"description": "Two-person tent, green — replacement for damaged pole set.",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_type": "string",
"partner_location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ship_to": "string"
}'
{
"created_at": "2026-08-31T14:22:05Z",
"description": "Two-person tent, green — replacement for damaged pole set.",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_type": "string",
"partner_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"partner_location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ship_to": "string",
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"updated_at": "2026-08-31T14:22:05Z"
}
Create a location
Create a location
POST
/
v1
/
partners
/
{id}
/
xref
/
locations
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/partners/{id}/xref/locations' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"description": "Two-person tent, green — replacement for damaged pole set.",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_type": "string",
"partner_location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ship_to": "string"
}'
{
"created_at": "2026-08-31T14:22:05Z",
"description": "Two-person tent, green — replacement for damaged pole set.",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_type": "string",
"partner_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"partner_location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ship_to": "string",
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"updated_at": "2026-08-31T14:22:05Z"
}
Path parameters
string
required
Trading partner id
Request body
LocationXrefInput
string,null
string
required
string,null
string
required
string,null
Response
LocationXref
string (date-time)
required
string,null
string
required
string
required
Our location / warehouse id.
string,null
store, dc, … (free text, informational).string
required
string
required
The partner’s store / DC number (N1*ST/N104). Numeric values match regardless of leading zeros.
string,null
Our ship-to code, if it differs from the location id.
string
required
string (date-time)
required
Status codes
| Code | Meaning |
|---|---|
200 | Created |
409 | Partner location already mapped |
422 | Invalid input |
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/partners/{id}/xref/locations' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header 'Content-Type: application/json' \
--data '{
"description": "Two-person tent, green — replacement for damaged pole set.",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_type": "string",
"partner_location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ship_to": "string"
}'
{
"created_at": "2026-08-31T14:22:05Z",
"description": "Two-person tent, green — replacement for damaged pole set.",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"location_type": "string",
"partner_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"partner_location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ship_to": "string",
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"updated_at": "2026-08-31T14:22:05Z"
}
Last modified on October 20, 2026