FACTURA CONTINGENCIA
POST/api/documents
Para generar una factura de contingencia previamente debe registrar las series de contingencia, en el módulo Usuarios/Locales & Series sección Establecimientos.
Ejemplo:
- Método: POST
- URL: http://demo.fastura.app/api/documents
- TOKEN: HOHYgwd4atPalTxqi2IIspythpLAU7eP239oByfjk9VuveiOpfUTm4Yg0Szt
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
F001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-04hora_de_emisiontimerequired
Example:
10:11:11fecha_de_vencimientodaterequired
Example:
2019-09-03codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
01codigo_tipo_monedastringrequired
Example:
PENdatos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6numero_documentostring
Example:
20501973522apellidos_y_nombres_o_razon_socialstring
Example:
EMBOTELLADORA DON JORGE S.A.C. EN LIQUIDACIONcodigo_paisstring
Example:
PEubigeostring
Example:
150101direccionstring
Example:
Av. Argentina 2458correo_electronicostring
Example:
demo@gmail.comtelefonostring
Example:
427-1148totales
object
required
total_exportacionfloat
Example:
0total_operaciones_gravadasfloat
Example:
100total_operaciones_inafectasfloat
Example:
0total_operaciones_exoneradasfloat
Example:
0total_operaciones_gratuitasfloat
Example:
0total_igvfloat
Example:
18total_impuestosfloat
Example:
18total_valorfloat
Example:
100total_ventafloat
Example:
118items
object[]
required
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
51121703unidad_de_medidastring
Example:
NIUcantidadint32
Example:
2valor_unitariofloat
Example:
50codigo_tipo_preciostring
Example:
01precio_unitariofloat
Example:
59codigo_tipo_afectacion_igvstring
Example:
10total_base_igvfloat
Example:
100porcentaje_igvfloat
Example:
18total_igvfloat
Example:
18total_impuestosfloat
Example:
18total_valor_itemfloat
Example:
100total_itemfloat
Example:
118informacion_adicionalstring
Example:
Forma de pago:Efectivo|Caja: 1Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
F001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-04hora_de_emisiontimerequired
Example:
10:11:11fecha_de_vencimientodaterequired
Example:
2019-09-03codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
01codigo_tipo_monedastringrequired
Example:
PENdatos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6numero_documentostring
Example:
20501973522apellidos_y_nombres_o_razon_socialstring
Example:
EMBOTELLADORA DON JORGE S.A.C. EN LIQUIDACIONcodigo_paisstring
Example:
PEubigeostring
Example:
150101direccionstring
Example:
Av. Argentina 2458correo_electronicostring
Example:
demo@gmail.comtelefonostring
Example:
427-1148totales
object
required
total_exportacionfloat
Example:
0total_operaciones_gravadasfloat
Example:
100total_operaciones_inafectasfloat
Example:
0total_operaciones_exoneradasfloat
Example:
0total_operaciones_gratuitasfloat
Example:
0total_igvfloat
Example:
18total_impuestosfloat
Example:
18total_valorfloat
Example:
100total_ventafloat
Example:
118items
object[]
required
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
51121703unidad_de_medidastring
Example:
NIUcantidadint32
Example:
2valor_unitariofloat
Example:
50codigo_tipo_preciostring
Example:
01precio_unitariofloat
Example:
59codigo_tipo_afectacion_igvstring
Example:
10total_base_igvfloat
Example:
100porcentaje_igvfloat
Example:
18total_igvfloat
Example:
18total_impuestosfloat
Example:
18total_valor_itemfloat
Example:
100total_itemfloat
Example:
118informacion_adicionalstring
Example:
Forma de pago:Efectivo|Caja: 1Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
F001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-04hora_de_emisiontimerequired
Example:
10:11:11fecha_de_vencimientodaterequired
Example:
2019-09-03codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
01codigo_tipo_monedastringrequired
Example:
PENdatos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6numero_documentostring
Example:
20501973522apellidos_y_nombres_o_razon_socialstring
Example:
EMBOTELLADORA DON JORGE S.A.C. EN LIQUIDACIONcodigo_paisstring
Example:
PEubigeostring
Example:
150101direccionstring
Example:
Av. Argentina 2458correo_electronicostring
Example:
demo@gmail.comtelefonostring
Example:
427-1148totales
object
required
total_exportacionfloat
Example:
0total_operaciones_gravadasfloat
Example:
100total_operaciones_inafectasfloat
Example:
0total_operaciones_exoneradasfloat
Example:
0total_operaciones_gratuitasfloat
Example:
0total_igvfloat
Example:
18total_impuestosfloat
Example:
18total_valorfloat
Example:
100total_ventafloat
Example:
118items
object[]
required
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
51121703unidad_de_medidastring
Example:
NIUcantidadint32
Example:
2valor_unitariofloat
Example:
50codigo_tipo_preciostring
Example:
01precio_unitariofloat
Example:
59codigo_tipo_afectacion_igvstring
Example:
10total_base_igvfloat
Example:
100porcentaje_igvfloat
Example:
18total_igvfloat
Example:
18total_impuestosfloat
Example:
18total_valor_itemfloat
Example:
100total_itemfloat
Example:
118informacion_adicionalstring
Example:
Forma de pago:Efectivo|Caja: 1Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
truedata
object
required
numberstring
Example:
F001-32filenamestring
Example:
20302019010-01-F001-32external_idstring
Example:
9c6e8cfe-f10d-407c-a3c9-eb836de7da28state_type_idstring
Example:
05state_type_descriptionstring
Example:
Aceptadonumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
1aNb76S0yfwBuKDvDJ701H9Mies=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmVAzwftRDIAAAAAElFTkSuQmCCidinteger
Example:
328links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/9c6e8cfe-f10d-407c-a3c9-eb836de7da28pdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/9c6e8cfe-f10d-407c-a3c9-eb836de7da28cdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/9c6e8cfe-f10d-407c-a3c9-eb836de7da28response
object
codestring
Example:
0descriptionstring
Example:
La Factura numero F001-32, ha sido aceptadanotesstring[]
Example:
[]ResponseSamples component placeholder
- Schema
- Example (from schema)
Schema
successboolean
Example:
truedata
object
required
numberstring
Example:
F001-32filenamestring
Example:
20302019010-01-F001-32external_idstring
Example:
9c6e8cfe-f10d-407c-a3c9-eb836de7da28state_type_idstring
Example:
05state_type_descriptionstring
Example:
Aceptadonumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
1aNb76S0yfwBuKDvDJ701H9Mies=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGmVAzwftRDIAAAAAElFTkSuQmCCidinteger
Example:
328links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/9c6e8cfe-f10d-407c-a3c9-eb836de7da28pdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/9c6e8cfe-f10d-407c-a3c9-eb836de7da28cdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/9c6e8cfe-f10d-407c-a3c9-eb836de7da28response
object
codestring
Example:
0descriptionstring
Example:
La Factura numero F001-32, ha sido aceptadanotesstring[]
Example:
[]ResponseSamples component placeholder
Invalid input
Validation exception