PayZuDocs

把以 BRL 分为单位的金额按 bid 或 ask 汇率换算成目标货币。

GEThttps://api.payzu.io/v1/currencies/{code}/convert
GET
/currencies/{code}/convert

Path Params

ISO 4217 currency code. BRL is not accepted.

Query Params

Amount in BRL cents. Minimum 100 (R$1.00).

bid ask

Responses

curl -X GET "https://api.payzu.io/v1/currencies/USD/convert?amount=100&type=string" \  -H "Authorization: Bearer {{token}}"
200
{
"amount": 1841.62,
}