Skip to main content
POST
/
api
/
v1
/
invoices
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
      }
    ]
  }'
{
  "message": "Factura creada exitosamente",
  "data": {
    "number": "FACT-12345",
    "prefix": "FACT",
    "cufe": "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz",
    "qr_url": "https://factus.com/qr/abc123def456",
    "status": "success",
    "message": "Invoice created successfully"
  }
}

Headers

Authorization
string
required
Bearer token for authentication: Bearer <local_jwt>
X-Factus-Token
string
required
Factus access token obtained from authentication

Request Body

numbering_range_id
integer
Numbering range ID for the invoice
document
string
default:"01"
Document type code. Default: “01” (Sales Invoice)
reference_code
string
required
Unique reference code for the invoice
observation
string
Additional observations or notes (max 250 characters)
payment_method_code
string
default:"10"
Payment method code. Default: “10” (cash)
payment_form
string
default:"1"
Payment form: “1” for immediate payment, “2” for credit
payment_due_date
string
Payment due date (required if payment_form is “2”). Format: YYYY-MM-DD
operation_type
string
Type of operation for the invoice
send_email
boolean
Whether to send email notification automatically
customer
object
required
Customer information
items
array
required
List of invoice items
order_reference
object
Order reference information
List of related documents
billing_period
object
Billing period information
establishment
object
Establishment information
allowance_charges
array
List of allowances and charges

Response

message
string
Success message
data
object
Invoice creation response data
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
      }
    ]
  }'
{
  "message": "Factura creada exitosamente",
  "data": {
    "number": "FACT-12345",
    "prefix": "FACT",
    "cufe": "abc123def456ghi789jkl012mno345pqr678stu901vwx234yz",
    "qr_url": "https://factus.com/qr/abc123def456",
    "status": "success",
    "message": "Invoice created successfully"
  }
}

Build docs developers (and LLMs) love