Where a record can be filed
/api/v1/workspaceReachable with a narrow key: import
The account's companies and branches, with their ids — the values
company_id and branch_id take on an import. The import endpoints have
always accepted both and nothing said what they could be, so the ids had
to be handed over out of band and re-sent whenever the agency opened a
branch.
account.time_zone is the clock a timestamp with no offset is read in.
Requires the import (or full) scope.
Every branch of the account is listed, whichever office the key's own owner
sits in. headquarters marks the branch a push with no branch_id is filed
under, and it is also the id to pass when you want a feed to answer with
every branch at once.
Response · 200
accountobjectShow fieldsHide fields
idintegernamestringtime_zonestring
companiesobject[]Show fieldsHide fields
iduuidnamestringdefaultbooleanWhere a row that names no
company_idlands.tax_countrystringcurrencystringWhat a row with no
currencyof its own is priced in.
branchesobject[]Show fieldsHide fields
iduuidnamestringcodestringnullablecompany_iduuidheadquartersboolean
Responses
401Missing or invalid Bearer token403The key lacks the required scope, or the plan doesn't include API access429Rate limit exceeded
curl -X GET 'https://YOUR-CELL.lydira.com/api/v1/workspace' \
-H 'Authorization: Bearer sek_YOUR_API_KEY'{
"account": {
"id": 1000001,
"name": "Ayşe Yılmaz",
"time_zone": "Europe/Istanbul"
},
"companies": [
{
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"default": true,
"tax_country": "TR",
"currency": "EUR"
}
],
"branches": [
{
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"code": "CUST-0042",
"company_id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"headquarters": true
}
]
}