# Transaction Model

### Transaction Model

This model is referenced in the response of [Create a transaction](/sensepay/transaction-api/payment-flows/create-a-transaction.md#creating-new-transaction)

<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="/pages/msIKzcRIXZuPsh0wetqD#creating-new-transaction">/pages/msIKzcRIXZuPsh0wetqD#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="/pages/msIKzcRIXZuPsh0wetqD#creating-new-transaction">/pages/msIKzcRIXZuPsh0wetqD#creating-new-transaction</a></td></tr><tr><td>paymentCommit</td><td>object</td><td>See payment commit object entity: <a data-mention href="/pages/BXFfrn4MerRUopYapdNT#payment-commit-entity">/pages/BXFfrn4MerRUopYapdNT#payment-commit-entity</a></td></tr><tr><td>products</td><td>object</td><td>See product object entity: <a data-mention href="/pages/RXt5EFpXbQJY305RhjWI#product-entity">/pages/RXt5EFpXbQJY305RhjWI#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="/pages/G06spptsGptC6bkIq7OG#confirmation-model">/pages/G06spptsGptC6bkIq7OG#confirmation-model</a></td></tr><tr><td>transactionPage</td><td>object</td><td>See transaction page entity: <a data-mention href="/pages/ytiNLfzB5IHdYn7rN0LU#transaction-page-model">/pages/ytiNLfzB5IHdYn7rN0LU#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="/pages/cuYzkB7mxb2EogELT9D1">/pages/cuYzkB7mxb2EogELT9D1</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="/pages/oYHABSVKAqHXXgy5c8Vg">/pages/oYHABSVKAqHXXgy5c8Vg</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="/pages/ypmYaLXkdLSRdNR2wkWZ">/pages/ypmYaLXkdLSRdNR2wkWZ</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="/pages/mzSbbkgXJE8a3L81s4EP">/pages/mzSbbkgXJE8a3L81s4EP</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sensepass.com/sensepay/transaction-api/models/transaction-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
