Skip to main content

Health Pago Moderador

Descripción

ENVIO DE FACTURA SECTOR SALUD

  • 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 para EL SECTOR SALUD de tipo SS-recaudo donde se informa el tercero responsable del recaudo

Endpoint

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

Autenticación

Bearer {{API_TOKEN}}

Headers

HeaderValor
Content-Typeapplication/json
Acceptapplication/json

Body

Tipo: json

{
"number": 990000103,
"type_document_id": 1,
"prefix": "SETP",
"resolution_number": "18760000001",
"customer": {
"identification_number": "900166483",
"name": "INVERSIONES DAVAL S A S",
"phone": "7685856785",
"address": "CLL 4 NRO 33-90",
"email": "inversiones@daval.com",
"merchant_registration": "000000",
"type_document_identification_id": 3,
"type_organization_id": 2,
"municipality_id_fact": 12667,
"type_regime_id": 2,
"type_liability_id": 117
},
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "238.1",
"percent": "5.00",
"taxable_amount": "4761.9047619047615"
}
],
"legal_monetary_totals": {
"line_extension_amount": "4761.9047619047615",
"tax_exclusive_amount": "4761.9047619047615",
"tax_inclusive_amount": "5000.004761904762",
"allowance_total_amount": "0.00",
"charge_total_amount": "0.00",
"payable_amount": "5000.004761904762"
},
"allowance_charges": [
{
"discount_id": 1,
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "4761.9047619047615"
}
],
"invoice_lines": [
{
"unit_measure_id": "70",
"invoiced_quantity": 1,
"line_extension_amount": "4761.9047619047615",
"notes": null,
"free_of_charge_indicator": false,
"allowance_charges": [
{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "4761.9047619047615"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "238.10",
"taxable_amount": "4761.9047619047615",
"percent": "5.00"
}
],
"description": "Arepa",
"code": "arp01",
"type_item_identification_id": 4,
"price_amount": "5000.004761904762",
"base_quantity": 1
}
],
"with_holding_tax_total": [],
"health_fields": {
"invoice_period_start_date": "2025-04-01",
"invoice_period_end_date": "2025-04-30",
"health_type_operation_id": 1,
"print_users_info_to_pdf": true,
"users_info":[
{
"provider_code": "AF-0000500-85-XX-002",
"health_type_document_identification_id": 1,
"identification_number": "A89008003",
"surname": "OBANDO",
"second_surname": "LONDOÑO",
"first_name": "ALEXANDER",
"middle_name": "ANDRES",
"health_type_user_id": 4,
"health_contracting_payment_method_id": 4,
"health_coverage_id": 10,
"autorization_numbers": "234456",
"mipres": null,
"mipres_delivery": null,
"contract_number": null,
"policy_number": null,
"co_payment": 0, // copago
"moderating_fee": "15000", // pago moderador
"recovery_fee": 0,
"shared_payment": 0
}
]
}
}

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": 990000103,
"type_document_id": 1,
"prefix": "SETP",
"resolution_number": "18760000001",
"customer": {
"identification_number": "900166483",
"name": "INVERSIONES DAVAL S A S",
"phone": "7685856785",
"address": "CLL 4 NRO 33-90",
"email": "inversiones@daval.com",
"merchant_registration": "000000",
"type_document_identification_id": 3,
"type_organization_id": 2,
"municipality_id_fact": 12667,
"type_regime_id": 2,
"type_liability_id": 117
},
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "238.1",
"percent": "5.00",
"taxable_amount": "4761.9047619047615"
}
],
"legal_monetary_totals": {
"line_extension_amount": "4761.9047619047615",
"tax_exclusive_amount": "4761.9047619047615",
"tax_inclusive_amount": "5000.004761904762",
"allowance_total_amount": "0.00",
"charge_total_amount": "0.00",
"payable_amount": "5000.004761904762"
},
"allowance_charges": [
{
"discount_id": 1,
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "4761.9047619047615"
}
],
"invoice_lines": [
{
"unit_measure_id": "70",
"invoiced_quantity": 1,
"line_extension_amount": "4761.9047619047615",
"notes": null,
"free_of_charge_indicator": false,
"allowance_charges": [
{
"charge_indicator": false,
"allowance_charge_reason": "DESCUENTO GENERAL",
"amount": "0.00",
"base_amount": "4761.9047619047615"
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": "238.10",
"taxable_amount": "4761.9047619047615",
"percent": "5.00"
}
],
"description": "Arepa",
"code": "arp01",
"type_item_identification_id": 4,
"price_amount": "5000.004761904762",
"base_quantity": 1
}
],
"with_holding_tax_total": [],
"health_fields": {
"invoice_period_start_date": "2025-04-01",
"invoice_period_end_date": "2025-04-30",
"health_type_operation_id": 1,
"print_users_info_to_pdf": true,
"users_info":[
{
"provider_code": "AF-0000500-85-XX-002",
"health_type_document_identification_id": 1,
"identification_number": "A89008003",
"surname": "OBANDO",
"second_surname": "LONDOÑO",
"first_name": "ALEXANDER",
"middle_name": "ANDRES",
"health_type_user_id": 4,
"health_contracting_payment_method_id": 4,
"health_coverage_id": 10,
"autorization_numbers": "234456",
"mipres": null,
"mipres_delivery": null,
"contract_number": null,
"policy_number": null,
"co_payment": 0, // copago
"moderating_fee": "15000", // pago moderador
"recovery_fee": 0,
"shared_payment": 0
}
]
}
}'

Probar endpoint

POST
Health Pago Moderador
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í.