NOTA DE CRÉDITO SIN EXTERNAL ID - FACTURA
POST/api/documents
Ejemplo:
- Método: POST
- URL: https://empresa1.demo3pro6.ibu.pe/api/documents
- TOKEN: HOHYgwd4atPalTxqi2IIspythpLAU7eP239oByfjk9VuveiOpfUTm4Yg0Szt
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
FC01
numero_documentostringrequired
Example:
#
fecha_de_emisiondaterequired
Example:
2024-11-05
hora_de_emisiontime
Example:
10:11:11
codigo_tipo_documentostringrequired
Example:
07
codigo_tipo_notastring
Example:
01
motivo_o_sustento_de_notastring
Example:
Error al emitir comprobante
codigo_tipo_monedastring
Example:
PEN
numero_orden_de_comprastring
Example:
0045467898
documento_afectado
object
serie_documentostring
Example:
F001
numero_documentostring
Example:
190
codigo_tipo_documentostring
Example:
01
datos_del_cliente_o_receptor
object
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
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[]
codigo_internostring
Example:
P0121
descripcionstring
Example:
Inca Kola 250 ml
codigo_producto_sunatstring
Example:
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
acciones
object
formato_pdfstring
Example:
a4
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
FC01
numero_documentostringrequired
Example:
#
fecha_de_emisiondaterequired
Example:
2024-11-05
hora_de_emisiontime
Example:
10:11:11
codigo_tipo_documentostringrequired
Example:
07
codigo_tipo_notastring
Example:
01
motivo_o_sustento_de_notastring
Example:
Error al emitir comprobante
codigo_tipo_monedastring
Example:
PEN
numero_orden_de_comprastring
Example:
0045467898
documento_afectado
object
serie_documentostring
Example:
F001
numero_documentostring
Example:
190
codigo_tipo_documentostring
Example:
01
datos_del_cliente_o_receptor
object
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
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[]
codigo_internostring
Example:
P0121
descripcionstring
Example:
Inca Kola 250 ml
codigo_producto_sunatstring
Example:
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
acciones
object
formato_pdfstring
Example:
a4
Body
required
- JSON A ENVIAR
Array [
]
serie_documentostringrequired
Example:
FC01
numero_documentostringrequired
Example:
#
fecha_de_emisiondaterequired
Example:
2024-11-05
hora_de_emisiontime
Example:
10:11:11
codigo_tipo_documentostringrequired
Example:
07
codigo_tipo_notastring
Example:
01
motivo_o_sustento_de_notastring
Example:
Error al emitir comprobante
codigo_tipo_monedastring
Example:
PEN
numero_orden_de_comprastring
Example:
0045467898
documento_afectado
object
serie_documentostring
Example:
F001
numero_documentostring
Example:
190
codigo_tipo_documentostring
Example:
01
datos_del_cliente_o_receptor
object
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
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[]
codigo_internostring
Example:
P0121
descripcionstring
Example:
Inca Kola 250 ml
codigo_producto_sunatstring
Example:
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
acciones
object
formato_pdfstring
Example:
a4
Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
numberstring
Example:
FC01-9
filenamestring
Example:
11111111111-07-FC01-9
external_idstring
Example:
a1dd8443-8c03-48f4-98f3-fb69fb5fe565
state_type_idstring
Example:
05
state_type_descriptionstring
Example:
Aceptado
number_to_letterstring
Example:
Ciento dieciocho con 00/100
hashstring
Example:
Qiyl7YgN/7ZxigWWQL+uf8198KI=
qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCC
idinteger
Example:
562
print_ticketstring
Example:
https://empresa1.demo3pro6.ibu.pe/print/document/a1dd8443-8c03-48f4-98f3-fb69fb5fe565/ticket
links
object
xmlstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/a1dd8443-8c03-48f4-98f3-fb69fb5fe565
pdfstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/a1dd8443-8c03-48f4-98f3-fb69fb5fe565
cdrstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/a1dd8443-8c03-48f4-98f3-fb69fb5fe565
response
object
codestring
Example:
0
descriptionstring
Example:
La Nota de Credito numero FC01-9, ha sido aceptada
notesarray
Example:
[]
{
"success": true,
"data": {
"number": "FC01-9",
"filename": "11111111111-07-FC01-9",
"external_id": "a1dd8443-8c03-48f4-98f3-fb69fb5fe565",
"state_type_id": "05",
"state_type_description": "Aceptado",
"number_to_letter": "Ciento dieciocho con 00/100",
"hash": "Qiyl7YgN/7ZxigWWQL+uf8198KI=",
"qr": "iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCC",
"id": 562,
"print_ticket": "https://empresa1.demo3pro6.ibu.pe/print/document/a1dd8443-8c03-48f4-98f3-fb69fb5fe565/ticket"
},
"links": {
"xml": "https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/a1dd8443-8c03-48f4-98f3-fb69fb5fe565",
"pdf": "https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/a1dd8443-8c03-48f4-98f3-fb69fb5fe565",
"cdr": "https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/a1dd8443-8c03-48f4-98f3-fb69fb5fe565"
},
"response": {
"code": "0",
"description": "La Nota de Credito numero FC01-9, ha sido aceptada",
"notes": []
}
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
data
object
numberstring
Example:
FC01-9
filenamestring
Example:
11111111111-07-FC01-9
external_idstring
Example:
a1dd8443-8c03-48f4-98f3-fb69fb5fe565
state_type_idstring
Example:
05
state_type_descriptionstring
Example:
Aceptado
number_to_letterstring
Example:
Ciento dieciocho con 00/100
hashstring
Example:
Qiyl7YgN/7ZxigWWQL+uf8198KI=
qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCC
idinteger
Example:
562
print_ticketstring
Example:
https://empresa1.demo3pro6.ibu.pe/print/document/a1dd8443-8c03-48f4-98f3-fb69fb5fe565/ticket
links
object
xmlstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/a1dd8443-8c03-48f4-98f3-fb69fb5fe565
pdfstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/a1dd8443-8c03-48f4-98f3-fb69fb5fe565
cdrstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/a1dd8443-8c03-48f4-98f3-fb69fb5fe565
response
object
codestring
Example:
0
descriptionstring
Example:
La Nota de Credito numero FC01-9, ha sido aceptada
notesarray
Example:
[]
<root>
<success>true</success>
<data>
<number>FC01-9</number>
<filename>11111111111-07-FC01-9</filename>
<external_id>a1dd8443-8c03-48f4-98f3-fb69fb5fe565</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>Qiyl7YgN/7ZxigWWQL+uf8198KI=</hash>
<qr>iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCC</qr>
<id>562</id>
<print_ticket>https://empresa1.demo3pro6.ibu.pe/print/document/a1dd8443-8c03-48f4-98f3-fb69fb5fe565/ticket</print_ticket>
</data>
<links>
<xml>https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/a1dd8443-8c03-48f4-98f3-fb69fb5fe565</xml>
<pdf>https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/a1dd8443-8c03-48f4-98f3-fb69fb5fe565</pdf>
<cdr>https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/a1dd8443-8c03-48f4-98f3-fb69fb5fe565</cdr>
</links>
<response>
<code>0</code>
<description>La Nota de Credito numero FC01-9, ha sido aceptada</description>
</response>
</root>
Invalid input
Validation exception