Toggle a currency
Turn a transaction currency on when it is off, or off when it is on. This is the same switch as the currency switch in the app. The setting covers every company in the organization. The request has no body.
You cannot turn a currency off while it is the base currency of a company, while a transaction that is not archived uses it, while an active account uses it, or while an item has a price in it. The request then fails with 422, and the error names each reason. An unknown currency code also fails with 422.
To see the new state, list the currencies.
Headers
Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.
255