Skip to main content
POST
/
capabilities
/
currency.convert
currency.convert
curl --request POST \
  --url https://developer.api.receiptor.ai/v1/capabilities/currency.convert \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "amount": 123,
  "fromCurrency": "<string>",
  "toCurrency": "<string>",
  "date": "<string>"
}
'
{
  "success": true,
  "code": 200,
  "data": {
    "result": {}
  }
}

Authorizations

x-api-key
string
header
required

API key prefixed with sk_. Obtain from the Receiptor AI dashboard.

Body

application/json
amount
number
required

The amount to convert

fromCurrency
string
required

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

toCurrency
string
required

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

date
string

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

Response

Successful response

success
boolean
Example:

true

code
integer
Example:

200

data
object