Purchase Order Revision Diff
Compare purchase-order revisions by stable line ID and show additions, removals, field changes and exact order-value deltas.
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 /purchase-order-revision-diff/v1/check with an x402 V2 client.
Worked example
Request
{
"previous": [
{
"id": "1",
"sku": "A",
"units": 5,
"unit_cents": 200,
"due_day": 3
},
{
"id": "2",
"sku": "B",
"units": 1,
"unit_cents": 50,
"due_day": 4
}
],
"current": [
{
"id": "1",
"sku": "A",
"units": 4,
"unit_cents": 200,
"due_day": 5
},
{
"id": "3",
"sku": "C",
"units": 3,
"unit_cents": 80,
"due_day": 4
}
]
}Result
{
"added": [
"3"
],
"removed": [
"2"
],
"changed": [
{
"id": "1",
"fields": [
{
"field": "units",
"before": 5,
"after": 4
},
{
"field": "due_day",
"before": 3,
"after": 5
}
],
"value_delta_cents": -200
}
],
"previous_total_cents": 1050,
"current_total_cents": 1040,
"order_delta_cents": -10
}Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter