Preview the cash impact of a reorder

POST/api/v1/inventory/reorder/cash-impact

Model the effect of placing one or more (not-yet-created) purchase orders on the 13-week cash forecast. Runs the live forecast with and without the proposed POs and returns the delta -- including how far the projected cash low point moves -- so the operator can see the cash impact of a reorder before committing to it.

Operation ID: reorder_cash_impact_api_v1_inventory_reorder_cash_impact_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

proposed_posarray · ProposedPurchaseOrderProposedPurchaseOrder
5 fields
amount_centsintegerrequired

Total PO cost in cents.

week_numberinteger

Forecast week the cash leaves (1-indexed). Default 1.

expected_pay_datestring

ISO date the cash leaves (overrides week_number).

variant_idstring
labelstring
weeksinteger

Responses

201Successful Response

successboolean
messagestring
codestring
dataReorderCashImpactResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject