Transaction Sources
Link Unit Account
Link a ledger to a Unit account.
POST
/
v0
/
sources
/
unit
Authorization
Header
Body
curl --request POST \
--url https://api.sandbox.teal.dev/v0/sources/unit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'teal-instance-id: <teal-instance-id>' \
--data '{
"ledger_id": "<string>",
"unit_account_id": "<string>"
}'
{
"created_datetime": "2022-01-01T00:00:00Z",
"error": {},
"id": "UjL3BQnEaJtecuC7CUeDk",
"ledger_id": "9jXyj7EpZNizehSd9wJN3G",
"status": "pending",
"updated_datetime": "2022-01-01T00:00:00Z"
}
Authorizations
Authorization
string
headerrequiredThe access token received from the authorization server in the OAuth 2.0 flow.
Headers
teal-instance-id
string
requiredThe Teal instance ID
Body
application/json
ledger_id
string
requiredThe ledger ID
unit_account_id
string
requiredThe unit account ID
Response
202 - application/json
created_datetime
string
requiredThe date the transaction processing task object was created.
error
object | null
requiredAny error that was encountered while processing transactions.
id
string
requiredledger_id
string | null
requiredThe ledger ID.
status
enum<string>
requiredAvailable options:
pending
, failed
, complete
updated_datetime
string | null
requiredThe date the transaction processing task task was last updated.
curl --request POST \
--url https://api.sandbox.teal.dev/v0/sources/unit \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'teal-instance-id: <teal-instance-id>' \
--data '{
"ledger_id": "<string>",
"unit_account_id": "<string>"
}'
{
"created_datetime": "2022-01-01T00:00:00Z",
"error": {},
"id": "UjL3BQnEaJtecuC7CUeDk",
"ledger_id": "9jXyj7EpZNizehSd9wJN3G",
"status": "pending",
"updated_datetime": "2022-01-01T00:00:00Z"
}