{"openapi":"3.1.0","info":{"title":"GET /api/v1/inventory/reorder/suggestions","version":"1.0.0","description":"Suggest reorders from reorder points"},"servers":[{"url":"https://api.ondayzero.com","description":"Production"}],"paths":{"/api/v1/inventory/reorder/suggestions":{"get":{"tags":["inventory:reorder"],"summary":"Suggest reorders from reorder points","description":"Return vendor-grouped reorder suggestions for variants whose available quantity has fallen to or below the per-location reorder point. Read-only.","operationId":"list_reorder_suggestions_api_v1_inventory_reorder_suggestions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-business-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Business-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderSuggestionsResponse"}}}},"401":{"description":"Unauthorized - Authentication required","content":{"application/json":{"example":{"detail":"Not authenticated"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"example":{"detail":"Not enough permissions"}}}},"404":{"description":"Not Found - Resource does not exist","content":{"application/json":{"example":{"detail":"Resource not found"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ReorderSuggestionGroup":{"properties":{"vendor_id":{"type":"string","title":"Vendor Id"},"vendor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vendor Name"},"lines":{"items":{"$ref":"#/components/schemas/ReorderSuggestionLine"},"type":"array","title":"Lines"},"estimated_total_cents":{"type":"integer","title":"Estimated Total Cents","default":0}},"type":"object","required":["vendor_id"],"title":"ReorderSuggestionGroup"},"ReorderSuggestionLine":{"properties":{"variant_id":{"type":"string","title":"Variant Id"},"product_id":{"type":"string","title":"Product Id"},"product_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Name"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Name"},"sku":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sku"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"on_hand":{"type":"number","title":"On Hand"},"available":{"type":"number","title":"Available"},"reorder_point":{"type":"number","title":"Reorder Point"},"reorder_quantity":{"type":"number","title":"Reorder Quantity"},"suggested_quantity":{"type":"integer","title":"Suggested Quantity"},"unit_cost_cents":{"type":"integer","title":"Unit Cost Cents"}},"type":"object","required":["variant_id","product_id","on_hand","available","reorder_point","reorder_quantity","suggested_quantity","unit_cost_cents"],"title":"ReorderSuggestionLine"},"ReorderSuggestionsResponse":{"properties":{"suggestions":{"items":{"$ref":"#/components/schemas/ReorderSuggestionGroup"},"type":"array","title":"Suggestions"},"unassigned":{"items":{"$ref":"#/components/schemas/ReorderSuggestionLine"},"type":"array","title":"Unassigned"},"total_lines":{"type":"integer","title":"Total Lines","default":0}},"type":"object","title":"ReorderSuggestionsResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Token","description":"API token authentication. Format: `Bearer dz_...`"}}},"security":[{"BearerAuth":[]}]}