Order Backlog Aging

Age open order quantities in business days, with day zero defined as Monday, using supplied holidays and grouping open units under ordered age thresholds.

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 /order-backlog-aging/v1/check with an x402 V2 client.

Worked example

Request

{
  "through_day": 8,
  "holidays": [
    7
  ],
  "through_ages": [
    1,
    2
  ],
  "orders": [
    {
      "id": "a",
      "placed_day": 4,
      "ordered_units": 9,
      "shipped_units": 5,
      "canceled_units": 1
    },
    {
      "id": "b",
      "placed_day": 0,
      "ordered_units": 4,
      "shipped_units": 0,
      "canceled_units": 0
    },
    {
      "id": "c",
      "placed_day": 7,
      "ordered_units": 1,
      "shipped_units": 1,
      "canceled_units": 0
    }
  ]
}

Result

{
  "open_units": 7,
  "buckets": [
    {
      "through_age": 1,
      "orders": 1,
      "units": 3
    },
    {
      "through_age": 2,
      "orders": 0,
      "units": 0
    },
    {
      "through_age": null,
      "orders": 1,
      "units": 4
    }
  ],
  "open_orders": [
    {
      "id": "b",
      "age_business_days": 5,
      "open_units": 4
    },
    {
      "id": "a",
      "age_business_days": 1,
      "open_units": 3
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter