{"openapi":"3.1.0","info":{"title":"Tariffs & Trade Reference API","version":"1.0.0","description":"Look up US HTS duty rates, UK Global Tariff third-country duty, US Schedule B export codes, and FAA US airports from vendored official snapshots, plus ISO 6346 container validation and CBP bond explanations from caller input. Paid with x402 exact USDC on Base. No account is required.","contact":{"email":"support@brainiac.software"},"x-guidance":"BRAINIAC.software is a pay-per-call API for software agents. No account or API key is required.\nPayment uses x402 with exact USDC on Base (8453). Each paid resource accepts POST for the call; unpaid GET/HEAD return the same 402 payment challenge for discovery.\nHow to call an operation:\n1. POST JSON matching the requestBody. An unpaid POST (including empty body) returns 402 payment terms before body validation.\n2. Compare 402 payTo, asset, and network with /api/v1/catalog and /.well-known/x402 — not only with the 402 itself.\n3. Pay and retry with payment-signature. Invalid JSON/schema after payment-signature returns 400 and is not charged. Settlement (a charge) only on 2xx. payment-signature attached ≠ charged.\nIdempotency-Key: 64 hex chars from 32 random bytes. Reuse only for the same operation and body (replays stored response, including status=partial). A new key runs a fresh call.\nIdempotency after errors: unpaid 402 does not store the key. Post-signature 402/503 release it (retry same key). Pre-reserve schema 400 does not store it. Other post-signature responses (2xx/4xx/5xx) are stored: same key+body replays; different body → 409. Stored 4xx/5xx replays are not a second charge. Prefer a new key after fixing a 4xx; after 5xx reuse the same key only for the stored error.\nPost-signature 402/503 include prior-payment-attempt (nonce, settled false|unknown). A facilitator 502 is SETTLEMENT_UNKNOWN (stored under the Idempotency-Key; cross-instance replay needs the shared store; may already be charged) — check USDC authorizationState(payer, nonce) on Base before re-signing.\nSettlement signal: settled 2xx include payment-response. 4xx/5xx do not. Do not book a cost from payment-signature alone.\nCoverage billing: HTTP 200 with status complete, partial, or failed is charged at the full listed price. Retrying missing checks needs a new settled call. 4xx/5xx are not charged.\nmissing_items.reason: timeout/rate_limited → one delayed retry (new key); upstream_down → after recovery; not_supported → never.\nInvariants: any missing_items ⇒ not status complete; sources[] is provenance only (source, url, retrievedAt), never success/error keyed by check.\nFree lookup: GET /api/v1/results/{result_id} returns stored coverage JSON (404 RESULT_NOT_FOUND if unknown/expired; not a 402). Prior-Result-Id sets replaces_result_id.\nOutputs are prechecks/drafts for human review — not official determinations, legal advice, or certified filings."},"servers":[{"url":"https://www.brainiac.software"}],"paths":{"/api/v1/trade-tariff/container-iso6346-validate":{"post":{"operationId":"validate_iso_6346_container_number","summary":"Validate ISO 6346 container number","description":"Validate freight container owner code, category identifier, serial, and ISO 6346 check digit. Does not confirm registration.","tags":["trade-tariff"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"containerNumber":{"type":"string","minLength":10,"maxLength":15}},"required":["containerNumber"],"additionalProperties":false},"example":{"containerNumber":"CSQU3054383"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"retrievedAt":{"type":"string"},"containerNumber":{"type":"string"},"formatOk":{"type":"boolean"},"ownerCode":{"type":"string"},"categoryIdentifier":{"type":"string"},"serialNumber":{"type":"string"},"expectedCheckDigit":{"type":"number"},"observedCheckDigit":{"type":"number"},"checksumOk":{"type":"boolean"},"valid":{"type":"boolean"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"retrievedAt":"2026-11-14T20:00:00.000Z","containerNumber":"CSQU3054383","formatOk":true,"ownerCode":"CSQ","categoryIdentifier":"U","serialNumber":"305438","expectedCheckDigit":3,"observedCheckDigit":3,"checksumOk":true,"valid":true,"sources":[{"source":"ISO 6346 freight container coding / check digit","url":"https://www.iso.org/standard/83515.html","retrievedAt":"2026-11-14T20:00:00.000Z","status":"ok"}],"limitations":["Validates owner code, category identifier, serial, and check digit only."]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/trade-tariff/customs-bond-type-explain":{"post":{"operationId":"explain_a_us_customs_bond_type","summary":"Explain a US customs bond type","description":"Return a short structured explanation of common CBP customs bond forms and activity codes from public CBP bond concepts.","tags":["trade-tariff"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"bondType":{"default":"unknown","type":"string","enum":["continuous","single_transaction","activity_1","activity_2","activity_3","activity_4","unknown"]}},"additionalProperties":false},"example":{"bondType":"continuous"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"retrievedAt":{"type":"string"},"bondType":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"typicalUses":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"retrievedAt":"2026-11-14T20:00:00.000Z","bondType":"continuous","title":"Continuous bond (CBP)","summary":"A continuous customs bond covers entries over a period (commonly one year) for an importer of record, instead of postin…","typicalUses":["Frequent importers","Multiple ports of entry over the bond term"],"sources":[{"source":"US CBP public customs bond overview (activity codes)","url":"https://www.cbp.gov/trade/programs-administration/bonds","retrievedAt":"2026-11-14T20:00:00.000Z","status":"ok"}],"limitations":["This is a short structured explanation from public CBP bond concepts, not a bond application."]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/trade-tariff/us-hts-duty-rate-lookup":{"post":{"operationId":"look_up_us_hts_duty_rates","summary":"Look up US HTS duty rates","description":"Return the published HTSUS General, Special and Column 2 rate columns, units and Chapter 99 cross-references for an HTS code from the vendored USITC release. Not a classification or additional-duty calculation.","tags":["trade-tariff"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hts":{"type":"string","pattern":"^\\d{4}(\\.?\\d{2}){0,3}$"},"program":{"type":"string","pattern":"^[A-Z]{1,2}\\*?\\+?$"}},"required":["hts"],"additionalProperties":false},"example":{"hts":"6109.10.0004","program":"AU"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"hts":{"type":"string"},"found":{"type":"boolean"},"description":{"type":"string"},"path":{"type":"array","items":{"type":"string"}},"rateLine":{"type":"string"},"general":{"type":"string"},"special":{"type":"object","properties":{"text":{"type":"string"},"rate":{"type":"string"},"programs":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"column2":{"type":"string"},"units":{"type":"array","items":{"type":"string"}},"chapter99References":{"type":"array","items":{}},"footnotes":{"type":"array","items":{}},"children":{"type":"array","items":{}},"programEligible":{"type":"boolean"},"release":{"type":"object","properties":{"name":{"type":"string"},"startDate":{"type":"string"}},"additionalProperties":true},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"hts":"6109.10.00.04","found":true,"description":"T-shirts, all white, short hemmed sleeves, hemmed bottom, crew or round neckline, or V-neck with a mitered seam at the …","path":["T-shirts, singlets, tank tops and similar garments, knitted or crocheted:","Of cotton","…"],"rateLine":"6109.10.00","general":"16.5%","special":{"text":"Free (AU,BH,CL,CO,IL,JO,KR,MA,OM,P,PA,PE,S,SG)","rate":"Free","programs":["AU","BH","…"]},"column2":"90%","units":["doz.","kg"],"chapter99References":[],"footnotes":[],"children":[],"programEligible":true,"release":{"name":"2026HTSRev23","startDate":"2026-11-10"},"sources":[{"source":"USITC Harmonized Tariff Schedule of the United States, 2026 HTS Revision 23","url":"https://hts.usitc.gov/reststop/exportList?from=0101&to=9999&format=JSON&styles=false","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Published HTSUS rate columns only. This is not a classification, a landed-cost estimate, or a calculation of Section 23…","Chapter 99 measures (including Section 301 lists in U.S. note 20 to subchapter III) must be checked separately; chapter…","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/trade-tariff/uk-global-tariff-lookup":{"post":{"operationId":"look_up_uk_global_tariff_duty","summary":"Look up UK Global Tariff duty","description":"Return the UK Global Tariff third-country (measure type 103) duty for a UK commodity code from a vendored DBT dataset subset. Preferential rates are not included.","tags":["trade-tariff"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"commodityCode":{"type":"string","pattern":"^(\\d{8}|\\d{10})$"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["commodityCode"],"additionalProperties":false},"example":{"commodityCode":"6109100010"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"commodityCode":{"type":"string"},"found":{"type":"boolean"},"date":{"type":"string"},"measures":{"type":"array","items":{"type":"object","properties":{"dutyExpression":{"type":"string"},"geographicalArea":{"type":"object","properties":{"id":{"type":"string"},"description":{"type":"string"}},"additionalProperties":true},"excludedAreas":{"type":"array","items":{}},"additionalCode":{"type":"null"},"quotaOrderNumber":{"type":"null"},"startDate":{"type":"string"},"endDate":{"type":"null"},"regulation":{"type":"string"}},"additionalProperties":true}},"datasetVersion":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"commodityCode":"6109100010","found":true,"date":"2026-11-14","measures":[{"dutyExpression":"12%","geographicalArea":{"id":"1011","description":"ERGA OMNES"},"excludedAreas":[],"additionalCode":null,"quotaOrderNumber":null,"startDate":"2021-01-01","endDate":null,"regulation":"S.I. 2020/1430"},{"dutyExpression":"0%","geographicalArea":{"id":"1080","description":"Channel Islands"},"excludedAreas":[],"additionalCode":null,"quotaOrderNumber":null,"startDate":"2021-01-01","endDate":null,"regulation":"S.I. 2020/1430"}],"datasetVersion":"v4.0.1656","sources":[{"source":"DBT Tariffs to trade with the UK from 1 January 2021 (measures-on-declarable-commodities, type 103), Open Government Li…","url":"https://data.api.trade.gov.uk/v1/datasets/uk-tariff-2021-01-01/versions/v4.0.1656/tables/measures-on-declarable-commodi…","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Third-country duty (measure type 103) only; preferential trade-agreement rates, quotas, anti-dumping and other measure …","Answered from the vendored DBT snapshot v4.0.1656 (in-force measures on 2026-11-14); later amendments are not known.","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/trade-tariff/us-schedule-b-lookup":{"post":{"operationId":"look_up_a_us_schedule_b_export_code","summary":"Look up a US Schedule B export code","description":"Look up a 10-digit US Schedule B export code or search Schedule B descriptions in the vendored Census concordance. Not an AES filing.","tags":["trade-tariff"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"code":{"type":"string","pattern":"^\\d{10}$"},"query":{"type":"string","minLength":2,"maxLength":200},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50}},"additionalProperties":false},"example":{"code":"8471300100"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"shortDescription":{"type":"string"},"longDescription":{"type":"string"},"units":{"type":"array","items":{"type":"string"}},"sitc":{"type":"string"},"endUse":{"type":"string"},"usda":{"type":"boolean"},"naics":{"type":"string"},"hitech":{"type":"string"}},"additionalProperties":true}},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"results":[{"code":"8471300100","shortDescription":"PORT DGTL ADP MACH,< 10 KG,AT LEAST CPU,KBRD,DSPLY","longDescription":"PORTABLE DIGTL AUTOMATIC DATA PROCESSING MACHINES,WEIGHT NOT MORE THAN 10 KG,CONSISTING OF AT LEAST A CENTRAL PROCESSIN…","units":["NO"],"sitc":"75220","endUse":"21300","usda":false,"naics":"334111","hitech":"04"}],"sources":[{"source":"US Census Bureau Schedule B export concordance (econcord.txt, 2026)","url":"https://www.census.gov/foreign-trade/schedules/b/2026/sbsdf.zip","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["Lookup only; not an AES filing or a classification ruling.","usda is true when the Census USDA flag marks the code as an agricultural product.","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.02"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}},"/api/v1/trade-tariff/us-airport-lookup":{"post":{"operationId":"look_up_a_us_airport_or_landing_facility","summary":"Look up a US airport or landing facility","description":"Look up a US landing facility by FAA location identifier, ICAO id or name from the vendored FAA NASR 28-day APT_BASE data.","tags":["trade-tariff"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"faaId":{"type":"string","pattern":"^[A-Z0-9]{2,4}$"},"icao":{"type":"string","pattern":"^[A-Z]{4}$"},"name":{"type":"string","minLength":2,"maxLength":100},"state":{"type":"string","pattern":"^[A-Z]{2}$"},"limit":{"default":10,"type":"integer","minimum":1,"maximum":50}},"additionalProperties":false},"example":{"icao":"KJFK"}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Fresh random 32-byte value encoded as 64 hexadecimal characters. Reuse unchanged only for retries of the same operation and request.","schema":{"type":"string","pattern":"^[0-9a-fA-F]{64}$"}}],"responses":{"200":{"description":"Illustrative endpoint-specific JSON response shape. For coverage operations, HTTP 200 is used for status complete, partial, and failed; all three settle and are charged at the full listed price. A settled 2xx includes a payment-response response header (facilitator settlement receipt; may include a transaction reference). Conditional fields depend on the result and data-source availability.","headers":{"payment-response":{"description":"Present on settled 2xx only. Facilitator settlement receipt for the x402 payment (not present on 4xx/5xx, which are not charged).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"siteNo":{"type":"string"},"faaId":{"type":"string"},"icao":{"type":"string"},"name":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"siteType":{"type":"string"},"status":{"type":"string"},"ownership":{"type":"string"},"facilityUse":{"type":"string"},"latitude":{"type":"number"},"longitude":{"type":"number"},"elevationFt":{"type":"number"},"far139":{"type":"string"}},"additionalProperties":true}},"cycle":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"url":{"type":"string"},"retrievedAt":{"type":"string"},"status":{"type":"string"}},"additionalProperties":true},"description":"Provenance only (source, url, retrievedAt). Not keyed by check id and does not carry success or error. A check in missing_items does not remove its upstream from sources[]; unavailability is only in missing_items (and unavailable findings)."},"limitations":{"type":"array","items":{"type":"string"}}},"additionalProperties":true},"example":{"results":[{"siteNo":"15793.","faaId":"JFK","icao":"KJFK","name":"JOHN F KENNEDY INTL","city":"NEW YORK","state":"NY","siteType":"AIRPORT","status":"OPERATIONAL","ownership":"PUBLICLY OWNED","facilityUse":"OPEN TO THE PUBLIC","latitude":40.63992805,"longitude":-73.77869222,"elevationFt":13,"far139":"I E"}],"cycle":"2026-10-29","sources":[{"source":"FAA NASR 28-day subscription, APT_BASE.csv","url":"https://nfdc.faa.gov/webContent/28DaySub/extra/29_Oct_2026_APT_CSV.zip","retrievedAt":"2026-11-14","status":"ok"}],"limitations":["US landing facilities in FAA NASR only; non-US airports return no results.","ICAO ids are present for a subset of facilities and are never inferred; IATA codes are not in the file and faaId is not…","…"]}}}},"400":{"description":"Invalid JSON or request schema. Not charged (no payment-response). If this 400 is returned before the Idempotency-Key is reserved, the key is not stored — fix the body and you may reuse the key. If an operation-path 400 was stored after a payment-signature was attached, the same key + same body replays it; the same key + a different body returns 409."},"402":{"description":"Payment required. The JSON body is the x402 PaymentRequired object. An unpaid 402 does not store the Idempotency-Key. A 402 after payment-signature releases the key and includes prior-payment-attempt (nonce, settled false|unknown). Not charged; no payment-response. Before re-signing after a post-signature 402, check USDC authorizationState(payer, nonce) on Base."},"409":{"description":"Idempotency conflict, in-progress payment, or expired result cache. Same key with a different body after a stored result returns conflict. Reusing the key cannot trigger a second charge. Not charged when settlement did not occur."},"413":{"description":"Request body exceeds the 24 MB limit. Not charged."},"500":{"description":"Operation failed before settlement, so no payment is taken (no payment-response). The error is stored: reuse the same Idempotency-Key and body to retrieve it without paying again. Use a new key for a fresh attempt with a new payment-signature."},"502":{"description":"Facilitator verify/settle transport failure (often timeout). After payment-signature this is returned as SETTLEMENT_UNKNOWN with prior-payment-attempt; the outcome is stored under the Idempotency-Key. With the shared store configured, other instances replay it instead of settling again; without it, each instance keeps its own memory. The authorization may already be settled on-chain — do not re-sign until USDC authorizationState(payer, nonce) on Base is false."},"503":{"description":"Payment or retry-safe result storage is unavailable; the operation is not run. Not charged; no payment-response. A 503 after payment-signature releases the Idempotency-Key and includes prior-payment-attempt."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}],"facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}}}},"components":{"schemas":{"ApiError":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}}}}}