# CreateMutation
## Properties
| Name | Type | Description | Notes |
| --------------------------- | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| **r#type** | [**models::MutationType**](MutationType.md) | |
| **date** | [**String**](string.md) | The date of the mutation.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#MUT_003\">MUT_003</a></td><td>Date is missing.</td></table></div> |
| **ledger_id** | **i32** | The ledger ID of the mutation.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#MUTA_001\">MUTA_001</a></td><td>Ledger id is missing.</td><tr><td><a href=\"#MUT_007\">MUT_007</a></td><td>Unknown ledger for mutation.</td></table></div> |
| **invoice_number** | Option<**String**> | The invoice number of the mutation.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#MUT_018\">MUT_018</a></td><td>Invoice number is too long.</td><tr><td><a href=\"#MUT_019\">MUT_019</a></td><td>Invoice number already exists.</td><tr><td><a href=\"#MUT_002\">MUT_002</a></td><td>Invoice number is missing.</td></table></div> | [optional] |
| **entry_number** | Option<**String**> | The entry of the mutation. | [optional] |
| **term_of_payment** | Option<**i32**> | The term of payment from `date`, in days.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#MUT_016\">MUT_016</a></td><td>Term of payment is prohibited.</td></table></div> | [optional] |
| **check_payment_reference** | Option<**bool**> | If true, the provided `paymentReference` will be validated for uniqueness. | [optional] |
| **payment_reference** | Option<**String**> | The payment reference of the mutation. | [optional] |
| **in_ex_vat** | Option<**String**> | Indicates if the amount on mutation rows is including (`IN`) or excluding (`EX`) VAT. The corresponding value will be calculated based on the VAT code.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#MUT_017\">MUT_017</a></td><td>In/Ex VAT must be 'IN' or 'EX'.</td><tr><td><a href=\"#MUTA_005\">MUTA_005</a></td><td>In/Ex VAT is missing.</td></table></div> | [optional] |
| **description** | Option<**String**> | The description of the mutation. | [optional] |
| **relation_id** | Option<**i32**> | The relation id of the mutation.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#MUT_012\">MUT_012</a></td><td>Relation is missing.</td><tr><td><a href=\"#MUT_013\">MUT_013</a></td><td>Relation not found.</td></table></div> | [optional] |
| **rows** | Option<[**Vec<models::CreateMutationRow>**](CreateMutationRow.md)> | The rows of the mutation.<br><div><h3>Error codes</h3><table><tr><td><a href=\"#MUT_100\">MUT_100</a></td><td>Rows are missing.</td><tr><td><a href=\"#MUT_101\">MUT_101</a></td><td>Too many rows.</td></table></div> | [optional] |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)