Impuesto Bolsa
ENVIO DE FACTURA CON IMPUESTO A LA BOLSA
-
Aplica la misma documentacion que el PRIMER ENVIO DE FACTURA de la seccion 02 - PRIMEROS ENVIOS.
-
Utilice este ejemplo cuando requiera incluir en el XML de la factura electronica el impuesto a la bolsa o INCBP.
Método: POST
URL: http://apidian2024.oo/api/ubl2.1/eqdoc
Autenticación
- Tipo: Bearer Token
- Header:
Authorization: Bearer <TOKEN>
Headers
| Key | Value |
|---|---|
Content-Type | application/json |
Accept | application/json |
Body
{
"number": 51,
"type_document_id": 15,
"date": "2024-07-02",
"time": "04:08:12",
"postal_zone_code": "630003",
"resolution_number": "18760000001",
"prefix": "EPOS",
"notes": "ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA",
"sendmail": true,
"sendmailtome": true,
"foot_note": "PRUEBA DE TEXTO LIBRE QUE DEBE POSICIONARSE EN EL PIE DE PAGINA DE LA REPRESENTACION GRAFICA DE LA FACTURA ELECTRONICA VALIDACION PREVIA DIAN",
"software_manufacturer": {
"name": "ALEXANDER OBANDO LONDONO",
"business_name": "TORRE SOFTWARE",
"software_name": "BABEL"
},
"buyer_benefits": {
"code": "89008003",
"name": "INVERSIONES DAVAL SAS",
"points": "100"
},
"cash_information": {
"plate_number": "DF-000-12345",
"location": "HOTEL OVERLOOK RECEPCION",
"cashier": "JACK TORRANCE",
"cash_type": "CAJA PRINCIPAL",
"sales_code": "EPOS1",
"subtotal": "1000000.00"
},
"customer": {
"identification_number": 89008003,
"dv": 2,
"name": "INVERSIONES DAVAL SAS",
"phone": "3103891693",
"address": "CLL 4 NRO 33-90",
"email": "alexanderobandolondono@gmail.com",
"merchant_registration": "0000000-00",
"type_document_identification_id": 6,
"type_organization_id": 1,
"type_liability_id": 7,
"municipality_id": 822,
"type_regime_id": 1
},
"payment_form": {
"payment_form_id": 1,
"payment_method_id": 30,
"payment_due_date": "2024-07-02",
"duration_measure": "0"
},
"legal_monetary_totals": {
"line_extension_amount": "840336.13",
"tax_exclusive_amount": "840336.13",
"tax_inclusive_amount": "1000500.00",
"allowance_total_amount": "0.00",
"charge_total_amount": "0.00",
"payable_amount": "1000500.00"
},
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "159663.86",
"percent": "19",
"taxable_amount": "840336.13"
},
{
"tax_id": 10,
"unit_measure_id": "70",
"tax_amount": "500.00",
"percent": "0",
"taxable_amount": "500.00",
"per_unit_amount": "50.00",
"base_unit_measure": "1.00"
}
],
"invoice_lines": [
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "840336.13",
"free_of_charge_indicator": false,
"allowance_charges": [
{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "1000000.00"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "159663.86",
"taxable_amount": "840336.13",
"percent": "19.00"
}
],
"description": "COMISION POR SERVICIOS",
"code": "COMISION",
"type_item_identification_id": 4,
"price_amount": "840336.13",
"base_quantity": "1"
},
{
"unit_measure_id": "70",
"invoiced_quantity": "10",
"line_extension_amount": "0.00",
"reference_price_id": 3,
"free_of_charge_indicator": true,
"allowance_charges": [
{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "500.00"
}
],
"tax_totals": [
{
"tax_id": "10",
"unit_measure_id": "70",
"tax_amount": "500.00",
"taxable_amount": "0.00",
"percent": "0.00",
"per_unit_amount": "50.00",
"base_unit_measure": "1.00"
}
],
"description": "INCBP IMPUESTO NACIONAL AL CONSUMO DE BOLSAS PLASTICAS",
"code": "BOLSA",
"type_item_identification_id": 4,
"price_amount": "50.00",
"base_quantity": "1"
}
]
}
Ejemplo cURL
curl -X POST "http://apidian2024.oo/api/ubl2.1/eqdoc" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data-raw '{
"number": 51,
"type_document_id": 15,
"date": "2024-07-02",
"time": "04:08:12",
"postal_zone_code": "630003",
"resolution_number": "18760000001",
"prefix": "EPOS",
"notes": "ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA, ESTA ES UNA NOTA DE PRUEBA",
"sendmail": true,
"sendmailtome": true,
"foot_note": "PRUEBA DE TEXTO LIBRE QUE DEBE POSICIONARSE EN EL PIE DE PAGINA DE LA REPRESENTACION GRAFICA DE LA FACTURA ELECTRONICA VALIDACION PREVIA DIAN",
"software_manufacturer":{
"name": "ALEXANDER OBANDO LONDONO",
"business_name": "TORRE SOFTWARE",
"software_name": "BABEL"
},
"buyer_benefits":{
"code": "89008003",
"name": "INVERSIONES DAVAL SAS",
"points": "100"
},
"cash_information":{
"plate_number": "DF-000-12345",
"location": "HOTEL OVERLOOK RECEPCION",
"cashier": "JACK TORRANCE",
"cash_type": "CAJA PRINCIPAL",
"sales_code": "EPOS1",
"subtotal": "1000000.00"
},
"customer": {
"identification_number": 89008003,
"dv": 2,
"name": "INVERSIONES DAVAL SAS",
"phone": "3103891693",
"address": "CLL 4 NRO 33-90",
"email": "alexanderobandolondono@gmail.com",
"merchant_registration": "0000000-00",
"type_document_identification_id": 6,
"type_organization_id": 1,
"type_liability_id": 7,
"municipality_id": 822,
"type_regime_id": 1
},
"payment_form": {
"payment_form_id": 1,
"payment_method_id": 30,
"payment_due_date": "2024-07-02",
"duration_measure": "0"
},
"legal_monetary_totals": {
"line_extension_amount": "840336.13",
"tax_exclusive_amount": "840336.13",
"tax_inclusive_amount": "1000500.00",
"allowance_total_amount": "0.00",
"charge_total_amount": "0.00",
"payable_amount": "1000500.00"
},
"tax_totals":
[
{
"tax_id": 1,
"tax_amount": "159663.86",
"percent": "19",
"taxable_amount": "840336.13"
},
{
"tax_id": 10,
"unit_measure_id": "70",
"tax_amount": "500.00",
"percent": "0",
"taxable_amount": "500.00",
"per_unit_amount": "50.00",
"base_unit_measure": "1.00"
}
],
"invoice_lines":
[
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "840336.13",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "1000000.00"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "159663.86",
"taxable_amount": "840336.13",
"percent": "19.00"
}
],
"description": "COMISION POR SERVICIOS",
"code": "COMISION",
"type_item_identification_id": 4,
"price_amount": "840336.13",
"base_quantity": "1"
},
{
"unit_measure_id": "70",
"invoiced_quantity": "10",
"line_extension_amount": "0.00",
"reference_price_id": 3,
"free_of_charge_indicator": true,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "500.00"
}
],
"tax_totals": [
{
"tax_id": "10",
"unit_measure_id": "70",
"tax_amount": "500.00",
"taxable_amount": "0.00",
"percent": "0.00",
"per_unit_amount": "50.00",
"base_unit_measure": "1.00"
}
],
"description": "INCBP IMPUESTO NACIONAL AL CONSUMO DE BOLSAS PLASTICAS",
"code": "BOLSA",
"type_item_identification_id": 4,
"price_amount": "50.00",
"base_quantity": "1"
}
]
}'