Configurar resolución de Factura
Endpoint
- Método: PUT
- Ruta:
/api/ubl2.1/config/resolution - URL ejemplo:
{{BASE_URL}}/api/ubl2.1/config/resolution
Descripción
Json que permite generar una resolución de Factura Electrónica
{
"type_document_id": 1,
"prefix": "SETP", // No debe contener números
"resolution": "18760000001",
"resolution_date": "2019-01-19",
"technical_key": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"from": 990000000,
"to": 995000000,
"generated_to_date": 0,
"date_from": "2019-01-19",
"date_to": "2030-01-19"
}
Headers
| Key | Value |
|---|---|
Content-Type | application/json |
accept | application/json |
Body
{
"type_document_id": 1,
"prefix": "SETP",
"resolution": "18760000001",
"resolution_date": "2019-01-19",
"technical_key": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"from": 990000000,
"to": 995000000,
"generated_to_date": 0,
"date_from": "2019-01-19",
"date_to": "2030-01-19"
}
cURL
curl -X PUT "{{{BASE_URL}}}/api/ubl2.1/config/resolution" \
-H "Content-Type: application/json" \
-H "accept: application/json" \
-d '{
"type_document_id": 1,
"prefix": "SETP",
"resolution": "18760000001",
"resolution_date": "2019-01-19",
"technical_key": "fc8eac422eba16e22ffd8c6f94b3f40a6e38162c",
"from": 990000000,
"to": 995000000,
"generated_to_date": 0,
"date_from": "2019-01-19",
"date_to": "2030-01-19"
}'