Legal entities
The store legal entities: tax ID and tax status, issuers of fiscal documents. Fiscal documents and tax periods refer to them.
Legal entities
Objects
LegalEntity
idintegerrequiredID of the record, unique among records of its kind in the store.
namestringrequiredName of the legal entity as registered with the tax authority.
tax_idstring or nullrequiredTax ID in the store country (CUIT in Argentina, 11 digits); null if not set.
tax_statusstring or nullrequiredTax status: registered — VAT payer (Responsable Inscripto in Argentina); small_taxpayer — simplified regime (Monotributo); exempt — VAT exempt. null if not set.
- Values:
registeredsmall_taxpayerexemptnull
is_defaultbooleanrequiredThe default legal entity: it gets the sales not routed to other legal entities and the documents without an issuer.
is_activebooleanrequiredfalse — the legal entity is switched off: it gets no new sales; its documents and periods stay.
issues_fiscal_documentsbooleanrequiredWhether the legal entity issues fiscal documents; false — its sales go without a document.
arobject or nullrequiredArgentina specifics; null for a store in another country.
Fields · 3
tax_conditionstring or nullrequiredCondición frente al IVA: responsable_inscripto, monotributo or exento; null if not set.
- Values:
responsable_inscriptomonotributoexentonull
regime_categorystring or nullrequiredMonotributo category (A…K); null if not set.
regime_activity_kindstring or nullrequiredActivity of the monotributo taxpayer, which sets the fee: services or goods; null if not set.
- Values:
servicesgoodsnull
created_atstring (date-time)requiredWhen the record was created.
updated_atstring (date-time)requiredWhen the record last changed.
Endpoints
List the store legal entities: issuers of fiscal documents and owners of tax periods
get/legal-entities
Scope: fiscal:read
Parameters
Query
limitintegerPage size: up to 250 records; 50 by default.
- Minimum:
- 1
- Maximum:
- 250
cursorstringOpaque cursor: next_cursor of the previous page, or sync_cursor of the last page saved by the previous sync. The list goes in commit order, so the sync cursor later returns only what changed after it.
- Max length:
- 4096
updated_sincestring (date-time)Only records changed after this moment, ISO 8601 with a time zone. A filter for the first sync; continue with the cursor.
- Pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?(Z|[+-]\d{2}:\d{2})$
include_deletedbooleantrue — also return deleted records: archived ones with deleted_at set, and records erased from the database as tombstones {id, deleted_at} in the continuation by the sync cursor. Turn it on for a sync.
Responses
200Success
application/json
Records of the page.
deletedarray of objectrequiredRecords erased from the database since the cursor, as tombstones: only with include_deleted=true in the continuation by the sync cursor.
Fields · 2
idintegerrequiredID of the erased record.
deleted_atstring (date-time)requiredWhen the record was erased.
next_cursorstring or nullrequiredCursor of the next page; null on the last page.
has_morebooleanrequiredtrue when there is a next page.
sync_cursorstring or nullrequiredOn the last page — the cursor to continue from later: it returns only what changed after this page. null on other pages.
401The token is missing, invalid, expired or revoked
Headers
WWW-AuthenticatestringrequiredAuthentication scheme (RFC 6750).
- Example:
Bearer
application/problem+json
Returns Problem
403The plan, the IP address or the token scopes do not allow the request
Headers
WWW-AuthenticatestringAuthentication scheme (RFC 6750).
- Example:
Bearer error="insufficient_scope", scope="locations:read"
application/problem+json
Returns ForbiddenProblem
410The sync cursor is older than the deletion retention period or was issued before the database was restored
application/problem+json
Returns Problem
422A parameter is invalid or unknown
application/problem+json
Returns ValidationProblem
429The rate limit is exhausted
Headers
Retry-AfterintegerrequiredSeconds to wait before retrying.
- Minimum:
- 0
application/problem+json
Returns RateLimitProblem
503The store is temporarily unavailable
Headers
Retry-AfterintegerSeconds to wait before retrying.
- Minimum:
- 0
application/problem+json
Returns Problem
Errors of this endpoint
Common errors such as token, access, input validation and rate limit can come from any endpoint; they are listed in the catalog: Errors
curl "https://api.saleya.app/v1/legal-entities" \
-H "Authorization: Bearer $SALEYA_API_TOKEN"{
"data": [
{
"id": 0,
"name": "string",
"tax_id": "string",
"tax_status": "registered",
"is_default": true,
"is_active": true,
"issues_fiscal_documents": true,
"ar": {
"tax_condition": "responsable_inscripto",
"regime_category": "string",
"regime_activity_kind": "services"
},
"created_at": "2026-01-15T12:00:00Z",
"updated_at": "2026-01-15T12:00:00Z"
}
],
"deleted": [
{
"id": 0,
"deleted_at": "2026-01-15T12:00:00Z"
}
],
"next_cursor": "string",
"has_more": true,
"sync_cursor": "string"
}