FACTURA GRAVADA - IMPUESTO BOLSA PLÁSTICA
POST/api/documents
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:
F001
numero_documentostringrequired
Example:
#
fecha_de_emisiondaterequired
Example:
2024-11-04
hora_de_emisiontimerequired
Example:
10:11:11
codigo_tipo_operacionstringrequired
Example:
0101
codigo_tipo_documentostringrequired
Example:
01
codigo_tipo_monedastringrequired
Example:
PEN
fecha_de_vencimientodaterequired
Example:
2021-08-27
datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6
numero_documentostring
Example:
10414711225
apellidos_y_nombres_o_razon_socialstring
Example:
EMPRESA XYZ S.A.
codigo_paisstring
Example:
PE
ubigeostring
Example:
150101
direccionstring
Example:
Av. 2 de Mayo
correo_electronicostring
Example:
demo@gmail.com
telefonostring
Example:
427-1148
totales
object
required
total_exportacionfloat
Example:
0
total_operaciones_gravadasfloat
Example:
100
total_operaciones_inafectasfloat
Example:
0
total_operaciones_exoneradasfloat
Example:
0
total_operaciones_gratuitasfloat
Example:
0
total_impuestos_bolsa_plasticafloat
Example:
0.6
total_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valorfloat
Example:
100
total_ventafloat
Example:
118.6
items
object[]
required
codigo_internostring
Example:
P0015
descripcionstring
Example:
Pepsi 3 lt
codigo_producto_sunatstring
Example:
51121703
unidad_de_medidastring
Example:
NIU
cantidadint32
Example:
2
valor_unitariofloat
Example:
50
codigo_tipo_preciostring
Example:
01
precio_unitariofloat
Example:
59
codigo_tipo_afectacion_igvstring
Example:
10
total_base_igvfloat
Example:
100
porcentaje_igvfloat
Example:
18
total_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valor_itemfloat
Example:
100
total_itemfloat
Example:
118
informacion_adicionalstring
Example:
Forma de pago:Efectivo|Caja: 1
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
F001
numero_documentostringrequired
Example:
#
fecha_de_emisiondaterequired
Example:
2024-11-04
hora_de_emisiontimerequired
Example:
10:11:11
codigo_tipo_operacionstringrequired
Example:
0101
codigo_tipo_documentostringrequired
Example:
01
codigo_tipo_monedastringrequired
Example:
PEN
fecha_de_vencimientodaterequired
Example:
2021-08-27
datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6
numero_documentostring
Example:
10414711225
apellidos_y_nombres_o_razon_socialstring
Example:
EMPRESA XYZ S.A.
codigo_paisstring
Example:
PE
ubigeostring
Example:
150101
direccionstring
Example:
Av. 2 de Mayo
correo_electronicostring
Example:
demo@gmail.com
telefonostring
Example:
427-1148
totales
object
required
total_exportacionfloat
Example:
0
total_operaciones_gravadasfloat
Example:
100
total_operaciones_inafectasfloat
Example:
0
total_operaciones_exoneradasfloat
Example:
0
total_operaciones_gratuitasfloat
Example:
0
total_impuestos_bolsa_plasticafloat
Example:
0.6
total_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valorfloat
Example:
100
total_ventafloat
Example:
118.6
items
object[]
required
codigo_internostring
Example:
P0015
descripcionstring
Example:
Pepsi 3 lt
codigo_producto_sunatstring
Example:
51121703
unidad_de_medidastring
Example:
NIU
cantidadint32
Example:
2
valor_unitariofloat
Example:
50
codigo_tipo_preciostring
Example:
01
precio_unitariofloat
Example:
59
codigo_tipo_afectacion_igvstring
Example:
10
total_base_igvfloat
Example:
100
porcentaje_igvfloat
Example:
18
total_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valor_itemfloat
Example:
100
total_itemfloat
Example:
118
informacion_adicionalstring
Example:
Forma de pago:Efectivo|Caja: 1
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
F001
numero_documentostringrequired
Example:
#
fecha_de_emisiondaterequired
Example:
2024-11-04
hora_de_emisiontimerequired
Example:
10:11:11
codigo_tipo_operacionstringrequired
Example:
0101
codigo_tipo_documentostringrequired
Example:
01
codigo_tipo_monedastringrequired
Example:
PEN
fecha_de_vencimientodaterequired
Example:
2021-08-27
datos_del_cliente_o_receptor
object
required
codigo_tipo_documento_identidadstring
Example:
6
numero_documentostring
Example:
10414711225
apellidos_y_nombres_o_razon_socialstring
Example:
EMPRESA XYZ S.A.
codigo_paisstring
Example:
PE
ubigeostring
Example:
150101
direccionstring
Example:
Av. 2 de Mayo
correo_electronicostring
Example:
demo@gmail.com
telefonostring
Example:
427-1148
totales
object
required
total_exportacionfloat
Example:
0
total_operaciones_gravadasfloat
Example:
100
total_operaciones_inafectasfloat
Example:
0
total_operaciones_exoneradasfloat
Example:
0
total_operaciones_gratuitasfloat
Example:
0
total_impuestos_bolsa_plasticafloat
Example:
0.6
total_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valorfloat
Example:
100
total_ventafloat
Example:
118.6
items
object[]
required
codigo_internostring
Example:
P0015
descripcionstring
Example:
Pepsi 3 lt
codigo_producto_sunatstring
Example:
51121703
unidad_de_medidastring
Example:
NIU
cantidadint32
Example:
2
valor_unitariofloat
Example:
50
codigo_tipo_preciostring
Example:
01
precio_unitariofloat
Example:
59
codigo_tipo_afectacion_igvstring
Example:
10
total_base_igvfloat
Example:
100
porcentaje_igvfloat
Example:
18
total_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valor_itemfloat
Example:
100
total_itemfloat
Example:
118
informacion_adicionalstring
Example:
Forma de pago:Efectivo|Caja: 1
Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
required
numberstring
Example:
F001-24
filenamestring
Example:
20302019010-01-F001-24
external_idstring
Example:
b48d699f-8be1-4fef-9871-3cea83badc45
state_type_idstring
Example:
05
state_type_descriptionstring
Example:
Aceptado
number_to_letterstring
Example:
Ciento dieciocho con 00/100
hashstring
Example:
u7Y6uERK3Lwt8CcACbEVCR5Qo/0=
qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
idinteger
Example:
318
links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/b48d699f-8be1-4fef-9871-3cea83badc45
pdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/b48d699f-8be1-4fef-9871-3cea83badc45
cdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/b48d699f-8be1-4fef-9871-3cea83badc45
response
object
codestring
Example:
0
descriptionstring
Example:
La Factura numero F001-24, ha sido aceptada
notesstring[]
ResponseSamples component placeholder
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
required
numberstring
Example:
F001-24
filenamestring
Example:
20302019010-01-F001-24
external_idstring
Example:
b48d699f-8be1-4fef-9871-3cea83badc45
state_type_idstring
Example:
05
state_type_descriptionstring
Example:
Aceptado
number_to_letterstring
Example:
Ciento dieciocho con 00/100
hashstring
Example:
u7Y6uERK3Lwt8CcACbEVCR5Qo/0=
qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
idinteger
Example:
318
links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/b48d699f-8be1-4fef-9871-3cea83badc45
pdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/b48d699f-8be1-4fef-9871-3cea83badc45
cdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/b48d699f-8be1-4fef-9871-3cea83badc45
response
object
codestring
Example:
0
descriptionstring
Example:
La Factura numero F001-24, ha sido aceptada
notesstring[]
ResponseSamples component placeholder
Invalid input
Validation exception