SendInvoice-TestSetId Impuesto INC
Endpoint
- Método: POST
- Ruta:
/api/ubl2.1/invoice - URL ejemplo:
{{BASE_URL}}/api/ubl2.1/invoice
Autenticación
- Tipo: Bearer Token
- Header:
Authorization: Bearer {{API_TOKEN}}
Headers
| Key | Value |
|---|---|
Content-Type | application/json |
Accept | application/json |
Body
{
"number": 990060197,
"customer": {
"address": "CLL 4 NRO 33-90",
"email": "gerencia@torresoftware.com",
"identification_number": "900166483",
"merchant_registration": "0000000-00",
"municipality_id": 149,
"name": "ALEXANDER OBANDO LONDOÑO",
"phone": "3103891693",
"type_document_identification_id": 3,
"type_liability_id": 117,
"type_organization_id": 2,
"type_regime_id": 2
},
"date": "2025-01-20",
"establishment_address": "Carrera 12 #4-07",
"establishment_email": "contacto@bandidos.co",
"establishment_id": "Bandidos",
"establishment_municipality_id": 832,
"establishment_phone": "3386992",
"invoice_lines": [
{
"base_quantity": "1",
"code": "SUSHI001",
"description": "[SUSHI001] Almuerzo Maki 18 pzas.",
"free_of_charge_indicator": false,
"invoiced_quantity": "1",
"line_extension_amount": "10000.0",
"price_amount": "10000.0",
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 0.0,
"percent": 0,
"taxable_amount": 10000.0
},
{
"percent": 8.0,
"tax_amount": 800.0,
"tax_id": 2,
"taxable_amount": 10000.0
}
],
"type_item_identification_id": 4,
"unit_measure_id": 70
}
],
"legal_monetary_totals": {
"line_extension_amount": 10000.0,
"payable_amount": 10800.0,
"tax_exclusive_amount": 10000.0,
"tax_inclusive_amount": 10800.0
},
"payment_forms": [
{
"duration_measure": 0,
"payment_due_date": "2025-01-20",
"payment_form_id": 1,
"payment_method_id": 1
}
],
"prefix": "SETP",
"resolution_number": "18760000001",
"send_customer_credentials": false,
"sendmail": false,
"sendmailtome": false,
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 0.0,
"percent": 0,
"taxable_amount": 10000.0
},
{
"percent": 8.0,
"tax_amount": 800.0,
"tax_id": 2,
"taxable_amount": 10000.0
}
],
"time": "10:51:46",
"type_document_id": 1
}
cURL
curl -X POST "{{BASE_URL}}/api/ubl2.1/invoice" \
-H "Authorization: Bearer {API_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"number": 990060197,
"customer": {
"address": "CLL 4 NRO 33-90",
"email": "gerencia@torresoftware.com",
"identification_number": "900166483",
"merchant_registration": "0000000-00",
"municipality_id": 149,
"name": "ALEXANDER OBANDO LONDOÑO",
"phone": "3103891693",
"type_document_identification_id": 3,
"type_liability_id": 117,
"type_organization_id": 2,
"type_regime_id": 2
},
"date": "2025-01-20",
"establishment_address": "Carrera 12 #4-07",
"establishment_email": "contacto@bandidos.co",
"establishment_id": "Bandidos",
"establishment_municipality_id": 832,
"establishment_phone": "3386992",
"invoice_lines": [
{
"base_quantity": "1",
"code": "SUSHI001",
"description": "[SUSHI001] Almuerzo Maki 18 pzas.",
"free_of_charge_indicator": false,
"invoiced_quantity": "1",
"line_extension_amount": "10000.0",
"price_amount": "10000.0",
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 0.0,
"percent": 0,
"taxable_amount": 10000.0
},
{
"percent": 8.0,
"tax_amount": 800.0,
"tax_id": 2,
"taxable_amount": 10000.0
}
],
"type_item_identification_id": 4,
"unit_measure_id": 70
}
],
"legal_monetary_totals": {
"line_extension_amount": 10000.0,
"payable_amount": 10800.0,
"tax_exclusive_amount": 10000.0,
"tax_inclusive_amount": 10800.0
},
"payment_forms": [
{
"duration_measure": 0,
"payment_due_date": "2025-01-20",
"payment_form_id": 1,
"payment_method_id": 1
}
],
"prefix": "SETP",
"resolution_number": "18760000001",
"send_customer_credentials": false,
"sendmail": false,
"sendmailtome": false,
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 0.0,
"percent": 0,
"taxable_amount": 10000.0
},
{
"percent": 8.0,
"tax_amount": 800.0,
"tax_id": 2,
"taxable_amount": 10000.0
}
],
"time": "10:51:46",
"type_document_id": 1
}'