Skip to Content
Docs
API referenceManagement API

Billing exchange rates

GET
/billing/exchange-rates

billing.catalog.v1.ExchangeRateService/GetExchangeRate (32-billing-overview.md, API Surface, Exchange rates). The rate a line whose service period ends at at takes: the ECB's reference rate, or a manual rate for a pair the ECB does not publish. exchange_rate_unavailable while there is none yet.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Query Parameters

from*string

ISO 4217 code of the currency converted from

to*string

ISO 4217 code of the currency converted to

at*string

RFC 3339 instant the line's service period ends at

Response Body

An ExchangeRate object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X GET 'https://api.us.pontive.com/v1/billing/exchange-rates?from=string&to=string&at=string'
Example Response
{  "id": "string",  "object": "string"}
PUT
/billing/exchange-rates/{from}/{to}/{date}

billing.catalog.v1.ExchangeRateService/SetManualExchangeRate (32-billing-overview.md, API Surface, Exchange rates). A manual rate for one day (UTC) of a pair the ECB does not publish: { rate, note }. exchange_rate_published for a pair the ECB publishes; exchange_rate_in_use for a change to a rate a finalized invoice used.

Authorization

BearerAuth
headerAuthorization<token>

Access token as "Bearer "

Path Parameters

from*string

from

to*string

to

date*string

date, YYYY-MM-DD

Header Parameters

X-Idempotency-Key?string

Idempotency key

Response Body

An ExchangeRate object

application/json
  1. response
id?string

ID is its prefixed id.

object?string

Object names the kind: customer, invoice, contract, …

Example Request
curl -X PUT 'https://api.us.pontive.com/v1/billing/exchange-rates/string/string/string'
Example Response
{  "id": "string",  "object": "string"}