Capabilities

currency.convert

Convert amounts between different currencies. Uses current rates by default, or historical rates for a specific date.

post/capabilities/currency.convert

Request

  • Base URL: https://developer.api.receiptor.ai/v1
  • URL: https://developer.api.receiptor.ai/v1/capabilities/currency.convert
  • Auth: one of:
    • API key in header x-receiptor-api-key
    • HTTP bearer

Request body

amountnumber required

The amount to convert

fromCurrencystring required

The source currency code (e.g., 'USD', 'EUR', 'IDR')

toCurrencystring required

The target currency code (e.g., 'USD', 'EUR', 'IDR')

datestring

Optional date for historical rates (YYYY-MM-DD format). Defaults to current rates if not provided.

Response

Successful response

successboolean
codeinteger

Example response

{
  "success": true,
  "code": 200
}

Changes

No recorded changes to this operation across all 12 revisions of this API.