Add an Entity
Add an entity to your organization.
If datasources contains one or more datasources, Syntage creates first-time extractions for the selected datasources. When a selected datasource has first-time scheduler rules, those rules determine which extractors and options are used. For selected datasources not covered by first-time scheduler rules, Syntage creates first-time extractions for the datasource’s available extractors using the options from the request, or the extractor defaults.
Omit datasources or send an empty array to create the entity without starting extractions.
name is optional when you provide a valid RFC. If omitted or null, Syntage resolves the entity’s legal name from taxpayer data during creation and stores that name on the entity. If no name is available for the RFC, the request fails with a validation error on name using the code rfc_valid_no_name_on_file; retry with an explicit name to create the entity.
Authorizations
Your API key is available in the Production and Sandbox dashboards.
Body
Entity type, either company or person
company, person "company"
Entity name. Optional when rfc is provided; when omitted or null, Syntage resolves the legal name from taxpayer data during entity creation.
"Syntage"
Entity RFC if known; if it is not input here, extractions that require the RFC wait until the entity provides the RFC
"XAXX010101000"
Datasources to extract for the new entity
null
Optional country-specific identifiers to add to the entity
Optional entity metadata. In sandbox, use sandbox.taxRegime to shape the simulated fiscal profile; omit it to select a stable profile automatically. Production accepts and persists this metadata but does not interpret it because sandbox extractors are unavailable there.
Response
Add entity resource response
"5c7c3ac7-5c49-49f4-be0a-7824bfcf3060"
"Syntage"
"XAXX010101000"
Onboarding URL returned when Syntage still needs input from the entity to complete setup, such as a missing rfc or a required credential. If the request already provides everything Syntage needs to resolve the entity (for example, a valid rfc), this field is omitted or empty because no onboarding step is required.
"https://onboarding.syntage.com/onboarding/018f3f8f-4538-7bbb-b432-9e97e34a564a"