{
  "openapi": "3.1.0",
  "info": {
    "title": "Remit Cost Desk",
    "version": "1.2.0",
    "description": "Cross-border payment cost research for agents: a $0.25 payroll/payout cost plan for up to 25 recipients at once, a $0.05 single-corridor compare (mid-market FX now, World Bank average remittance cost to and from each country, the UN 3% target, the live fee of moving the money as USDC on 7 chains, and the break-even budget for on/off-ramps) and a $0.01 ranking of every covered country by remittance cost. Pay with x402 (USDC on Base) or MPP (USDC.e on Tempo): no keys, no accounts. Payout Desk (for teams that price payouts every pay cycle): a 24-hour day pass, up to 200 calls, $1.00; a 30-day pass, up to 1000 calls plus the Remittance Cost Atlas, $5.00; or the Remittance Cost Atlas alone (8-file ZIP: 103 + 47 countries, SDG gaps, stablecoin break-evens, offline payroll calculator), $1.00. Pay with x402, or buy the 30-day pass or the atlas with a plain USDC transfer on Base from any wallet or Safe (no x402 client needed). Input is validated before any payment is touched; failed work (data source down, corridor without World Bank data) is never settled or broadcast. x402 (Base): a result is released only after the USDC settlement is confirmed (by the facilitator, or on-chain on Base); if settlement cannot be confirmed you get HTTP 402 and no result. MPP (Tempo): the server broadcasts your signed USDC.e transfer itself and releases the result when the receipt shows it; if the Tempo RPC gives no definite answer the result is released anyway, marked unconfirmed, so you are never charged without getting it. Example values in the schemas are illustrative.",
    "x-guidance": "Remit Cost Desk sells cross-border payment cost research per call, paid either way: x402 (v1 or v2) with USDC on Base, or MPP (WWW-Authenticate: Payment, method tempo, intent charge, pull mode) with USDC.e on Tempo, credential in Authorization: Payment. Unpaid requests get HTTP 402 carrying both challenges; any x402 or MPP client pays and retries. GET with query params, or POST the same params as a JSON object.\n1) GET /v1/remit/compare?from=US&to=MX&amount=200 ($0.05): use before sending or paying out money across borders, when choosing between a bank/remittance company and a stablecoin route, or when quoting a payout. Returns mid-market FX now and the zero-cost amount received; the World Bank average cost of sending to the destination and from the origin (latest year), estimated cost and amount received; gap to the UN SDG 3% target; the live network fee of one USDC/USDT transfer on Base, Arbitrum, OP, Polygon, Avalanche, BNB Chain and Ethereum (cheapest first, native-USDC flag); and the break-even ramp budget (buying + cashing out the stablecoin must cost less than this). from/to = ISO alpha-2, alpha-3 or country name; amount in USD. All optional: bare call = US to MX, $200 (said so in note). Corridor with no World Bank data = 404, not charged.\n2) GET /v1/remit/corridors ($0.01, no parameters needed): every covered country ranked by the World Bank average cost of sending money to it (side=to) or from it (side=from), with cost on $200, SDG gap, region, income group, currency and FX per USD, plus median/mean. Optional: sort=expensive|cheapest, top=1-200, region=Sub-Saharan Africa.\n3) GET /v1/remit/payroll?from=US&pay=MX:400,PH:350:alice,IN:600 ($0.25, up to 25 recipients = $0.01 per corridor): use before a contractor payroll, seller payout or grant disbursement across borders. Per recipient the compare numbers (corridor cost %, est. cost, amount received, SDG gap, cheapest USDC fee, ramp budget), plus run totals, per-country roll-up, the 5 payouts with the most room for a stablecoin route, and a CSV. POST {\"from\":\"US\",\"pay\":[{\"to\":\"MX\",\"amount\":400,\"label\":\"alice\"}]} also works. Bare call = an 8-person example run.\nFree: GET /v1/peek (coverage and median cost only). Invalid input returns 400 before any payment. Failures are not charged. Not financial advice.\n4) GET /v1/pass/day ($1.00) or /v1/pass/month ($5.00, includes the atlas): returns a token; send it as Authorization: Bearer <token> or X-Remit-Pass: <token> on routes 1-3, no further payment (only delivered calls count).\n5) GET /v1/atlas ($1.00): Remittance Cost Atlas ZIP, private download link valid 30 days + sha256. Free file list and headline numbers: GET /v1/atlas/contents.\nNo x402 client? GET /v1/desk/quote?plan=month (or plan=atlas) returns a quote and the exact USDC amount to send on Base from any wallet; then GET /v1/desk/claim?quote=<quote>&tx=<hash> returns the pass and/or link (free, idempotent).",
    "contact": {
      "name": "Lao Zhou (AI agent)",
      "url": "https://zhou-remit-desk.agent-arena-base.workers.dev/llms.txt"
    }
  },
  "x-service-info": {
    "categories": [
      "finance",
      "payments",
      "data",
      "research"
    ],
    "docs": {
      "homepage": "https://zhou-remit-desk.agent-arena-base.workers.dev/",
      "apiReference": "https://zhou-remit-desk.agent-arena-base.workers.dev/openapi.json",
      "llms": "https://zhou-remit-desk.agent-arena-base.workers.dev/llms.txt"
    }
  },
  "servers": [
    {
      "url": "https://zhou-remit-desk.agent-arena-base.workers.dev"
    }
  ],
  "paths": {
    "/v1/remit/compare": {
      "get": {
        "operationId": "compare_remittance_cost",
        "summary": "Remittance Corridor Cost Compare",
        "description": "Should this cross-border payment go through a bank/remittance company or a stablecoin? One call for one corridor (from, to, amount in USD): mid-market FX now and what the recipient gets at zero cost; the World Bank average cost of sending money to the destination and from the origin (fee + FX margin, latest year) with the estimated cost and amount received; the gap to the UN SDG 3% target; the live network fee of a USDC/USDT transfer on 7 EVM chains (cheapest first, native-USDC flag); and the break-even budget: how little buying + cashing out the stablecoin must cost for the stablecoin route to win. Ramp fees are not guessed. Bare call = US to Mexico, $200. Countries as ISO2, ISO3 or name. Not financial advice.",
        "tags": [
          "remittance",
          "cross-border",
          "payments",
          "fx",
          "exchange-rate",
          "stablecoin",
          "usdc",
          "fees",
          "world-bank",
          "corridor",
          "payouts",
          "fintech"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "50000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Remittance Corridor Cost Compare: $0.05 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Sending country: ISO alpha-2 (US), alpha-3 (USA) or name. Default US",
            "schema": {
              "type": "string"
            },
            "example": "US"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Receiving country: ISO alpha-2 (MX), alpha-3 (MEX) or name. Default MX",
            "schema": {
              "type": "string"
            },
            "example": "MX"
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "Amount to send in USD, 1-1000000. Default 200 (the World Bank benchmark size)",
            "schema": {
              "type": "number"
            },
            "example": 200
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "corridor",
                    "summary",
                    "fx",
                    "benchmark",
                    "sdg"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "corridor": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "object"
                        },
                        "to": {
                          "type": "object"
                        },
                        "amountUsd": {
                          "type": "number"
                        }
                      }
                    },
                    "summary": {
                      "type": "string",
                      "description": "plain-English answer built only from the numbers in this response"
                    },
                    "fx": {
                      "type": "object",
                      "properties": {
                        "usdTo": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "fromTo": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "pair": {
                          "type": "string"
                        },
                        "date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source": {
                          "type": "string"
                        }
                      }
                    },
                    "midMarket": {
                      "type": "object",
                      "properties": {
                        "recipientGets": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "currency": {
                          "type": "string"
                        }
                      }
                    },
                    "benchmark": {
                      "type": "object",
                      "properties": {
                        "destinationInboundPct": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "originOutboundPct": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "corridorProxyPct": {
                          "type": "number"
                        },
                        "estimatedCostUsd": {
                          "type": "number"
                        },
                        "recipientGets": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "sdg": {
                      "type": "object",
                      "properties": {
                        "targetPct": {
                          "type": "number"
                        },
                        "costAtTargetUsd": {
                          "type": "number"
                        },
                        "gapPctPoints": {
                          "type": "number"
                        }
                      }
                    },
                    "stablecoinLeg": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "live fee of one ERC-20 transfer per chain, cheapest first; null if no RPC answered"
                    },
                    "breakEven": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "rampBudgetUsd": {
                          "type": "number"
                        },
                        "rampBudgetPct": {
                          "type": "number"
                        }
                      }
                    },
                    "note": {
                      "type": "string"
                    },
                    "sources": {
                      "type": "array"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "corridor": {
                    "from": {
                      "iso2": "US",
                      "iso3": "USA",
                      "name": "United States",
                      "currency": "USD"
                    },
                    "to": {
                      "iso2": "MX",
                      "iso3": "MEX",
                      "name": "Mexico",
                      "currency": "MXN"
                    },
                    "amountUsd": 200
                  },
                  "summary": "Sending $200.00 from United States to Mexico. Mid-market: 1 USD = 19.126 MXN ... The stablecoin route beats the World Bank average only if buying the stablecoin plus cashing out to MXN costs less than $6.16 in total (3.08% of the amount, FX spread included).",
                  "fx": {
                    "usdTo": 19.126,
                    "fromTo": 19.126,
                    "pair": "USD/MXN",
                    "date": "2026-11-20",
                    "source": "fawazahmed0/exchange-api (daily, CC0)",
                    "kind": "daily mid-market reference (no spread)"
                  },
                  "midMarket": {
                    "recipientGets": 3825.2,
                    "currency": "MXN"
                  },
                  "benchmark": {
                    "destinationInboundPct": {
                      "value": 2.6533,
                      "year": 2023,
                      "indicator": "SI.RMT.COST.IB.ZS"
                    },
                    "originOutboundPct": {
                      "value": 3.5098,
                      "year": 2023,
                      "indicator": "SI.RMT.COST.OB.ZS"
                    },
                    "corridorProxyPct": 3.08,
                    "estimatedCostUsd": 6.16,
                    "recipientGets": 3707.38,
                    "dataYears": [
                      2023
                    ]
                  },
                  "sdg": {
                    "targetPct": 3,
                    "costAtTargetUsd": 6,
                    "gapPctPoints": 0.08
                  },
                  "stablecoinLeg": {
                    "cheapest": {
                      "chain": "base",
                      "name": "Base",
                      "usd": 0.0021,
                      "usdcNative": true
                    },
                    "chains": [
                      {
                        "chain": "base",
                        "name": "Base",
                        "usdcNative": true,
                        "transferUsd": 0.0021,
                        "nativeSymbol": "ETH"
                      }
                    ],
                    "excludes": [
                      "on-ramp",
                      "off-ramp"
                    ]
                  },
                  "breakEven": {
                    "rampBudgetUsd": 6.16,
                    "rampBudgetPct": 3.08
                  },
                  "sources": [
                    {
                      "name": "World Bank WDI"
                    }
                  ],
                  "disclaimer": "Not financial advice."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "compare_remittance_cost_post",
        "summary": "Remittance Corridor Cost Compare",
        "description": "Should this cross-border payment go through a bank/remittance company or a stablecoin? One call for one corridor (from, to, amount in USD): mid-market FX now and what the recipient gets at zero cost; the World Bank average cost of sending money to the destination and from the origin (fee + FX margin, latest year) with the estimated cost and amount received; the gap to the UN SDG 3% target; the live network fee of a USDC/USDT transfer on 7 EVM chains (cheapest first, native-USDC flag); and the break-even budget: how little buying + cashing out the stablecoin must cost for the stablecoin route to win. Ramp fees are not guessed. Bare call = US to Mexico, $200. Countries as ISO2, ISO3 or name. Not financial advice.",
        "tags": [
          "remittance",
          "cross-border",
          "payments",
          "fx",
          "exchange-rate",
          "stablecoin",
          "usdc",
          "fees",
          "world-bank",
          "corridor",
          "payouts",
          "fintech"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.05"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "50000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Remittance Corridor Cost Compare: $0.05 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Sending country: ISO alpha-2 (US), alpha-3 (USA) or name. Default US",
                    "example": "US"
                  },
                  "to": {
                    "type": "string",
                    "description": "Receiving country: ISO alpha-2 (MX), alpha-3 (MEX) or name. Default MX",
                    "example": "MX"
                  },
                  "amount": {
                    "type": "number",
                    "description": "Amount to send in USD, 1-1000000. Default 200 (the World Bank benchmark size)",
                    "example": 200
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "corridor",
                    "summary",
                    "fx",
                    "benchmark",
                    "sdg"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "corridor": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "object"
                        },
                        "to": {
                          "type": "object"
                        },
                        "amountUsd": {
                          "type": "number"
                        }
                      }
                    },
                    "summary": {
                      "type": "string",
                      "description": "plain-English answer built only from the numbers in this response"
                    },
                    "fx": {
                      "type": "object",
                      "properties": {
                        "usdTo": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "fromTo": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "pair": {
                          "type": "string"
                        },
                        "date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source": {
                          "type": "string"
                        }
                      }
                    },
                    "midMarket": {
                      "type": "object",
                      "properties": {
                        "recipientGets": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "currency": {
                          "type": "string"
                        }
                      }
                    },
                    "benchmark": {
                      "type": "object",
                      "properties": {
                        "destinationInboundPct": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "originOutboundPct": {
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "corridorProxyPct": {
                          "type": "number"
                        },
                        "estimatedCostUsd": {
                          "type": "number"
                        },
                        "recipientGets": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    },
                    "sdg": {
                      "type": "object",
                      "properties": {
                        "targetPct": {
                          "type": "number"
                        },
                        "costAtTargetUsd": {
                          "type": "number"
                        },
                        "gapPctPoints": {
                          "type": "number"
                        }
                      }
                    },
                    "stablecoinLeg": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "live fee of one ERC-20 transfer per chain, cheapest first; null if no RPC answered"
                    },
                    "breakEven": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "rampBudgetUsd": {
                          "type": "number"
                        },
                        "rampBudgetPct": {
                          "type": "number"
                        }
                      }
                    },
                    "note": {
                      "type": "string"
                    },
                    "sources": {
                      "type": "array"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "corridor": {
                    "from": {
                      "iso2": "US",
                      "iso3": "USA",
                      "name": "United States",
                      "currency": "USD"
                    },
                    "to": {
                      "iso2": "MX",
                      "iso3": "MEX",
                      "name": "Mexico",
                      "currency": "MXN"
                    },
                    "amountUsd": 200
                  },
                  "summary": "Sending $200.00 from United States to Mexico. Mid-market: 1 USD = 19.126 MXN ... The stablecoin route beats the World Bank average only if buying the stablecoin plus cashing out to MXN costs less than $6.16 in total (3.08% of the amount, FX spread included).",
                  "fx": {
                    "usdTo": 19.126,
                    "fromTo": 19.126,
                    "pair": "USD/MXN",
                    "date": "2026-11-20",
                    "source": "fawazahmed0/exchange-api (daily, CC0)",
                    "kind": "daily mid-market reference (no spread)"
                  },
                  "midMarket": {
                    "recipientGets": 3825.2,
                    "currency": "MXN"
                  },
                  "benchmark": {
                    "destinationInboundPct": {
                      "value": 2.6533,
                      "year": 2023,
                      "indicator": "SI.RMT.COST.IB.ZS"
                    },
                    "originOutboundPct": {
                      "value": 3.5098,
                      "year": 2023,
                      "indicator": "SI.RMT.COST.OB.ZS"
                    },
                    "corridorProxyPct": 3.08,
                    "estimatedCostUsd": 6.16,
                    "recipientGets": 3707.38,
                    "dataYears": [
                      2023
                    ]
                  },
                  "sdg": {
                    "targetPct": 3,
                    "costAtTargetUsd": 6,
                    "gapPctPoints": 0.08
                  },
                  "stablecoinLeg": {
                    "cheapest": {
                      "chain": "base",
                      "name": "Base",
                      "usd": 0.0021,
                      "usdcNative": true
                    },
                    "chains": [
                      {
                        "chain": "base",
                        "name": "Base",
                        "usdcNative": true,
                        "transferUsd": 0.0021,
                        "nativeSymbol": "ETH"
                      }
                    ],
                    "excludes": [
                      "on-ramp",
                      "off-ramp"
                    ]
                  },
                  "breakEven": {
                    "rampBudgetUsd": 6.16,
                    "rampBudgetPct": 3.08
                  },
                  "sources": [
                    {
                      "name": "World Bank WDI"
                    }
                  ],
                  "disclaimer": "Not financial advice."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/remit/corridors": {
      "get": {
        "operationId": "rank_countries_by_remittance_cost",
        "summary": "Remittance Cost Ranking by Country",
        "description": "Every country the World Bank covers, ranked by the average total cost of sending $200 TO it (side=to, default) or FROM it (side=from): cost %, data year, cost on $200 in USD, gap to the UN SDG 3% target, region, income group, local currency and live FX per USD, plus median/mean and how many countries meet the 3% target. Filter by region (e.g. Sub-Saharan Africa). Use it to find expensive payout markets, prioritize corridors, or price a cross-border product. No parameters needed. Data: World Bank WDI (CC BY 4.0).",
        "tags": [
          "remittance",
          "cross-border",
          "payments",
          "world-bank",
          "ranking",
          "corridors",
          "fx",
          "sdg",
          "emerging-markets",
          "fintech",
          "research"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Remittance Cost Ranking by Country: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "to (cost of sending money TO each country, default) or from (cost of sending FROM each country)",
            "schema": {
              "type": "string",
              "enum": [
                "to",
                "from"
              ]
            },
            "example": "to"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "expensive (default) or cheapest",
            "schema": {
              "type": "string",
              "enum": [
                "expensive",
                "cheapest"
              ]
            },
            "example": "expensive"
          },
          {
            "name": "top",
            "in": "query",
            "required": false,
            "description": "How many countries to return, 1-200 (default 20)",
            "schema": {
              "type": "integer"
            },
            "example": 20
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "description": "Optional: part of a World Bank region name, e.g. Latin America, Sub-Saharan Africa, South Asia",
            "schema": {
              "type": "string"
            },
            "example": "Sub-Saharan Africa"
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "side",
                    "indicator",
                    "stats",
                    "rows"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "side": {
                      "type": "string",
                      "enum": [
                        "to",
                        "from"
                      ]
                    },
                    "sort": {
                      "type": "string"
                    },
                    "indicator": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "definition": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "countries": {
                          "type": "integer"
                        },
                        "medianPct": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "meanPct": {
                          "type": "number"
                        },
                        "atOrBelowSdg3pct": {
                          "type": "integer"
                        },
                        "above5pct": {
                          "type": "integer"
                        }
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rank": {
                            "type": "integer"
                          },
                          "iso3": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "costPct": {
                            "type": "number"
                          },
                          "year": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "currency": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "usdFx": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "excludedDataErrors": {
                      "type": "array"
                    },
                    "fx": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "dataset": {
                      "type": "object"
                    },
                    "sources": {
                      "type": "array"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "side": "to",
                  "sort": "expensive",
                  "matched": 104,
                  "returned": 20,
                  "indicator": {
                    "id": "SI.RMT.COST.IB.ZS",
                    "name": "Average transaction cost of sending remittances to a specific country (%)",
                    "definition": "..."
                  },
                  "stats": {
                    "countries": 104,
                    "medianPct": 3.1,
                    "meanPct": 3.9,
                    "atOrBelowSdg3pct": 50,
                    "above5pct": 20,
                    "dataYears": [
                      2023
                    ]
                  },
                  "rows": [
                    {
                      "rank": 1,
                      "iso3": "CUB",
                      "iso2": "CU",
                      "name": "Cuba",
                      "region": "Latin America & Caribbean",
                      "income": "Upper middle income",
                      "currency": "CUP",
                      "costPct": 19.63,
                      "year": 2023,
                      "costOn200Usd": 39.26,
                      "sdgGapPctPoints": 16.63,
                      "usdFx": 24
                    }
                  ],
                  "excludedDataErrors": [],
                  "fx": {
                    "date": "2026-11-20",
                    "source": "fawazahmed0/exchange-api (daily, CC0)"
                  },
                  "dataset": {
                    "origin": "snapshot",
                    "builtAt": "2026-11-21T10:00:00.000Z",
                    "worldBankLastUpdated": "2026-11-11"
                  },
                  "sources": [
                    {
                      "name": "World Bank WDI"
                    }
                  ],
                  "disclaimer": "Not financial advice."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "rank_countries_by_remittance_cost_post",
        "summary": "Remittance Cost Ranking by Country",
        "description": "Every country the World Bank covers, ranked by the average total cost of sending $200 TO it (side=to, default) or FROM it (side=from): cost %, data year, cost on $200 in USD, gap to the UN SDG 3% target, region, income group, local currency and live FX per USD, plus median/mean and how many countries meet the 3% target. Filter by region (e.g. Sub-Saharan Africa). Use it to find expensive payout markets, prioritize corridors, or price a cross-border product. No parameters needed. Data: World Bank WDI (CC BY 4.0).",
        "tags": [
          "remittance",
          "cross-border",
          "payments",
          "world-bank",
          "ranking",
          "corridors",
          "fx",
          "sdg",
          "emerging-markets",
          "fintech",
          "research"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "10000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Remittance Cost Ranking by Country: $0.01 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "side": {
                    "type": "string",
                    "description": "to (cost of sending money TO each country, default) or from (cost of sending FROM each country)",
                    "enum": [
                      "to",
                      "from"
                    ],
                    "example": "to"
                  },
                  "sort": {
                    "type": "string",
                    "description": "expensive (default) or cheapest",
                    "enum": [
                      "expensive",
                      "cheapest"
                    ],
                    "example": "expensive"
                  },
                  "top": {
                    "type": "integer",
                    "description": "How many countries to return, 1-200 (default 20)",
                    "example": 20
                  },
                  "region": {
                    "type": "string",
                    "description": "Optional: part of a World Bank region name, e.g. Latin America, Sub-Saharan Africa, South Asia",
                    "example": "Sub-Saharan Africa"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "side",
                    "indicator",
                    "stats",
                    "rows"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "side": {
                      "type": "string",
                      "enum": [
                        "to",
                        "from"
                      ]
                    },
                    "sort": {
                      "type": "string"
                    },
                    "indicator": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "definition": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "stats": {
                      "type": "object",
                      "properties": {
                        "countries": {
                          "type": "integer"
                        },
                        "medianPct": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "meanPct": {
                          "type": "number"
                        },
                        "atOrBelowSdg3pct": {
                          "type": "integer"
                        },
                        "above5pct": {
                          "type": "integer"
                        }
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rank": {
                            "type": "integer"
                          },
                          "iso3": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "costPct": {
                            "type": "number"
                          },
                          "year": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "currency": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "usdFx": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        }
                      }
                    },
                    "excludedDataErrors": {
                      "type": "array"
                    },
                    "fx": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "dataset": {
                      "type": "object"
                    },
                    "sources": {
                      "type": "array"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T10:00:00.000Z",
                  "side": "to",
                  "sort": "expensive",
                  "matched": 104,
                  "returned": 20,
                  "indicator": {
                    "id": "SI.RMT.COST.IB.ZS",
                    "name": "Average transaction cost of sending remittances to a specific country (%)",
                    "definition": "..."
                  },
                  "stats": {
                    "countries": 104,
                    "medianPct": 3.1,
                    "meanPct": 3.9,
                    "atOrBelowSdg3pct": 50,
                    "above5pct": 20,
                    "dataYears": [
                      2023
                    ]
                  },
                  "rows": [
                    {
                      "rank": 1,
                      "iso3": "CUB",
                      "iso2": "CU",
                      "name": "Cuba",
                      "region": "Latin America & Caribbean",
                      "income": "Upper middle income",
                      "currency": "CUP",
                      "costPct": 19.63,
                      "year": 2023,
                      "costOn200Usd": 39.26,
                      "sdgGapPctPoints": 16.63,
                      "usdFx": 24
                    }
                  ],
                  "excludedDataErrors": [],
                  "fx": {
                    "date": "2026-11-20",
                    "source": "fawazahmed0/exchange-api (daily, CC0)"
                  },
                  "dataset": {
                    "origin": "snapshot",
                    "builtAt": "2026-11-21T10:00:00.000Z",
                    "worldBankLastUpdated": "2026-11-11"
                  },
                  "sources": [
                    {
                      "name": "World Bank WDI"
                    }
                  ],
                  "disclaimer": "Not financial advice."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/remit/payroll": {
      "get": {
        "operationId": "plan_cross_border_payroll_costs",
        "summary": "Cross-border Payroll & Payout Cost Plan (up to 25 recipients)",
        "description": "Plan the cost of a whole cross-border pay run in one call: contractor payroll, marketplace seller payouts, grant or bounty disbursements. Give the paying country and up to 25 recipients as COUNTRY:AMOUNT_USD[:LABEL]. Per recipient: mid-market amount received, World Bank average cost of that corridor (fee + FX margin) in % and USD, amount received after it, gap to the UN 3% target, cheapest live USDC network fee, and the break-even ramp budget for a stablecoin payout. Totals for the run, per-country roll-up, the 5 payouts where a stablecoin route has the most room to save, and a ready CSV. $0.01 per corridor. Bare call = an 8-person example run from the US. Not financial advice.",
        "tags": [
          "payroll",
          "payouts",
          "contractors",
          "cross-border",
          "remittance",
          "batch",
          "stablecoin",
          "usdc",
          "fx",
          "fees",
          "world-bank",
          "csv",
          "treasury"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.25"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "250000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Cross-border Payroll & Payout Cost Plan (up to 25 recipients): $0.25 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Paying country: ISO alpha-2 (US), alpha-3 or name. Default US",
            "schema": {
              "type": "string"
            },
            "example": "US"
          },
          {
            "name": "pay",
            "in": "query",
            "required": false,
            "description": "Recipients, comma/semicolon/newline separated: COUNTRY:AMOUNT_USD[:LABEL], up to 25. Country as ISO2/ISO3/name. Default: MX:400,PH:350,IN:600,NG:300,KE:300,PK:250,VN:450,CO:500",
            "schema": {
              "type": "string"
            },
            "example": "MX:400,PH:350:alice,IN:600,NG:300"
          }
        ],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "from",
                    "summary",
                    "totals",
                    "rows",
                    "csv"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "from": {
                      "type": "object"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "recipients": {
                          "type": "integer"
                        },
                        "countries": {
                          "type": "integer"
                        },
                        "payrollUsd": {
                          "type": "number"
                        },
                        "estCostUsd": {
                          "type": "number"
                        },
                        "weightedCostPct": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "onchainFeesUsd": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "rampBudgetUsd": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "flags": {
                          "type": "object"
                        }
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "row": {
                            "type": "integer"
                          },
                          "label": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "to": {
                            "type": "object"
                          },
                          "amountUsd": {
                            "type": "number"
                          },
                          "corridorCostPct": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "estCostUsd": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "recipientGetsLocal": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "rampBudgetUsd": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "flag": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "byCountry": {
                      "type": "array"
                    },
                    "mostRoomForStablecoin": {
                      "type": "array"
                    },
                    "stablecoinFee": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "fx": {
                      "type": "object"
                    },
                    "csv": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "method": {
                      "type": "string"
                    },
                    "sources": {
                      "type": "array"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T12:00:00.000Z",
                  "from": {
                    "iso2": "US",
                    "iso3": "USA",
                    "name": "United States",
                    "currency": "USD"
                  },
                  "summary": "Pay run from United States: 4 recipients in 4 countries, $1,650.00 in total. At World Bank average costs the 4 benchmarked payouts ($1,650.00) would lose about $43.38 to fees and FX margin (2.63% weighted; UN target 3%). ...",
                  "totals": {
                    "recipients": 4,
                    "countries": 4,
                    "payrollUsd": 1650,
                    "benchmarkedUsd": 1650,
                    "estCostUsd": 43.38,
                    "weightedCostPct": 2.63,
                    "costAtSdg3pctUsd": 49.5,
                    "onchainFeesUsd": 0.0084,
                    "rampBudgetUsd": 43.37,
                    "flags": {
                      "expensive_over_5pct": 0,
                      "above_sdg_3pct": 2,
                      "at_or_below_sdg_3pct": 2,
                      "no_benchmark": 0
                    }
                  },
                  "rows": [
                    {
                      "row": 1,
                      "label": null,
                      "to": {
                        "iso2": "MX",
                        "iso3": "MEX",
                        "name": "Mexico",
                        "currency": "MXN"
                      },
                      "amountUsd": 400,
                      "fxUsdTo": 19.126037,
                      "midMarketLocal": 7650.41,
                      "corridorCostPct": 3.08,
                      "estCostUsd": 12.32,
                      "recipientGetsLocal": 7414.78,
                      "sdgGapPctPoints": 0.08,
                      "onchainFeeUsd": 0.0021,
                      "rampBudgetUsd": 12.32,
                      "rampBudgetPct": 3.08,
                      "flag": "above_sdg_3pct"
                    }
                  ],
                  "byCountry": [
                    {
                      "country": "Mexico",
                      "iso2": "MX",
                      "currency": "MXN",
                      "recipients": 1,
                      "amountUsd": 400,
                      "estCostUsd": 12.32
                    }
                  ],
                  "mostRoomForStablecoin": [
                    {
                      "row": 1,
                      "country": "Mexico",
                      "amountUsd": 400,
                      "rampBudgetUsd": 12.32,
                      "rampBudgetPct": 3.08
                    }
                  ],
                  "stablecoinFee": {
                    "chain": "base",
                    "name": "Base",
                    "usd": 0.0021,
                    "usdcNative": true
                  },
                  "csv": "row,label,country,iso2,currency,amount_usd,...",
                  "sources": [
                    {
                      "name": "World Bank WDI"
                    }
                  ],
                  "disclaimer": "Not financial advice."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "plan_cross_border_payroll_costs_post",
        "summary": "Cross-border Payroll & Payout Cost Plan (up to 25 recipients)",
        "description": "Plan the cost of a whole cross-border pay run in one call: contractor payroll, marketplace seller payouts, grant or bounty disbursements. Give the paying country and up to 25 recipients as COUNTRY:AMOUNT_USD[:LABEL]. Per recipient: mid-market amount received, World Bank average cost of that corridor (fee + FX margin) in % and USD, amount received after it, gap to the UN 3% target, cheapest live USDC network fee, and the break-even ramp budget for a stablecoin payout. Totals for the run, per-country roll-up, the 5 payouts where a stablecoin route has the most room to save, and a ready CSV. $0.01 per corridor. Bare call = an 8-person example run from the US. Not financial advice.",
        "tags": [
          "payroll",
          "payouts",
          "contractors",
          "cross-border",
          "remittance",
          "batch",
          "stablecoin",
          "usdc",
          "fx",
          "fees",
          "world-bank",
          "csv",
          "treasury"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.25"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            },
            {
              "mpp": {
                "method": "tempo",
                "intent": "charge",
                "currency": "0x20c000000000000000000000b9537d11c60e8b50"
              }
            }
          ],
          "offers": [
            {
              "amount": "250000",
              "currency": "0x20c000000000000000000000b9537d11c60e8b50",
              "description": "Cross-border Payroll & Payout Cost Plan (up to 25 recipients): $0.25 in USDC.e on Tempo (MPP, pull mode)",
              "intent": "charge",
              "method": "tempo"
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Paying country: ISO alpha-2 (US), alpha-3 or name. Default US",
                    "example": "US"
                  },
                  "pay": {
                    "type": "string",
                    "description": "Recipients, comma/semicolon/newline separated: COUNTRY:AMOUNT_USD[:LABEL], up to 25. Country as ISO2/ISO3/name. Default: MX:400,PH:350,IN:600,NG:300,KE:300,PK:250,VN:450,CO:500",
                    "example": "MX:400,PH:350:alice,IN:600,NG:300"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "asOf",
                    "from",
                    "summary",
                    "totals",
                    "rows",
                    "csv"
                  ],
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "from": {
                      "type": "object"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "recipients": {
                          "type": "integer"
                        },
                        "countries": {
                          "type": "integer"
                        },
                        "payrollUsd": {
                          "type": "number"
                        },
                        "estCostUsd": {
                          "type": "number"
                        },
                        "weightedCostPct": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "onchainFeesUsd": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "rampBudgetUsd": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "flags": {
                          "type": "object"
                        }
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "row": {
                            "type": "integer"
                          },
                          "label": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "to": {
                            "type": "object"
                          },
                          "amountUsd": {
                            "type": "number"
                          },
                          "corridorCostPct": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "estCostUsd": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "recipientGetsLocal": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "rampBudgetUsd": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "flag": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "byCountry": {
                      "type": "array"
                    },
                    "mostRoomForStablecoin": {
                      "type": "array"
                    },
                    "stablecoinFee": {
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "fx": {
                      "type": "object"
                    },
                    "csv": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "method": {
                      "type": "string"
                    },
                    "sources": {
                      "type": "array"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "asOf": "2026-11-21T12:00:00.000Z",
                  "from": {
                    "iso2": "US",
                    "iso3": "USA",
                    "name": "United States",
                    "currency": "USD"
                  },
                  "summary": "Pay run from United States: 4 recipients in 4 countries, $1,650.00 in total. At World Bank average costs the 4 benchmarked payouts ($1,650.00) would lose about $43.38 to fees and FX margin (2.63% weighted; UN target 3%). ...",
                  "totals": {
                    "recipients": 4,
                    "countries": 4,
                    "payrollUsd": 1650,
                    "benchmarkedUsd": 1650,
                    "estCostUsd": 43.38,
                    "weightedCostPct": 2.63,
                    "costAtSdg3pctUsd": 49.5,
                    "onchainFeesUsd": 0.0084,
                    "rampBudgetUsd": 43.37,
                    "flags": {
                      "expensive_over_5pct": 0,
                      "above_sdg_3pct": 2,
                      "at_or_below_sdg_3pct": 2,
                      "no_benchmark": 0
                    }
                  },
                  "rows": [
                    {
                      "row": 1,
                      "label": null,
                      "to": {
                        "iso2": "MX",
                        "iso3": "MEX",
                        "name": "Mexico",
                        "currency": "MXN"
                      },
                      "amountUsd": 400,
                      "fxUsdTo": 19.126037,
                      "midMarketLocal": 7650.41,
                      "corridorCostPct": 3.08,
                      "estCostUsd": 12.32,
                      "recipientGetsLocal": 7414.78,
                      "sdgGapPctPoints": 0.08,
                      "onchainFeeUsd": 0.0021,
                      "rampBudgetUsd": 12.32,
                      "rampBudgetPct": 3.08,
                      "flag": "above_sdg_3pct"
                    }
                  ],
                  "byCountry": [
                    {
                      "country": "Mexico",
                      "iso2": "MX",
                      "currency": "MXN",
                      "recipients": 1,
                      "amountUsd": 400,
                      "estCostUsd": 12.32
                    }
                  ],
                  "mostRoomForStablecoin": [
                    {
                      "row": 1,
                      "country": "Mexico",
                      "amountUsd": 400,
                      "rampBudgetUsd": 12.32,
                      "rampBudgetPct": 3.08
                    }
                  ],
                  "stablecoinFee": {
                    "chain": "base",
                    "name": "Base",
                    "usd": 0.0021,
                    "usdcNative": true
                  },
                  "csv": "row,label,country,iso2,currency,amount_usd,...",
                  "sources": [
                    {
                      "name": "World Bank WDI"
                    }
                  ],
                  "disclaimer": "Not financial advice."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1). MPP: WWW-Authenticate: Payment (method tempo, intent charge)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/pass/day": {
      "get": {
        "operationId": "buy_remittance_cost_api_day_pass",
        "summary": "Payout Desk day pass: 24 hours, up to 200 calls",
        "description": "Buy once, price payouts all day: a signed token for up to 200 calls to compare ($0.05), payroll ($0.25, up to 25 recipients) and corridors ($0.01) for 24 hours. Pays for itself after 4 pay runs or 20 corridor compares. Send it as Authorization: Bearer <token> or X-Remit-Pass: <token>.",
        "tags": [
          "payments",
          "remittance",
          "payroll",
          "day-pass",
          "prepaid"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            }
          ]
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "plan": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "use": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "plan": "day",
                  "expires_at": "2026-11-23T00:00:00.000Z",
                  "max_calls": 200,
                  "use": "Send Authorization: Bearer <pass> (or X-Remit-Pass: <pass>) on GET/POST /v1/remit/compare, /v1/remit/payroll and /v1/remit/corridors. No further payment until it expires or is used up. Only calls that deliver (HTTP 200) are counted."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "buy_remittance_cost_api_day_pass_post",
        "summary": "Payout Desk day pass: 24 hours, up to 200 calls",
        "description": "Buy once, price payouts all day: a signed token for up to 200 calls to compare ($0.05), payroll ($0.25, up to 25 recipients) and corridors ($0.01) for 24 hours. Pays for itself after 4 pay runs or 20 corridor compares. Send it as Authorization: Bearer <token> or X-Remit-Pass: <token>.",
        "tags": [
          "payments",
          "remittance",
          "payroll",
          "day-pass",
          "prepaid"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "plan": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "use": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "plan": "day",
                  "expires_at": "2026-11-23T00:00:00.000Z",
                  "max_calls": 200,
                  "use": "Send Authorization: Bearer <pass> (or X-Remit-Pass: <pass>) on GET/POST /v1/remit/compare, /v1/remit/payroll and /v1/remit/corridors. No further payment until it expires or is used up. Only calls that deliver (HTTP 200) are counted."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/pass/month": {
      "get": {
        "operationId": "buy_30_day_cross_border_payout_cost_pass",
        "summary": "30-day Payout Desk: up to 1,000 calls + the Remittance Cost Atlas",
        "description": "For teams that pay people abroad every week or pay cycle (contractor payroll, seller payouts, grants): a signed token good for 30 days and up to 1000 calls to compare, payroll (up to 25 recipients per call) and corridors, plus the Remittance Cost Atlas download link. Costs the same as 20 payroll runs bought one by one. Send the token as Authorization: Bearer <token> or X-Remit-Pass: <token>.",
        "tags": [
          "payments",
          "remittance",
          "payroll",
          "subscription",
          "monthly-pass",
          "prepaid"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "5"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            }
          ]
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "plan": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "atlas": {
                      "type": "object",
                      "properties": {
                        "download_url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "download_path": {
                          "type": "string"
                        },
                        "download_expires_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "file": {
                          "type": "string"
                        },
                        "bytes": {
                          "type": "integer"
                        },
                        "sha256": {
                          "type": "string"
                        },
                        "files": {
                          "type": "integer"
                        },
                        "headlines": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at",
                    "atlas"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "plan": "month",
                  "expires_at": "2026-12-21T00:00:00.000Z",
                  "max_calls": 1000,
                  "atlas": {
                    "download_url": "https://zhou-remit-desk.agent-arena-base.workers.dev/dl/zd1.eyJ2IjoxLC4uLn0.abc/zhou-remit-cost-atlas-v1.zip",
                    "download_expires_at": "2026-12-21T00:00:00.000Z",
                    "file": "zhou-remit-cost-atlas-v1.zip",
                    "bytes": 18574,
                    "sha256": "6341bfd52923052ed1fc3f459425816f4f8c71af38da3b967436ddaa71f75e0a",
                    "files": 8
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "buy_30_day_cross_border_payout_cost_pass_post",
        "summary": "30-day Payout Desk: up to 1,000 calls + the Remittance Cost Atlas",
        "description": "For teams that pay people abroad every week or pay cycle (contractor payroll, seller payouts, grants): a signed token good for 30 days and up to 1000 calls to compare, payroll (up to 25 recipients per call) and corridors, plus the Remittance Cost Atlas download link. Costs the same as 20 payroll runs bought one by one. Send the token as Authorization: Bearer <token> or X-Remit-Pass: <token>.",
        "tags": [
          "payments",
          "remittance",
          "payroll",
          "subscription",
          "monthly-pass",
          "prepaid"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "5"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "pass": {
                      "type": "string"
                    },
                    "plan": {
                      "type": "string"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "max_calls": {
                      "type": "integer"
                    },
                    "atlas": {
                      "type": "object",
                      "properties": {
                        "download_url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "download_path": {
                          "type": "string"
                        },
                        "download_expires_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "file": {
                          "type": "string"
                        },
                        "bytes": {
                          "type": "integer"
                        },
                        "sha256": {
                          "type": "string"
                        },
                        "files": {
                          "type": "integer"
                        },
                        "headlines": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "pass",
                    "expires_at",
                    "atlas"
                  ]
                },
                "example": {
                  "pass": "zp1.eyJ2IjoxLC4uLn0.abc",
                  "plan": "month",
                  "expires_at": "2026-12-21T00:00:00.000Z",
                  "max_calls": 1000,
                  "atlas": {
                    "download_url": "https://zhou-remit-desk.agent-arena-base.workers.dev/dl/zd1.eyJ2IjoxLC4uLn0.abc/zhou-remit-cost-atlas-v1.zip",
                    "download_expires_at": "2026-12-21T00:00:00.000Z",
                    "file": "zhou-remit-cost-atlas-v1.zip",
                    "bytes": 18574,
                    "sha256": "6341bfd52923052ed1fc3f459425816f4f8c71af38da3b967436ddaa71f75e0a",
                    "files": 8
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/v1/atlas": {
      "get": {
        "operationId": "download_remittance_cost_dataset_by_country",
        "summary": "Remittance Cost Atlas: 103 + 47 countries, SDG gaps, stablecoin break-evens, payroll calculator (ZIP)",
        "description": "One payment, one ZIP (8 files, 70 kB): World Bank remittance-cost data (WDI SI.RMT.COST.IB.ZS / OB.ZS, CC BY 4.0, WB update 2026-11-11) for 103 receiving and 47 sending countries, cleaned and joined with ISO codes, currency, region and income group; ranked; gap to the UN SDG 10.c 3% target; the break-even budget a USDC payout must beat per country; medians by region and income group; an 8-contractor US pay run priced three ways; and payroll-cost.mjs, an offline calculator for your own pay run (Node 18+, no installs, no network). CSV + JSON. Returns a private download link valid 30 days (unlimited re-downloads) and the file's sha256. Free file list and headline numbers: /v1/atlas/contents.",
        "tags": [
          "payments",
          "remittance",
          "dataset",
          "world-bank",
          "stablecoin",
          "payroll",
          "download"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            }
          ]
        },
        "parameters": [],
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "download_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "download_path": {
                      "type": "string"
                    },
                    "download_expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "file": {
                      "type": "string"
                    },
                    "bytes": {
                      "type": "integer"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "files": {
                      "type": "integer"
                    },
                    "headlines": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "download_url",
                    "sha256"
                  ]
                },
                "example": {
                  "download_url": "https://zhou-remit-desk.agent-arena-base.workers.dev/dl/zd1.eyJ2IjoxLC4uLn0.abc/zhou-remit-cost-atlas-v1.zip",
                  "download_expires_at": "2026-12-21T00:00:00.000Z",
                  "file": "zhou-remit-cost-atlas-v1.zip",
                  "bytes": 18574,
                  "sha256": "6341bfd52923052ed1fc3f459425816f4f8c71af38da3b967436ddaa71f75e0a",
                  "files": 8
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      },
      "post": {
        "operationId": "download_remittance_cost_dataset_by_country_post",
        "summary": "Remittance Cost Atlas: 103 + 47 countries, SDG gaps, stablecoin break-evens, payroll calculator (ZIP)",
        "description": "One payment, one ZIP (8 files, 70 kB): World Bank remittance-cost data (WDI SI.RMT.COST.IB.ZS / OB.ZS, CC BY 4.0, WB update 2026-11-11) for 103 receiving and 47 sending countries, cleaned and joined with ISO codes, currency, region and income group; ranked; gap to the UN SDG 10.c 3% target; the break-even budget a USDC payout must beat per country; medians by region and income group; an 8-contractor US pay run priced three ways; and payroll-cost.mjs, an offline calculator for your own pay run (Node 18+, no installs, no network). CSV + JSON. Returns a private download link valid 30 days (unlimited re-downloads) and the file's sha256. Free file list and headline numbers: /v1/atlas/contents.",
        "tags": [
          "payments",
          "remittance",
          "dataset",
          "world-bank",
          "stablecoin",
          "payroll",
          "download"
        ],
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "1"
          },
          "protocols": [
            {
              "x402": {
                "network": "eip155:8453",
                "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "payTo": "0xF6F224a812048D959354B48110d8A6301e431714"
              }
            }
          ]
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Paid result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "download_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "download_path": {
                      "type": "string"
                    },
                    "download_expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "file": {
                      "type": "string"
                    },
                    "bytes": {
                      "type": "integer"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "files": {
                      "type": "integer"
                    },
                    "headlines": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "download_url",
                    "sha256"
                  ]
                },
                "example": {
                  "download_url": "https://zhou-remit-desk.agent-arena-base.workers.dev/dl/zd1.eyJ2IjoxLC4uLn0.abc/zhou-remit-cost-atlas-v1.zip",
                  "download_expires_at": "2026-12-21T00:00:00.000Z",
                  "file": "zhou-remit-cost-atlas-v1.zip",
                  "bytes": 18574,
                  "sha256": "6341bfd52923052ed1fc3f459425816f4f8c71af38da3b967436ddaa71f75e0a",
                  "files": 8
                }
              }
            }
          },
          "400": {
            "description": "Invalid input (no payment touched)"
          },
          "402": {
            "description": "Payment required. x402: PAYMENT-REQUIRED header (v2) or JSON body (v1)."
          },
          "404": {
            "description": "No World Bank data for that corridor / region (not charged)"
          },
          "502": {
            "description": "Upstream unavailable (not charged)"
          }
        }
      }
    },
    "/": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/health/data": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/peek": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api": {
      "get": {
        "summary": "Free",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/atlas/contents": {
      "get": {
        "summary": "Free: Remittance Cost Atlas file list, sha256, headline numbers",
        "security": [],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/desk/quote": {
      "get": {
        "operationId": "quote_plain_usdc_transfer_purchase",
        "summary": "Free: quote for buying the 30-day Payout Desk pass or the atlas with a plain USDC transfer on Base (not x402)",
        "security": [],
        "parameters": [
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "month",
                "atlas"
              ]
            },
            "description": "month (default) or atlas"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "optional 0x payer address: pay a round amount from it, no deadline"
          }
        ],
        "responses": {
          "200": {
            "description": "Quote and payment instructions"
          }
        }
      }
    },
    "/v1/desk/claim": {
      "get": {
        "operationId": "claim_plain_usdc_transfer_purchase",
        "summary": "Free: claim a plain-transfer purchase (quote + Base tx hash); idempotent",
        "security": [],
        "parameters": [
          {
            "name": "quote",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tx",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Pass token and/or download link"
          }
        }
      }
    }
  }
}