---
title: "17: Setoff | Clara"
description: "Setoff of mutual credits and debts."
canonical: "https://www.clara.com/en-mx/cfdi/payment-form-17"
lang: "en-MX"
alternate_html: "https://www.clara.com/en-mx/cfdi/payment-form-17"
---

# 17: Setoff

1. [Clara](https://www.clara.com/en-mx)
2. [Tax Intelligence](https://www.clara.com/en-mx/products/tax-intelligence)
3. [c\_FormaPago — Form of payment](https://www.clara.com/en-mx/cfdi-catalogs/payment-form)
4. 17: Setoff

How the invoice was paid (01 cash, 03 bank transfer, 04 credit card, etc.).

| Code        | 17                                                                  |
| ----------- | ------------------------------------------------------------------- |
| Catalog     | [c\_FormaPago — Form of payment](https://www.clara.com/en-mx/cfdi-catalogs/payment-form) |
| Description | Setoff of mutual credits and debts.                                 |

Original Spanish source label: Compensación

## What it means

Form of payment 17 indicates that the debt was fulfilled or extinguished through 'Setoff': offsetting mutual claims and debts. It is the value of the CFDI's Form of payment field (FormaPago attribute) and indicates how the invoice was settled.

It is one of the c\_FormaPago codes for legal mechanisms other than a direct customer payment by cash, check, card, or transfer.

## When to use it and when not to

When to use it:

- The debt was settled through 'Setoff,' and you can document it.
- With payment method PUE, record the form used to settle the invoice; with PPD, record 99 (To be determined), and enter the actual form in the payment supplement for each payment collected.
- If you were paid using multiple forms, record the one that covered the largest amount.

When not to use it:

- The customer paid directly using a means of payment: use the code for that means (01, 02, 03, 04, or 28).
- If you have doubts about the legal mechanism, it has its own legal and tax effects; review it with your accountant before invoicing.

## Differences from similar codes

__17 compared with 24 and 23__
| Code                              | Name                          | In brief                                     |
| --------------------------------- | ----------------------------- | -------------------------------------------- |
| 17                                | Setoff                        | Offsetting mutual claims and debts.          |
| [24](https://www.clara.com/en-mx/cfdi/payment-form-24) | Merger of creditor and debtor | The same person is both creditor and debtor. |
| [23](https://www.clara.com/en-mx/cfdi/payment-form-23) | Novation                      | Replacement of the original obligation.      |

## Sources

Consult the SAT documentation:

- [SAT invoice format (Anexo 20; Spanish) (opens in a new tab)](https://wwwmat.sat.gob.mx/consultas/35025/formato-de-factura-electronica-%28anexo-20%29)

For informational purposes; this is not tax or legal advice. Values verified as of November 23, 2026\. Consult your accountant before issuing an invoice or claiming a deduction. Reviewed by Aranza Bracho.

## Other codes in this catalog

- ### [15 — Debt forgiveness](https://www.clara.com/en-mx/cfdi/payment-form-15)  
Cancellation of a debt.
- ### [23 — Novation](https://www.clara.com/en-mx/cfdi/payment-form-23)  
Replacement of the original obligation.
- ### [14 — Payment by consignation](https://www.clara.com/en-mx/cfdi/payment-form-14)  
Payment made by consignation.
- ### [24 — Merger of creditor and debtor roles](https://www.clara.com/en-mx/cfdi/payment-form-24)  
The same person is both creditor and debtor.
- ### [13 — Payment by subrogation](https://www.clara.com/en-mx/cfdi/payment-form-13)  
A third party makes the payment by subrogation.
- ### [25 — Debt remission](https://www.clara.com/en-mx/cfdi/payment-form-25)  
Full or partial forgiveness of the debt.
- ### [12 — Payment in kind](https://www.clara.com/en-mx/cfdi/payment-form-12)  
Payment with goods instead of money.
- ### [26 — Prescription or expiration](https://www.clara.com/en-mx/cfdi/payment-form-26)  
Extinguishment through the passage of time.

## Reach month-end knowing  
how much you’ll pay

Connect your RFC today and get your tax information in order.

LatAm’s fastest-growing company, two consecutive years · Financial Times and Statista

[**Sign up**](https://contabilidad.clara.com/signup?utm%5Fsource=clara.com&utm%5Fmedium=referral&utm%5Fcampaign=es%5Fmx%5Finteligencia%5Ffiscal)[**Request a guided demo**](https://contabilidad.clara.com/demo)

Related calculators:[CFDI 4.0 reader (XML)](https://www.clara.com/en-mx/tax-intelligence/tools/cfdi-reader)[RFC validator (individuals and legal entities)](https://www.clara.com/en-mx/tax-intelligence/tools/rfc-validator)
