curl --request PATCH \
--url http://localhost:3000/v1/admin/partners/reorders/{id}/status \
--header 'Content-Type: application/json' \
--data '
{
"status": "pending",
"response_notes": "<string>",
"expected_delivery_date": "<string>"
}
'{
"success": true,
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_company_name": "<string>",
"status": "pending",
"requested_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"responded_at": "2023-11-07T05:31:56Z",
"response_notes": "<string>",
"manifest_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_auto_generated": true,
"notes": "<string>",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellable_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_name": "<string>",
"product_image_url": "<string>",
"requested_quantity": 123,
"current_inventory": 123,
"reorder_point": 123,
"avg_daily_sales": 123,
"days_of_stock": 123
}
],
"total_requested_quantity": 123
},
"manifest_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Update the status of a reorder request. When accepting, creates a manifest. When reverting from accepted, cancels the linked manifest.
curl --request PATCH \
--url http://localhost:3000/v1/admin/partners/reorders/{id}/status \
--header 'Content-Type: application/json' \
--data '
{
"status": "pending",
"response_notes": "<string>",
"expected_delivery_date": "<string>"
}
'{
"success": true,
"request": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_company_name": "<string>",
"status": "pending",
"requested_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"responded_at": "2023-11-07T05:31:56Z",
"response_notes": "<string>",
"manifest_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_auto_generated": true,
"notes": "<string>",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sellable_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product_name": "<string>",
"product_image_url": "<string>",
"requested_quantity": 123,
"current_inventory": 123,
"reorder_point": 123,
"avg_daily_sales": 123,
"days_of_stock": 123
}
],
"total_requested_quantity": 123
},
"manifest_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}