gigstack API
  1. Catalogs
gigstack API
  • Welcome to gigstack API
  • gigstack Connect API Guide
  • Migrar de API v1 a v2 de gigstack
  • Clients
    • Clients API Guide
    • List clients
      GET
    • Get client
      GET
    • Update client
      PUT
    • Create client
      POST
    • Validate client fiscal information
      POST
    • Get client customer portal access token
      POST
    • Stamp pending receipts
      POST
    • Delete client
      DELETE
  • Services
    • Services API Guide
    • List services
      GET
    • Get service
      GET
    • Update service
      PUT
    • Create service
      POST
    • Delete service
      DELETE
  • Invoices
    • Invoices API Guide
    • Income
      • List income invoices
      • Get income invoice
      • Create income invoice
    • Egress
      • List egress invoices
      • Get egress invoice
      • Create egress invoice
    • Get invoice files
      GET
    • Cancel invoice
      DELETE
  • Payments
    • Payments API Guide
    • List payments
    • Get payment
    • Request payment
    • Register payment
    • Mark payment as paid
    • Refund payment
    • Cancel payment
  • Receipts
    • Receipts API Guide
    • List receipts
    • Get receipt
    • Create receipt
    • Stamp receipt
    • Cancel receipt
  • Teams
    • Teams API Guide
    • List teams
    • Get team
    • Get team integrations
    • Get team series
    • Get team onboarding URL
    • Update team
    • Update team series
    • Update team settings
    • Create team
    • Add team member
    • Remove team member
    • Create team series
  • Users
    • Users API Guide
    • List users
    • Get user
    • Update user
    • Create user
    • Reset user password
  • Catalogs
    • Tax Regimes Catalog (Régimen Fiscal)
    • Payment Forms | Formas de pago
    • CFDI Usage Catalog (Uso CFDI)
    • Payment Methods Catalog (Método de Pago)
    • Months and Bimesters Catalog (Meses y Bimestres)
    • Invoice Relationships Catalog (Relación entre Facturas)
  1. Catalogs

CFDI Usage Catalog (Uso CFDI)

Overview#

The CFDI Usage catalog defines the standardized codes that specify the intended use of expenses for tax deduction purposes in Mexico. These codes are essential for proper tax compliance and determine which tax regimes can utilize specific types of expenses for deductions.

What We See#

This catalog contains 23 different usage codes organized into six main categories:
G codes: General business expenses and merchandise acquisition
I codes: Investment and infrastructure expenses
D codes: Personal deductible expenses (medical, education, etc.)
S codes: Special cases without fiscal effects
CP codes: Payment-related documents
CN codes: Payroll-related documents
Each usage code is associated with specific tax regimes that can legally claim those expenses as deductions.

How to Use It#

When issuing or receiving a CFDI, select the usage code that best describes the intended use of the expense. This ensures proper tax treatment and compliance with SAT regulations. The receiving party's tax regime must be compatible with the selected usage code.

Usage Guidelines#

Match expense purpose: Select the code that most accurately describes the expense's business purpose
Verify tax regime compatibility: Ensure the recipient's tax regime allows the selected usage code
Document justification: Maintain records supporting the usage classification
Review regularly: Usage codes and tax regime compatibility may change with tax law updates

CFDI Usage Codes by Category#

General Business Expenses (G Codes)#

CodeDescriptionCompatible Tax Regimes
G01Merchandise acquisition601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
G02Returns, discounts or bonuses601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
G03General expenses601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626

Investment Expenses (I Codes)#

CodeDescriptionCompatible Tax Regimes
I01Construction601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
I02Office furniture and equipment investments601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
I03Transportation equipment601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
I04Computer equipment and accessories601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
I05Dies, molds, matrices and tooling601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
I06Telephone communications601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
I07Satellite communications601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626
I08Other machinery and equipment601, 603, 606, 612, 620, 621, 622, 623, 624, 625, 626

Personal Deductible Expenses (D Codes)#

CodeDescriptionCompatible Tax Regimes
D01Medical, dental fees and hospital expenses605, 606, 608, 611, 612, 614, 607, 615, 625
D02Medical expenses for disability or incapacity605, 606, 608, 611, 612, 614, 607, 615, 625
D03Funeral expenses605, 606, 608, 611, 612, 614, 607, 615, 625
D04Donations605, 606, 608, 611, 612, 614, 607, 615, 625
D05Real interest effectively paid for mortgage loans (housing)605, 606, 608, 611, 612, 614, 607, 615, 625
D06Voluntary contributions to SAR605, 606, 608, 611, 612, 614, 607, 615, 625
D07Medical expense insurance premiums605, 606, 608, 611, 612, 614, 607, 615, 625
D08Mandatory school transportation expenses605, 606, 608, 611, 612, 614, 607, 615, 625
D09Savings account deposits, pension plan premiums605, 606, 608, 611, 612, 614, 607, 615, 625
D10Educational service payments (tuition)605, 606, 608, 611, 612, 614, 607, 615, 625

Special Cases (S Codes)#

CodeDescriptionCompatible Tax Regimes
S01Without fiscal effects601, 603, 605, 606, 608, 610, 611, 612, 614, 616, 620, 621, 622, 623, 624, 607, 615, 625, 626

Payment Documents (CP Codes)#

CodeDescriptionCompatible Tax Regimes
CP01Payments601, 603, 605, 606, 608, 610, 611, 612, 614, 616, 620, 621, 622, 623, 624, 607, 615, 625, 626

Payroll Documents (CN Codes)#

CodeDescriptionCompatible Tax Regimes
CN01Payroll605

Tax Regime Compatibility Matrix#

Business-Oriented Regimes#

Tax regimes 601, 603, 606, 612, 620-626 can use:
All G codes (general business expenses)
All I codes (investment expenses)
S01 (without fiscal effects)
CP01 (payments)

Individual-Oriented Regimes#

Tax regimes 605, 606, 608, 611, 612, 614, 607, 615, 625 can use:
All D codes (personal deductible expenses)
S01 (without fiscal effects)
CP01 (payments)

Payroll-Specific Regime#

Tax regime 605 exclusively uses:
CN01 (payroll documents)

Implementation Examples#

API Request Example#

{
  "invoice": {
    "cfdi_usage": "G01",
    "tax_regime": "601",
    "description": "Office supplies purchase"
  }
}

Validation Logic#

Usage Code Validation#

Common Use Cases#

Business Expenses#

G01: Purchasing inventory, raw materials, merchandise for resale
G02: Processing customer returns, applying bulk discounts
G03: Office supplies, utilities, general operational expenses

Capital Investments#

I01: Building construction, facility improvements
I02: Desks, chairs, office equipment purchases
I03: Company vehicles, delivery trucks
I04: Computers, servers, software licenses

Personal Deductions (Individuals)#

D01: Doctor visits, dental work, hospital bills
D10: School tuition, university fees
D04: Charitable donations to qualified organizations

Special Situations#

S01: Transactions without tax implications
CP01: Payment complement documents
CN01: Employee salary payments

Important Notes#

1.
Tax Regime Validation: Always verify that the recipient's tax regime is compatible with the selected usage code
2.
Business vs Personal: D codes are primarily for individual taxpayers, while G and I codes are for business entities
3.
Documentation Requirements: Maintain supporting documentation that justifies the usage code selection
4.
Regular Updates: Usage codes and tax regime compatibility may change with tax law modifications
5.
Audit Compliance: Proper usage code selection is crucial for tax audits and compliance reviews

Error Prevention#

Common Mistakes#

Using D codes for business entities (incorrect tax regime)
Selecting G01 for capital investments (should use I codes)
Using CN01 for non-payroll tax regimes
Mismatching usage codes with actual expense purposes

Best Practices#

Maintain a clear mapping of business activities to usage codes
Train accounting staff on proper code selection
Implement validation rules in invoicing systems
Review usage patterns regularly for compliance

Related Documentation#

Tax Regimes Catalog - For detailed tax regime information
Payment Forms Catalog - For payment method classifications
Invoice Globals - For general invoice configuration
Modified at 2025-08-21 00:13:55
Previous
Payment Forms | Formas de pago
Next
Payment Methods Catalog (Método de Pago)
Built with