Skip to main content
POST
/
tpa
/
transaction
/
create
Create TPA Transaction
curl --request POST \
  --url https://api.stax.ai/tpa/transaction/create \
  --header 'Content-Type: application/json' \
  --cookie authToken= \
  --data '
{
  "statementId": "<string>",
  "date": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "amount": 123,
  "txType": "<string>",
  "txSubType": "<string>",
  "page": 123
}
'
{
  "success": true,
  "transaction": {
    "_id": "<string>",
    "team": "<string>",
    "plan": "<string>",
    "account": "<string>",
    "planId": "<string>",
    "accountNumber": "<string>",
    "statement": "<string>",
    "row": "<string>",
    "creator": "<string>",
    "planYear": 123,
    "page": 123,
    "date": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "amount": 123,
    "txType": "<string>",
    "txSubType": "<string>",
    "confidence": 123,
    "history": [
      {
        "user": "<string>",
        "timestamp": "2023-11-07T05:31:56Z",
        "changes": [
          {
            "field": "<string>",
            "from": "<string>",
            "to": "<string>"
          }
        ]
      }
    ]
  }
}

Authorizations

authToken
string
cookie
required

Cookie-based authentication using userId and authToken cookies

Body

application/json
statementId
string
required

MongoDB ObjectId

date
string<date-time>
description
string
amount
number
txType
string
txSubType
string
page
number

Response

200 - application/json

Transaction created

success
boolean
transaction
object