cURL
curl --request POST \ --url https://api.sandbox.teal.dev/v0/sources/unit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'teal-instance-id: <teal-instance-id>' \ --data '{ "ledger_id": "<string>", "unit_account_id": "<string>" }'
{ "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>" ] }
Link a ledger to a Unit account.
The access token received from the authorization server in the OAuth 2.0 flow.
The Teal instance ID
Successful Response
The response is of type object.
object