Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
The answer is the profile with errors (each refused field and why), deduced (what Melso filled in, such as the province from the postal code) and missing. An empty value does not empty a field: name it in clear.
Authorizations
companyApiKeypartnerApiKey
Authorization
string
header
required
A company API key, mk_live_…, that the company's owner creates in the
Melso app under Settings, Connect your AI, API keys. It works in that
one company with the owner's authority. Test keys (mk_test_…) are not
issued. Keep the key on your servers. See
Authentication.
Path Parameters
company_id
string<uuid>
required
The company's ID. Every company-scoped call works in exactly this company.
Body
application/json
tax_id
string
The NIF: a DNI, NIE or CIF. Its control character is checked.
legal_name
string
The full name on the DNI or NIE, or the company's registered name.
trade_name
string
The name the business trades under
address
string
Fiscal address: street, number, floor.
postal_code
string
Five digits. Also sets the province and the tax territory.
city
string
Municipality.
province
string
Normally deduced from the postal code.
tax_territory
enum<string>
Normally deduced from the postal code. Send it only to correct that.
Available options:
comun,
alava,
bizkaia,
gipuzkoa,
navarra,
canarias,
ceuta,
melilla
activity_type
enum<string>
A self-employed person's main activity. A company's is always empresarial.
Available options:
profesional,
empresarial
activity_description
string
What the business does.
iae_code
string
The main IAE heading, such as 671.4 for a restaurant or 673.2 for a bar.
activities
object[]
The other activities beside the main one, one per other IAE heading in the census (modelo 036). Sending it replaces the list: send every other activity, each saved one with its id. Removing one that has invoices, income or expenses is refused; set its ended_on instead.
Show child attributes
client_types
enum<string>[]
Who the business invoices, every kind that applies. Sending it replaces the list. Without eu_business, eu_operator is saved as false.
Available options:
es_business,
es_individual,
eu_business,
non_eu_business
eu_operator
boolean
Registered as an intra-community operator (ROI).
vat_regime
enum<string>
Defaults to general, IGIC in the Canary Islands and IPSI in Ceuta and Melilla.
Available options:
general,
recargo_equivalencia,
simplificado,
reagp,
exento,
igic_general,
igic_simplificado,
igic_repep,
ipsi
vat_sii
boolean
Keeps its VAT books in the AEAT's SII, compulsory for large companies.
vat_redeme
boolean
In the monthly VAT refund register (REDEME), so it files VAT monthly.
is_large_company
boolean
Volume of operations over 6,010,121.04 euros last year: VAT and withholdings are filed monthly.
irpf_method
enum<string>
default:directa_simplificada
Self-employed only.
Available options:
directa_simplificada,
directa_normal,
modulos
irpf_retention_rate
number
Income tax withheld on a self-employed person's invoices, in percent. Defaults to 15 for a professional. Self-employed only.
Required range: 0 <= x <= 100
registration_status
enum<string>
Self-employed only: alta when already registered.
Available options:
alta,
pendiente
registered_on
string
When the self-employed person registered: YYYY-MM, or YYYY-MM-DD when the day is known.
invoice_series
string
Invoice series prefix.
next_invoice_number
integer
The number the next invoice takes, continuing the business's own numbering.
Required range: x >= 1
iban
string
The account invoices are collected in. Masked when read.
clear
string[]
Names of fields to empty.
Response
The saved profile.
fiscal_profile
object
required
Show child attributes
deduced
string[]
required
Fields Melso filled in, such as province from the postal code.
errors
object[]
required
Each refused field and why.
Show child attributes
missing
string[]
required
What Melso still needs before it can do the taxes, such as iae_code or certificate.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Melso","public":true,"description":"Melso is the online gestoría for self-employed people and companies in Spain: invoicing, books and taxes, with an AI agent and our professionals. Tu gestoría online.","colors":{"primary":"#F04E42","light":"#F48171","dark":"#C84037"},"logo":{"light":"https://mintcdn.com/melso/M0EJxJd5v0DQ3VCv/logo/light.svg?fit=max\u0026auto=format\u0026n=M0EJxJd5v0DQ3VCv\u0026q=85\u0026s=b734d43a59ba6bc24e866a6b71d37541","dark":"https://mintcdn.com/melso/M0EJxJd5v0DQ3VCv/logo/dark.svg?fit=max\u0026auto=format\u0026n=M0EJxJd5v0DQ3VCv\u0026q=85\u0026s=9dcda5c15c4d9423fc981e4f1cf9d980","href":"https://melso.ai/en"},"favicon":"https://mintcdn.com/melso/M0EJxJd5v0DQ3VCv/favicon.svg?fit=max\u0026auto=format\u0026n=M0EJxJd5v0DQ3VCv\u0026q=85\u0026s=5eda48321a2659d5e371a8c737a494cc","api":{"playground":{"display":"simple"},"examples":{"languages":["bash","python","javascript"]}},"background":{"color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"links":[{"href":"https://melso.ai/en","label":"Melso"}],"primary":{"type":"button","label":"Open Melso","href":"https://app.melso.ai"}},"footer":{"socials":{"website":"https://melso.ai/en"}},"search":{"prompt":"Search Melso docs..."},"seo":{"metatags":{"canonical":"https://docs.melso.ai","og:site_name":"Melso Docs","og:locale":"en_US","og:locale:alternate":"es_ES","theme-color":"#F04E42","og:image":"https://docs.melso.ai/images/og/home.png","og:image:width":"1200","og:image:height":"630","og:image:alt":"Melso documentation: learn the product, connect your AI assistant, or build on the API.","twitter:card":"summary_large_image","twitter:image":"https://docs.melso.ai/images/og/home.png"},"paths":[{"path":"es","metatags":{"og:locale":"es_ES","og:locale:alternate":"en_US"}}],"organization":{"name":"Melso","url":"https://melso.ai","logo":"https://docs.melso.ai/logo/light.svg","sameAs":["https://melso.ai","https://docs.melso.ai","https://app.melso.ai"]},"indexing":"navigable"},"fonts":{"family":"Geist"},"contextual":{"options":["copy","view","chatgpt","claude",{"title":"Connect your AI","description":"Connect your AI assistant to Melso.","icon":"plug","href":"/mcp/connect"}],"display":"header"},"markdown":{"instructions":"Melso MCP: https://mcp.melso.ai/mcp (OAuth; one company per connection). Documentation-search MCP: https://docs.melso.ai/mcp; it does not act on customer accounts. Melso API: https://api.melso.ai/v1, with a company API key or a partner key (early access); invoicing is live and the other operations are marked beta.\n\nUse the live tool list and respect company membership. Ask the person to approve the exact invoice or tax return version in the signed-in app. Melso's professionals prepare and file included returns after approval; an AI assistant does not file. A prepared file or an approval is not evidence of filing: only the AEAT's reference and receipt are. Keep credentials out of chat and logs."},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"es","href":"es/api-facturacion"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"melso","hasAudioNarration":false,"actualSubdomain":"melso","customDomains":["docs.melso.ai"],"gitSource":{"type":"github","owner":"melso-ai","repo":"melso-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6b0dce7be24586e701346c8d","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"en","tag":"API","count":90},{"language":"en","tag":"MCP","count":56},{"language":"en","tag":"Payroll","count":40},{"language":"en","tag":"Tools","count":39},{"language":"en","tag":"Partner API","count":26},{"language":"en","tag":"Guides","count":20},{"language":"en","tag":"Books","count":14},{"language":"en","tag":"Invoicing","count":12},{"language":"en","tag":"Get started","count":10},{"language":"en","tag":"Invoices","count":10},{"language":"es","tag":"Sociedades","count":6},{"language":"es","tag":"Melso para sociedades","count":6},{"language":"es","tag":"Despachos","count":5},{"language":"es","tag":"Melso para despachos","count":5},{"language":"es","tag":"API","count":1},{"language":"es","tag":"API de Melso","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#navbar img[src*=\"logo/\"],#sidebar img[src*=\"logo/\"]{height:26px!important;width:auto!important;min-width:88px;object-fit:contain}:root{--melso-coral: #F04E42;--melso-cream: #FDF8DF;--melso-maroon: #3B0D11}#navbar a[href=\"https://app.melso.ai\"]{background:transparent!important;border:0!important;box-shadow:none!important}#navbar a[href=\"https://app.melso.ai\"]>span.absolute{background:var(--melso-coral)!important}#navbar a[href=\"https://app.melso.ai\"],#navbar a[href=\"https://app.melso.ai\"] *{color:var(--melso-maroon)!important}#navbar a[href=\"https://app.melso.ai\"]:hover>span.absolute{background:#D9443A!important;opacity:1!important}@media (prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important}}"}]}
{"page":{"pagePath":"api/reference/fiscal-profile/update-fiscal-profile","slug":"/api/reference/fiscal-profile/update-fiscal-profile","pageMetadata":{"title":"Update the fiscal profile","sidebarTitle":"Update the fiscal profile","description":"Saves every valid field it receives and changes nothing else.","og:image":"https://docs.melso.ai/images/og/api-reference.png","og:image:alt":"Melso API reference: every operation with its request and its response.","twitter:image":"https://docs.melso.ai/images/og/api-reference.png","openapi":"api/openapi.yaml PATCH /companies/{company_id}/fiscal-profile","href":"/api/reference/fiscal-profile/update-fiscal-profile"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Saves every valid field it receives and changes nothing else.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Warning}=_components;if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Beta.`}),` Melso does not serve this operation yet, and its fields can still change. See `,_jsx(_components.a,{href:`/api/overview#what-is-live`,children:`what is live`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`The answer is the profile with `,_jsx(_components.code,{children:`errors`}),` (each refused field and why), `,_jsx(_components.code,{children:`deduced`}),` (what Melso filled in, such as the province from the postal code) and `,_jsx(_components.code,{children:`missing`}),`. An empty value does not empty a field: name it in `,_jsx(_components.code,{children:`clear`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update the fiscal profile","sidebarTitle":"Update the fiscal profile","description":"Saves every valid field it receives and changes nothing else.","og:image":"https://docs.melso.ai/images/og/api-reference.png","og:image:alt":"Melso API reference: every operation with its request and its response.","twitter:image":"https://docs.melso.ai/images/og/api-reference.png","openapi":"api/openapi.yaml PATCH /companies/{company_id}/fiscal-profile","href":"/api/reference/fiscal-profile/update-fiscal-profile"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"updateFiscalProfile","summary":"Update the fiscal profile","description":"Saves every valid field it receives and changes nothing else.","tags":["Fiscal profile"],"x-melso-availability":"beta","requestBody":"1a557b93-7e3b-46de-9677-a7940918ddf1","responses":{"200":"df27fcfd-8906-4dec-99f7-c8ea67ea65cb","400":"317d1df2-f242-42ef-b770-1581d7bbc7bb","401":"c441c64d-f632-4f29-9faf-a620063ce030","403":"b27cd882-d94d-48f3-a6da-17a832b94c0b","404":"9e16aea6-1bd6-40aa-89ad-4b0f99848cb7","409":"eb2c26bd-8fc3-4f74-b49d-316f071a4696","429":"3adfe3e8-78eb-4d0a-8dff-415fe097269a"},"method":"patch","type":"path","servers":["52365539-7a4c-477f-a967-b54f4915fef2"],"security":["2b8a62ae-6100-444c-a98c-02c394e75e46","abfe5dbb-b3e1-4e6e-9a1b-4be88521b0fc"],"path":"/companies/{company_id}/fiscal-profile","baseUrlOptions":["https://api.melso.ai/v1"],"title":"Update the fiscal profile","codeSamples":[],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"88aa43e9-101b-4728-9f94-bd61a2981065":{"name":"company_id","in":"path","required":true,"description":"The company's ID. Every company-scoped call works in exactly this company.","schema":{"type":"string","format":"uuid","isRequired":true,"description":"The company's ID. Every company-scoped call works in exactly this company.","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tax_id":{"type":"string","description":"The NIF: a DNI, NIE or CIF. Its control character is checked.","uniqueKey":"tax_id","typeLabel":"string"},"legal_name":{"type":"string","description":"The full name on the DNI or NIE, or the company's registered name.","uniqueKey":"legal_name","typeLabel":"string"},"trade_name":{"type":"string","description":"The name the business trades under","when different.":null,"uniqueKey":"trade_name","typeLabel":"string"},"address":{"type":"string","description":"Fiscal address: street, number, floor.","uniqueKey":"address","typeLabel":"string"},"postal_code":{"type":"string","description":"Five digits. Also sets the province and the tax territory.","uniqueKey":"postal_code","typeLabel":"string"},"city":{"type":"string","description":"Municipality.","uniqueKey":"city","typeLabel":"string"},"province":{"type":"string","description":"Normally deduced from the postal code.","uniqueKey":"province","typeLabel":"string"},"tax_territory":{"type":"string","enum":["comun","alava","bizkaia","gipuzkoa","navarra","canarias","ceuta","melilla"],"description":"Normally deduced from the postal code. Send it only to correct that.","uniqueKey":"tax_territory","typeLabel":"enum\u003cstring>"},"activity_type":{"type":"string","enum":["profesional","empresarial"],"description":"A self-employed person's main activity. A company's is always `empresarial`.","uniqueKey":"activity_type","typeLabel":"enum\u003cstring>"},"activity_description":{"type":"string","description":"What the business does.","uniqueKey":"activity_description","typeLabel":"string"},"iae_code":{"type":"string","description":"The main IAE heading, such as `671.4` for a restaurant or `673.2` for a bar.","uniqueKey":"iae_code","typeLabel":"string"},"activities":{"type":"array","items":{"type":"object","required":["iae_code"],"additionalProperties":false,"properties":{"iae_code":{"type":"string","description":"Its IAE heading, such as `659.9` or `843.1`.","isRequired":true,"uniqueKey":"activities.items.[INDEX].iae_code","typeLabel":"string"},"id":{"type":"string","description":"The saved activity's ID, from a read. Omit it to add an activity.","uniqueKey":"activities.items.[INDEX].id","typeLabel":"string"},"activity_type":{"type":"string","enum":["profesional","empresarial"],"description":"A company's activities are always `empresarial`.","uniqueKey":"activities.items.[INDEX].activity_type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"What the activity is.","uniqueKey":"activities.items.[INDEX].description","typeLabel":"string"},"vat_regime":{"oneOf":[{"type":"string","enum":["general","recargo_equivalencia","simplificado","reagp","exento","igic_general","igic_simplificado","igic_repep","ipsi","",null],"description":"Only when it differs from the main activity's, such as `recargo_equivalencia` for a shop. Empty follows the main one.","uniqueKey":"activities.items.[INDEX].vat_regime.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["general","recargo_equivalencia","simplificado","reagp","exento","igic_general","igic_simplificado","igic_repep","ipsi","",null],"description":"Only when it differs from the main activity's, such as `recargo_equivalencia` for a shop. Empty follows the main one.","uniqueKey":"activities.items.[INDEX].vat_regime.oneOf.1","typeLabel":"null"}],"uniqueKey":"activities.items.[INDEX].vat_regime","typeLabel":"enum\u003cstring> | null"},"started_on":{"type":"string","format":"date","description":"Its registration date","when known.":null,"uniqueKey":"activities.items.[INDEX].started_on","typeLabel":"string\u003cdate>"},"ended_on":{"oneOf":[{"type":"string","format":"date","description":"Its deregistration date, once it has ended.","uniqueKey":"activities.items.[INDEX].ended_on.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Its deregistration date, once it has ended.","uniqueKey":"activities.items.[INDEX].ended_on.oneOf.1","typeLabel":"null"}],"uniqueKey":"activities.items.[INDEX].ended_on","typeLabel":"string\u003cdate> | null"}},"uniqueKey":"activities.items.[INDEX]","typeLabel":"object"},"description":"The other activities beside the main one, one per other IAE heading in the census (modelo 036). Sending it replaces the list: send every other activity, each saved one with its `id`. Removing one that has invoices, income or expenses is refused; set its `ended_on` instead.","uniqueKey":"activities","typeLabel":"object[]"},"client_types":{"type":"array","items":{"type":"string","enum":["es_business","es_individual","eu_business","non_eu_business"],"uniqueKey":"client_types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Who the business invoices, every kind that applies. Sending it replaces the list. Without `eu_business`, `eu_operator` is saved as `false`.","uniqueKey":"client_types","typeLabel":"enum\u003cstring>[]"},"eu_operator":{"type":"boolean","description":"Registered as an intra-community operator (ROI).","uniqueKey":"eu_operator","typeLabel":"boolean"},"vat_regime":{"type":"string","enum":["general","recargo_equivalencia","simplificado","reagp","exento","igic_general","igic_simplificado","igic_repep","ipsi"],"description":"Defaults to `general`, IGIC in the Canary Islands and IPSI in Ceuta and Melilla.","uniqueKey":"vat_regime","typeLabel":"enum\u003cstring>"},"vat_sii":{"type":"boolean","description":"Keeps its VAT books in the AEAT's SII, compulsory for large companies.","uniqueKey":"vat_sii","typeLabel":"boolean"},"vat_redeme":{"type":"boolean","description":"In the monthly VAT refund register (REDEME), so it files VAT monthly.","uniqueKey":"vat_redeme","typeLabel":"boolean"},"is_large_company":{"type":"boolean","description":"Volume of operations over 6,010,121.04 euros last year: VAT and withholdings are filed monthly.","uniqueKey":"is_large_company","typeLabel":"boolean"},"irpf_method":{"type":"string","enum":["directa_simplificada","directa_normal","modulos"],"default":"directa_simplificada","description":"Self-employed only.","uniqueKey":"irpf_method","typeLabel":"enum\u003cstring>"},"irpf_retention_rate":{"type":"number","minimum":0,"maximum":100,"description":"Income tax withheld on a self-employed person's invoices, in percent. Defaults to 15 for a professional. Self-employed only.","uniqueKey":"irpf_retention_rate","typeLabel":"number"},"registration_status":{"type":"string","enum":["alta","pendiente"],"description":"Self-employed only: `alta` when already registered.","uniqueKey":"registration_status","typeLabel":"enum\u003cstring>"},"registered_on":{"type":"string","description":"When the self-employed person registered: `YYYY-MM`, or `YYYY-MM-DD` when the day is known.","uniqueKey":"registered_on","typeLabel":"string"},"invoice_series":{"type":"string","description":"Invoice series prefix.","uniqueKey":"invoice_series","typeLabel":"string"},"next_invoice_number":{"type":"integer","minimum":1,"description":"The number the next invoice takes, continuing the business's own numbering.","uniqueKey":"next_invoice_number","typeLabel":"integer"},"iban":{"type":"string","description":"The account invoices are collected in. Masked when read.","uniqueKey":"iban","typeLabel":"string"},"clear":{"type":"array","items":{"type":"string","uniqueKey":"clear.items.[INDEX]","typeLabel":"string"},"description":"Names of fields to empty.","uniqueKey":"clear","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"legal_name":"Brasa Norte S.L.","trade_name":"Brasa Norte","postal_code":8018,"activity_description":"Restaurante de cocina mediterránea","iae_code":"671.4","vat_regime":"general"},"examples":{"Example":{"title":"Example","value":{"legal_name":"Brasa Norte S.L.","trade_name":"Brasa Norte","postal_code":8018,"activity_description":"Restaurante de cocina mediterránea","iae_code":"671.4","vat_regime":"general"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"df27fcfd-8906-4dec-99f7-c8ea67ea65cb":{"description":"The saved profile.","content":{"application/json":{"schema":{"type":"object","required":["fiscal_profile","deduced","errors","missing"],"properties":{"fiscal_profile":{"type":"object","properties":{"tax_id":{"type":"string","description":"The NIF: a DNI, NIE or CIF. Its control character is checked.","uniqueKey":"fiscal_profile.tax_id","typeLabel":"string"},"legal_name":{"type":"string","description":"The full name on the DNI or NIE, or the company's registered name.","uniqueKey":"fiscal_profile.legal_name","typeLabel":"string"},"trade_name":{"type":"string","description":"The name the business trades under","when different.":null,"uniqueKey":"fiscal_profile.trade_name","typeLabel":"string"},"address":{"type":"string","description":"Fiscal address: street, number, floor.","uniqueKey":"fiscal_profile.address","typeLabel":"string"},"postal_code":{"type":"string","description":"Five digits. Also sets the province and the tax territory.","uniqueKey":"fiscal_profile.postal_code","typeLabel":"string"},"city":{"type":"string","description":"Municipality.","uniqueKey":"fiscal_profile.city","typeLabel":"string"},"province":{"type":"string","description":"Normally deduced from the postal code.","uniqueKey":"fiscal_profile.province","typeLabel":"string"},"tax_territory":{"type":"string","enum":["comun","alava","bizkaia","gipuzkoa","navarra","canarias","ceuta","melilla"],"description":"Normally deduced from the postal code. Send it only to correct that.","uniqueKey":"fiscal_profile.tax_territory","typeLabel":"enum\u003cstring>"},"activity_type":{"type":"string","enum":["profesional","empresarial"],"description":"A self-employed person's main activity. A company's is always `empresarial`.","uniqueKey":"fiscal_profile.activity_type","typeLabel":"enum\u003cstring>"},"activity_description":{"type":"string","description":"What the business does.","uniqueKey":"fiscal_profile.activity_description","typeLabel":"string"},"iae_code":{"type":"string","description":"The main IAE heading, such as `671.4` for a restaurant or `673.2` for a bar.","uniqueKey":"fiscal_profile.iae_code","typeLabel":"string"},"activities":{"type":"array","items":{"type":"object","required":["iae_code"],"additionalProperties":false,"properties":{"iae_code":{"type":"string","description":"Its IAE heading, such as `659.9` or `843.1`.","isRequired":true,"uniqueKey":"fiscal_profile.activities.items.[INDEX].iae_code","typeLabel":"string"},"id":{"type":"string","description":"The saved activity's ID, from a read. Omit it to add an activity.","uniqueKey":"fiscal_profile.activities.items.[INDEX].id","typeLabel":"string"},"activity_type":{"type":"string","enum":["profesional","empresarial"],"description":"A company's activities are always `empresarial`.","uniqueKey":"fiscal_profile.activities.items.[INDEX].activity_type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","description":"What the activity is.","uniqueKey":"fiscal_profile.activities.items.[INDEX].description","typeLabel":"string"},"vat_regime":{"oneOf":[{"type":"string","enum":["general","recargo_equivalencia","simplificado","reagp","exento","igic_general","igic_simplificado","igic_repep","ipsi","",null],"description":"Only when it differs from the main activity's, such as `recargo_equivalencia` for a shop. Empty follows the main one.","uniqueKey":"fiscal_profile.activities.items.[INDEX].vat_regime.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["general","recargo_equivalencia","simplificado","reagp","exento","igic_general","igic_simplificado","igic_repep","ipsi","",null],"description":"Only when it differs from the main activity's, such as `recargo_equivalencia` for a shop. Empty follows the main one.","uniqueKey":"fiscal_profile.activities.items.[INDEX].vat_regime.oneOf.1","typeLabel":"null"}],"uniqueKey":"fiscal_profile.activities.items.[INDEX].vat_regime","typeLabel":"enum\u003cstring> | null"},"started_on":{"type":"string","format":"date","description":"Its registration date","when known.":null,"uniqueKey":"fiscal_profile.activities.items.[INDEX].started_on","typeLabel":"string\u003cdate>"},"ended_on":{"oneOf":[{"type":"string","format":"date","description":"Its deregistration date, once it has ended.","uniqueKey":"fiscal_profile.activities.items.[INDEX].ended_on.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Its deregistration date, once it has ended.","uniqueKey":"fiscal_profile.activities.items.[INDEX].ended_on.oneOf.1","typeLabel":"null"}],"uniqueKey":"fiscal_profile.activities.items.[INDEX].ended_on","typeLabel":"string\u003cdate> | null"}},"uniqueKey":"fiscal_profile.activities.items.[INDEX]","typeLabel":"object"},"description":"The other activities beside the main one, one per other IAE heading in the census (modelo 036). Sending it replaces the list: send every other activity, each saved one with its `id`. Removing one that has invoices, income or expenses is refused; set its `ended_on` instead.","uniqueKey":"fiscal_profile.activities","typeLabel":"object[]"},"client_types":{"type":"array","items":{"type":"string","enum":["es_business","es_individual","eu_business","non_eu_business"],"uniqueKey":"fiscal_profile.client_types.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Who the business invoices, every kind that applies. Sending it replaces the list. Without `eu_business`, `eu_operator` is saved as `false`.","uniqueKey":"fiscal_profile.client_types","typeLabel":"enum\u003cstring>[]"},"eu_operator":{"type":"boolean","description":"Registered as an intra-community operator (ROI).","uniqueKey":"fiscal_profile.eu_operator","typeLabel":"boolean"},"vat_regime":{"type":"string","enum":["general","recargo_equivalencia","simplificado","reagp","exento","igic_general","igic_simplificado","igic_repep","ipsi"],"description":"Defaults to `general`, IGIC in the Canary Islands and IPSI in Ceuta and Melilla.","uniqueKey":"fiscal_profile.vat_regime","typeLabel":"enum\u003cstring>"},"vat_sii":{"type":"boolean","description":"Keeps its VAT books in the AEAT's SII, compulsory for large companies.","uniqueKey":"fiscal_profile.vat_sii","typeLabel":"boolean"},"vat_redeme":{"type":"boolean","description":"In the monthly VAT refund register (REDEME), so it files VAT monthly.","uniqueKey":"fiscal_profile.vat_redeme","typeLabel":"boolean"},"is_large_company":{"type":"boolean","description":"Volume of operations over 6,010,121.04 euros last year: VAT and withholdings are filed monthly.","uniqueKey":"fiscal_profile.is_large_company","typeLabel":"boolean"},"irpf_method":{"type":"string","enum":["directa_simplificada","directa_normal","modulos"],"default":"directa_simplificada","description":"Self-employed only.","uniqueKey":"fiscal_profile.irpf_method","typeLabel":"enum\u003cstring>"},"irpf_retention_rate":{"type":"number","minimum":0,"maximum":100,"description":"Income tax withheld on a self-employed person's invoices, in percent. Defaults to 15 for a professional. Self-employed only.","uniqueKey":"fiscal_profile.irpf_retention_rate","typeLabel":"number"},"registration_status":{"type":"string","enum":["alta","pendiente"],"description":"Self-employed only: `alta` when already registered.","uniqueKey":"fiscal_profile.registration_status","typeLabel":"enum\u003cstring>"},"registered_on":{"type":"string","description":"When the self-employed person registered: `YYYY-MM`, or `YYYY-MM-DD` when the day is known.","uniqueKey":"fiscal_profile.registered_on","typeLabel":"string"},"invoice_series":{"type":"string","description":"Invoice series prefix.","uniqueKey":"fiscal_profile.invoice_series","typeLabel":"string"},"next_invoice_number":{"type":"integer","minimum":1,"description":"The number the next invoice takes, continuing the business's own numbering.","uniqueKey":"fiscal_profile.next_invoice_number","typeLabel":"integer"},"iban":{"type":"string","description":"The account invoices are collected in. Masked when read.","uniqueKey":"fiscal_profile.iban","typeLabel":"string"}},"isRequired":true,"uniqueKey":"fiscal_profile","typeLabel":"object"},"deduced":{"type":"array","items":{"type":"string","uniqueKey":"deduced.items.[INDEX]","typeLabel":"string"},"description":"Fields Melso filled in, such as `province` from the postal code.","isRequired":true,"uniqueKey":"deduced","typeLabel":"string[]"},"errors":{"type":"array","items":{"type":"object","required":["field","error"],"properties":{"field":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"error":{"type":"string","isRequired":true,"uniqueKey":"errors.items.[INDEX].error","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"description":"Each refused field and why.","isRequired":true,"uniqueKey":"errors","typeLabel":"object[]"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"description":"What Melso still needs before it can do the taxes, such as `iae_code` or `certificate`.","isRequired":true,"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"fiscal_profile":{"tax_id":"\u003cstring>","legal_name":"\u003cstring>","trade_name":"\u003cstring>","address":"\u003cstring>","postal_code":"\u003cstring>","city":"\u003cstring>","province":"\u003cstring>","tax_territory":"comun","activity_type":"profesional","activity_description":"\u003cstring>","iae_code":"\u003cstring>","activities":[{"iae_code":"\u003cstring>","id":"\u003cstring>","activity_type":"profesional","description":"\u003cstring>","vat_regime":"general","started_on":"2023-12-25","ended_on":"2023-12-25"}],"client_types":["es_business"],"eu_operator":true,"vat_regime":"general","vat_sii":true,"vat_redeme":true,"is_large_company":true,"irpf_method":"directa_simplificada","irpf_retention_rate":50,"registration_status":"alta","registered_on":"\u003cstring>","invoice_series":"\u003cstring>","next_invoice_number":2,"iban":"\u003cstring>"},"deduced":["\u003cstring>"],"errors":[{"field":"\u003cstring>","error":"\u003cstring>"}],"missing":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"317d1df2-f242-42ef-b770-1581d7bbc7bb":{"description":"The request is malformed or a field is invalid. Unknown body fields and\nquery parameters are refused too, with `field` naming them where it can.\n","content":{"application/json":{"schema":{"type":"object","required":["error","code","request_id"],"properties":{"error":{"type":"string","description":"What went wrong, for a person to read.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"A stable code to branch on, such as `invoicing_not_ready` or `version_conflict`.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","description":"The same value as the `X-Request-Id` header. Quote it when you contact Melso.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"field":{"type":"string","description":"The field, query parameter or header at fault, when there is one.","uniqueKey":"field","typeLabel":"string"},"next_action":{"type":"string","description":"A stable hint of what to do next, such as `review_plan`, when the operation gives one.","uniqueKey":"next_action","typeLabel":"string"},"payment_url":{"type":"string","format":"uri","description":"Where the company's owner pays its plan, on `plan_required` when its plan is unpaid.","uniqueKey":"payment_url","typeLabel":"string\u003curi>"},"current_version":{"type":"string","description":"On `version_changed`, the object's current `version`.","uniqueKey":"current_version","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_invoice":{"title":"invalid_invoice","summary":"A field the invoice cannot take","value":{"error":"vat_rate must be 21, 10, 4 or 0 (exempt)","code":"invalid_invoice","next_action":"review_request","request_id":"req_8f14e45fceea167a5a36dedd"}},"unknown_field":{"title":"unknown_field","summary":"A field the operation does not take","value":{"error":"Unknown field iban","code":"invalid_arguments","field":"iban","request_id":"req_8f14e45fceea167a5a36dedd"}}},"exampleType":"examples"}},"exampleType":"examples"},"c441c64d-f632-4f29-9faf-a620063ce030":{"description":"The key is missing, revoked or invalid (`invalid_api_key`), or it is a\ntest key, which Melso does not issue (`test_keys_unavailable`).\n","headers":{"WWW-Authenticate":{"description":"`Bearer realm=\"api.melso.ai\"` on `invalid_api_key`.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","code","request_id"],"properties":{"error":{"type":"string","description":"What went wrong, for a person to read.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"A stable code to branch on, such as `invoicing_not_ready` or `version_conflict`.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","description":"The same value as the `X-Request-Id` header. Quote it when you contact Melso.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"field":{"type":"string","description":"The field, query parameter or header at fault, when there is one.","uniqueKey":"field","typeLabel":"string"},"next_action":{"type":"string","description":"A stable hint of what to do next, such as `review_plan`, when the operation gives one.","uniqueKey":"next_action","typeLabel":"string"},"payment_url":{"type":"string","format":"uri","description":"Where the company's owner pays its plan, on `plan_required` when its plan is unpaid.","uniqueKey":"payment_url","typeLabel":"string\u003curi>"},"current_version":{"type":"string","description":"On `version_changed`, the object's current `version`.","uniqueKey":"current_version","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"The API key is missing, revoked or invalid","code":"invalid_api_key","request_id":"req_8f14e45fceea167a5a36dedd"},"examples":{"Example":{"title":"Example","value":{"error":"The API key is missing, revoked or invalid","code":"invalid_api_key","request_id":"req_8f14e45fceea167a5a36dedd"}}},"exampleType":"examples"}},"exampleType":"examples"},"b27cd882-d94d-48f3-a6da-17a832b94c0b":{"description":"Refused in this company: the operation is not available in it, such as\ninvoices before its VERI*FACTU set-up (`tool_unavailable`); a\nself-employed person's setup in Melso is pending (`onboarding_required`); or the\nkey's creator lacks the role the operation needs, such as the owner's\nfor issuing (`forbidden`).\n","content":{"application/json":{"schema":{"type":"object","required":["error","code","request_id"],"properties":{"error":{"type":"string","description":"What went wrong, for a person to read.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"A stable code to branch on, such as `invoicing_not_ready` or `version_conflict`.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","description":"The same value as the `X-Request-Id` header. Quote it when you contact Melso.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"field":{"type":"string","description":"The field, query parameter or header at fault, when there is one.","uniqueKey":"field","typeLabel":"string"},"next_action":{"type":"string","description":"A stable hint of what to do next, such as `review_plan`, when the operation gives one.","uniqueKey":"next_action","typeLabel":"string"},"payment_url":{"type":"string","format":"uri","description":"Where the company's owner pays its plan, on `plan_required` when its plan is unpaid.","uniqueKey":"payment_url","typeLabel":"string\u003curi>"},"current_version":{"type":"string","description":"On `version_changed`, the object's current `version`.","uniqueKey":"current_version","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"invoices is not available in this company","code":"tool_unavailable","next_action":"check_company_and_access","request_id":"req_8f14e45fceea167a5a36dedd"},"examples":{"Example":{"title":"Example","value":{"error":"invoices is not available in this company","code":"tool_unavailable","next_action":"check_company_and_access","request_id":"req_8f14e45fceea167a5a36dedd"}}},"exampleType":"examples"}},"exampleType":"examples"},"9e16aea6-1bd6-40aa-89ad-4b0f99848cb7":{"description":"No such object in this company, or `company_id` is not the key's company.","content":{"application/json":{"schema":{"type":"object","required":["error","code","request_id"],"properties":{"error":{"type":"string","description":"What went wrong, for a person to read.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"A stable code to branch on, such as `invoicing_not_ready` or `version_conflict`.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","description":"The same value as the `X-Request-Id` header. Quote it when you contact Melso.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"field":{"type":"string","description":"The field, query parameter or header at fault, when there is one.","uniqueKey":"field","typeLabel":"string"},"next_action":{"type":"string","description":"A stable hint of what to do next, such as `review_plan`, when the operation gives one.","uniqueKey":"next_action","typeLabel":"string"},"payment_url":{"type":"string","format":"uri","description":"Where the company's owner pays its plan, on `plan_required` when its plan is unpaid.","uniqueKey":"payment_url","typeLabel":"string\u003curi>"},"current_version":{"type":"string","description":"On `version_changed`, the object's current `version`.","uniqueKey":"current_version","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"invoice not found","code":"not_found","next_action":"refresh_record","request_id":"req_8f14e45fceea167a5a36dedd"},"examples":{"Example":{"title":"Example","value":{"error":"invoice not found","code":"not_found","next_action":"refresh_record","request_id":"req_8f14e45fceea167a5a36dedd"}}},"exampleType":"examples"}},"exampleType":"examples"},"eb2c26bd-8fc3-4f74-b49d-316f071a4696":{"description":"The object changed or is not in a state that allows this: read it again\nand decide. Also the first request with this `Idempotency-Key` still\nrunning (`idempotency_key_in_use`, with `Retry-After: 1`).\n","headers":{"Retry-After":{"description":"Seconds to wait, on `idempotency_key_in_use`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","code","request_id"],"properties":{"error":{"type":"string","description":"What went wrong, for a person to read.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"A stable code to branch on, such as `invoicing_not_ready` or `version_conflict`.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","description":"The same value as the `X-Request-Id` header. Quote it when you contact Melso.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"field":{"type":"string","description":"The field, query parameter or header at fault, when there is one.","uniqueKey":"field","typeLabel":"string"},"next_action":{"type":"string","description":"A stable hint of what to do next, such as `review_plan`, when the operation gives one.","uniqueKey":"next_action","typeLabel":"string"},"payment_url":{"type":"string","format":"uri","description":"Where the company's owner pays its plan, on `plan_required` when its plan is unpaid.","uniqueKey":"payment_url","typeLabel":"string\u003curi>"},"current_version":{"type":"string","description":"On `version_changed`, the object's current `version`.","uniqueKey":"current_version","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"invoice changed: review the current draft","code":"version_conflict","field":"expected_version","next_action":"refresh_and_request_authorization","request_id":"req_8f14e45fceea167a5a36dedd"},"examples":{"Example":{"title":"Example","value":{"error":"invoice changed: review the current draft","code":"version_conflict","field":"expected_version","next_action":"refresh_and_request_authorization","request_id":"req_8f14e45fceea167a5a36dedd"}}},"exampleType":"examples"}},"exampleType":"examples"},"3adfe3e8-78eb-4d0a-8dff-415fe097269a":{"description":"The key made more than 600 requests in a minute. Wait `Retry-After` seconds.","headers":{"Retry-After":{"description":"Seconds to wait, `60`.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","required":["error","code","request_id"],"properties":{"error":{"type":"string","description":"What went wrong, for a person to read.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"code":{"type":"string","description":"A stable code to branch on, such as `invoicing_not_ready` or `version_conflict`.","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"request_id":{"type":"string","description":"The same value as the `X-Request-Id` header. Quote it when you contact Melso.","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"field":{"type":"string","description":"The field, query parameter or header at fault, when there is one.","uniqueKey":"field","typeLabel":"string"},"next_action":{"type":"string","description":"A stable hint of what to do next, such as `review_plan`, when the operation gives one.","uniqueKey":"next_action","typeLabel":"string"},"payment_url":{"type":"string","format":"uri","description":"Where the company's owner pays its plan, on `plan_required` when its plan is unpaid.","uniqueKey":"payment_url","typeLabel":"string\u003curi>"},"current_version":{"type":"string","description":"On `version_changed`, the object's current `version`.","uniqueKey":"current_version","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Too many requests: a key makes at most 600 a minute","code":"rate_limited","request_id":"req_8f14e45fceea167a5a36dedd"},"examples":{"Example":{"title":"Example","value":{"error":"Too many requests: a key makes at most 600 a minute","code":"rate_limited","request_id":"req_8f14e45fceea167a5a36dedd"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"2b8a62ae-6100-444c-a98c-02c394e75e46":{"companyApiKey":{"type":"http","scheme":"bearer","description":"A company API key, `mk_live_…`, that the company's owner creates in the\nMelso app under Settings, Connect your AI, API keys. It works in that\none company with the owner's authority. Test keys (`mk_test_…`) are not\nissued. Keep the key on your servers. See\n[Authentication](/api/authentication).\n","scopes":[],"schemeName":"companyApiKey"}},"abfe5dbb-b3e1-4e6e-9a1b-4be88521b0fc":{"partnerApiKey":{"type":"http","scheme":"bearer","description":"A partner key of your firm, which the firm's owner or an admin creates in\nMelso under Settings, Developers, with the permissions it needs. It works in\nevery company of the firm: put the company's `id` in the path. A company\nthat is not your firm's answers `404`. Early access. See\n[Acting for your companies](/api/partner/acting-for-companies).\n","scopes":[],"schemeName":"partnerApiKey"}}},"servers":{"52365539-7a4c-477f-a967-b54f4915fef2":{"url":"https://api.melso.ai/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A company API key, `mk_live_…`, that the company's owner creates in the\nMelso app under Settings, Connect your AI, API keys. It works in that\none company with the owner's authority. Test keys (`mk_test_…`) are not\nissued. Keep the key on your servers. See\n[Authentication](/api/authentication).\n","scopes":[],"schemeName":"companyApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A company API key, `mk_live_…`, that the company's owner creates in the\nMelso app under Settings, Connect your AI, API keys. It works in that\none company with the owner's authority. Test keys (`mk_test_…`) are not\nissued. Keep the key on your servers. See\n[Authentication](/api/authentication).\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"companyApiKey","name":"Authorization"}],"title":"companyApiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A partner key of your firm, which the firm's owner or an admin creates in\nMelso under Settings, Developers, with the permissions it needs. It works in\nevery company of the firm: put the company's `id` in the path. A company\nthat is not your firm's answers `404`. Early access. See\n[Acting for your companies](/api/partner/acting-for-companies).\n","scopes":[],"schemeName":"partnerApiKey"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A partner key of your firm, which the firm's owner or an admin creates in\nMelso under Settings, Developers, with the permissions it needs. It works in\nevery company of the firm: put the company's `id` in the path. A company\nthat is not your firm's answers `404`. Early access. See\n[Acting for your companies](/api/partner/acting-for-companies).\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"partnerApiKey","name":"Authorization"}],"title":"partnerApiKey"}]},"originalFileLocation":"api/openapi.yaml"},"subdomain":"melso","siteName":"Melso","title":"Update the fiscal profile - Melso","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api/reference/fiscal-profile/update-fiscal-profile","matchLevel":0},"es":{"href":"/es/api-facturacion","matchLevel":4}}},"lastModified":"2026-11-28T08:58:26.069Z","originalFileLocation":"api/reference/fiscal-profile/update-fiscal-profile.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Saves every valid field it receives and changes nothing else.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Melso\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update the fiscal profile - Melso\">\u003cmeta data-mint-head property=\"og:description\" content=\"Saves every valid field it receives and changes nothing else.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Melso Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.melso.ai/images/og/api-reference.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update the fiscal profile - Melso\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Saves every valid field it receives and changes nothing else.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.melso.ai/images/og/api-reference.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/melso/ZyaT6es4tklDWaYK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Melso\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F04E42\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"og:locale:alternate\" content=\"es_ES\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#F04E42\">\u003cmeta data-mint-head name=\"og:image:alt\" content=\"Melso API reference: every operation with its request and its response.\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/reference/fiscal-profile/update-fiscal-profile.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://melso.ai/#organization\",\"name\":\"Melso\",\"url\":\"https://melso.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://docs.melso.ai/logo/light.svg\"},\"sameAs\":[\"https://melso.ai\",\"https://docs.melso.ai\",\"https://app.melso.ai\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.melso.ai#website\",\"name\":\"Melso\",\"url\":\"https://docs.melso.ai\",\"publisher\":{\"@id\":\"https://melso.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile#webpage\",\"url\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile\",\"name\":\"Update the fiscal profile\",\"description\":\"Saves every valid field it receives and changes nothing else.\",\"dateModified\":\"2026-11-28T08:58:26.069Z\",\"isPartOf\":{\"@id\":\"https://docs.melso.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Company\",\"item\":\"https://docs.melso.ai/api/reference/companies/list-companies\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fiscal profile\",\"item\":\"https://docs.melso.ai/api/reference/fiscal-profile/get-fiscal-profile\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Update the fiscal profile\",\"item\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile#apireference\",\"headline\":\"Update the fiscal profile\",\"name\":\"Update the fiscal profile\",\"description\":\"Saves every valid field it receives and changes nothing else.\",\"url\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile\",\"mainEntityOfPage\":{\"@id\":\"https://docs.melso.ai/api/reference/fiscal-profile/update-fiscal-profile#webpage\"},\"image\":\"https://docs.melso.ai/images/og/api-reference.png\",\"dateModified\":\"2026-11-28T08:58:26.069Z\",\"publisher\":{\"@id\":\"https://melso.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.melso.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Melso\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Melso\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/reference/fiscal-profile/update-fiscal-profile.md","siteName":"Melso","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"API","groups":[{"group":"Get started","pages":[{"title":"Melso API","sidebarTitle":"Overview","href":"/api/overview"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/api/quickstart"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/api/authentication"},{"title":"Conventions","sidebarTitle":"Conventions","href":"/api/conventions"},{"title":"Examples","sidebarTitle":"Examples","href":"/api/examples"},{"title":"OpenAPI document","sidebarTitle":"OpenAPI","href":"/api/openapi"}]},{"group":"How-to guides","pages":[{"title":"Collect the digital certificate","sidebarTitle":"Collect the digital certificate","href":"/api/how-to/certificate"},{"title":"Show taxes and receipts","sidebarTitle":"Show taxes and receipts","href":"/api/how-to/taxes"},{"title":"Employees and payroll","sidebarTitle":"Employees and payroll (beta)","href":"/api/how-to/payroll"},{"title":"Switch from the current gestoría","sidebarTitle":"Switch from the current gestoría","href":"/api/how-to/switching"}]},{"group":"Company","pages":[{"group":"Companies","pages":[{"title":"List companies","sidebarTitle":"List companies","openapi":"api/openapi.yaml GET /companies","href":"/api/reference/companies/list-companies"},{"title":"Get a company","sidebarTitle":"Get a company","openapi":"api/openapi.yaml GET /companies/{company_id}","href":"/api/reference/companies/get-company"}]},{"group":"Fiscal profile","pages":[{"title":"Get the fiscal profile","sidebarTitle":"Get the fiscal profile","description":"Returns the company's fiscal profile and what Melso still needs.","openapi":"api/openapi.yaml GET /companies/{company_id}/fiscal-profile","href":"/api/reference/fiscal-profile/get-fiscal-profile"},{"title":"Update the fiscal profile","sidebarTitle":"Update the fiscal profile","openapi":"api/openapi.yaml PATCH /companies/{company_id}/fiscal-profile","href":"/api/reference/fiscal-profile/update-fiscal-profile"}]},{"group":"Digital certificate","pages":[{"title":"Get the certificate status","sidebarTitle":"Get the certificate status","description":"Returns the status of the digital certificate Melso files with.","openapi":"api/openapi.yaml GET /companies/{company_id}/certificate","href":"/api/reference/digital-certificate/get-certificate"},{"title":"Upload a certificate","sidebarTitle":"Upload a certificate","openapi":"api/openapi.yaml POST /companies/{company_id}/certificate","href":"/api/reference/digital-certificate/upload-certificate"},{"title":"Create a certificate link","sidebarTitle":"Create a certificate link","openapi":"api/openapi.yaml POST /companies/{company_id}/certificate-links","href":"/api/reference/digital-certificate/create-certificate-link"}]}]},{"group":"Invoicing","pages":[{"group":"Customers","pages":[{"title":"List customers","sidebarTitle":"List customers","openapi":"api/openapi.yaml GET /companies/{company_id}/customers","href":"/api/reference/customers/list-customers"},{"title":"Create or update a customer","sidebarTitle":"Create or update a customer","openapi":"api/openapi.yaml POST /companies/{company_id}/customers","href":"/api/reference/customers/upsert-customer"}]},{"group":"Invoices","pages":[{"title":"List invoices","sidebarTitle":"List invoices","openapi":"api/openapi.yaml GET /companies/{company_id}/invoices","href":"/api/reference/invoices/list-invoices"},{"title":"Create an invoice draft","sidebarTitle":"Create an invoice draft","openapi":"api/openapi.yaml POST /companies/{company_id}/invoices","href":"/api/reference/invoices/create-invoice"},{"title":"Get an invoice","sidebarTitle":"Get an invoice","openapi":"api/openapi.yaml GET /companies/{company_id}/invoices/{invoice_id}","href":"/api/reference/invoices/get-invoice"},{"title":"Replace an invoice draft","sidebarTitle":"Replace an invoice draft","openapi":"api/openapi.yaml PATCH /companies/{company_id}/invoices/{invoice_id}","href":"/api/reference/invoices/replace-invoice-draft"},{"title":"Download the invoice PDF","sidebarTitle":"Download the invoice PDF","openapi":"api/openapi.yaml GET /companies/{company_id}/invoices/{invoice_id}/pdf","href":"/api/reference/invoices/get-invoice-pdf"},{"title":"Create an invoice approval link","sidebarTitle":"Create an invoice approval link","openapi":"api/openapi.yaml POST /companies/{company_id}/invoices/{invoice_id}/approval-link","href":"/api/reference/invoices/create-invoice-approval-link"},{"title":"Issue an invoice","sidebarTitle":"Issue an invoice","openapi":"api/openapi.yaml POST /companies/{company_id}/invoices/{invoice_id}/issue","href":"/api/reference/invoices/issue-invoice"},{"title":"Void an invoice","sidebarTitle":"Void an invoice","openapi":"api/openapi.yaml POST /companies/{company_id}/invoices/{invoice_id}/void","href":"/api/reference/invoices/void-invoice"},{"title":"Draft a corrective invoice","sidebarTitle":"Draft a corrective invoice","openapi":"api/openapi.yaml POST /companies/{company_id}/invoices/{invoice_id}/correct","href":"/api/reference/invoices/correct-invoice"},{"title":"Mark an invoice as paid","sidebarTitle":"Mark an invoice as paid","openapi":"api/openapi.yaml POST /companies/{company_id}/invoices/{invoice_id}/mark-paid","href":"/api/reference/invoices/mark-invoice-paid"}]}]},{"group":"Books","pages":[{"group":"Expenses","pages":[{"title":"List expenses","sidebarTitle":"List expenses","openapi":"api/openapi.yaml GET /companies/{company_id}/expenses","href":"/api/reference/expenses/list-expenses"},{"title":"Create an expense","sidebarTitle":"Create an expense","openapi":"api/openapi.yaml POST /companies/{company_id}/expenses","href":"/api/reference/expenses/create-expense"},{"title":"Get an expense","sidebarTitle":"Get an expense","openapi":"api/openapi.yaml GET /companies/{company_id}/expenses/{expense_id}","href":"/api/reference/expenses/get-expense"},{"title":"Update an expense","sidebarTitle":"Update an expense","openapi":"api/openapi.yaml PATCH /companies/{company_id}/expenses/{expense_id}","href":"/api/reference/expenses/update-expense"},{"title":"Delete an expense","sidebarTitle":"Delete an expense","openapi":"api/openapi.yaml DELETE /companies/{company_id}/expenses/{expense_id}","href":"/api/reference/expenses/delete-expense"}]},{"group":"Income","pages":[{"title":"List income","sidebarTitle":"List income","openapi":"api/openapi.yaml GET /companies/{company_id}/income","href":"/api/reference/income/list-income"},{"title":"Create an income","sidebarTitle":"Create an income","openapi":"api/openapi.yaml POST /companies/{company_id}/income","href":"/api/reference/income/create-income"},{"title":"Get an income","sidebarTitle":"Get an income","openapi":"api/openapi.yaml GET /companies/{company_id}/income/{income_id}","href":"/api/reference/income/get-income"},{"title":"Update an income","sidebarTitle":"Update an income","openapi":"api/openapi.yaml PATCH /companies/{company_id}/income/{income_id}","href":"/api/reference/income/update-income"},{"title":"Delete an income","sidebarTitle":"Delete an income","openapi":"api/openapi.yaml DELETE /companies/{company_id}/income/{income_id}","href":"/api/reference/income/delete-income"}]},{"group":"Documents","pages":[{"title":"Upload a document","sidebarTitle":"Upload a document","openapi":"api/openapi.yaml POST /companies/{company_id}/documents","href":"/api/reference/documents/upload-document"},{"title":"Get a document","sidebarTitle":"Get a document","openapi":"api/openapi.yaml GET /companies/{company_id}/documents/{document_id}","href":"/api/reference/documents/get-document"}]},{"group":"VAT book imports","pages":[{"title":"Import a VAT book","sidebarTitle":"Import a VAT book","openapi":"api/openapi.yaml POST /companies/{company_id}/book-imports","href":"/api/reference/vat-book-imports/create-book-import"},{"title":"Get a VAT book import","sidebarTitle":"Get a VAT book import","openapi":"api/openapi.yaml GET /companies/{company_id}/book-imports/{import_id}","href":"/api/reference/vat-book-imports/get-book-import"}]}]},{"group":"Taxes","pages":[{"group":"Tax returns","pages":[{"title":"Get the tax calendar","sidebarTitle":"Get the tax calendar","openapi":"api/openapi.yaml GET /companies/{company_id}/tax-calendar","href":"/api/reference/tax-returns/get-tax-calendar"},{"title":"List tax returns","sidebarTitle":"List tax returns","openapi":"api/openapi.yaml GET /companies/{company_id}/tax-returns","href":"/api/reference/tax-returns/list-tax-returns"},{"title":"Get a tax return","sidebarTitle":"Get a tax return","openapi":"api/openapi.yaml GET /companies/{company_id}/tax-returns/{tax_return_id}","href":"/api/reference/tax-returns/get-tax-return"},{"title":"Create an approval link","sidebarTitle":"Create an approval link","openapi":"api/openapi.yaml POST /companies/{company_id}/tax-returns/{tax_return_id}/approval-link","href":"/api/reference/tax-returns/create-tax-return-approval-link"},{"title":"Approve a tax return","sidebarTitle":"Approve a tax return","openapi":"api/openapi.yaml POST /companies/{company_id}/tax-returns/{tax_return_id}/approval","href":"/api/reference/tax-returns/approve-tax-return"},{"title":"Download the AEAT import file","sidebarTitle":"Download the AEAT import file","openapi":"api/openapi.yaml GET /companies/{company_id}/tax-returns/{tax_return_id}/aeat-file","href":"/api/reference/tax-returns/get-tax-return-aeat-file"},{"title":"Download the AEAT receipt","sidebarTitle":"Download the AEAT receipt","openapi":"api/openapi.yaml GET /companies/{company_id}/tax-returns/{tax_return_id}/receipt","href":"/api/reference/tax-returns/get-tax-return-receipt"}]}]},{"group":"Payroll","pages":[{"group":"Payroll settings","pages":[{"title":"Get the labour settings","sidebarTitle":"Get the labour settings","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll/settings","href":"/api/reference/payroll-settings/get-payroll-settings"},{"title":"Update the labour settings","sidebarTitle":"Update the labour settings","openapi":"api/openapi.yaml PATCH /companies/{company_id}/payroll/settings","href":"/api/reference/payroll-settings/update-payroll-settings"},{"title":"Preview a payslip","sidebarTitle":"Preview a payslip","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll/preview","href":"/api/reference/payroll-settings/preview-payslip"}]},{"group":"Employees","pages":[{"title":"List employees","sidebarTitle":"List employees","openapi":"api/openapi.yaml GET /companies/{company_id}/employees","href":"/api/reference/employees/list-employees"},{"title":"Create an employee","sidebarTitle":"Create an employee","openapi":"api/openapi.yaml POST /companies/{company_id}/employees","href":"/api/reference/employees/create-employee"},{"title":"Update an employee","sidebarTitle":"Update an employee","openapi":"api/openapi.yaml PATCH /companies/{company_id}/employees/{employee_id}","href":"/api/reference/employees/update-employee"},{"title":"List an employee's changes","sidebarTitle":"List an employee's changes","openapi":"api/openapi.yaml GET /companies/{company_id}/employees/{employee_id}/changes","href":"/api/reference/employees/list-employee-changes"},{"title":"List an employee's documents","sidebarTitle":"List an employee's documents","openapi":"api/openapi.yaml GET /companies/{company_id}/employees/{employee_id}/documents","href":"/api/reference/employees/list-employee-documents"},{"title":"Record a document","sidebarTitle":"Record a document","openapi":"api/openapi.yaml POST /companies/{company_id}/employees/{employee_id}/document-records","href":"/api/reference/employees/record-employee-document"}]},{"group":"Contracts","pages":[{"title":"List contracts","sidebarTitle":"List contracts","openapi":"api/openapi.yaml GET /companies/{company_id}/employees/{employee_id}/contracts","href":"/api/reference/contracts/list-contracts"},{"title":"Create a contract","sidebarTitle":"Create a contract","openapi":"api/openapi.yaml POST /companies/{company_id}/employees/{employee_id}/contracts","href":"/api/reference/contracts/create-contract"},{"title":"Replace a contract","sidebarTitle":"Replace a contract","openapi":"api/openapi.yaml PUT /companies/{company_id}/contracts/{contract_id}","href":"/api/reference/contracts/replace-contract"},{"title":"Delete a contract","sidebarTitle":"Delete a contract","openapi":"api/openapi.yaml DELETE /companies/{company_id}/contracts/{contract_id}","href":"/api/reference/contracts/delete-contract"},{"title":"Get the written contract","sidebarTitle":"Get the written contract","openapi":"api/openapi.yaml GET /companies/{company_id}/contracts/{contract_id}/document","href":"/api/reference/contracts/get-contract-document"},{"title":"List Contrat@ submissions","sidebarTitle":"List Contrat@ submissions","openapi":"api/openapi.yaml GET /companies/{company_id}/contracts/{contract_id}/contrata-submissions","href":"/api/reference/contracts/list-contrata-submissions"},{"title":"Send a contract to Contrat@","sidebarTitle":"Send a contract to Contrat@","openapi":"api/openapi.yaml POST /companies/{company_id}/contracts/{contract_id}/contrata-submissions","href":"/api/reference/contracts/submit-contract-to-contrata"}]},{"group":"Payroll runs","pages":[{"title":"List payroll runs","sidebarTitle":"List payroll runs","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll-runs","href":"/api/reference/payroll-runs/list-payroll-runs"},{"title":"Create a payroll run","sidebarTitle":"Create a payroll run","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs","href":"/api/reference/payroll-runs/create-payroll-run"},{"title":"Get a payroll run","sidebarTitle":"Get a payroll run","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll-runs/{run_id}","href":"/api/reference/payroll-runs/get-payroll-run"},{"title":"Delete a payroll run","sidebarTitle":"Delete a payroll run","openapi":"api/openapi.yaml DELETE /companies/{company_id}/payroll-runs/{run_id}","href":"/api/reference/payroll-runs/delete-payroll-run"},{"title":"Recalculate a payroll run","sidebarTitle":"Recalculate a payroll run","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/recalculate","href":"/api/reference/payroll-runs/recalculate-payroll-run"},{"title":"Create an approval link","sidebarTitle":"Create an approval link","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/approval-link","href":"/api/reference/payroll-runs/create-payroll-approval-link"},{"title":"Approve a payroll run","sidebarTitle":"Approve a payroll run","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/approve","href":"/api/reference/payroll-runs/approve-payroll-run"},{"title":"Mark a payroll run paid","sidebarTitle":"Mark a payroll run paid","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/mark-paid","href":"/api/reference/payroll-runs/mark-payroll-run-paid"},{"title":"Mark a payroll run unpaid","sidebarTitle":"Mark a payroll run unpaid","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/mark-unpaid","href":"/api/reference/payroll-runs/mark-payroll-run-unpaid"},{"title":"Reopen a payroll run","sidebarTitle":"Reopen a payroll run","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/reopen","href":"/api/reference/payroll-runs/reopen-payroll-run"}]},{"group":"Payslips","pages":[{"title":"Get a payslip","sidebarTitle":"Get a payslip","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll-runs/{run_id}/payslips/{payslip_id}","href":"/api/reference/payslips/get-payslip"},{"title":"Update a payslip's incidents","sidebarTitle":"Update a payslip's incidents","openapi":"api/openapi.yaml PATCH /companies/{company_id}/payroll-runs/{run_id}/payslips/{payslip_id}","href":"/api/reference/payslips/update-payslip-incidents"},{"title":"Download a payroll file","sidebarTitle":"Download a payroll file","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll/files","href":"/api/reference/payslips/get-payroll-file"}]},{"group":"Social Security","pages":[{"title":"List Social Security liquidations","sidebarTitle":"List Social Security liquidations","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll/liquidations","href":"/api/reference/social-security/list-liquidations"},{"title":"List SILTRA files","sidebarTitle":"List SILTRA files","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll-runs/{run_id}/siltra-files","href":"/api/reference/social-security/list-siltra-files"},{"title":"Generate a SILTRA file","sidebarTitle":"Generate a SILTRA file","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/siltra-files","href":"/api/reference/social-security/generate-siltra-file"},{"title":"List the TGSS answers","sidebarTitle":"List the TGSS answers","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll-runs/{run_id}/red-responses","href":"/api/reference/social-security/list-red-responses"},{"title":"Import a TGSS answer","sidebarTitle":"Import a TGSS answer","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll-runs/{run_id}/red-responses","href":"/api/reference/social-security/import-red-response"}]},{"group":"Leaves and strikes","pages":[{"title":"List sick leaves","sidebarTitle":"List sick leaves","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll/leaves","href":"/api/reference/leaves-and-strikes/list-leaves"},{"title":"Import an FIE file","sidebarTitle":"Import an FIE file","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll/fie-imports","href":"/api/reference/leaves-and-strikes/import-fie-file"},{"title":"List strikes","sidebarTitle":"List strikes","openapi":"api/openapi.yaml GET /companies/{company_id}/payroll/strikes","href":"/api/reference/leaves-and-strikes/list-strikes"},{"title":"Record a strike","sidebarTitle":"Record a strike","openapi":"api/openapi.yaml POST /companies/{company_id}/payroll/strikes","href":"/api/reference/leaves-and-strikes/record-strike"},{"title":"Correct a strike","sidebarTitle":"Correct a strike","openapi":"api/openapi.yaml PUT /companies/{company_id}/payroll/strikes/{strike_id}","href":"/api/reference/leaves-and-strikes/replace-strike"},{"title":"Delete a strike","sidebarTitle":"Delete a strike","openapi":"api/openapi.yaml DELETE /companies/{company_id}/payroll/strikes/{strike_id}","href":"/api/reference/leaves-and-strikes/delete-strike"}]}]}]},{"tab":"Partner API","pages":[{"title":"Partner API","href":"/api/partner/overview"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/api-facturacion"}]}]},"basePath":"","title":"Update the fiscal profile - Melso","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","SectionHeading-Cg4lfWZw.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js","Markdown-D5IqLG6A.js","AssistantPageLink-_S2h4i6W.js","dist-DzZqOeCq.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}