NL
Belasting en identificatoren · x402

iban

IBAN-validatie (ISO 13616 mod-97-controlesom en lengte per land). Geeft de genormaliseerde IBAN, het land en de BBAN terug.

0.001 USDC / aanroep · {atomic} atomair · 1000 atomic

Eindpunt

GET|POST https://x402-gateway.forge-x402.workers.dev/api/iban
MCP-tool:: iban

Parameters

NaamVerplichtTypeBeschrijving
ibanVerplichtstring—

Voorbeeldverzoek (onbetaald — verwacht 402)

curl -sS -D - "https://x402-gateway.forge-x402.workers.dev/api/iban?iban=FR7630006000011234567890189"

Voorbeeld van een 402-challenge

Hetzelfde object wordt ook als base64-header PAYMENT-REQUIRED verstuurd. Bedragen zijn atomaire USDC-eenheden (6 decimalen).

{
  "x402Version": 2,
  "error": "Payment required",
  "resource": {
    "url": "https://x402-gateway.forge-x402.workers.dev/api/iban",
    "description": "IBAN validation (ISO 13616 mod-97 checksum + per-country length), returns normalised IBAN, country and BBAN.",
    "mimeType": "application/json"
  },
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "amount": "1000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x7B8bf45ac6AcbA6D4CFB626b57D3f5fF3C9C89F7",
      "maxTimeoutSeconds": 120,
      "extra": {
        "name": "USD Coin",
        "version": "2"
      }
    }
  ]
}

Opnieuw proberen met betaling

curl -sS "https://x402-gateway.forge-x402.workers.dev/api/iban?iban=FR7630006000011234567890189" \
  -H "PAYMENT-SIGNATURE: $PAYMENT"

Voorbeeldantwoord

{
  "valid": true,
  "country": "FR",
  "iban": "FR7630006000011234567890189",
  "bban": "30006000011234567890189"
}

Gerelateerde eindpunten