Notas de débito
Lista las notas de débito emitidas
get/sales/debit-notes
Request
- Base URL: https://api.datil.com (the document declares no server; this is the origin it was published from)
- URL: https://api.datil.com/sales/debit-notes
- Auth: none declared
Query parameters
fromstring
Fecha inicial
tostring
Fecha final
tax_clearance_statusstring
Estados de autorización tributaria separados por coma: cleared, rejected, signed, draft o processing
statusstring
Estados del documento separados por coma: active,processing,void,rejected
Response
OK
Example response
{
"object": "list",
"data": [
{
"id": "81wxc0qk5cgz4a7z3550a3art3",
"number": "F001-1",
"currency": {
"code": "PEN",
"name": "Soles Peruanos",
"symbol": "S/."
},
"country": {
"code": "PE",
"name": "Perú"
},
"type": "pe/sales-debit-note",
"tax_clearance": {
"void_requests": [
{
"id": "81wxc0qk5cgz4a7z3550a3art3",
"type": "pe/void-request",
"series": "RA-20210315",
"sequence": 1,
"number": "RA-20210315-3",
"tax_clearance": {
"status": "cleared",
"status_description": "ACEPTADO",
"status_code": "0",
"ticket": "1234567890",
"date": "1791394186",
"message": "El documento ha sido aceptado.",
"ack_xml": "<xml></xml>",
"qr_data": "20602224886|6|F002|F002-29|1800.00|11800.00|02/10/2020|6|20877294591|",
"xml": "https://api.datil.com/documents/1234/xml",
"pdf": "https://api.datil.com/p/1234",
"warnings": [
{
"status_code": "0000",
"message": "Documento de pruebas"
}
]
}
}
],
"status": "cleared",
"status_description": "ACEPTADO",
"status_code": "0",
"ticket": "1234567890",
"date": "1791394186",
"message": "El documento ha sido aceptado.",
"ack_xml": "<xml></xml>",
"qr_data": "20602224886|6|F002|F002-29|1800.00|11800.00|02/10/2020|6|20877294591|",
"xml": "https://api.datil.com/documents/1234/xml",
"pdf": "https://api.datil.com/p/1234",
"warnings": [
{
"status_code": "0000",
"message": "Documento de pruebas"
}
]
},
"series": "F001",
"sequence": 1,
"customer_legal_name": "Jose Mario",
"customer_tax_id": "20601595665",
"customer_tax_id_type": {
"type": "pe-ruc",
"code": "6",
"name": "RUC"
},
"customer_email": "prueba@prueba.com",
"customer_address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": {
"code": "PE",
"name": "Perú"
}
},
"vendor_legal_name": "Jose Mario",
"vendor_commercial_name": "Jose Mario",
"vendor_tax_id": "20601595665",
"vendor_tax_id_type": {
"type": "pe-ruc",
"code": "6",
"name": "RUC"
},
"vendor_address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": {
"code": "PE",
"name": "Perú"
}
},
"line_items": [
{
"tax": 18,
"tax_included_unit_price": 118,
"unit_price": 100,
"quantity": 1,
"subtotal": 100,
"subtotal_without_discount": 100,
"tax_lines": [
{
"exemption_reason_code": "10",
"taxable_amount": 18,
"amount": 18,
"tax_rate": {
"type": "pe-igv",
"name": "IGV",
"category-code": "VAT",
"code": "1000",
"percentage": 18
}
}
],
"sku": "A001",
"item_classification_code": "1234",
"tariff_heading": "1234",
"description": "Servicio ABC",
"price_type_code": "01",
"unit_of_measurement": "KG",
"unit_code": "1",
"custom_fields": [
{
"name": "Cedula del Pasajero",
"value": "1234556",
"code": "3001"
}
]
}
],
"tax_lines": [
{
"exemption_reason_code": "10",
"taxable_amount": 18,
"amount": 18,
"tax_rate": {
"type": "pe-igv",
"name": "IGV",
"category-code": "VAT",
"code": "1000",
"percentage": 18
}
}
],
"subtotal": 100,
"tax": 18,
"total": 118,
"total_in_words": "Ciento dieciocho soles.",
"note": "Gracias por tu compra.",
"debit_reason_code": "01",
"debit_reason_note": "Devolución del producto.",
"debit_reason_description": "Devolución del producto.",
"debited_document_type": "01",
"debited_document_number": "F001-2",
"void_requests": [
{
"id": "81wxc0qk5cgz4a7z3550a3art3",
"issue_date": "2026-10-07T17:29:46Z",
"series": "F001",
"number": "FC01-1",
"currency": {
"code": "PEN",
"name": "Soles Peruanos",
"symbol": "S/."
},
"country": {
"code": "PE",
"name": "Perú"
},
"type": "pe/sales-debit-note",
"customer_legal_name": "Jose Mario",
"customer_tax_id": "20601595665",
"customer_tax_id_type": {
"type": "pe-ruc",
"code": "6",
"name": "RUC"
},
"customer_email": "prueba@prueba.com",
"customer_address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": {
"code": "PE",
"name": "Perú"
}
},
"vendor_legal_name": "Jose Mario",
"vendor_commercial_name": "Jose Mario",
"vendor_tax_id": "20601595665",
"vendor_tax_id_type": {
"type": "pe-ruc",
"code": "6",
"name": "RUC"
},
"vendor_address": {
"line_1": "Calle A",
"locality": "Lima",
"administrative_district_level_1": "Miraflores",
"administrative_district_level_2": "Lima",
"city": "Lima",
"province": "Lima",
"tax_code": "0000",
"country": {
"code": "PE",
"name": "Perú"
}
},
"tax_clearance": {
"void_requests": [
{
"id": "81wxc0qk5cgz4a7z3550a3art3",
"type": "pe/void-request",
"series": "RA-20210315",
"sequence": 1,
"number": "RA-20210315-3",
"tax_clearance": {
"status": "cleared",
"status_description": "ACEPTADO",
"status_code": "0",
"ticket": "1234567890",
"date": "1791394186",
"message": "El documento ha sido aceptado.",
"ack_xml": "<xml></xml>",
"qr_data": "20602224886|6|F002|F002-29|1800.00|11800.00|02/10/2020|6|20877294591|",
"xml": "https://api.datil.com/documents/1234/xml",
"pdf": "https://api.datil.com/p/1234",
"warnings": [
{
"status_code": "0000",
"message": "Documento de pruebas"
}
]
}
}
],
"status": "cleared",
"status_description": "ACEPTADO",
"status_code": "0",
"ticket": "1234567890",
"date": "1791394186",
"message": "El documento ha sido aceptado.",
"ack_xml": "<xml></xml>",
"qr_data": "20602224886|6|F002|F002-29|1800.00|11800.00|02/10/2020|6|20877294591|",
"xml": "https://api.datil.com/documents/1234/xml",
"pdf": "https://api.datil.com/p/1234",
"warnings": [
{
"status_code": "0000",
"message": "Documento de pruebas"
}
]
},
"voided_documents": [
{
"number": "FC01-1",
"series": "FC01",
"document_type": "01",
"sequence": 1,
"void_reason": "Anulación por error en datos del comprador."
}
]
}
],
"custom_fields": [
{
"name": "Cedula del Pasajero",
"value": "1234556",
"code": "3001"
}
],
"notes": [
{
"text": "Documento tributario",
"code": "2008"
}
]
}
],
"count": 1,
"limit": 25,
"total": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.