BOLETA GRAVADAS
POST/api/documents
Venta gravada de productos o servicios en cualquiera de las etapas de producción y distribución. Productos o servicios afectos al IGV (Impuesto General a la Venta).
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:
B001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-04hora_de_emisiontimerequired
Example:
10:11:11codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
03codigo_tipo_monedastringrequired
Example:
PENfecha_de_vencimientodaterequired
Example:
2018-10-09numero_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:
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:
118Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
B001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-04hora_de_emisiontimerequired
Example:
10:11:11codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
03codigo_tipo_monedastringrequired
Example:
PENfecha_de_vencimientodaterequired
Example:
2018-10-09numero_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:
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:
118Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
B001numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-04hora_de_emisiontimerequired
Example:
10:11:11codigo_tipo_operacionstringrequired
Example:
0101codigo_tipo_documentostringrequired
Example:
03codigo_tipo_monedastringrequired
Example:
PENfecha_de_vencimientodaterequired
Example:
2018-10-09numero_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:
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:
118Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
truedata
object
required
numberstring
Example:
B001-1filenamestring
Example:
20415963255-03-B001-1external_idstring
Example:
346135d8-b730-48e2-81f4-d00c9690f4canumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
T3/grz45f3rK5xz7/PtlrNuhlCo=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEaUlEQVR4nO2d23LbMAwF607//5fTt9QTswhIHMvZ8e5jJYtszwCicOvt4+Pjl5D5/eoNyBQlxKOEeJQQjxLiUUI8SohHCfEoIR4lxKOEeJQQzdfVqdTI7308Zf+c3lLMh/R5QQz8iRTpgElCdRkt3ez4MRD5Hb+miFeJQQz8sc6SOTmuvUeK8sk4bZPlohHiXEo4R4MsMs40wiO3X/0e5akx7gVFdUjVaIRwnxPHGAV+SBF5TNHzi0ZmgplWqu0QrxKCGel1VzSwqtEI8S4lFCPEqIRwnxKCEeJcSjhHiUEI8S4lFCPEqIRwnx/AV6e7I2Yyb8aQAAAABJRU5ErkJggg==links
object
xmlstring
Example:
http://demo26.multifacturalonew.oo:8084/downloads/document/xml/346135d8-b730-48e2-81f4-d00c9690f4capdfstring
Example:
http://demo26.multifacturalonew.oo:8084/downloads/document/pdf/346135d8-b730-48e2-81f4-d00c9690f4cacdrstring
Example:
responsearray
Example:
[]{
"success": true,
"data": {
"number": "B001-1",
"filename": "20415963255-03-B001-1",
"external_id": "346135d8-b730-48e2-81f4-d00c9690f4ca",
"number_to_letter": "Ciento dieciocho con 00/100",
"hash": "T3/grz45f3rK5xz7/PtlrNuhlCo=",
"qr": "iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEaUlEQVR4nO2d23LbMAwF607//5fTt9QTswhIHMvZ8e5jJYtszwCicOvt4+Pjl5D5/eoNyBQlxKOEeJQQjxLiUUI8SohHCfEoIR4lxKOEeJQQzdfVqdTI7308Zf+c3lLMh/R5QQz8iRTpgElCdRkt3ez4MRD5Hb+miFeJQQz8sc6SOTmuvUeK8sk4bZPlohHiXEo4R4MsMs40wiO3X/0e5akx7gVFdUjVaIRwnxPHGAV+SBF5TNHzi0ZmgplWqu0QrxKCGel1VzSwqtEI8S4lFCPEqIRwnxKCEeJcSjhHiUEI8S4lFCPEqIRwnx/AV6e7I2Yyb8aQAAAABJRU5ErkJggg=="
},
"links": {
"xml": "http://demo26.multifacturalonew.oo:8084/downloads/document/xml/346135d8-b730-48e2-81f4-d00c9690f4ca",
"pdf": "http://demo26.multifacturalonew.oo:8084/downloads/document/pdf/346135d8-b730-48e2-81f4-d00c9690f4ca",
"cdr": ""
},
"response": []
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
truedata
object
required
numberstring
Example:
B001-1filenamestring
Example:
20415963255-03-B001-1external_idstring
Example:
346135d8-b730-48e2-81f4-d00c9690f4canumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
T3/grz45f3rK5xz7/PtlrNuhlCo=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEaUlEQVR4nO2d23LbMAwF607//5fTt9QTswhIHMvZ8e5jJYtszwCicOvt4+Pjl5D5/eoNyBQlxKOEeJQQjxLiUUI8SohHCfEoIR4lxKOEeJQQzdfVqdTI7308Zf+c3lLMh/R5QQz8iRTpgElCdRkt3ez4MRD5Hb+miFeJQQz8sc6SOTmuvUeK8sk4bZPlohHiXEo4R4MsMs40wiO3X/0e5akx7gVFdUjVaIRwnxPHGAV+SBF5TNHzi0ZmgplWqu0QrxKCGel1VzSwqtEI8S4lFCPEqIRwnxKCEeJcSjhHiUEI8S4lFCPEqIRwnx/AV6e7I2Yyb8aQAAAABJRU5ErkJggg==links
object
xmlstring
Example:
http://demo26.multifacturalonew.oo:8084/downloads/document/xml/346135d8-b730-48e2-81f4-d00c9690f4capdfstring
Example:
http://demo26.multifacturalonew.oo:8084/downloads/document/pdf/346135d8-b730-48e2-81f4-d00c9690f4cacdrstring
Example:
responsearray
Example:
[]<root>
<success>true</success>
<data>
<number>B001-1</number>
<filename>20415963255-03-B001-1</filename>
<external_id>346135d8-b730-48e2-81f4-d00c9690f4ca</external_id>
<number_to_letter>Ciento dieciocho con 00/100</number_to_letter>
<hash>T3/grz45f3rK5xz7/PtlrNuhlCo=</hash>
<qr>iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEaUlEQVR4nO2d23LbMAwF607//5fTt9QTswhIHMvZ8e5jJYtszwCicOvt4+Pjl5D5/eoNyBQlxKOEeJQQjxLiUUI8SohHCfEoIR4lxKOEeJQQzdfVqdTI7308Zf+c3lLMh/R5QQz8iRTpgElCdRkt3ez4MRD5Hb+miFeJQQz8sc6SOTmuvUeK8sk4bZPlohHiXEo4R4MsMs40wiO3X/0e5akx7gVFdUjVaIRwnxPHGAV+SBF5TNHzi0ZmgplWqu0QrxKCGel1VzSwqtEI8S4lFCPEqIRwnxKCEeJcSjhHiUEI8S4lFCPEqIRwnx/AV6e7I2Yyb8aQAAAABJRU5ErkJggg==</qr>
</data>
<links>
<xml>http://demo26.multifacturalonew.oo:8084/downloads/document/xml/346135d8-b730-48e2-81f4-d00c9690f4ca</xml>
<pdf>http://demo26.multifacturalonew.oo:8084/downloads/document/pdf/346135d8-b730-48e2-81f4-d00c9690f4ca</pdf>
<cdr></cdr>
</links>
</root>
Invalid input
Validation exception