curl -X POST https://api.staging.factioapp.com/documents \
-H "X-API-Key: fct_test_TU_API_KEY_AQUI" \
-H "Idempotency-Key: 123e4567-e89b-12d3-a456-426614174000" \
-H "Content-Type: application/json" \
-d '{
"document_type": "01",
"issue_date": "2024-01-15",
"issuer_id": "TU_ISSUER_ID",
"establishment_id": "TU_ESTABLISHMENT_ID",
"emission_point_id": "TU_EMISSION_POINT_ID",
"buyer_id_type": "04",
"buyer_id": "1792146739001",
"buyer_name": "Empresa de Pruebas S.A.",
"buyer_email": "[email protected]",
"buyer_address": "Av. de los Shyris N35-17",
"subtotal": "100.00",
"total_discount": "0.00",
"total_tax": "15.00",
"total": "115.00",
"lines": [
{
"code": "PROD-001",
"description": "Servicio de Consultoría",
"quantity": "1.00",
"unit_price": "100.00",
"discount": "0.00",
"subtotal": "100.00",
"taxes": [
{
"tax_code": "2",
"tax_percentage_code": "4",
"tax_rate": "15.00",
"taxable_base": "100.00",
"tax_amount": "15.00"
}
]
}
],
"payments": [
{
"payment_method_code": "20",
"total": "115.00"
}
]
}'