- Home
- Documentation
- CFDI invoicing
- SAT product codes
SAT product codes
How Toldo assigns SAT codes (ClaveProdServ and ClaveUnidad) to each line item, and which codes it uses for shipping and credit notes.
This feature is rolling out: we're turning it on in stages with our founding partners. What this guide describes may change before general availability.
In short
Every line item on a CFDI carries a product or service code (ClaveProdServ) and a unit code (ClaveUnidad) from the SAT catalogs. Toldo takes them from your rules in this order: the variant, the product, the collection, the product type, the vendor and the Shopify category; then a suggestion based on that category and, last, your default code. If nothing applies, the invoice waits for your review.
What they are
- ClaveProdServ: says what you sell, according to the SAT's c_ClaveProdServ catalog (more than 52,000 codes).
- ClaveUnidad: says the unit you sell it in, according to the c_ClaveUnidad catalog. For example, H87 "Pieza" (piece).
Where Toldo looks for the codes
For each product in the sale, Toldo uses the first code it finds, in this order:
- A rule for the variant.
- A rule for the product.
- A rule by collection, product type, vendor or Shopify category. For example: "everything in the T-shirts collection uses the T-shirt code".
- A suggestion. For the most common categories of Shopify's standard product taxonomy. You can turn it off.
- Your default code. The one you choose in SAT product keys, in "Default product key (c_ClaveProdServ)".
Toldo keeps the codes in Toldo, as rules; it doesn't change your products in Shopify. You create them in CFDI invoicing → SAT product keys, under Rules: in "Applies to" you choose variant, product, collection, product type, vendor or Shopify category, and in "Which one" you enter its Shopify ID (for example gid://shopify/Product/…), the product type or the vendor name.
Codes Toldo uses by default
| Line item | ClaveProdServ | ClaveUnidad |
|---|---|---|
| Products | Your default code | H87 "Pieza" (piece); you can change it in "Default unit key (c_ClaveUnidad)" |
| Shipping | 78102203 "Servicios de envío, recogida o entrega de correo" (mail shipping, pickup or delivery services) | E48 "Unidad de servicio" (unit of service) |
| Credit notes for an amount (no products returned) | 84111506 "Servicios de facturación" (billing services) | ACT "Actividad" (activity) |
Toldo doesn't tell services apart on its own: to sell them, create a rule with their code and unit, for example E48 "Unidad de servicio". The shipping codes can be changed too.
Toldo doesn't make up a default code: you choose it when you set up invoicing.
The 01010101 code
The code 01010101 ("No existe en el catálogo", not in the catalog) is only used on the global invoice (factura global), where each sale is one line item. Toldo never uses it on its own on an invoice in a customer's name: if a product has no code, the invoice waits for your review with the message "A product has no SAT key and there is no default."
Tools for assigning codes
- Common keys, with the ones online stores use most.
- Rules by collection, product type, vendor or Shopify category, which cover many products at once. You add them one by one with Add rule.
- A catalog check. Toldo checks that every code exists in the SAT catalog.
Invoices waiting for a code show up in CFDI invoicing → Documents, under Need attention.
Taxes on each product
Toldo uses the IVA (Mexican VAT) that Shopify charged on each product. If Shopify charged no IVA, say whether it's 0% or exempt in the "IVA" column of a rule, or for the whole store in Settings, in "When Shopify charged no IVA on a product without a rule"; otherwise, the invoice waits for your review. The 8% border IVA and products with IEPS (a special excise tax) also wait for your review: Toldo doesn't issue them yet.
Steps to assign your codes
- Choose your default code. In CFDI invoicing → SAT product keys, under Defaults. Any product without a more specific code uses it.
- Create rules for your collections or product types. They cover many products at once.
- Check what's waiting for a code. In Documents, under Need attention, you'll find the invoices waiting for a code.
- Adjust the special cases. Create a rule for that variant or that product, with its Shopify ID, when a broader rule isn't enough.
Frequently asked questions
Where do I find the right code?
In the SAT's c_ClaveProdServ catalog. Common keys has the most used ones. If you're not sure, confirm the code with your accountant.
What happens if a product doesn't have a code?
Toldo uses the rule, the suggestion or your default code, in that order. If there's none, the invoice waits for your review. On the global invoice it doesn't matter: each sale goes with the code 01010101.