Skip to main content

SendInvoice-TestSetId Excenta E IVA 0%

Descripción

ENVIO DE FACTURA CON ARTICULOS EXCENTOS E IVA 0

  • Aplica la misma documentacion que el PRIMER ENVIO DE FACTURA de la seccion 02 - PRIMEROS ENVIOS.

  • Este ejemplo ilustra como se debe utilizar la API para enviar una factura que tenga articulos excentos de IVA y articulos excluidos de IVA.

Endpoint

  • Método: POST
  • URL: {{BASE_URL}}/api/ubl2.1/invoice

Autenticación

Bearer {{API_TOKEN}}

Headers

HeaderValor

| Content-Type | application/json |

| Accept | application/json |

Body

Tipo: json

{
"number": 990000373,
"type_document_id": 1,
"date": "2021-08-17",
"time": "04:08:12",
"resolution_number": "18760000001",
"prefix": "SETP",
"sendmail": true,
"customer": {
"identification_number": 900166483,
"dv": 1,
"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,
"municipality_id": 822,
"type_regime_id": 1
},
"payment_form": {
"payment_form_id": 2,
"payment_method_id": 30,
"payment_due_date": "2021-09-17",
"duration_measure": "30"
},
"allowance_charges": [
{
"discount_id": 1,
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "1000000.00"
}
],
"legal_monetary_totals": {
"line_extension_amount": "1002400.00",
"tax_exclusive_amount": "2400.00",
"tax_inclusive_amount": "1002400.00",
"allowance_total_amount": "0.00",
"charge_total_amount": "0.00",
"payable_amount": "1002400.00"
},
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "2400.00",
"percent": "0.00"
}
],
"invoice_lines":
[
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "1000000.00",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "1000000.00"
}
],
"description": "COMISION POR SERVICIOS",
"code": "COMISION",
"type_item_identification_id": 4,
"price_amount": "1000000.00",
"base_quantity": "1"
},
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "2400.00",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "2400.00"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "2400.00",
"percent": "0.00"
}
],
"description": "CURUBA",
"code": "CURUBA",
"type_item_identification_id": 4,
"price_amount": "2400.00",
"base_quantity": "1"
}
]
}

Ejemplo cURL

curl --request POST \
--url "{{BASE_URL}}/api/ubl2.1/invoice" \
--header "Authorization: Bearer {{API_TOKEN}}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{
"number": 990000373,
"type_document_id": 1,
"date": "2021-08-17",
"time": "04:08:12",
"resolution_number": "18760000001",
"prefix": "SETP",
"sendmail": true,
"customer": {
"identification_number": 900166483,
"dv": 1,
"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,
"municipality_id": 822,
"type_regime_id": 1
},
"payment_form": {
"payment_form_id": 2,
"payment_method_id": 30,
"payment_due_date": "2021-09-17",
"duration_measure": "30"
},
"allowance_charges": [
{
"discount_id": 1,
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "1000000.00"
}
],
"legal_monetary_totals": {
"line_extension_amount": "1002400.00",
"tax_exclusive_amount": "2400.00",
"tax_inclusive_amount": "1002400.00",
"allowance_total_amount": "0.00",
"charge_total_amount": "0.00",
"payable_amount": "1002400.00"
},
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "2400.00",
"percent": "0.00"
}
],
"invoice_lines":
[
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "1000000.00",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "1000000.00"
}
],
"description": "COMISION POR SERVICIOS",
"code": "COMISION",
"type_item_identification_id": 4,
"price_amount": "1000000.00",
"base_quantity": "1"
},
{
"unit_measure_id": 70,
"invoiced_quantity": "1",
"line_extension_amount": "2400.00",
"free_of_charge_indicator": false,
"allowance_charges": [{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "2400.00"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "0.00",
"taxable_amount": "2400.00",
"percent": "0.00"
}
],
"description": "CURUBA",
"code": "CURUBA",
"type_item_identification_id": 4,
"price_amount": "2400.00",
"base_quantity": "1"
}
]
}'

Probar endpoint

POST
SendInvoice-TestSetId Excenta E IVA 0%
BASE URL
Se guarda localmente en tu navegador.
BEARER TOKEN
Se guarda solo en esta sesión/pestaña.
URL FINAL
/api/ubl2.1/invoice
BODY JSON
RESPUESTA
Envía la solicitud para ver la respuesta aquí.