curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/purgatory/orders/{id}/lines/{line_id}' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"ignore_item": true,
"non_physical": true,
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"external_order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"external_status": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_posted": true,
"items": [
{
"external_sku": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ignore_item": true,
"non_physical": true,
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": "2",
"resolved": true
}
],
"ready_to_post": true,
"unresolved_count": 1
}
Map line
Map line
POST
/
api
/
v1
/
purgatory
/
orders
/
{id}
/
lines
/
{line_id}
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.stateset.com/api/v1/purgatory/orders/{id}/lines/{line_id}' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"ignore_item": true,
"non_physical": true,
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"external_order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"external_status": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_posted": true,
"items": [
{
"external_sku": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ignore_item": true,
"non_physical": true,
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": "2",
"resolved": true
}
],
"ready_to_post": true,
"unresolved_count": 1
}
Confirm your deployment before running this request. This page describes an API contract;
a published reference does not establish hosted availability. Check the dated
host report and obtain your deployment URL and credentials.
Replace the example host if your provisioned service uses a different URL.
Path parameters
string
required
Purgatory order ID
string
required
Line item ID
Request body
MapLineRequest
boolean,null
boolean,null
string,null
Response
PurgatoryOrderResponse
string
required
string,null
string
required
boolean
required
PurgatoryLineResponse[]
required
boolean
required
integer
required
Minimum:
0.Status codes
| Code | Meaning |
|---|---|
200 | — |
400 | — |
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.stateset.com/api/v1/purgatory/orders/{id}/lines/{line_id}' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"ignore_item": true,
"non_physical": true,
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"external_order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"external_status": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"is_posted": true,
"items": [
{
"external_sku": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ignore_item": true,
"non_physical": true,
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quantity": "2",
"resolved": true
}
],
"ready_to_post": true,
"unresolved_count": 1
}
Last modified on September 21, 2026