cURL
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>" } ] } ] } }
Create a new transaction
Cookie-based authentication using userId and authToken cookies
MongoDB ObjectId
Transaction created
Show child attributes