Create a currency
Changed onCreates a user-defined currency with the specified name and currency code. Exchange rates for user-defined currencies are not updated automatically by QuickBooks Desktop; update them manually as needed.
Request
- Base URLhttps://api.conductor.is/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
The ID of the End-User to receive this request.
Request body
Example request
{
"name": "United States Dollar",
"isActive": true,
"currencyCode": "USD",
"currencyFormat": {
"thousandSeparator": "comma",
"thousandSeparatorGrouping": "xx_xxx_xxx",
"decimalPlaces": "2",
"decimalSeparator": "period"
}
}Response
Returns the newly created currency.
Example response
{
"id": "80000001-1234567890",
"objectType": "qbd_currency",
"createdAt": "2025-01-01T12:34:56+00:00",
"updatedAt": "2025-02-01T12:34:56+00:00",
"revisionNumber": "1721172183",
"name": "United States Dollar",
"isActive": true,
"currencyCode": "USD",
"currencyFormat": {
"thousandSeparator": "comma",
"thousandSeparatorGrouping": "xx_xxx_xxx",
"decimalPlaces": "2",
"decimalSeparator": "period"
},
"exchangeRate": 1.2345,
"asOfDate": "2024-08-01"
}Changes
- breaking
response property
asOfDatelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
exchangeRatelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
isUserDefinedCurrencylist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - info
added
subschema #2to theresponse propertyanyOflist for the response status - info
removed
subschema #2from theresponse propertyoneOflist for the response status
- breaking
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
added
subschema #2to theresponse propertyoneOflist for the response status - info
removed
subschema #2from theresponse propertyanyOflist for the response status - info
response property
asOfDatelist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200 - info
response property
exchangeRatelist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200 - info
response property
isUserDefinedCurrencylist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200
- breaking