Financial statements
Create a new financial statement
Creates a new financial statement. Provided financial mutations will be grouped in the statement.
Parameters
Parameter | Type | Description |
---|---|---|
financial_statement[financial_account_id] |
Integer |
Should be a valid financial account id. |
financial_statement[reference] |
String |
Required |
financial_statement[official_date] |
Date |
|
financial_statement[official_balance] |
Decimal |
Both a decimal and a string ‘10,95’ are accepted. Should be a number -1,000,000,000 <= n <= 1,000,000,000. |
financial_statement[importer_key] |
String |
|
financial_statement[financial_mutations_attributes][date] |
Date |
|
financial_statement[financial_mutations_attributes][valutation_date] |
Date |
|
financial_statement[financial_mutations_attributes][message] |
String |
|
financial_statement[financial_mutations_attributes][amount] |
Decimal |
Both a decimal and a string ‘10,95’ are accepted. |
financial_statement[financial_mutations_attributes][code] |
String |
|
financial_statement[financial_mutations_attributes][contra_account_name] |
String |
|
financial_statement[financial_mutations_attributes][contra_account_number] |
String |
|
financial_statement[financial_mutations_attributes][batch_reference] |
String |
|
financial_statement[financial_mutations_attributes][offset] |
Integer |
|
financial_statement[financial_mutations_attributes][account_servicer_transaction_id] |
String |
|
financial_statement[financial_mutations_attributes][account_servicer_metadata] |
Duck |
|
financial_statement[financial_mutations_attributes][adyen_payment_instrument_id] |
Integer |
Should be a valid adyen payment instrument id. |
financial_statement[financial_mutations_attributes][_destroy] |
Boolean |
|
financial_statement[financial_mutations_attributes][smart_transfer] |
Boolean |
Example: creates a financial statement
Request
Response
Delete a financial statement
Example: deletes a financial statement
Request
Response
Example: returns a 404 status when the financial statement is not found
Request
Response
Update a financial statement
When updating a financial statement, you only need to provide the information you want to change. Attributes you don’t provide in the request will not be updated.
Parameters
Parameter | Type | Description |
---|---|---|
financial_statement[reference] |
String |
|
financial_statement[official_date] |
String |
|
financial_statement[official_balance] |
Decimal |
Both a decimal and a string ‘10,95’ are accepted. Should be a number -1,000,000,000 <= n <= 1,000,000,000. |
financial_statement[financial_mutations_attributes][id] |
Integer |
|
financial_statement[financial_mutations_attributes][date] |
Date |
|
financial_statement[financial_mutations_attributes][message] |
String |
|
financial_statement[financial_mutations_attributes][amount] |
Decimal |
Both a decimal and a string ‘10,95’ are accepted. |
financial_statement[financial_mutations_attributes][code] |
String |
|
financial_statement[financial_mutations_attributes][contra_account_name] |
String |
|
financial_statement[financial_mutations_attributes][contra_account_number] |
String |
|
financial_statement[financial_mutations_attributes][batch_reference] |
String |
|
financial_statement[financial_mutations_attributes][offset] |
Integer |
|
financial_statement[financial_mutations_attributes][account_servicer_transaction_id] |
String |
|
financial_statement[financial_mutations_attributes][adyen_payment_instrument_id] |
Integer |
Should be a valid adyen payment instrument id. |
financial_statement[financial_mutations_attributes][_destroy] |
Boolean |