POST
/
v0
/
source-accounts
/
{source_account_id}
/
transactions
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/source-accounts/{source_account_id}/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --data '[
  {
    "id": "t_9237232",
    "amount": 132629.38,
    "datetime": "2024-03-15T15:28:53Z",
    "description": "Payroll March 15 2024",
    "metadata": null,
    "tag_ids": null,
    "opposing_ledger_id": null
  }
]'
{
  "id": "UjL3BQnEaJtecuC7CUeDk",
  "status": "pending",
  "created_datetime": "2024-01-01T00:00:00Z",
  "updated_datetime": [
    "2024-01-01T00:00:00Z"
  ],
  "error": null,
  "source_account_id": "<string>",
  "ledger_id": "7JRNsKwy2Lw66caxVU7WGC",
  "created_transaction_ids": [
    "<string>"
  ],
  "removed_transaction_ids": [
    "<string>"
  ],
  "modified_transaction_ids": [
    "<string>"
  ],
  "skipped_transaction_ids": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The Teal instance ID

modified-by
string | null

An optional identifier for audit logging.

Path Parameters

source_account_id
string
required

The Source Account ID

Body

application/json · object[]

A list of Transactions to be created

Response

202
application/json

Successful Response

The response is of type object.