BRAINIAC Returns & Delivery Intelligence is an MCP server published by software.brainiac, hosted at www.brainiac.software. When last checked on 2026-11-21 it was working: it answers and lists its tools. It declares 8 tools, including returns-delivery_exception-classify, returns-delivery_failed-pattern-detect, returns-delivery_shipping-address-validate, returns-delivery_return-shipping-cost-calculate, returns-delivery_return-reason-analyze.
Paid Returns & Delivery Intelligence API via x402. Unpaid tool calls return 402.
654 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Classify a supplied carrier code or order status only when it matches a documented token when handling a return or delivery exception. Any other code stays unrecognized, and no tracking scan is added. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, items, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, items, carrierContacted, returnInitiated, refundGranted.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
| window | object | window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_exception-classify",
"title": "Classify delivery exceptions",
"description": "Classify a supplied carrier code or order status only when it matches a documented token when handling a return or delivery exception. Any other code stays unrecognized, and no tracking scan is added. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, items, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, items, carrierContacted, returnInitiated, refundGranted.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"description": "at. String."
},
"id": {
"type": "string",
"description": "id. String."
},
"code": {
"type": "string",
"description": "code. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"orderId": {
"type": "string",
"description": "orderId. String."
},
"category": {
"type": "string",
"description": "category. String."
},
"confirmed": {
"type": "boolean",
"description": "confirmed. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"kind": {
"type": "string",
"description": "kind. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"subject": {
"type": "string",
"description": "subject. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Classify delivery exceptions",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Group supplied failed, undeliverable, refused, or returned orders by postcode, address, or carrier when handling a return or delivery exception. A pattern needs at least three orders. One failure is not a carrier finding. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, level, signals, carrierContacted, returnInitiated.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
| window | object |
Check that the supplied lines, city, postcode, and country are present, and compare a postcode with a published shape for nine country codes when handling a return or delivery exception. The check does not confirm that a carrier can deliver. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
| window |
Apply one matching caller-supplied rate to a return when handling a return or delivery exception. A missing rate is not estimated, currencies are not converted, and the result is not a refund. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, costs, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed, eventsInvented. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, costs, carrierContacted, returnInitiated, refundGranted.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
Count supplied return reasons exactly as written when handling a return or delivery exception. A reason is a pattern only at three or more returns. The reason text is not rewritten and no refund is granted. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, reasons, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, reasons, carrierContacted, returnInitiated, refundGranted.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
| window |
Subtract the supplied promise timestamp from the supplied delivery timestamp when handling a return or delivery exception. A missing timestamp is not filled in, and the comparison is not a carrier guarantee. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, orders, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
Add the supplied day count to the supplied delivered or ordered date and compare a return request with that end date when handling a return or delivery exception. No day count is assumed, and an inside date is not a refund entitlement. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, days, daysSupplied, from, carrierContacted.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
| window | object |
Combine supplied exceptions, failed-order groups, address structure, return rates, promise variance, and the return window when handling a return or delivery exception. The report does not contact a carrier or grant a refund. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, orderCount, failedCount, patternCount, addressIssueCount.
| Parameter | Type | Description |
|---|---|---|
| csv | string | csv, string, length 0 to 200000. Optional. |
| file | object | file, object. Optional. |
| json | string | json, string, length 0 to 200000. Optional. |
| text | string | text, string, length 0 to 200000. Optional. |
| rates | array | rates, array. Optional. |
| rules | array | rules, array. Optional. |
| events | array | events, array. Optional. |
| orders | array | orders, array. Optional. |
| window | object |
Tool calls wrap the existing POST APIs and stay pay-per-call. initialize and tools/list are free. An unpaid tool call returns the x402 payment terms in the tool result and does not run. Retry with the payment in params._meta["x402/payment"], or send payment-signature. Payment settles only after a successful result.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
| window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_failed-pattern-detect",
"title": "Detect failed-delivery patterns",
"description": "Group supplied failed, undeliverable, refused, or returned orders by postcode, address, or carrier when handling a return or delivery exception. A pattern needs at least three orders. One failure is not a carrier finding. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, level, signals, carrierContacted, returnInitiated.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"level": {
"type": "string",
"description": "level. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"signals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"orders": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "orders. Array."
},
"confirmed": {
"type": "boolean",
"description": "confirmed. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "signals. Array."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Detect failed-delivery patterns",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| object |
| window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_shipping-address-validate",
"title": "Validate shipping-address structure",
"description": "Check that the supplied lines, city, postcode, and country are present, and compare a postcode with a published shape for nine country codes when handling a return or delivery exception. The check does not confirm that a carrier can deliver. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"city": {
"type": "string",
"description": "city. String."
},
"line1": {
"type": "string",
"description": "line1. String."
},
"line2": {
"type": "string",
"description": "line2. String."
},
"format": {
"type": "string",
"description": "format. String."
},
"issues": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "issues. Array."
},
"region": {
"type": "string",
"description": "region. String."
},
"country": {
"type": "string",
"description": "country. String."
},
"complete": {
"type": "boolean",
"description": "complete. Boolean."
},
"postcode": {
"type": "string",
"description": "postcode. String."
},
"structure": {
"type": "string",
"description": "structure. String."
},
"countryKnown": {
"type": "boolean",
"description": "countryKnown. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "addresses. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Validate shipping-address structure",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| window |
| object |
| window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_return-shipping-cost-calculate",
"title": "Calculate return shipping cost",
"description": "Apply one matching caller-supplied rate to a return when handling a return or delivery exception. A missing rate is not estimated, currencies are not converted, and the result is not a refund. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, costs, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed, eventsInvented. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, costs, carrierContacted, returnInitiated, refundGranted.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"costs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"description": "basis. String."
},
"stated": {
"type": "number",
"description": "stated. Number."
},
"orderId": {
"type": "string",
"description": "orderId. String."
},
"currency": {
"type": "string",
"description": "currency. String."
},
"returnId": {
"type": "string",
"description": "returnId. String."
},
"calculated": {
"type": "number",
"description": "calculated. Number."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
},
"statedSupplied": {
"type": "boolean",
"description": "statedSupplied. Boolean."
},
"calculatedSupplied": {
"type": "boolean",
"description": "calculatedSupplied. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "costs. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Calculate return shipping cost",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| object |
| window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_return-reason-analyze",
"title": "Analyze return reasons",
"description": "Count supplied return reasons exactly as written when handling a return or delivery exception. A reason is a pattern only at three or more returns. The reason text is not rewritten and no refund is granted. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, reasons, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, reasons, carrierContacted, returnInitiated, refundGranted.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"status": {
"type": "string",
"description": "status. String."
},
"reasons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "count. Number."
},
"reason": {
"type": "string",
"description": "reason. String."
},
"pattern": {
"type": "boolean",
"description": "pattern. Boolean."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "reasons. Array."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Analyze return reasons",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| window |
| object |
| window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_promise-variance",
"title": "Calculate delivery-promise variance",
"description": "Subtract the supplied promise timestamp from the supplied delivery timestamp when handling a return or delivery exception. A missing timestamp is not filled in, and the comparison is not a carrier guarantee. Call with optional text, json, csv, file, orders, addresses and others. Returns checkedAt, orders, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, carrierContacted, returnInitiated, refundGranted, deliverabilityConfirmed.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"promised": {
"type": "string",
"description": "promised. String."
},
"delivered": {
"type": "string",
"description": "delivered. String."
},
"daysSupplied": {
"type": "boolean",
"description": "daysSupplied. Boolean."
},
"varianceDays": {
"type": "number",
"description": "varianceDays. Number."
},
"hoursSupplied": {
"type": "boolean",
"description": "hoursSupplied. Boolean."
},
"varianceHours": {
"type": "number",
"description": "varianceHours. Number."
},
"withinPromise": {
"type": "boolean",
"description": "withinPromise. Boolean."
},
"promiseChecked": {
"type": "boolean",
"description": "promiseChecked. Boolean."
},
"guaranteeConfirmed": {
"type": "boolean",
"description": "guaranteeConfirmed. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "orders. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Calculate delivery-promise variance",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_return-window-calculate",
"title": "Calculate a return window",
"description": "Add the supplied day count to the supplied delivered or ordered date and compare a return request with that end date when handling a return or delivery exception. No day count is assumed, and an inside date is not a refund entitlement. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, days, daysSupplied, from, carrierContacted.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"days": {
"type": "number",
"description": "days. Number."
},
"from": {
"type": "string",
"description": "from. String."
},
"status": {
"type": "string",
"description": "status. String."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"end": {
"type": "string",
"description": "end. String."
},
"start": {
"type": "string",
"description": "start. String."
},
"state": {
"type": "string",
"description": "state. String."
},
"orderId": {
"type": "string",
"description": "orderId. String."
},
"requested": {
"type": "string",
"description": "requested. String."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "returns. Array."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"daysSupplied": {
"type": "boolean",
"description": "daysSupplied. Boolean."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Calculate a return window",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}| window, object. Optional. |
| returns | array | returns, array. Optional. |
| addresses | array | addresses, array. Optional. |
{
"name": "returns-delivery_logistics-report",
"title": "Report returns and delivery logistics",
"description": "Combine supplied exceptions, failed-order groups, address structure, return rates, promise variance, and the return window when handling a return or delivery exception. The report does not contact a carrier or grant a refund. Call with optional text, json, csv, file, orders, addresses and others. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: when handling a return or delivery exception, text, csv, file, orders, addresses, events, rates, window, rules, checkedAt, orderCount, failedCount, patternCount, addressIssueCount.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"csv": {
"type": "string",
"maxLength": 200000,
"description": "csv, string, length 0 to 200000. Optional."
},
"file": {
"type": "object",
"required": [
"mediaType",
"fileBase64"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 180,
"minLength": 1,
"description": "filename, string, length 1 to 180. Optional."
},
"mediaType": {
"enum": [
"text/plain",
"text/csv",
"application/json"
],
"type": "string",
"description": "mediaType, string, one of text/plain, text/csv, application/json. Required."
},
"fileBase64": {
"type": "string",
"maxLength": 12000000,
"minLength": 1,
"description": "fileBase64, string, length 1 to 12000000. Required."
}
},
"description": "file, object. Optional."
},
"json": {
"type": "string",
"maxLength": 200000,
"description": "json, string, length 0 to 200000. Optional."
},
"text": {
"type": "string",
"maxLength": 200000,
"description": "text, string, length 0 to 200000. Optional."
},
"rates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"maxLength": 40,
"description": "basis, string, length 0 to 40. Optional."
},
"amount": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "amount, number, from 0 to 1000000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
}
},
"description": "item, object. Required."
},
"description": "rates, array. Optional."
},
"rules": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"minLength": 1,
"description": "name, string, length 1 to 40. Required."
},
"value": {
"type": "string",
"maxLength": 40,
"description": "value, string, length 0 to 40. Required."
}
},
"description": "item, object. Required."
},
"description": "rules, array. Optional."
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"maxLength": 40,
"description": "at, string, length 0 to 40. Optional."
},
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"code": {
"type": "string",
"maxLength": 80,
"description": "code, string, length 0 to 80. Optional."
},
"detail": {
"type": "string",
"maxLength": 500,
"description": "detail, string, length 0 to 500. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
}
},
"description": "item, object. Required."
},
"description": "events, array. Optional."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"status": {
"type": "string",
"maxLength": 80,
"description": "status, string, length 0 to 80. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"ordered": {
"type": "string",
"maxLength": 40,
"description": "ordered, string, length 0 to 40. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
},
"promised": {
"type": "string",
"maxLength": 40,
"description": "promised, string, length 0 to 40. Optional."
},
"addressId": {
"type": "string",
"maxLength": 80,
"description": "addressId, string, length 0 to 80. Optional."
},
"delivered": {
"type": "string",
"maxLength": 40,
"description": "delivered, string, length 0 to 40. Optional."
},
"windowDays": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "windowDays, number, from 0 to 3650. Optional."
}
},
"description": "item, object. Required."
},
"description": "orders, array. Optional."
},
"window": {
"type": "object",
"properties": {
"days": {
"type": "number",
"maximum": 3650,
"minimum": 0,
"description": "days, number, from 0 to 3650. Optional."
},
"from": {
"type": "string",
"maxLength": 40,
"description": "from, string, length 0 to 40. Optional."
}
},
"description": "window, object. Optional."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"cost": {
"type": "number",
"maximum": 1000000000,
"minimum": 0,
"description": "cost, number, from 0 to 1000000000. Optional."
},
"reason": {
"type": "string",
"maxLength": 160,
"description": "reason, string, length 0 to 160. Optional."
},
"weight": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "weight, number, from 0 to 1000000. Optional."
},
"carrier": {
"type": "string",
"maxLength": 80,
"description": "carrier, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"orderId": {
"type": "string",
"maxLength": 80,
"description": "orderId, string, length 0 to 80. Optional."
},
"currency": {
"type": "string",
"maxLength": 12,
"description": "currency, string, length 0 to 12. Optional."
},
"requested": {
"type": "string",
"maxLength": 40,
"description": "requested, string, length 0 to 40. Optional."
}
},
"description": "item, object. Required."
},
"description": "returns, array. Optional."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 80,
"description": "id, string, length 0 to 80. Optional."
},
"city": {
"type": "string",
"maxLength": 80,
"description": "city, string, length 0 to 80. Optional."
},
"line1": {
"type": "string",
"maxLength": 160,
"description": "line1, string, length 0 to 160. Optional."
},
"line2": {
"type": "string",
"maxLength": 160,
"description": "line2, string, length 0 to 160. Optional."
},
"region": {
"type": "string",
"maxLength": 80,
"description": "region, string, length 0 to 80. Optional."
},
"country": {
"type": "string",
"maxLength": 80,
"description": "country, string, length 0 to 80. Optional."
},
"postcode": {
"type": "string",
"maxLength": 20,
"description": "postcode, string, length 0 to 20. Optional."
}
},
"description": "item, object. Required."
},
"description": "addresses, array. Optional."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"costs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"basis": {
"type": "string",
"description": "basis. String."
},
"stated": {
"type": "number",
"description": "stated. Number."
},
"orderId": {
"type": "string",
"description": "orderId. String."
},
"currency": {
"type": "string",
"description": "currency. String."
},
"returnId": {
"type": "string",
"description": "returnId. String."
},
"calculated": {
"type": "number",
"description": "calculated. Number."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
},
"statedSupplied": {
"type": "boolean",
"description": "statedSupplied. Boolean."
},
"calculatedSupplied": {
"type": "boolean",
"description": "calculatedSupplied. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "costs. Array."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"at": {
"type": "string",
"description": "at. String."
},
"id": {
"type": "string",
"description": "id. String."
},
"code": {
"type": "string",
"description": "code. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"orderId": {
"type": "string",
"description": "orderId. String."
},
"category": {
"type": "string",
"description": "category. String."
},
"confirmed": {
"type": "boolean",
"description": "confirmed. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "items. Array."
},
"level": {
"type": "string",
"description": "level. String."
},
"orders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"promised": {
"type": "string",
"description": "promised. String."
},
"delivered": {
"type": "string",
"description": "delivered. String."
},
"daysSupplied": {
"type": "boolean",
"description": "daysSupplied. Boolean."
},
"varianceDays": {
"type": "number",
"description": "varianceDays. Number."
},
"hoursSupplied": {
"type": "boolean",
"description": "hoursSupplied. Boolean."
},
"varianceHours": {
"type": "number",
"description": "varianceHours. Number."
},
"withinPromise": {
"type": "boolean",
"description": "withinPromise. Boolean."
},
"promiseChecked": {
"type": "boolean",
"description": "promiseChecked. Boolean."
},
"guaranteeConfirmed": {
"type": "boolean",
"description": "guaranteeConfirmed. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "orders. Array."
},
"status": {
"type": "string",
"description": "status. String."
},
"totals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "count. Number."
},
"amount": {
"type": "number",
"description": "amount. Number."
},
"currency": {
"type": "string",
"description": "currency. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "totals. Array."
},
"reasons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "count. Number."
},
"reason": {
"type": "string",
"description": "reason. String."
},
"pattern": {
"type": "boolean",
"description": "pattern. Boolean."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "reasons. Array."
},
"returns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"end": {
"type": "string",
"description": "end. String."
},
"start": {
"type": "string",
"description": "start. String."
},
"state": {
"type": "string",
"description": "state. String."
},
"orderId": {
"type": "string",
"description": "orderId. String."
},
"requested": {
"type": "string",
"description": "requested. String."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "returns. Array."
},
"signals": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"detail": {
"type": "string",
"description": "detail. String."
},
"orders": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "orders. Array."
},
"confirmed": {
"type": "boolean",
"description": "confirmed. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "signals. Array."
},
"findings": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "findings. Array."
},
"addresses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "id. String."
},
"city": {
"type": "string",
"description": "city. String."
},
"line1": {
"type": "string",
"description": "line1. String."
},
"line2": {
"type": "string",
"description": "line2. String."
},
"format": {
"type": "string",
"description": "format. String."
},
"issues": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "issues. Array."
},
"region": {
"type": "string",
"description": "region. String."
},
"country": {
"type": "string",
"description": "country. String."
},
"complete": {
"type": "boolean",
"description": "complete. Boolean."
},
"postcode": {
"type": "string",
"description": "postcode. String."
},
"structure": {
"type": "string",
"description": "structure. String."
},
"countryKnown": {
"type": "boolean",
"description": "countryKnown. Boolean."
},
"interpretation": {
"type": "string",
"description": "interpretation. String."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"description": "item. Object.",
"additionalProperties": {}
},
"description": "addresses. Array."
},
"checkedAt": {
"type": "string",
"description": "checkedAt. String."
},
"lateCount": {
"type": "number",
"description": "lateCount. Number."
},
"orderCount": {
"type": "number",
"description": "orderCount. Number."
},
"failedCount": {
"type": "number",
"description": "failedCount. Number."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "Item. String."
},
"description": "limitations. Array."
},
"outsideCount": {
"type": "number",
"description": "outsideCount. Number."
},
"patternCount": {
"type": "number",
"description": "patternCount. Number."
},
"refundGranted": {
"type": "boolean",
"description": "refundGranted. Boolean."
},
"eventsInvented": {
"type": "boolean",
"description": "eventsInvented. Boolean."
},
"calculatedCount": {
"type": "number",
"description": "calculatedCount. Number."
},
"returnInitiated": {
"type": "boolean",
"description": "returnInitiated. Boolean."
},
"carrierContacted": {
"type": "boolean",
"description": "carrierContacted. Boolean."
},
"addressIssueCount": {
"type": "number",
"description": "addressIssueCount. Number."
},
"deliverabilityConfirmed": {
"type": "boolean",
"description": "deliverabilityConfirmed. Boolean."
}
},
"additionalProperties": {}
},
"annotations": {
"title": "Report returns and delivery logistics",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}