# Transaction Model

### Transaction Model

This model is referenced in the response of [#creating-new-transaction](https://docs.sensepass.com/sensepay/payment-flows/create-a-transaction#creating-new-transaction "mention")

<table><thead><tr><th width="215">field</th><th width="150">type</th><th width="515.2">description</th></tr></thead><tbody><tr><td>TransactionNumber</td><td>string</td><td><p>example: 14a4334a32c852aeb0cfae52cbff1314649da7f175a8e140b35c147c</p><p>The transaction number of the new transaction created</p></td></tr><tr><td>date</td><td>date</td><td><p>example: 2019-12-19T09:47:59.105Z</p><p>Creation date of this transaction entity</p></td></tr><tr><td>amount</td><td>string</td><td><p>example: "1234.56"</p><p>Amount of this this transaction entity</p></td></tr><tr><td>currency</td><td>string</td><td>[ USD, CAD, ILS, EUR, RUB ]</td></tr><tr><td>status</td><td>number</td><td><p>Current transaction Status of this transaction:<br>* <code>Initialize (0)</code> - New Transaction <br>* <code>TapDetected (1)</code> - At least one user tapped his mobile device <br>* <code>UserApproved (2)</code> - A user approved the payment details for this transaction, the transaction not approved yet<br>* <code>UserDeclined (3)</code> - A user declined the payment details for this transaction, it's not a final status, waiting for other users to approve <br>* <code>ProccessingPayment (4)</code> - SensePass GW proccessing the payment using the providers and waiting for approval <br>* <code>TransactionApproved (5)</code> - SensePass GW approved this transaction, confirmation Data will be sent using Web Socket messaging service <br>* <code>TransactionDeclined (6)</code> - SensePass GW decline this transaction according to provider decision<br>* <code>TransactionFailed (7)</code> - Transaction Failed <br>* <code>TransactionTimeout (8)</code> - Transaction Timeout <br>* <code>TransactionCancel (9)</code> - Transaction Cancel <br>* <code>WaitingForTap (10)</code> - Waiting For Tap <br>* <code>TransactionRefund (11)</code> - Transaction Refund <br>* <code>TransactionProcessingRefund (12)</code> - Transaction Processing Refund <br>* <code>TransactionPartiallyRefunded (13)</code> - Transaction Partially Refunded</p><p>* <code>Transaction Setup (14)</code> - Transaction not ready for Payment (before update)</p><p>*<code>TransactionAuthorizeVoided (15)</code> - Authorize Transaction was voided<br>*<code>ProcessingAuthorizeVoided (16)</code> - Processing void for Authorize Transaction</p></td></tr><tr><td>statusName</td><td>string</td><td><p>example: Transaction Approved</p><p>Friendly Status Description</p></td></tr><tr><td>pos</td><td>string</td><td><p>example: POS 3, Branch Tel Aviv</p><p>The terminal name associated for this transaction</p></td></tr><tr><td>posReceiptsEndpoint</td><td>string</td><td><p>example: http://pay.sensepass-api.com/api/invoicesReceipts/receipt/save/hofai3478o8o78o4s849j3920ckj</p><p></p><p>The endpoint for the pos's receipts to be handled by the selected mode in the transaction's creation</p></td></tr><tr><td>posData</td><td>objects</td><td>Any data (object/array/string/number etc...) received in "posData" field in <a data-mention href="../../payment-flows/create-a-transaction#creating-new-transaction">#creating-new-transaction</a></td></tr><tr><td>businessName</td><td>string</td><td><p>example: Coffee Bar</p><p>The business name associated for this terminal</p></td></tr><tr><td>businessId</td><td>number</td><td><p>example: 144</p><p>The business ID associated to this terminal</p></td></tr><tr><td>timeoutDate</td><td>date</td><td>example: 2019-12-19T09:47:59.105Z<br>Timeout date for this transaction</td></tr><tr><td>SMS</td><td>string</td><td>SMS delivery status, see "clientPhoneNumber" field in <a data-mention href="../../payment-flows/create-a-transaction#creating-new-transaction">#creating-new-transaction</a></td></tr><tr><td>paymentCommit</td><td>object</td><td>See payment commit object entity: <a data-mention href="../payment-commit-model#payment-commit-entity">#payment-commit-entity</a></td></tr><tr><td>products</td><td>object</td><td>See product object entity: <a data-mention href="../product-model#product-entity">#product-entity</a></td></tr><tr><td>productSumMismatch</td><td>boolean</td><td>Informs if the sum of all products are not equal to the transaction's amount</td></tr><tr><td>confirmations</td><td>object</td><td>See confirmation object entity: <a data-mention href="../confirmation-model#confirmation-model">#confirmation-model</a></td></tr><tr><td>transactionPage</td><td>object</td><td>See transaction page entity: <a data-mention href="../transaction-page-model#transaction-page-model">#transaction-page-model</a></td></tr><tr><td>confirmation</td><td>Deprecated</td><td>Deprecated field</td></tr><tr><td>paymentMethodData</td><td>Deprecated</td><td>Deprecated field</td></tr><tr><td>subscription</td><td>object</td><td>see subscription object entity: <a data-mention href="subscription-model">subscription-model</a></td></tr><tr><td>parentTransaction</td><td>object</td><td>parent transaction with method type: Subscription/Authorization/Tokenization.<br><a data-mention href="#transaction-model">#transaction-model</a></td></tr><tr><td>additionalData</td><td>object</td><td>Any additional data that may be sent to the processor <a data-mention href="additional-data-model">additional-data-model</a></td></tr><tr><td>level</td><td>object</td><td>Level related data that will be sent to the processor <a data-mention href="payment-method-level-model">payment-method-level-model</a></td></tr><tr><td>processorData</td><td>object</td><td>Any additional data that may be sent to the processor <a data-mention href="processor-data-model">processor-data-model</a></td></tr></tbody></table>
