curl --request POST \
--url 'https://prod-api.stateset.cloud.stateset.app/api/v1/purchase-orders/{id}/submit' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"notes": "Two-person tent, green — replacement for damaged pole set."
}'
{
"data": null,
"errors": [
"string"
],
"message": "Two-person tent, green — replacement for damaged pole set.",
"meta": {
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"timestamp": "2026-08-31T14:22:05Z"
},
"success": true
}
Submit a purchase order for approval
Purchase order submitted for approval
POST
/
api
/
v1
/
purchase-orders
/
{id}
/
submit
curl --request POST \
--url 'https://prod-api.stateset.cloud.stateset.app/api/v1/purchase-orders/{id}/submit' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"notes": "Two-person tent, green — replacement for damaged pole set."
}'
{
"data": null,
"errors": [
"string"
],
"message": "Two-person tent, green — replacement for damaged pole set.",
"meta": {
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"timestamp": "2026-08-31T14:22:05Z"
},
"success": true
}
Path parameters
string (uuid)
required
Purchase order ID
Request body
SubmitPurchaseOrderRequest
string,null
Response
ApiResponse_Value
any
array,null
string,null
boolean
required
Status codes
| Code | Meaning |
|---|---|
200 | Purchase order submitted for approval |
400 | Invalid request or status |
404 | Purchase order not found |
curl --request POST \
--url 'https://prod-api.stateset.cloud.stateset.app/api/v1/purchase-orders/{id}/submit' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"notes": "Two-person tent, green — replacement for damaged pole set."
}'
{
"data": null,
"errors": [
"string"
],
"message": "Two-person tent, green — replacement for damaged pole set.",
"meta": {
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"timestamp": "2026-08-31T14:22:05Z"
},
"success": true
}
Last modified on August 31, 2026