Skip to content

FISCALISTO / API / REFERENCE

Schedule a supplier invoice's payment · Supplier portal

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/supplier_invoices/{id}/schedule

The day you'll pay it, like «Programar pago» in the app: the supplier sees it on their portal and supplier_invoice.scheduled arrives. Only an approved or already scheduled one; if SAT reports it canceled, 400 supplier_invoice_invalid.

Before you call

  • Supplier portal in the plan of your empresa, if your API account belongs to an empresa: it comes with Operaciones, which is added to any paid plan in Ajustes › Plan y pagos and comes in Corporativo. In test mode you can already use it.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Path parameters

id*string

The object's id.

Headers

Idempotency-Key?string

Optional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge).

Length1 <= length <= 255

Request body

application/json
  1. body
pay_on*string

The day you'll pay it (YYYY-MM-DD, today or later). The supplier sees it.

Pattern^\d{4}-\d{2}-\d{2}$

Response body

OK.

application/json
  1. response

An invoice a supplier sent the issuer through its Portal de proveedores, with what was checked, its purchase order, its counter-receipt and its payment dates.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

object*string

What kind of object it is («invoice», «customer»…).

issuer*string

The issuer in your account (iss_…) that received it.

supplier*string

The supplier (sup_…) that sent it.

supplier_tax_id*string

The supplier's RFC, or the EXT-<país>-<tax ID> key of a foreign one.

uuid*string

The tax folio (UUID of the stamp); a foreign supplier's invoice, which has no CFDI, carries EXT-… and sat_invoice null.

sat_invoice*|

The same invoice among your received invoices (sat_…), for its XML and PDF, or null.

series*|

Its series, or null.

folio*|

Its folio, or null.

type*string

income (income invoice) or credit_note.

One of"income""credit_note"
date*string

The invoice's date.

currency*string

The currency.

total*number

The invoice's total.

payable*number

What they are paid: the total without the differences against their order or the accepted early-payment discount.

payment_method*|

PUE or PPD.

status*string

received (to review), approved, scheduled (with a payment date), paid or rejected.

One of"received""approved""scheduled""paid""rejected"
purchase_order*|

The purchase order it invoices (OC-12), or null.

matches_purchase_order*|

true if it matched its order, false if it had differences, null without an order.

contrarecibo*|

Its counter-receipt folio, or null.

due_on*|

The day it is due by its payment dates, or null.

scheduled_on*|

The day scheduled to pay it, or null.

paid_on*|

The day it was paid, or null.

paid_amount*|

What was paid, or null.

payment_reference*|

The payment reference, or null.

rejection_reason*|

Why it was rejected, or null.

warnings*array<>

What was checked and left as a warning (code and message), for your team to see.

received_at*|

When it arrived.

approved_at*|

When it was approved, or null.

Errors

  • The issuer is archived and no longer stamps. Its documents can still be read and canceled.

  • The account has several issuers and the request doesn't say which: send issuer (iss_…).

  • The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

  • The supplier invoice can't do that in its current status (only an approved or scheduled one can be scheduled, a paid date can't be in the future, or the SAT reports it canceled). message_es says why.

  • Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.

  • That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.

  • This key can't use that issuer.

  • There is no such issuer in the account (or it belongs to the other mode).

  • There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X POST 'https://api.fiscalisto.com/v1/supplier_invoices/spi_OufpKqnrvx9p7Hq2mZr1XyT5uBcW8sKdLx/schedule' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "pay_on": "2026-11-27"}'
{  "id": "spi_OufpKqnrvx9p7Hq2mZr1XyT5uBcW8sKdLx",  "object": "supplier_invoice",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "supplier": "sup_OufpKqnrvx9p3Lk8mZr1XyT5uBcW8sKdLx",  "supplier_tax_id": "AAA010101AAA",  "uuid": "9F1C2B3A-4D5E-4F60-8A7B-1C2D3E4F5A6B",  "sat_invoice": "sat_OufpKqnrvx9p2D",  "series": "A",  "folio": "120",  "type": "income",  "date": "2026-11-09T10:00:00",  "currency": "MXN",  "total": 11600,  "payable": 11600,  "payment_method": "PPD",  "status": "approved",  "purchase_order": "OC-12",  "matches_purchase_order": true,  "contrarecibo": "CR-41",  "due_on": "2026-12-09",  "scheduled_on": null,  "paid_on": null,  "paid_amount": null,  "payment_reference": null,  "rejection_reason": null,  "warnings": [],  "received_at": "2026-11-09T10:05:00-06:00",  "approved_at": "2026-11-09T12:30:00-06:00"}

Was this page helpful?