Posting supplier invoices by API in SAP can succeed and still be wrong on tax
API_SUPPLIERINVOICE_PROCESS_SRV will accept and post a supplier invoice even when the tax code doesn't carry through to a usable CGST/SGST/IGST split, withholding tax isn't determined from the vendor master, or the GSTIN/business place is wrong — because the API skips the screen-level checks MIRO runs. The invoice posts clean and still breaks your GSTR-2B match or your income-tax TDS (withholding) payment run.
An OCR or AP-automation tool posting through API_SUPPLIERINVOICE_PROCESS_SRV gets a 201 Created and a document number back. That response says nothing about whether the tax code resolved, whether withholding tax was determined, or which of your GSTINs the invoice is sitting under — three things the interactive MIRO screen fills in for you that the API won't reliably fill in for you.
Why a clean post isn't proof the invoice is right
When a user keys a supplier invoice into MIRO, the transaction runs a chain of screen-level logic before it lets the document post: it proposes a tax code from the purchase order, derives the withholding tax code from the vendor master, and pulls the business place and supplier GSTIN from the vendor and plant data on the line. An AP-automation or OCR tool posting the same invoice through API_SUPPLIERINVOICE_PROCESS_SRV — the standard OData service for creating supplier invoices, with or without a purchase-order reference — skips that screen entirely. The API's own validation is narrower: it checks that the fields you sent are internally consistent, not that you sent the ones a GST-correct invoice needs. A payload missing the right tax code, withholding tax or GSTIN context can still get a 201 Created back.
That gap shows up downstream, not at post time — in a failed payment run, a GSTR-2B line that won't match, or a reconciliation that quietly drops an invoice. Two documented SAP support cases below show exactly where it happens, plus what it means for the fields a GST reconciliation needs.
The entity shape: where tax and withholding tax actually live
A supplier invoice posted through this API is a header (SupplierInvoice) with line items that come in two shapes depending on whether a line has a purchase-order reference, plus a header-level withholding-tax segment that's separate from either:
| Navigation entity | Carries |
|---|---|
| to_SuplrInvcItemPurOrdRef | PO-based line items — the supplier invoice item together with its purchase-order and PO-item reference and tax code, as one node, not two. |
| to_SupplierInvoiceItemGLAcct (or similarly named, release-dependent) | G/L-account-based line items, where there's no PO reference to carry the tax code. |
| The header withholding-tax segment (named along the lines of SuplrInvcHeaderWhldgTax) | Withholding tax type and code, and the withholding tax base amount, as a distinct segment from the tax-code lines above. |
Two things fall out of that shape, and both are easy to miss if you're building the payload from a MIRO screen mental model rather than the API's own structure: which line node a tax code resolves against depends on whether the line is PO-based or G/L-based, so a payload built against the wrong node for a given line type won't carry the PO/tax-code context at all; and withholding tax is a separate header segment that generally has to be populated explicitly — you cannot rely on the API to derive it on its own. (Behaviour here is not uniform across editions — see the note below.) Entity and field names above are the commonly documented ones for this service; confirm the exact names for your own release against the service's own $metadata document before wiring a payload to them — SAP's Cloud SDK VDM reference for this service documents the same shape but, being a generated client API, won't substitute for checking what your specific service version actually exposes.
FF812: the tax code error that's actually a missing PO reference
SAP support knowledge article 3577702 (S/4HANA Cloud Public Edition) documents a specific failure: posting a supplier invoice through this API with only an InboundDeliveryNote reference on the item — no purchase-order item reference — raises error FF812 ("Tax code & also exists") when the invoice is created; the KBA reproduces it with the invoice saved in held status. The article states plainly why: the system does not create invoice line items from a pure InboundDeliveryNote reference. The fix it gives is not a tax-code change at all — it's populating the purchase-order reference explicitly through the to_SuplrInvcItemPurOrdRef navigation node on the item.
to_SuplrInvcItemPurOrdRef before touching tax configuration.FZ550: withholding tax the API doesn't go and fetch for you
SAP support knowledge article 3444792 documents a second, separate failure, this time surfacing at payment, not at posting: invoices created through API_SUPPLIERINVOICE_PROCESS_SRV_0001 post successfully, then fail in the F110 automatic payment run with FI error FZ550 — "Item cannot be paid due to inconsistent withholding tax information." The article's title and symptom state: withholding tax is not being determined automatically from the vendor master for invoices created by the API. (Its full cause-and-resolution text sits behind an SAP S-user login — confirm the exact fix there for your release.)
In an India deployment, that withholding tax segment is almost always carrying income-tax TDS — deduction at source under the Income-tax Act, 2025 (which repealed and replaced the Income-tax Act, 1961 from 1 April 2026), driven by the withholding tax codes configured per vendor in the vendor master — not GST. Remapping these codes in SAP onto Section 393 — the successor to the old 194x categories — is a separate exercise in its own right, and this article does not try to repeat it. It's worth keeping that distinction explicit on the invoice itself: GST's own TDS mechanism, Section 51 of the CGST Act, is a separate thing again — it binds only the deductor classes named in Section 51(1) and notified under it (Notification 50/2018-CT, as amended): government departments and establishments, local authorities, governmental agencies, authorities/boards/bodies set up by statute or with 51% or more government equity or control, government-established societies, public sector undertakings, and — under clause (d) as substituted by Notification 07/2026-CT with effect from 1 November 2026 — any registered person receiving used cooking oil, waste and scrap of plastics or tyres, metal scrap, or electrical and electronics waste and scrap from another registered person (as of 23 November 2026) — not AP invoices in general. Most teams hitting FZ550 are dealing with income-tax withholding, not GST TDS, and that's a compliance track this article doesn't try to adjudicate in detail — the operational point stands either way: if your integration relies on the API to infer a withholding tax code the way MIRO does, it will post invoices that look complete and aren't, and the gap surfaces later, at payment, for someone who didn't touch the original posting.
The safe pattern is the same shape as FF812's: don't rely on derivation, send the value. Populate the withholding tax type and code explicitly in the header withholding-tax segment of the payload, read from the current vendor master on each posting — not hard-coded at integration-build time, because withholding codes themselves change, as the Income-tax Act, 2025 remap above shows.
Why the GST side breaks even when the invoice posts and pays cleanly
A tax code that resolves enough to let the invoice post isn't the same as a tax code that produces a usable GSTR-2B match. The tax code on a line drives the CGST/SGST/IGST split that lands in SAP's tax tables — the same split a GST purchase-register extract has to carry at invoice level to reconcile against that statement, which — for an ordinary invoice from a registered supplier — gates your input tax credit on that invoice (Rule 36(4) of the CGST Rules, read with Section 16(2)(aa) of the CGST Act). If the PO-item reference that resolves the tax code is missing (the FF812 case above) and a team works around the error by forcing a generic or placeholder tax code just to get the document to post, the invoice now posts clean with a tax split that doesn't represent what was actually charged — a worse outcome than the posting failure it replaces, because nothing at posting or at payment flags it; only a later GSTR-2B reconciliation will.
The GSTIN side has the same shape of risk. Which of your GSTINs an invoice belongs to is carried by the business place on the line, and the supplier's own GSTIN comes from the vendor master (commonly held as Tax Number 3), not from anything the API derives from the invoice content. An integration that doesn't explicitly map plant or purchasing-organisation to business place on every posting — rather than assuming a single default — will post invoices under the wrong GSTIN's books whenever the buying entity isn't the one the default happens to match, and that invoice won't appear where the GSTR-2B match goes looking for it. None of this throws an error. It just produces a purchase register that reconciles cleanly against the wrong statement, or not at all, and the only way most teams find out is going invoice by invoice by hand once the GSTR-2B gap shows up at filing time.
Recoup doesn't post into SAP or connect to it directly — it connects read-only to Zoho Books or Tally and the GST portal. Where your purchase register lives in one of those, Recoup reconciles it against GSTR-2B at invoice level and names the vendor behind each gap it finds, before the return is due. Getting the tax code, withholding tax and business place right at the API layer, as above, is what makes that purchase register trustworthy in the first place.
Checklist before you trust this integration in production
- Every item carries a PO-item reference via
to_SuplrInvcItemPurOrdRef, not just a delivery-note reference — test an invoice built from goods receipt alone and confirm it doesn't hit FF812 or get silently posted on a workaround tax code. - Withholding tax type and code are populated explicitly in the header withholding-tax segment on every invoice where the vendor master carries a withholding tax category — don't assume the API derives it, and separately confirm whether your edition overrides it from the supplier master on the park path (SAP KBA 3745654); test a payment run (F110) against invoices this integration posted, not just the posting step, since FZ550 only surfaces at payment.
- Business place is mapped explicitly per plant/purchasing organisation, not defaulted to a single value, if you operate more than one GSTIN.
- The tax code actually produces the CGST/SGST/IGST split you expect — pull a sample of API-posted invoices and check the resulting tax line, not just that the document posted without error.
- Confirm field and entity names against your own release's
$metadatabefore building the payload from any documentation, including this one — API field availability varies by S/4HANA release and edition.
Don't find the gap at filing time
Where your purchase register lives in Zoho Books or Tally, Recoup reconciles it against GSTR-2B at the invoice level and names the vendor behind each gap it finds.
Book a demo →Related guides
GSTR-2B reconciliation in SAP: what the platform actually automates
What SAP's own GST inward-reconciliation module auto-pulls and auto-matches, and where it still needs a human.
Setting up e-invoicing (IRN) in SAP
The eDocument-to-GSP configuration most SAP e-invoicing implementations get wrong.
GST reconciliation: the 2026 guide for finance teams
The full mechanics of reconciling GSTR-2B against your books, ERP-agnostic.
Income-tax Act 2025 in SAP: remapping withholding tax keys
What changed in SAP's own withholding tax configuration once the Income-tax Act, 2025 took effect.