Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Declararfacil Com User API
version: 1.0.0
description: 'Operations tagged User across 2 of this provider''s published API definitions: declararfacil-com-agent-openapi.json, declararfacil-com-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://declararfacil.com
tags:
- name: User
paths:
/api/user/profile:
get:
summary: Fiscal profile
security:
- linkToken: []
responses:
'200':
description: OK
'401':
description: 'invalid_token: unknown or replaced token; start a new connection with POST /api/agent/v1/connect'
'402':
description: 'subscription_required: no active subscription; the body carries subscribe_url, steps, next_step and tell_the_user'
tags:
- User
operationId: getApiUserProfile
x-operation-id-source: derived
put:
summary: Update the fiscal profile
security:
- linkToken: []
responses:
'200':
description: OK
'401':
description: 'invalid_token: unknown or replaced token; start a new connection with POST /api/agent/v1/connect'
'402':
description: 'subscription_required: no active subscription; the body carries subscribe_url, steps, next_step and tell_the_user'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ProfileInput'
tags:
- User
operationId: putApiUserProfile
x-operation-id-source: derived
servers:
- url: https://declararfacil.com
components:
schemas:
ProfileInput:
type: object
properties:
nombre:
type: string
apellidos:
type: string
nif:
type: string
direccionFiscal:
type: string
codigoPostal:
type: string
municipio:
type: string
provincia:
type: string
comunidadAutonoma:
type: string
fechaAltaAutonomo:
type: string
description: YYYY-MM-DD
epigrafeIAE:
type: string
descripcionActividad:
type: string
regimenIVA:
type: string
enum:
- GENERAL
- RECARGO_EQUIVALENCIA
- EXENTO
- SIMPLIFICADO
userType:
type: string
enum:
- AUTONOMO
- EMPRESA
securitySchemes:
linkToken:
type: http
scheme: bearer
description: The df_ token handed out by the connect poll, or the last segment of the user's personal link (/agente/<token>).
x-refined-from:
- declararfacil-com-agent-openapi.json
- declararfacil-com-openapi.json