Inventory Promise Date
Find the first day an order fits projected stock without consuming inventory needed by existing commitments later in the schedule. Day zero is today.
Custom requests cost 0.04 USDC on Base.
Download example JSON · OpenAPI · Source and usage
Pay with a browser wallet · Open example in checkout
POST a JSON request to /inventory-promise-date/v1/check with an x402 V2 client.
Worked example
Request
{
"on_hand": 8,
"requested_units": 6,
"events": [
{
"day": 3,
"receipts": 0,
"commitments": 5
},
{
"day": 5,
"receipts": 7,
"commitments": 0
}
]
}Result
{
"promise_day": 5,
"guaranteed_units": 10,
"schedule": [
{
"day": 0,
"balance": 8,
"guaranteed_units": 3
},
{
"day": 3,
"balance": 3,
"guaranteed_units": 3
},
{
"day": 5,
"balance": 10,
"guaranteed_units": 10
}
]
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter