Calculate a return window
returns-delivery_return-window-calculateAdd the supplied day count to the supplied delivered or ordered date and compare a return request with that end date. No day count is assumed, and an inside date is not a refund entitlement. Price $0.04 USDC. POST /api/v1/returns-delivery/return-window-calculate. An unpaid call returns the x402 payment terms and does not run.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "returns-delivery_return-window-calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | csv, string, length 0 to 200000. Optional. | |
| file | No | file, object. Optional. | |
| json | No | json, string, length 0 to 200000. Optional. | |
| text | No | text, string, length 0 to 200000. Optional. | |
| rates | No | rates, array. Optional. | |
| rules | No | rules, array. Optional. | |
| events | No | events, array. Optional. | |
| orders | No | orders, array. Optional. | |
| window | No | window, object. Optional. | |
| returns | No | returns, array. Optional. | |
| addresses | No | addresses, array. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | days. Number. | |
| from | No | from. String. | |
| status | No | status. String. | |
| returns | No | returns. Array. | |
| findings | No | findings. Array. | |
| checkedAt | No | checkedAt. String. | |
| limitations | No | limitations. Array. | |
| daysSupplied | No | daysSupplied. Boolean. | |
| refundGranted | No | refundGranted. Boolean. | |
| eventsInvented | No | eventsInvented. Boolean. | |
| returnInitiated | No | returnInitiated. Boolean. | |
| carrierContacted | No | carrierContacted. Boolean. | |
| deliverabilityConfirmed | No | deliverabilityConfirmed. Boolean. |