NOTA CRÉDITO - FACTURA
POST/api/documents
Una nota de crédito es un documento legal que se utiliza en transacciones de compraventa donde interviene un descuento posterior a la emisión de la factura, una anulación total, un cobro de un gasto incurrido de más, devolución de bienes.
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:
FC01numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-05hora_de_emisiontime
Example:
10:11:11codigo_tipo_documentostringrequired
Example:
07codigo_tipo_notastring
Example:
01motivo_o_sustento_de_notastring
Example:
Error al emitir comprobantecodigo_tipo_monedastring
Example:
PENnumero_orden_de_comprastring
Example:
0045467898documento_afectado
object
external_idstring
Example:
a7d75ecc-061d-46f6-8ee4-2521a5bbec1ddatos_del_cliente_o_receptor
object
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
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[]
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
unidad_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:
FC01numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-05hora_de_emisiontime
Example:
10:11:11codigo_tipo_documentostringrequired
Example:
07codigo_tipo_notastring
Example:
01motivo_o_sustento_de_notastring
Example:
Error al emitir comprobantecodigo_tipo_monedastring
Example:
PENnumero_orden_de_comprastring
Example:
0045467898documento_afectado
object
external_idstring
Example:
a7d75ecc-061d-46f6-8ee4-2521a5bbec1ddatos_del_cliente_o_receptor
object
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
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[]
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
unidad_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:
FC01numero_documentostringrequired
Example:
#fecha_de_emisiondaterequired
Example:
2024-11-05hora_de_emisiontime
Example:
10:11:11codigo_tipo_documentostringrequired
Example:
07codigo_tipo_notastring
Example:
01motivo_o_sustento_de_notastring
Example:
Error al emitir comprobantecodigo_tipo_monedastring
Example:
PENnumero_orden_de_comprastring
Example:
0045467898documento_afectado
object
external_idstring
Example:
a7d75ecc-061d-46f6-8ee4-2521a5bbec1ddatos_del_cliente_o_receptor
object
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
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[]
codigo_internostring
Example:
P0121descripcionstring
Example:
Inca Kola 250 mlcodigo_producto_sunatstring
Example:
unidad_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
numberstring
Example:
FC01-3filenamestring
Example:
11111111111-07-FC01-3external_idstring
Example:
6269dbe8-9b32-4d43-b42f-81594a0a36cfstate_type_idstring
Example:
05state_type_descriptionstring
Example:
Aceptadonumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
53iYvXndao4sSUP8XKrA/2aSjYk=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCCidinteger
Example:
554print_ticketstring
Example:
https://empresa1.demo3pro6.ibu.pe/print/document/6269dbe8-9b32-4d43-b42f-81594a0a36cf/ticketlinks
object
xmlstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/6269dbe8-9b32-4d43-b42f-81594a0a36cfpdfstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/6269dbe8-9b32-4d43-b42f-81594a0a36cfcdrstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/6269dbe8-9b32-4d43-b42f-81594a0a36cfresponse
object
codestring
Example:
0descriptionstring
Example:
La Nota de Credito numero FC01-3, ha sido aceptadanotesarray
Example:
[]{
"success": true,
"data": {
"number": "FC01-3",
"filename": "11111111111-07-FC01-3",
"external_id": "6269dbe8-9b32-4d43-b42f-81594a0a36cf",
"state_type_id": "05",
"state_type_description": "Aceptado",
"number_to_letter": "Ciento dieciocho con 00/100",
"hash": "53iYvXndao4sSUP8XKrA/2aSjYk=",
"qr": "iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCC",
"id": 554,
"print_ticket": "https://empresa1.demo3pro6.ibu.pe/print/document/6269dbe8-9b32-4d43-b42f-81594a0a36cf/ticket"
},
"links": {
"xml": "https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/6269dbe8-9b32-4d43-b42f-81594a0a36cf",
"pdf": "https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/6269dbe8-9b32-4d43-b42f-81594a0a36cf",
"cdr": "https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/6269dbe8-9b32-4d43-b42f-81594a0a36cf"
},
"response": {
"code": "0",
"description": "La Nota de Credito numero FC01-3, ha sido aceptada",
"notes": []
}
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
truedata
object
numberstring
Example:
FC01-3filenamestring
Example:
11111111111-07-FC01-3external_idstring
Example:
6269dbe8-9b32-4d43-b42f-81594a0a36cfstate_type_idstring
Example:
05state_type_descriptionstring
Example:
Aceptadonumber_to_letterstring
Example:
Ciento dieciocho con 00/100hashstring
Example:
53iYvXndao4sSUP8XKrA/2aSjYk=qrstring
Example:
iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCCidinteger
Example:
554print_ticketstring
Example:
https://empresa1.demo3pro6.ibu.pe/print/document/6269dbe8-9b32-4d43-b42f-81594a0a36cf/ticketlinks
object
xmlstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/6269dbe8-9b32-4d43-b42f-81594a0a36cfpdfstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/6269dbe8-9b32-4d43-b42f-81594a0a36cfcdrstring
Example:
https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/6269dbe8-9b32-4d43-b42f-81594a0a36cfresponse
object
codestring
Example:
0descriptionstring
Example:
La Nota de Credito numero FC01-3, ha sido aceptadanotesarray
Example:
[]<root>
<success>true</success>
<data>
<number>FC01-3</number>
<filename>11111111111-07-FC01-3</filename>
<external_id>6269dbe8-9b32-4d43-b42f-81594a0a36cf</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>53iYvXndao4sSUP8XKrA/2aSjYk=</hash>
<qr>iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4AQCbgGR/Af///wAAAMPNxEJsyosTAAAAAElFTkSuQmCC</qr>
<id>554</id>
<print_ticket>https://empresa1.demo3pro6.ibu.pe/print/document/6269dbe8-9b32-4d43-b42f-81594a0a36cf/ticket</print_ticket>
</data>
<links>
<xml>https://empresa1.demo3pro6.ibu.pe/downloads/document/xml/6269dbe8-9b32-4d43-b42f-81594a0a36cf</xml>
<pdf>https://empresa1.demo3pro6.ibu.pe/downloads/document/pdf/6269dbe8-9b32-4d43-b42f-81594a0a36cf</pdf>
<cdr>https://empresa1.demo3pro6.ibu.pe/downloads/document/cdr/6269dbe8-9b32-4d43-b42f-81594a0a36cf</cdr>
</links>
<response>
<code>0</code>
<description>La Nota de Credito numero FC01-3, ha sido aceptada</description>
</response>
</root>
Invalid input
Validation exception