# cofre_transactions

**Table name:** cofre\_transactions

**Description:** Table to store account transactions and savings

<table id="bkmrk-field-type-descripti"><tbody><tr><td style="width: 180px;">**Field**

</td><td style="width: 86px;">**Type**

</td><td style="width: 203px;">**Description**

</td><td style="width: 340px;">**API**

</td></tr><tr><td style="width: 180px;">**ID**

</td><td style="width: 86px;">Integer

</td><td style="width: 203px;">Sequential number of the registry in the table.

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**connectionsID**

</td><td style="width: 86px;">Integer

</td><td style="width: 203px;">The id of the related connection in table cofre\_connections.

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**accountsID**

</td><td style="width: 86px;">Integer

</td><td style="width: 203px;">The id of the related account in table cofre\_accounts.

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**saltedge\_transaction\_id**

</td><td style="width: 86px;">String

</td><td style="width: 203px;">The id of the transaction.

Field `id` returned by the API.

</td><td style="width: 340px;">https://www.saltedge.com/api/v5/transactions?connection\_id={connection.id}&amp;account\_id={account.id}

</td></tr><tr><td style="width: 180px;">**saltedge\_amount**

</td><td style="width: 86px;">Decimal

</td><td style="width: 203px;">The amount of the transaction.

Field `amount` returned by the API.

</td><td style="width: 340px;">https://www.saltedge.com/api/v5/transactions?connection\_id={connection.id}&amp;account\_id={account.id}

</td></tr><tr><td style="width: 180px;">**amount\_saved**

</td><td style="width: 86px;">Decimal

</td><td style="width: 203px;">The amount saved (AS):  
AS = saltedge\_amount \* percentage.

The percentage is defined by the Cofre’s user.

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**status**

</td><td style="width: 86px;">Integer

</td><td style="width: 203px;">Status of the transaction selected by the user to calculate a saving for the Cofre platform.

Transactions could be:

0 – Selected, but not processed

1 – Saved

2 – Processing

3 – Technical error. Must be analysed  
4 – Sent to payment gateway, but waiting response

5 – Not approved by payment gateway

6 – Retrieve asked by the user

7 – Retrieve processed

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**saltedge\_made\_on**

</td><td style="width: 86px;">Datetime

</td><td style="width: 203px;">The date when the transaction was made.

Field `made_on` returned by the API.

</td><td style="width: 340px;">https://www.saltedge.com/api/v5/transactions?connection\_id={connection.id}&amp;account\_id={account.id}

</td></tr><tr><td style="width: 180px;">**dt\_saving**

</td><td style="width: 86px;">Datetime</td><td style="width: 203px;">Date and time when the saving was responded by the payment gateway.

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**dt\_retrieve**

</td><td style="width: 86px;">Datetime</td><td style="width: 203px;">Date and time when the user asked a retrieving.

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**datainsert**

</td><td style="width: 86px;">Timestamp

</td><td style="width: 203px;">Date and time when the registry was inserted in the table.

</td><td style="width: 340px;"></td></tr><tr><td style="width: 180px;">**dataupdate**

</td><td style="width: 86px;">Timestamp

</td><td style="width: 203px;">Date and time of the last update of the registry in the table.

</td><td style="width: 340px;"></td></tr></tbody></table>