POST /currencies.json
Body Required
-
Exchange rate
Default value is
1
. -
Iso
-
Name
-
Round up
Default value is
false
. -
Symbol
-
Use live rates
Default value is
true
.
POST /currencies.json
curl \
-X POST http://api.example.com/v1/currencies.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"exchangeRate":1,"iso":"string","name":"string","roundUp":false,"symbol":"string","useLiveRates":true}'
Request example
{
"exchangeRate": 1,
"iso": "string",
"name": "string",
"roundUp": false,
"symbol": "string",
"useLiveRates": true
}
Response examples (200)
{
"createdAt": "2024-05-04T09:42:00+00:00",
"exchangeRate": 1,
"id": 42,
"iso": "string",
"name": "string",
"roundUp": false,
"symbol": "string",
"updatedAt": "2024-05-04T09:42:00+00:00",
"useLiveRates": true
}