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
headerrequired

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

Headers

teal-instance-id
string
required

The Teal instance ID

Body

application/json
ledger_id
string
required

The ledger ID

unit_account_id
string
required

The unit account ID

Response

202 - application/json
created_datetime
string
required

The date the transaction processing task object was created.

error
object | null
required

Any error that was encountered while processing transactions.

id
string
required
ledger_id
string | null
required

The ledger ID.

status
enum<string>
required
Available options:
pending,
failed,
complete
updated_datetime
string | null
required

The date the transaction processing task task was last updated.