Registrar un contrato
POST
/fuec/contracts
const url = 'https://api.notiauto.co/v1/fuec/contracts';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"number":256,"contractor_name":"example","contractor_document_type":"N","contractor_document":"example","service_type":"students","purpose":"example","origin_destination":"example","agreement_company":"example","agreement_company_nit":"example","full_disposal":false,"starts_on":"2026-04-15","ends_on":"2026-04-15","responsible_name":"example","responsible_document":"example","responsible_phone":"example","responsible_address":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.notiauto.co/v1/fuec/contracts \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "number": 256, "contractor_name": "example", "contractor_document_type": "N", "contractor_document": "example", "service_type": "students", "purpose": "example", "origin_destination": "example", "agreement_company": "example", "agreement_company_nit": "example", "full_disposal": false, "starts_on": "2026-04-15", "ends_on": "2026-04-15", "responsible_name": "example", "responsible_document": "example", "responsible_phone": "example", "responsible_address": "example" }'Requiere el scope fuec.write. Sin number, toma el siguiente de la organización.
Authorizations
Sección titulada «Authorizations»Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
FuecContractInput
object
number
Número del contrato, único en la organización. Al crear, si no va, se usa el siguiente
integer
Example
256contractor_name
required
string
contractor_document_type
required
C, E, N (NIT), P, U, T, D o Y
string
Example
Ncontractor_document
required
string
service_type
required
string
purpose
required
El objeto, igual al del contrato firmado
string
origin_destination
required
string
agreement_company
string
agreement_company_nit
string
full_disposal
boolean
starts_on
required
string format: date
ends_on
required
string format: date
responsible_name
string
responsible_document
string
responsible_phone
string
responsible_address
string
Responses
Sección titulada «Responses»Registrado
Media typeapplication/json
object
success
boolean
data
FuecContract
object
id
string format: uuid
number
integer
contractor_name
string
contractor_document_type
string
contractor_document
string
service_type
string
purpose
string
origin_destination
string
agreement_company
string
agreement_company_nit
string
full_disposal
boolean
starts_on
string format: date
ends_on
string format: date
state
string
responsible
object
name
string
document
string
phone
string
address
string
extracts_count
integer
Example
{ "success": true, "data": { "number": 255, "contractor_name": "Colegio Los Andes", "contractor_document_type": "N", "contractor_document": "800123456", "service_type": "students", "purpose": "Contrato para transporte de estudiantes", "origin_destination": "Bogotá perímetro urbano", "state": "upcoming", "extracts_count": 3 }}Datos inválidos o número repetido