Extracciones CFDI
Extracción CFDI por FIEL
Inicia una extracción de CFDI usando credenciales FIEL.
Inicia una extracción de CFDI usando credenciales FIEL. Las credenciales pueden venir en el body o resolverse desde un taxpayer registrado con FIEL.
Endpoint
POST /v1/extractions-cfdi/fiel
Content-Type: application/json
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
client_rfc | string | sí | RFC del contribuyente |
cert_password | string | no | Contraseña FIEL. Opcional si taxpayer registrado con FIEL (se busca en BD) |
cer_s3_key | string | no | S3 key del .cer. Opcional si taxpayer registrado |
key_s3_key | string | no | S3 key del .key. Opcional si taxpayer registrado |
from | string | sí | Fecha inicio: YYYY-MM-DD HH:mm:ss |
to | string | sí | Fecha fin: YYYY-MM-DD HH:mm:ss |
Ejemplo curl sin credenciales (taxpayer registrado con FIEL)
curl --location 'https://api.taxo.ws/v1/extractions-cfdi/fiel' \
--header 'Content-Type: application/json' \
--header 'x-api-key: TU_API_KEY' \
--data '{
"client_rfc": "CUBA8809282R2",
"from": "2025-12-01 00:00:00",
"to": "2026-02-24 23:59:59"
}'
Ejemplo curl con credenciales explícitas
curl --location 'https://api.taxo.ws/v1/extractions-cfdi/fiel' \
--header 'Content-Type: application/json' \
--header 'x-api-key: TU_API_KEY' \
--data '{
"client_rfc": "AOBE910907K45",
"cert_password": "23287c91",
"cer_s3_key": "certificates/AOBE910907K45/AOBE910907K45.cer",
"key_s3_key": "certificates/AOBE910907K45/AOBE910907K45.key",
"from": "2025-12-01 00:00:00",
"to": "2026-01-31 23:59:59"
}'
Código de Ejemplo
Javascript
const axios = require('axios');
const data = JSON.stringify({
client_rfc: 'CUBA8809282R2',
from: '2025-12-01 00:00:00',
to: '2026-02-24 23:59:59'
});
const config = {
method: 'post',
url: 'https://api.taxo.ws/v1/extractions-cfdi/fiel',
headers: {
'x-api-key': 'TU_API_KEY',
'Content-Type': 'application/json'
},
data
};
axios.request(config)
.then((response) => console.log(JSON.stringify(response.data)))
.catch((error) => console.error(error));