curl -X POST https://api.yourapp.com/api/v1/invoices \
-H "Authorization: Bearer <local_jwt>" \
-H "X-Factus-Token: <factus_access_token>" \
-H "Content-Type: application/json" \
-d '{
"reference_code": "INV-2024-001",
"payment_method_code": "10",
"payment_form": "1",
"customer": {
"identification_document_id": 6,
"identification": "900123456",
"dv": "7",
"company": "Acme Corporation S.A.S.",
"email": "[email protected]",
"address": "Calle 123 #45-67",
"phone": "3001234567",
"municipality_id": 11001,
"legal_organization_id": 1,
"tribute_id": 1
},
"items": [
{
"code_reference": "PROD-001",
"name": "Software License",
"quantity": 1,
"price": 1000000.00,
"discount_rate": 0.00,
"tax_rate": 19.00,
"unit_measure_id": 70,
"standard_code_id": 999,
"is_excluded": 0,
"tribute_id": 1
}
]
}'