FACTURA GRAVADA
POST /api/documents
La Factura Electrónica es un comprobante de pago emitido a través del sistema de emisión electrónica desarrollado desde los sistemas del contribuyente, permitiendo la sustentación del costo-gasto para efectos del Impuesto a la Renta y la utilización del crédito fiscal del Impuesto General a las Ventas.
Ejemplo:
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
serie_documentostringrequiredExample: F001
numero_documentostringrequiredExample: #
fecha_de_emisiondaterequiredExample: 2023-09-21
hora_de_emisiontimerequiredExample: 10:11:11
codigo_tipo_operacionstringrequiredExample: 0101
codigo_tipo_documentostringrequiredExample: 01
codigo_tipo_monedastringrequiredExample: PEN
fecha_de_vencimientodaterequiredExample: 2023-09-21
numero_orden_de_comprastringExample: 0045467898
datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstringExample: 6
numero_documentostringExample: 10414711225
apellidos_y_nombres_o_razon_socialstringExample: EMPRESA XYZ S.A.
codigo_paisstringExample: PE
ubigeostringExample: 150101
direccionstringExample: Av. 2 de Mayo
correo_electronicostringExample: demo@gmail.com
telefonostringExample: 427-1148
totales
object
required
total_exportacionfloatExample: 0
total_operaciones_gravadasfloatExample: 100
total_operaciones_inafectasfloatExample: 0
total_operaciones_exoneradasfloatExample: 0
total_operaciones_gratuitasfloatExample: 0
total_igvfloatExample: 18
total_impuestosfloatExample: 18
total_valorfloatExample: 100
total_ventafloatExample: 118
items
object[]
required
codigo_internostringExample: P0121
descripcionstringExample: Inca Kola 250 ml
codigo_producto_sunatstringExample: 51121703
unidad_de_medidastringExample: NIU
valor_unitariofloatExample: 50
codigo_tipo_preciostringExample: 01
precio_unitariofloatExample: 59
codigo_tipo_afectacion_igvstringExample: 10
total_base_igvfloatExample: 100
porcentaje_igvfloatExample: 18
total_igvfloatExample: 18
total_impuestosfloatExample: 18
total_valor_itemfloatExample: 100
total_itemfloatExample: 118
informacion_adicionalstringExample: Forma de pago:Efectivo|Caja: 1
Body
required
serie_documentostringrequiredExample: F001
numero_documentostringrequiredExample: #
fecha_de_emisiondaterequiredExample: 2023-09-21
hora_de_emisiontimerequiredExample: 10:11:11
codigo_tipo_operacionstringrequiredExample: 0101
codigo_tipo_documentostringrequiredExample: 01
codigo_tipo_monedastringrequiredExample: PEN
fecha_de_vencimientodaterequiredExample: 2023-09-21
numero_orden_de_comprastringExample: 0045467898
datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstringExample: 6
numero_documentostringExample: 10414711225
apellidos_y_nombres_o_razon_socialstringExample: EMPRESA XYZ S.A.
codigo_paisstringExample: PE
ubigeostringExample: 150101
direccionstringExample: Av. 2 de Mayo
correo_electronicostringExample: demo@gmail.com
telefonostringExample: 427-1148
totales
object
required
total_exportacionfloatExample: 0
total_operaciones_gravadasfloatExample: 100
total_operaciones_inafectasfloatExample: 0
total_operaciones_exoneradasfloatExample: 0
total_operaciones_gratuitasfloatExample: 0
total_igvfloatExample: 18
total_impuestosfloatExample: 18
total_valorfloatExample: 100
total_ventafloatExample: 118
items
object[]
required
codigo_internostringExample: P0121
descripcionstringExample: Inca Kola 250 ml
codigo_producto_sunatstringExample: 51121703
unidad_de_medidastringExample: NIU
valor_unitariofloatExample: 50
codigo_tipo_preciostringExample: 01
precio_unitariofloatExample: 59
codigo_tipo_afectacion_igvstringExample: 10
total_base_igvfloatExample: 100
porcentaje_igvfloatExample: 18
total_igvfloatExample: 18
total_impuestosfloatExample: 18
total_valor_itemfloatExample: 100
total_itemfloatExample: 118
informacion_adicionalstringExample: Forma de pago:Efectivo|Caja: 1
Body
required
serie_documentostringrequiredExample: F001
numero_documentostringrequiredExample: #
fecha_de_emisiondaterequiredExample: 2023-09-21
hora_de_emisiontimerequiredExample: 10:11:11
codigo_tipo_operacionstringrequiredExample: 0101
codigo_tipo_documentostringrequiredExample: 01
codigo_tipo_monedastringrequiredExample: PEN
fecha_de_vencimientodaterequiredExample: 2023-09-21
numero_orden_de_comprastringExample: 0045467898
datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstringExample: 6
numero_documentostringExample: 10414711225
apellidos_y_nombres_o_razon_socialstringExample: EMPRESA XYZ S.A.
codigo_paisstringExample: PE
ubigeostringExample: 150101
direccionstringExample: Av. 2 de Mayo
correo_electronicostringExample: demo@gmail.com
telefonostringExample: 427-1148
totales
object
required
total_exportacionfloatExample: 0
total_operaciones_gravadasfloatExample: 100
total_operaciones_inafectasfloatExample: 0
total_operaciones_exoneradasfloatExample: 0
total_operaciones_gratuitasfloatExample: 0
total_igvfloatExample: 18
total_impuestosfloatExample: 18
total_valorfloatExample: 100
total_ventafloatExample: 118
items
object[]
required
codigo_internostringExample: P0121
descripcionstringExample: Inca Kola 250 ml
codigo_producto_sunatstringExample: 51121703
unidad_de_medidastringExample: NIU
valor_unitariofloatExample: 50
codigo_tipo_preciostringExample: 01
precio_unitariofloatExample: 59
codigo_tipo_afectacion_igvstringExample: 10
total_base_igvfloatExample: 100
porcentaje_igvfloatExample: 18
total_igvfloatExample: 18
total_impuestosfloatExample: 18
total_valor_itemfloatExample: 100
total_itemfloatExample: 118
informacion_adicionalstringExample: Forma de pago:Efectivo|Caja: 1
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successbooleanExample: true
data
object
required
numberstringExample: F001-26
filenamestringExample: 20302019010-01-F001-26
external_idstringExample: 46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
state_type_idstringExample: 05
state_type_descriptionstringExample: Aceptado
number_to_letterstringExample: Ciento dieciocho con 00/100
hashstringExample: jFDgOlcAShjMeA1TJzT08v+PPTw=
qrstringExample: iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVRDXEFRWtOsnuAAAAAElFTkSuQmCC
links
object
xmlstringExample: https://demo.pro5.fastura.app/downloads/document/xml/46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
pdfstringExample: https://demo.pro5.fastura.app/downloads/document/pdf/46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
cdrstringExample: https://demo.pro5.fastura.app/downloads/document/cdr/46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
response
object
required
descriptionstringExample: La Factura numero F001-26, ha sido aceptada
ResponseSamples component placeholder
- Schema
- Example (from schema)
Schema
successbooleanExample: true
data
object
required
numberstringExample: F001-26
filenamestringExample: 20302019010-01-F001-26
external_idstringExample: 46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
state_type_idstringExample: 05
state_type_descriptionstringExample: Aceptado
number_to_letterstringExample: Ciento dieciocho con 00/100
hashstringExample: jFDgOlcAShjMeA1TJzT08v+PPTw=
qrstringExample: iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVRDXEFRWtOsnuAAAAAElFTkSuQmCC
links
object
xmlstringExample: https://demo.pro5.fastura.app/downloads/document/xml/46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
pdfstringExample: https://demo.pro5.fastura.app/downloads/document/pdf/46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
cdrstringExample: https://demo.pro5.fastura.app/downloads/document/cdr/46c6ce9d-aaae-4b8d-8e94-a6f94c964b47
response
object
required
descriptionstringExample: La Factura numero F001-26, ha sido aceptada
ResponseSamples component placeholder