Analyze return reasons API

Count supplied return reasons exactly as written. A reason is a pattern only at three or more returns. The reason text is not rewritten and no refund is granted.

The Analyze return reasons operation is part of the Returns & Delivery Intelligence API on BRAINIAC.software. Count supplied return reasons exactly as written. A reason is a pattern only at three or more returns. The reason text is not rewritten and no refund is granted. It is exposed as POST /api/v1/returns-delivery/return-reason-analyze and priced at $0.04 USDC on Base. Payment uses the x402 exact scheme: an unpaid call returns HTTP 402 with payment requirements; after paying the exact USDC amount, retry the same request with a payment-signature header and Idempotency-Key. No account and no API key are required. Data sources for this product: Orders, addresses, events, and rates supplied in the request. Limitations: Records are copied only from labeled fields in the request. No carrier tracking event is added. An address check does not confirm that a carrier can deliver. A return cost and a return window come only from supplied rates and day counts. No carrier account is contacted and no return is initiated. Outputs are compliance prechecks, drafts, or data lookups for human review. They are not official determinations, legal advice, identity confirmation, or certified filings. Related operations in this group include Classify delivery exceptions, Detect failed-delivery patterns, Validate shipping-address structure, Calculate return shipping cost. Open the group documentation for the full request schema, field notes, and response examples before integrating.

POST$0.04 USDC
/api/v1/returns-delivery/return-reason-analyze

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/returns-delivery/return-reason-analyze" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "returns": [
    {
      "id": "R-1",
      "reason": "size"
    },
    {
      "id": "R-2",
      "reason": "size"
    },
    {
      "id": "R-3",
      "reason": "size"
    },
    {
      "id": "R-4",
      "reason": "color"
    },
    {
      "id": "R-5",
      "reason": "erase"
    }
  ]
}
JSON

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

FAQ

  • Do I need an API key? No. Pay the listed USDC amount with x402.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related APIs

Returns & Delivery Intelligence APIFull docsHow it works