curl --request POST \
--url http://localhost:3000/v1/orders/{id}/retry-allocation \
--header 'Content-Type: application/json' \
--data '
{
"order_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"success": true,
"retried_items": 123,
"allocation": {
"rfc_items": 123,
"sweep_items": 123,
"pick_lists_created": 123,
"sweeps_used": [
"<string>"
]
},
"attempts": [
{
"order_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "success",
"fulfillment_source": "<string>",
"sweep_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_message": "<string>"
}
],
"errors": [
"<string>"
]
}Re-runs allocation for items that failed or were never allocated. Records attempts in allocation_attempts table.
curl --request POST \
--url http://localhost:3000/v1/orders/{id}/retry-allocation \
--header 'Content-Type: application/json' \
--data '
{
"order_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"success": true,
"retried_items": 123,
"allocation": {
"rfc_items": 123,
"sweep_items": 123,
"pick_lists_created": 123,
"sweeps_used": [
"<string>"
]
},
"attempts": [
{
"order_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "success",
"fulfillment_source": "<string>",
"sweep_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_message": "<string>"
}
],
"errors": [
"<string>"
]
}Specific item IDs to retry. Omit to retry all unallocated items.