Retrieve a specific Auditable entity
Retrieve a specific Auditable entity
Bearer-AuthAuthorizationBearer <token>id*stringOK
application/json- response
Auditable entity represents a legal entity, which can be attached to an audit entry, so the user can provide detailed information.
id?stringA unique identifier for the audit entity record, represented as a universally unique identifier (UUID)
uuidlegal_name?stringThe legal name of the entity.
email?stringThe email address associated with the entity.
emailvat_id?stringThe VAT identification number of the entity.
external_id?stringAn external identifier for the entity, which can be used to link the entity to an external system or database.
address?Address of a legal entity. Some (legal) documets require a full address to be given, e.g. an invoice.
curl -X GET 'https://api.sandbox.squake.earth/v2/audits/entities/string'{ "id": "0194d6b4-8711-7873-899d-c8133cd742f8", "legal_name": "Test Company Inc.", "email": "test@squake.earth", "vat_id": "DE123456789", "external_id": "external-id", "address": { "city": "Berlin", "line_1": "Street 1", "line_2": "Building A", "email": "test@squake.earth", "country_alpha2": "DE", "name_line_1": "Test Company Inc.", "name_line_2": "c/o John Doe", "state": "BE", "zip_code": "12345" }}Create Child Client
Creates a new child client under the authenticated client (or under a visible descendant via `parent_id`). The child is created for travel-data ingestion only: it inherits address, tax, currency, and methodology defaults from its parent, but has no credentials, no billing or purchasing capability, and no product or project access. Submit travel data for the new client by passing its `id` as the `client_id` on `POST /v2/travel-data`. The child is usable on the very next request after creation. Send `methodology_configuration` to configure the child's methodologies in the same request instead of inheriting the parent's. Omit it and the child gets a copy of the parent's current options — a copy, not a link: later changes on the parent never propagate to the child. Options that cannot be read as a list at all are rejected with `invalid_methodology_options` (`400`); options that are readable but not allowed — an unknown `activity_type` or `methodology`, two defaults for one activity type, more than three per type — are rejected with `invalid_methodology_options` (`422`). In both cases no client is created. Requires this feature to be enabled for your account (contact us); otherwise this endpoint responds with `404`.
Retrieve the list of Auditable entities
Retrieve the list of Auditable entities, which can be used for auditing