Partial update a currency
PATCH
/api/v2/currencies/:id
Update a currency for organization by id with patch the attributes.
Body Request
Field | Description |
---|---|
code | Currency code. String 3 characters . |
name | Currency name. String maximum 50 characters . |
symbol | Currency symbol. String maximum 10 characters . |
unit | Currency unit. String maximum 20 characters . |
fractional | Currency fractional. String maximum 20 characters . |
cash_account | Default account for cash transaction. See Account. |
bank_account | Default account for bank payment. See Account. |
receivable_account | Default account for accounts receivable. See Account. |
payable_account | Default account for accounts payable. See Account. |
is_active | Boolean true to active currency. |
Body Response
Field | Description |
---|---|
id | Unique code for identifier currency. String 36 characters . |
code | Currency code. String 3 characters . |
name | Currency name. String maximum 50 characters . |
symbol | Currency symbol. String maximum 10 characters . |
unit | Currency unit. String maximum 20 characters . |
fractional | Currency fractional. String maximum 20 characters . |
cash_account | Default account for cash transaction. See Account. |
bank_account | Default account for bank payment. See Account. |
receivable_account | Default account for accounts receivable. See Account. |
payable_account | Default account for accounts payable. See Account. |
is_base | Boolean true to base currency. |
created_at | Created time. Date Time format YYYY-MM-DDThh:mm:ss.fffZ . |
updated_at | Last updated time. Date Time format YYYY-MM-DDThh:mm:ss.fffZ . Automaticaly updated. |