FACTURA INAFECTA
POST/api/documents
La inafectación contenida en las normas del impuesto establece que operaciones y servicios no están gravadas con el IGV.
Ejemplo:
- Método: POST
- URL: https://demo.pro5.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:
2018-10-09hora_de_emisiontimerequired
Example:
10:11:11codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
01codigo_tipo_monedastringrequired
Example:
PENfecha_de_vencimientodaterequired
Example:
2018-08-30numero_orden_de_comprastring
Example:
0045467898datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6numero_documentostring
Example:
10414711225apellidos_y_nombres_o_razon_socialstring
Example:
EMPRESA XYZ S.A.codigo_paisstring
Example:
PEubigeostring
Example:
150101direccionstring
Example:
Av. 2 de Mayocorreo_electronicostring
Example:
demo@gmail.comtelefonostring
Example:
427-1148totales
object
required
total_exportacionfloat
Example:
0total_operaciones_gravadasfloat
Example:
0total_operaciones_inafectasfloat
Example:
118total_operaciones_exoneradasfloat
Example:
0total_operaciones_gratuitasfloat
Example:
0total_igvfloat
Example:
0total_impuestosfloat
Example:
0total_valorfloat
Example:
118total_ventafloat
Example:
118items
object[]
required
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
unidad_de_medidastring
Example:
NIUcantidadint32
Example:
2valor_unitariofloat
Example:
59codigo_tipo_preciostring
Example:
01precio_unitariofloat
Example:
59codigo_tipo_afectacion_igvstring
Example:
30total_base_igvfloat
Example:
0porcentaje_igvfloat
Example:
18total_igvfloat
Example:
0total_impuestosfloat
Example:
0total_valor_itemfloat
Example:
118total_itemfloat
Example:
118Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
F001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2018-10-09hora_de_emisiontimerequired
Example:
10:11:11codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
01codigo_tipo_monedastringrequired
Example:
PENfecha_de_vencimientodaterequired
Example:
2018-08-30numero_orden_de_comprastring
Example:
0045467898datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6numero_documentostring
Example:
10414711225apellidos_y_nombres_o_razon_socialstring
Example:
EMPRESA XYZ S.A.codigo_paisstring
Example:
PEubigeostring
Example:
150101direccionstring
Example:
Av. 2 de Mayocorreo_electronicostring
Example:
demo@gmail.comtelefonostring
Example:
427-1148totales
object
required
total_exportacionfloat
Example:
0total_operaciones_gravadasfloat
Example:
0total_operaciones_inafectasfloat
Example:
118total_operaciones_exoneradasfloat
Example:
0total_operaciones_gratuitasfloat
Example:
0total_igvfloat
Example:
0total_impuestosfloat
Example:
0total_valorfloat
Example:
118total_ventafloat
Example:
118items
object[]
required
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
unidad_de_medidastring
Example:
NIUcantidadint32
Example:
2valor_unitariofloat
Example:
59codigo_tipo_preciostring
Example:
01precio_unitariofloat
Example:
59codigo_tipo_afectacion_igvstring
Example:
30total_base_igvfloat
Example:
0porcentaje_igvfloat
Example:
18total_igvfloat
Example:
0total_impuestosfloat
Example:
0total_valor_itemfloat
Example:
118total_itemfloat
Example:
118Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
F001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2018-10-09hora_de_emisiontimerequired
Example:
10:11:11codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
01codigo_tipo_monedastringrequired
Example:
PENfecha_de_vencimientodaterequired
Example:
2018-08-30numero_orden_de_comprastring
Example:
0045467898datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6numero_documentostring
Example:
10414711225apellidos_y_nombres_o_razon_socialstring
Example:
EMPRESA XYZ S.A.codigo_paisstring
Example:
PEubigeostring
Example:
150101direccionstring
Example:
Av. 2 de Mayocorreo_electronicostring
Example:
demo@gmail.comtelefonostring
Example:
427-1148totales
object
required
total_exportacionfloat
Example:
0total_operaciones_gravadasfloat
Example:
0total_operaciones_inafectasfloat
Example:
118total_operaciones_exoneradasfloat
Example:
0total_operaciones_gratuitasfloat
Example:
0total_igvfloat
Example:
0total_impuestosfloat
Example:
0total_valorfloat
Example:
118total_ventafloat
Example:
118items
object[]
required
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
unidad_de_medidastring
Example:
NIUcantidadint32
Example:
2valor_unitariofloat
Example:
59codigo_tipo_preciostring
Example:
01precio_unitariofloat
Example:
59codigo_tipo_afectacion_igvstring
Example:
30total_base_igvfloat
Example:
0porcentaje_igvfloat
Example:
18total_igvfloat
Example:
0total_impuestosfloat
Example:
0total_valor_itemfloat
Example:
118total_itemfloat
Example:
118Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
truedata
object
required
numberstring
Example:
F001-27filenamestring
Example:
20302019010-01-F001-27external_idstring
Example:
4c7a4555-8f80-4b1f-8919-94ac564ee98bstate_type_idstring
Example:
09state_type_descriptionstring
Example:
Rechazadonumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
oUIhzWmeJUgEoZwy1ElmE8cY43Q=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAidinteger
Example:
323links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/4c7a4555-8f80-4b1f-8919-94ac564ee98bpdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/4c7a4555-8f80-4b1f-8919-94ac564ee98bcdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/4c7a4555-8f80-4b1f-8919-94ac564ee98bresponse
object
required
codestring
Example:
3105descriptionstring
Example:
El XML debe contener al menos un tributo por linea de afectacion por IGV{
"success": true,
"data": {
"number": "F001-27",
"filename": "20302019010-01-F001-27",
"external_id": "4c7a4555-8f80-4b1f-8919-94ac564ee98b",
"state_type_id": "09",
"state_type_description": "Rechazado",
"number_to_letter": "Ciento dieciocho con 00/100",
"hash": "oUIhzWmeJUgEoZwy1ElmE8cY43Q=",
"qr": "iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"id": 323
},
"links": {
"xml": "https://demo.pro5.fastura.app/downloads/document/xml/4c7a4555-8f80-4b1f-8919-94ac564ee98b",
"pdf": "https://demo.pro5.fastura.app/downloads/document/pdf/4c7a4555-8f80-4b1f-8919-94ac564ee98b",
"cdr": "https://demo.pro5.fastura.app/downloads/document/cdr/4c7a4555-8f80-4b1f-8919-94ac564ee98b"
},
"response": {
"code": "3105",
"description": "El XML debe contener al menos un tributo por linea de afectacion por IGV"
}
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
truedata
object
required
numberstring
Example:
F001-27filenamestring
Example:
20302019010-01-F001-27external_idstring
Example:
4c7a4555-8f80-4b1f-8919-94ac564ee98bstate_type_idstring
Example:
09state_type_descriptionstring
Example:
Rechazadonumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
oUIhzWmeJUgEoZwy1ElmE8cY43Q=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAidinteger
Example:
323links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/4c7a4555-8f80-4b1f-8919-94ac564ee98bpdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/4c7a4555-8f80-4b1f-8919-94ac564ee98bcdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/4c7a4555-8f80-4b1f-8919-94ac564ee98bresponse
object
required
codestring
Example:
3105descriptionstring
Example:
El XML debe contener al menos un tributo por linea de afectacion por IGV<root>
<success>true</success>
<data>
<number>F001-27</number>
<filename>20302019010-01-F001-27</filename>
<external_id>4c7a4555-8f80-4b1f-8919-94ac564ee98b</external_id>
<state_type_id>09</state_type_id>
<state_type_description>Rechazado</state_type_description>
<number_to_letter>Ciento dieciocho con 00/100</number_to_letter>
<hash>oUIhzWmeJUgEoZwy1ElmE8cY43Q=</hash>
<qr>iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</qr>
<id>323</id>
</data>
<links>
<xml>https://demo.pro5.fastura.app/downloads/document/xml/4c7a4555-8f80-4b1f-8919-94ac564ee98b</xml>
<pdf>https://demo.pro5.fastura.app/downloads/document/pdf/4c7a4555-8f80-4b1f-8919-94ac564ee98b</pdf>
<cdr>https://demo.pro5.fastura.app/downloads/document/cdr/4c7a4555-8f80-4b1f-8919-94ac564ee98b</cdr>
</links>
<response>
<code>3105</code>
<description>El XML debe contener al menos un tributo por linea de afectacion por IGV</description>
</response>
</root>
Invalid input
Validation exception