BOLETA EXPORTACIÓN
POST/api/documents
La boleta de exportación es un documento que registra la exportación de productos o servicios desde un país a otro, sin estar directamente relacionada con impuestos.
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:
B001
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:
03
codigo_tipo_monedastringrequired
Example:
PEN
fecha_de_vencimientodaterequired
Example:
2019-09-03
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_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valorfloat
Example:
100
total_ventafloat
Example:
118
items
object[]
required
codigo_internostring
Example:
P0121
descripcionstring
Example:
Inca Kola 250 ml
codigo_producto_sunatstring
Example:
51121703
codigo_producto_gslstring
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
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
B001
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:
03
codigo_tipo_monedastringrequired
Example:
PEN
fecha_de_vencimientodaterequired
Example:
2019-09-03
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_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valorfloat
Example:
100
total_ventafloat
Example:
118
items
object[]
required
codigo_internostring
Example:
P0121
descripcionstring
Example:
Inca Kola 250 ml
codigo_producto_sunatstring
Example:
51121703
codigo_producto_gslstring
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
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
B001
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:
03
codigo_tipo_monedastringrequired
Example:
PEN
fecha_de_vencimientodaterequired
Example:
2019-09-03
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_igvfloat
Example:
18
total_impuestosfloat
Example:
18
total_valorfloat
Example:
100
total_ventafloat
Example:
118
items
object[]
required
codigo_internostring
Example:
P0121
descripcionstring
Example:
Inca Kola 250 ml
codigo_producto_sunatstring
Example:
51121703
codigo_producto_gslstring
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
Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
required
numberstring
Example:
B001-12
filenamestring
Example:
20302019010-03-B001-12
external_idstring
Example:
fa4d8a21-364b-4125-864c-506e1722007c
state_type_idstring
Example:
05
state_type_descriptionstring
Example:
Aceptado
number_to_letterstring
Example:
Ciento dieciocho con 00/100
hashstring
Example:
kp1jhEaeI8uvFE96/rH4/7v0JDM=
qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/fa4d8a21-364b-4125-864c-506e1722007c
pdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/fa4d8a21-364b-4125-864c-506e1722007c
cdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/fa4d8a21-364b-4125-864c-506e1722007c
response
object
required
codestring
Example:
0
descriptionstring
Example:
La Boleta numero B001-12, ha sido aceptada
notesarray
Example:
[]
{
"success": true,
"data": {
"number": "B001-12",
"filename": "20302019010-03-B001-12",
"external_id": "fa4d8a21-364b-4125-864c-506e1722007c",
"state_type_id": "05",
"state_type_description": "Aceptado",
"number_to_letter": "Ciento dieciocho con 00/100",
"hash": "kp1jhEaeI8uvFE96/rH4/7v0JDM=",
"qr": "iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"links": {
"xml": "https://demo.pro5.fastura.app/downloads/document/xml/fa4d8a21-364b-4125-864c-506e1722007c",
"pdf": "https://demo.pro5.fastura.app/downloads/document/pdf/fa4d8a21-364b-4125-864c-506e1722007c",
"cdr": "https://demo.pro5.fastura.app/downloads/document/cdr/fa4d8a21-364b-4125-864c-506e1722007c"
},
"response": {
"code": "0",
"description": "La Boleta numero B001-12, ha sido aceptada",
"notes": []
}
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
required
numberstring
Example:
B001-12
filenamestring
Example:
20302019010-03-B001-12
external_idstring
Example:
fa4d8a21-364b-4125-864c-506e1722007c
state_type_idstring
Example:
05
state_type_descriptionstring
Example:
Aceptado
number_to_letterstring
Example:
Ciento dieciocho con 00/100
hashstring
Example:
kp1jhEaeI8uvFE96/rH4/7v0JDM=
qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
links
object
xmlstring
Example:
https://demo.pro5.fastura.app/downloads/document/xml/fa4d8a21-364b-4125-864c-506e1722007c
pdfstring
Example:
https://demo.pro5.fastura.app/downloads/document/pdf/fa4d8a21-364b-4125-864c-506e1722007c
cdrstring
Example:
https://demo.pro5.fastura.app/downloads/document/cdr/fa4d8a21-364b-4125-864c-506e1722007c
response
object
required
codestring
Example:
0
descriptionstring
Example:
La Boleta numero B001-12, ha sido aceptada
notesarray
Example:
[]
<root>
<success>true</success>
<data>
<number>B001-12</number>
<filename>20302019010-03-B001-12</filename>
<external_id>fa4d8a21-364b-4125-864c-506e1722007c</external_id>
<state_type_id>05</state_type_id>
<state_type_description>Aceptado</state_type_description>
<number_to_letter>Ciento dieciocho con 00/100</number_to_letter>
<hash>kp1jhEaeI8uvFE96/rH4/7v0JDM=</hash>
<qr>iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</qr>
</data>
<links>
<xml>https://demo.pro5.fastura.app/downloads/document/xml/fa4d8a21-364b-4125-864c-506e1722007c</xml>
<pdf>https://demo.pro5.fastura.app/downloads/document/pdf/fa4d8a21-364b-4125-864c-506e1722007c</pdf>
<cdr>https://demo.pro5.fastura.app/downloads/document/cdr/fa4d8a21-364b-4125-864c-506e1722007c</cdr>
</links>
<response>
<code>0</code>
<description>La Boleta numero B001-12, ha sido aceptada</description>
</response>
</root>
Invalid input
Validation exception