Para solicitar acceso cree una cuenta en https://app.facthor.co.cr/ y envíenos un email para activarlo a david@itros.net
curl --location 'https://dev.facthor.co.cr/api/emisor' \
--header 'X-FACTHOR-ID;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"nombre_comercial": "Mi Empresa",
"email": "contacto@empresa.com",
"telefono": "22223333",
"impuesto_por_defecto": 13,
"moneda_por_defecto": "CRC",
"plantilla_factura": {
"property1": "string",
"property2": "string"
},
"resend": {
"apiKey": "re_xxxxxxxxxxxxxxxxx",
"fromEmail": "billing@example.com",
"fromName": "Mi Empresa",
"replyTo": "soporte@example.com",
"invoiceTemplateId": "tpl_invoice_v1",
"creditNoteTemplateId": "tpl_credit_note_v1",
"debitNoteTemplateId": "tpl_debit_note_v1"
},
"enabled": true
}'{
"status": true,
"message": "Configuración actualizada exitosamente",
"data": {
"id": 1,
"nombre": "Empresa SA",
"nombre_comercial": "Mi Empresa",
"identificacion": "3101234567",
"provincia": "San José",
"canton": "Central",
"distrito": "Carmen",
"direccion": "100m norte de la iglesia",
"email": "contacto@empresa.com",
"telefono": "22223333",
"impuesto_por_defecto": 13,
"moneda_por_defecto": "CRC",
"plantilla_factura": {
"property1": "string",
"property2": "string"
},
"enabled": true,
"temporary": true,
"canBeDeleted": true,
"activity_codes": [
{
"id": 1,
"emisor_id": 1,
"codigo": "620100",
"descripcion": "Desarrollo de software",
"created_at": "2019-08-24T14:15:22.123Z"
}
],
"payment_terms": [
{
"id": 1,
"emisor_id": 1,
"codigo": "01",
"nombre": "Contado",
"dias_plazo": 30,
"is_default": false,
"enabled": true
}
],
"payment_types": [
{
"id": 1,
"emisor_id": 1,
"codigo": "01",
"nombre": "Efectivo",
"is_default": false,
"enabled": true
}
]
},
"warnings": [
"string"
]
}