TaxCompass Setup With Us API
The setup-with-us API from TaxCompass — 2 operation(s) for setup-with-us.
The setup-with-us API from TaxCompass — 2 operation(s) for setup-with-us.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/taxcompass-it:taxcompass-it-setup-with-us-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TaxCompass Setup With Us API
version: 0.1.0
tags:
- name: setup-with-us
paths:
/api/setup-with-us/validate-document:
post:
tags:
- setup-with-us
summary: Validate Document Endpoint
operationId: validate_document_endpoint_api_setup_with_us_validate_document_post
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_validate_document_endpoint_api_setup_with_us_validate_document_post'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/DocumentValidationResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/setup-with-us/submit:
post:
tags:
- setup-with-us
summary: Submit Endpoint
operationId: submit_endpoint_api_setup_with_us_submit_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SetupSubmitRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
additionalProperties:
type: boolean
type: object
title: Response Submit Endpoint Api Setup With Us Submit Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
DocumentValidationResponse:
properties:
verdict:
$ref: '#/components/schemas/DocumentVerdict'
doc_type:
type: string
enum:
- passport
- permesso_di_soggiorno
- codice_fiscale
- tessera_sanitaria
- proof_of_address
- other
title: Doc Type
token:
type: string
title: Token
type: object
required:
- verdict
- doc_type
- token
title: DocumentValidationResponse
description: '``POST /validate-document`` payload — the verdict, its slot, and its proof.
``token`` is the HMAC that ties this verdict to this document and this moment
(see :mod:`app.services.verdict_tokens`). The client must hand it back in
:class:`SetupSubmitRequest.document_tokens` under the same key it files the
verdict under; ``/submit`` refuses a verdict that arrives without it.'
Body_validate_document_endpoint_api_setup_with_us_validate_document_post:
properties:
file:
type: string
contentMediaType: application/octet-stream
title: File
doc_type:
type: string
title: Doc Type
context:
type: string
title: Context
default: '{}'
type: object
required:
- file
- doc_type
title: Body_validate_document_endpoint_api_setup_with_us_validate_document_post
DocumentVerdict:
properties:
doc_type_matches:
type: boolean
title: Doc Type Matches
default: false
detected_doc_type:
anyOf:
- type: string
enum:
- passport
- permesso_di_soggiorno
- codice_fiscale
- tessera_sanitaria
- proof_of_address
- other
- type: 'null'
title: Detected Doc Type
legible:
type: boolean
title: Legible
default: false
expired:
anyOf:
- type: boolean
- type: 'null'
title: Expired
expiry_date:
anyOf:
- type: string
- type: 'null'
title: Expiry Date
sufficient:
type: boolean
title: Sufficient
default: false
extracted_fields:
additionalProperties:
type: string
type: object
title: Extracted Fields
mismatches:
items:
type: string
type: array
title: Mismatches
issues:
items:
type: string
type: array
title: Issues
confidence:
type: number
maximum: 1.0
minimum: 0.0
title: Confidence
default: 0.0
type: object
title: DocumentVerdict
description: 'The AI''s read of one uploaded document — the only thing we keep.
``sufficient`` is the gate the UI loop keys on: a document is sufficient only
when it''s the right type, legible, not expired, and carries the fields that
step needs. When it isn''t, ``issues`` says what to fix and ``mismatches`` says
where the document disagrees with what the user typed.'
SetupSubmitRequest:
properties:
intake:
$ref: '#/components/schemas/SetupIntake'
document_verdicts:
additionalProperties:
$ref: '#/components/schemas/DocumentVerdict'
type: object
title: Document Verdicts
document_tokens:
additionalProperties:
type: string
type: object
title: Document Tokens
source:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Source
default: plan
type: object
required:
- intake
title: SetupSubmitRequest
description: '``POST /submit`` body — the intake plus the verdicts already gathered.
Verdicts come from prior ``/validate-document`` calls; the server does NOT
re-validate on submit (the files are gone — that''s the validate-don''t-retain
consequence). What it *does* do is check that each verdict is one it issued:
``document_tokens`` carries, under the same key, the signed token that came
back with the verdict, and a verdict without a valid one is refused (#598).'
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SetupIntake:
properties:
locale:
type: string
enum:
- en
- pl
- it
- de
- fr
- es
title: Locale
default: en
email:
type: string
maxLength: 320
title: Email
full_legal_name:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Full Legal Name
date_of_birth:
anyOf:
- type: string
maxLength: 32
- type: 'null'
title: Date Of Birth
place_of_birth:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Place Of Birth
nationality:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Nationality
codice_fiscale:
anyOf:
- type: string
maxLength: 32
- type: 'null'
title: Codice Fiscale
current_residency:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Current Residency
target_setup:
anyOf:
- type: string
enum:
- moving_to_italy
- staying_abroad
- already_in_italy
- type: 'null'
title: Target Setup
passport_country:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Passport Country
foreign_address:
anyOf:
- type: string
maxLength: 400
- type: 'null'
title: Foreign Address
italian_address:
anyOf:
- type: string
maxLength: 400
- type: 'null'
title: Italian Address
residence_permit_type:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Residence Permit Type
residence_permit_number:
anyOf:
- type: string
maxLength: 64
- type: 'null'
title: Residence Permit Number
residence_permit_expiry:
anyOf:
- type: string
maxLength: 32
- type: 'null'
title: Residence Permit Expiry
business_type:
anyOf:
- type: string
enum:
- professionista
- artigiano
- commerciante
- type: 'null'
title: Business Type
activity_description:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Activity Description
regulated_profession:
anyOf:
- type: boolean
- type: 'null'
title: Regulated Profession
professional_order:
anyOf:
- type: string
maxLength: 200
- type: 'null'
title: Professional Order
ateco_code:
anyOf:
- type: string
maxLength: 16
- type: 'null'
title: Ateco Code
expected_annual_revenue_eur:
anyOf:
- type: number
maximum: 100000000.0
minimum: 0.0
- type: 'null'
title: Expected Annual Revenue Eur
existing_business:
anyOf:
- type: string
maxLength: 2000
- type: 'null'
title: Existing Business
regime_intent:
anyOf:
- type: string
enum:
- forfettario
- ordinario
- let_expert_decide
- type: 'null'
title: Regime Intent
impatriate_eligibility:
anyOf:
- type: boolean
- type: 'null'
title: Impatriate Eligibility
iban_intent:
anyOf:
- type: string
enum:
- have_italian
- will_open
- use_foreign
- type: 'null'
title: Iban Intent
pec_intent:
anyOf:
- type: string
maxLength: 120
- type: 'null'
title: Pec Intent
spid_status:
anyOf:
- type: string
enum:
- have
- need_help
- not_sure
- type: 'null'
title: Spid Status
notes:
anyOf:
- type: string
maxLength: 4000
- type: 'null'
title: Notes
consent_accepted:
type: boolean
title: Consent Accepted
default: false
type: object
required:
- email
title: SetupIntake
description: 'Everything we''d need to actually register the business for someone.
Most fields are optional + length-capped: the intake is progressive and the
whole object is persisted verbatim into JSONB, so the caps are the only thing
standing between a tampered client and an unbounded row.'
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer