# Payments without a complemento

> Mark as paid the received PPD invoices the business paid in cash, from petty cash or through a reimbursement, whose supplier never issued the complemento de pago. On a PUE, note where the money came from.

A received PPD invoice stays in Por pagar until the supplier issues its complemento de pago. If the business paid it in cash, from petty cash or with the money of a person it later reimbursed, and the supplier never issued the complemento, mark it as paid with `mark_paid`: it leaves Por pagar as paid without a complemento, with the day, the payment form and where the money came from. It's the same as **Marcar como pagada** in the app, and the rules in **Ajustes › Pagos sin complemento** mark the ones that arrive on their own.

**The SAT still sees it unpaid.** The IVA of a PPD is creditable and the expense deductible only once the supplier issues the complemento de pago (articles 1-B and 5, section III, of the Ley del IVA, and 27, section VIII, of the Ley del ISR), so the mark doesn't change taxes, the DIOT or the contabilidad electrónica. In cash, an expense over $2,000 isn't deductible and its IVA isn't creditable (article 27, section III, of the Ley del ISR and 5, section I, of the Ley del IVA), and fuel isn't at any amount.

## Mark a PPD as paid

Send `paid_on` (the day, not after today), `payment_form` (the c_FormaPago code it was paid with: `01` cash, `02` nominative check, `03` transfer…) and `money_source`: `petty_cash`, `reimbursement` (a person paid it and was reimbursed), `bank` or `other`. `note` is optional.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/sat_invoices/sat_OufpKqnrvx9p1F/mark_paid \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "paid_on": "2026-11-14", "payment_form": "01", "money_source": "petty_cash", "note": "Reembolso de caja chica de noviembre" }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const satInvoice = await fiscalisto.satInvoices.markPaid("sat_OufpKqnrvx9p1F", {
  paid_on: "2026-11-14",
  payment_form: "01",
  money_source: "petty_cash",
  note: "Reembolso de caja chica de noviembre",
});
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

sat_invoice = fiscalisto.sat_invoices.mark_paid("sat_OufpKqnrvx9p1F", {
    "paid_on": "2026-11-14",
    "payment_form": "01",
    "money_source": "petty_cash",
    "note": "Reembolso de caja chica de noviembre",
})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$satInvoice = $fiscalisto->satInvoices->markPaid('sat_OufpKqnrvx9p1F', [
    'paid_on' => '2026-11-14',
    'payment_form' => '01',
    'money_source' => 'petty_cash',
    'note' => 'Reembolso de caja chica de noviembre',
]);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	satInvoice, err := client.SatInvoices.MarkPaid(ctx, "sat_OufpKqnrvx9p1F", &fiscalisto.MarkSatInvoicePaidParams{
		PaidOn:      fiscalisto.String("2026-11-14"),
		PaymentForm: fiscalisto.String("01"),
		MoneySource: fiscalisto.String("petty_cash"),
		Note:        fiscalisto.String("Reembolso de caja chica de noviembre"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(satInvoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.MarkSatInvoicePaidParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var satInvoice = fiscalisto.satInvoices().markPaid("sat_OufpKqnrvx9p1F", new MarkSatInvoicePaidParams()
        .setPaidOn("2026-11-14")
        .setPaymentForm("01")
        .setMoneySource("petty_cash")
        .setNote("Reembolso de caja chica de noviembre"));
System.out.println(satInvoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var satInvoice = await fiscalisto.SatInvoices.MarkPaidAsync("sat_OufpKqnrvx9p1F", new MarkSatInvoicePaidParams
{
    PaidOn = "2026-11-14",
    PaymentForm = "01",
    MoneySource = "petty_cash",
    Note = "Reembolso de caja chica de noviembre",
});
```

It returns the [SAT invoice](https://fiscalisto.com/en/docs/api/descargas-del-sat) with `paid_otherwise`:

```json
{
  "id": "sat_OufpKqnrvx9p1F",
  "object": "sat_invoice",
  "payment_method": "PPD",
  "payment_form": "99",
  "paid_otherwise": {
    "without_complement": true,
    "paid_on": "2026-11-14",
    "payment_form": "01",
    "money_source": "petty_cash",
    "by_rule": false
  }
}
```

`by_rule` is `true` when a rule in **Ajustes › Pagos sin complemento** marked it. An issued invoice, one that isn't an income invoice, a canceled one or a PPD its complemento already paid returns `sat_invoice_not_markable`.

## Note where a PUE's money came from

A PUE is already paid: that's what PUE means. For the monthly reconciliation of petty cash or reimbursements, `mark_paid` only notes its `money_source` (required) and, optionally, `paid_on`. Its payment form is the CFDI's, so `payment_form` isn't accepted. `paid_otherwise.without_complement` stays `false`.

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/sat_invoices/sat_OufpKqnrvx9p1F/mark_paid \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "money_source": "reimbursement" }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const satInvoice = await fiscalisto.satInvoices.markPaid("sat_OufpKqnrvx9p1F", { money_source: "reimbursement" });
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

sat_invoice = fiscalisto.sat_invoices.mark_paid("sat_OufpKqnrvx9p1F", {"money_source": "reimbursement"})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$satInvoice = $fiscalisto->satInvoices->markPaid('sat_OufpKqnrvx9p1F', ['money_source' => 'reimbursement']);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	satInvoice, err := client.SatInvoices.MarkPaid(ctx, "sat_OufpKqnrvx9p1F", &fiscalisto.MarkSatInvoicePaidParams{
		MoneySource: fiscalisto.String("reimbursement"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(satInvoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.MarkSatInvoicePaidParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var satInvoice = fiscalisto.satInvoices().markPaid("sat_OufpKqnrvx9p1F", new MarkSatInvoicePaidParams().setMoneySource("reimbursement"));
System.out.println(satInvoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var satInvoice = await fiscalisto.SatInvoices.MarkPaidAsync("sat_OufpKqnrvx9p1F", new MarkSatInvoicePaidParams
{
    MoneySource = "reimbursement",
});
```

## Cash payments to confirm

If the empresa turns on **Pedir que alguien confirme las facturas PUE pagadas en efectivo** in **Ajustes › Pagos en efectivo**, each received PUE with payment form `01` (from the date it picks, and with the supplier or category exceptions it saves) carries `cash_confirmation: "pending"` until someone notes where the money came from with `mark_paid` and `money_source`. Then it carries `"confirmed"`. On every other invoice it's `null`. For the SAT they're already paid: their taxes don't change. To see the ones left, filter with `cash_confirmation`:

```bash tab="cURL"
curl "https://api.fiscalisto.com/v1/sat_invoices?issuer=iss_OufpKqnrvx9p1F&cash_confirmation=pending" \
  -H "Authorization: Bearer $FISCALISTO_API_KEY"
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

for await (const item of fiscalisto.satInvoices.list({
  issuer: "iss_OufpKqnrvx9p1F",
  cash_confirmation: "pending",
})) {
  console.log(item.id);
}
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

for item in fiscalisto.sat_invoices.list({
    "issuer": "iss_OufpKqnrvx9p1F",
    "cash_confirmation": "pending",
}):
    print(item["id"])
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

foreach ($fiscalisto->satInvoices->list([
    'issuer' => 'iss_OufpKqnrvx9p1F',
    'cash_confirmation' => 'pending',
]) as $item) {
    echo $item['id'], "\n";
}
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	for item, err := range client.SatInvoices.ListAutoPaging(ctx, &fiscalisto.ListSatInvoicesParams{
		Issuer:           fiscalisto.String("iss_OufpKqnrvx9p1F"),
		CashConfirmation: fiscalisto.String("pending"),
	}) {
		if err != nil {
			log.Fatal(err)
		}
		fmt.Println(item.ID)
	}
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.ListSatInvoicesParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

for (var item : fiscalisto.satInvoices().listAutoPaging(new ListSatInvoicesParams()
        .setIssuer("iss_OufpKqnrvx9p1F")
        .setCashConfirmation("pending"))) {
    System.out.println(item.getId());
}
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

await foreach (var item in fiscalisto.SatInvoices.ListAutoPagingAsync(new ListSatInvoicesParams
{
    Issuer = "iss_OufpKqnrvx9p1F",
    CashConfirmation = "pending",
}))
    Console.WriteLine(item.Id);
```

A money source noted by a rule of **Ajustes › Pagos sin complemento** doesn't confirm the payment: a person confirms it, in the app or with `mark_paid`. `mark_unpaid` takes the confirmation back and returns it to `pending`.

## Take the mark back

`mark_unpaid` returns a PPD to Por pagar, or removes a PUE's money source. If a rule had marked it, the rule won't mark it again.

```bash tab="cURL"
curl -X POST https://api.fiscalisto.com/v1/sat_invoices/sat_OufpKqnrvx9p1F/mark_unpaid \
  -H "Authorization: Bearer $FISCALISTO_API_KEY"
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const satInvoice = await fiscalisto.satInvoices.markUnpaid("sat_OufpKqnrvx9p1F");
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

sat_invoice = fiscalisto.sat_invoices.mark_unpaid("sat_OufpKqnrvx9p1F")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$satInvoice = $fiscalisto->satInvoices->markUnpaid('sat_OufpKqnrvx9p1F');
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	satInvoice, err := client.SatInvoices.MarkUnpaid(ctx, "sat_OufpKqnrvx9p1F")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(satInvoice.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var satInvoice = fiscalisto.satInvoices().markUnpaid("sat_OufpKqnrvx9p1F");
System.out.println(satInvoice.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var satInvoice = await fiscalisto.SatInvoices.MarkUnpaidAsync("sat_OufpKqnrvx9p1F");
```

As soon as the supplier's complemento de pago arrives, the invoice is paid by it, and `paid_otherwise` no longer matters for its balance.
