Where a record can be filed
/api/v1/workspaceDar kapsamlı anahtarla da çalışır: 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.
Yanıt · 200
accountobjectAlanları gösterAlanları gizle
idintegernamestringtime_zonestring
companiesobject[]Alanları gösterAlanları gizle
iduuidnamestringdefaultbooleanWhere a row that names no
company_idlands.tax_countrystringcurrencystringWhat a row with no
currencyof its own is priced in.
branchesobject[]Alanları gösterAlanları gizle
iduuidnamestringcodestringnull olabilircompany_iduuidheadquartersboolean
Yanıtlar
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
}
]
}