200Successful Response
Schema: SuccessEnvelope_ExpiringLotsResponse_
successbooleanmessagestringcodestringdataExpiringLotsResponse
/api/v1/inventory/lots/expiringReturn non-exhausted cost lots with an expiration_date within the next within_days days. Powers the 'Expiring soon' badge on the inventory overview.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
within_daysintegerdefault: 30Lookahead window in days (default 30).
include_expiredbooleandefault: TrueWhen false, exclude lots whose expiration_date is already in the past.
limitintegerdefault: 200Schema: SuccessEnvelope_ExpiringLotsResponse_
successbooleanmessagestringcodestringdataExpiringLotsResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.