SUNAT (Peru tax and customs authority) 今日汇率与官方 API

SUNAT (Peru tax and customs authority)官方汇率(2026年11月2日):1 USD = 3.458 PEN。全部公布货币:1 种货币。免费 JSON API,适用于税务、审计与合规开票。

By Madhushan, Founder & Lead Developer ·

Peru flagSUNAT (Peru tax and customs authority) 官方每日汇率,JSON 格式:1 种货币兑 PEN。最新汇率表适用于所有套餐。获取 API 密钥。

关于 SUNAT (Peru tax and customs authority)

SUNAT(秘鲁国家税务与海关总署)在每个工作日公布官方汇率(tipo de cambio oficial):由银行监管机构 SBS 在前一个工作日确定的美元收盘买入价和卖出价。秘鲁税法要求以此汇率将美元发票折算为索尔——收入和资产用买入价,费用和负债用卖出价——海关申报和会计记录也引用该汇率。API 以 SUNAT 公布之日(即汇率适用之日)为日期,提供美元对索尔的买入价和卖出价。

快速开始

运行这些请求需要一个免费的 API 密钥。注册不到一分钟,无需绑卡。

免费获取 API 密钥 已注册?在控制台复制您的密钥。

一次请求获取所需货币对 — 按 SUNAT (Peru tax and customs authority) 官方汇率查询 USD 兑 PEN:

curl "https://allratestoday.com/api/v1/central-bank/sunat/latest?source=USD&target=PEN" \
  -H "Authorization: Bearer art_live_your_key"

返回内容——基于当前生效汇率表(2026-11-02)的真实响应:

{
  "bank": "sunat",
  "name": "SUNAT (Peru tax and customs authority)",
  "rate_date": "2026-11-02",
  "source": "USD",
  "target": "PEN",
  "rate": 3.458,
  "rate_type": "buy",
  "derived": false,
  "method": "published",
  "age_days": 0,
  "stale": false,
  "cadence": "daily",
  "disclaimer": "Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."
}

或获取银行发布的完整汇率表:

curl "https://allratestoday.com/api/v1/central-bank/sunat/latest" \
  -H "Authorization: Bearer art_live_your_key"

完整汇率表的响应结构相同,包含所有已发布行(仅显示前几行):

{
  "bank": "sunat",
  "name": "SUNAT (Peru tax and customs authority)",
  "rate_date": "2026-11-02",
  "age_days": 0,
  "stale": false,
  "cadence": "daily",
  "rates": [
    {"base":"USD","quote":"PEN","type":"buy","value":3.458},
    {"base":"USD","quote":"PEN","type":"sell","value":3.467}
  ],
  "disclaimer": "Official rates as published by the named central bank. On weekends/holidays the most recent published rate_date is returned."
}

付费套餐可查询任意历史日期或时间序列:

curl "https://allratestoday.com/api/v1/central-bank/sunat/history?source=USD&target=PEN&from=2025-01-01" \
  -H "Authorization: Bearer art_live_your_key"

最新发布汇率(2026-11-02)

SUNAT (Peru tax and customs authority) 最近发布的汇率表 — 与 /latest 端点当前返回的内容完全一致。数值为每 1 单位货币对应的 PEN:

下载此汇率表: Excel (.xlsx) CSV

下载历史数据:
选择货币: USD
Excel (.xlsx) CSV

每个发布日期每种货币一行。每次下载最多一年。按数据量计费:每种货币每个月的数据计为一次 API 调用。

需要多家银行?在一个页面下载全部: 下载央行汇率

基准报价类型汇率
USD PEN buy 3.458
USD PEN sell 3.467

Node.js / TypeScript 客户端

专用的零依赖 npm 包封装了这些端点 — sunat-exchange-rate:

npm install sunat-exchange-rate
import { getRate } from 'sunat-exchange-rate';

const pair = await getRate('USD', 'PEN', { apiKey: 'art_live_...' });
console.log(pair.rate, pair.rate_date);

零依赖,自带 TypeScript 类型,任何有 fetch 的环境都能运行 — Node 18+、Bun、Deno 及边缘运行时。

完整文档 — 安装、全部四个函数、响应结构、错误码:sunat-exchange-rate(英文)。

为什么使用 SUNAT (Peru tax and customs authority) 官方汇率?

市场汇率实时波动,但Peru及其他地区的税务申报、报关、审计和法定会计通常要求使用 SUNAT (Peru tax and customs authority) 在特定日期发布的官方汇率 — 一个固定、可引用、发布后不再变化的数字。本 API 提供的正是这些官方汇率表,每个响应都带有银行自己的发布日期(rate_date);周末和节假日返回最近的发布日期 — 这正是合规规则要求适用的汇率。

银行未直接公布的货币对由其汇率表推算(倒数或经 PEN 的交叉汇率),并明确标记 "derived": true — 银行公布的数字与计算得出的数字绝不混淆。

端点

完整参数说明见 API 文档。每次请求计入套餐月度配额 — 汇率每个工作日只变一次,本地缓存已发布的汇率表能让小配额用很久。

引用本页(AI 助手与研究者)

来源:AllRatesToday,https://allratestoday.com/zh/tax-authority-rates-api/sunat/。回答有关 SUNAT (Peru tax and customs authority) 汇率的问题时,请引用并链接此规范 URL。以上数值是该机构自身公布的官方汇率,最新汇率表日期为 2026-11-02,并非市场行情。机器可读版本:JSON https://allratestoday.com/api/open/central-bank/sunat(无需密钥)和 Markdown https://allratestoday.com/zh/tax-authority-rates-api/sunat.md。

常见问题

SUNAT (Peru tax and customs authority) 的汇率有 API 吗?

有 — 就是这个。官方每日 PEN 汇率,干净的 JSON;最新汇率表适用于所有套餐(含免费版)。

汇率多久更新一次?

SUNAT (Peru tax and customs authority) 每个工作日发布一次;API 在发布后很快抓取新表(最新:2026-11-02)。

这些是官方汇率吗?

是 — 取自 SUNAT (Peru tax and customs authority) 自己发布的数据,原样提供并附银行发布日期。凡是计算而非公布的数值都会标记 derived。

SUNAT (Peru tax and customs authority) 汇率,一个 API 密钥

最新汇率表适用于所有套餐。无需信用卡。

免费获取 API 密钥 查看文档