Use this path when operators export a file from the ERP and upload it with an SFTP client (FileZilla, Cyberduck, WinSCP, or the sftp CLI).
Step 1 — Export from the ERP
Export the batch your finance team already uses, then shape it to one of the supported layouts:
JSON connector: one invoice or credit note object per file.
XLSX connector: one sheet; include
connector_key,document_group_key, and mapped seller columns on every row.Default XLSX: ArdentaxIT bulk-upload headers (for example
Document number *, line columns); leaveconnector_keyempty.
Save locally with a unique filename, for example oracle-inv-20260326-001.json.
Step 2 — Connector JSON
Illustrative samples only: Connector field names are ERP-specific. Do not upload `sftp-connector-sale-invoice.example.json` unchanged — follow the connector preview click-path on a real export and use that output as your golden file.
Custom-mapped JSON must include any `connector_key` (or routing field) ArdentaxIT specified during onboarding, using the same field names as your ERP export samples. Typical shapes:
Flat object:
connector_keyplus ERP fields at the top level (as mapped).Wrapped object: top-level `payload` object containing `connector_key` and ERP fields; optional
metadataat the top level.
Shape detection (one file, one shape):
Do not mix patterns (for example ERP columns at the top level and a payload object); if payload is present, flat top-level ERP fields are ignored for routing.
On flat JSON, optional `source` or `source_system` at the top level sets the `Source` segment in sent_archive/{TIN}/{Source}/... (default `SFTP`). On wrapped JSON, set those keys inside payload — see the connector sample note below.
ArdentaxIT assigns the `connector_key` string when they publish the mapping for your samples. Do not invent field names—keep emitting the export shape that was onboarded. If required mapped fields are missing, the index row shows FAILURE with ingestion_message describing the gap.
Sample native JSON (supplier + customer)
For native JSON uploads (no connector_key), use one invoice object per file—not a JSON array. The body matches the REST Create sale invoice shape, including `accounting_supplier_party` (your issuing profile) and `accounting_customer_party` (the buyer).
Download a starter file, replace placeholders, and upload to sent_inbox/:
Set accounting_supplier_party.profile_id (or seller TIN) to a business profile on your account. Validate buyer fields against Customer validation.
Sample connector JSON (illustrative ERP export)
Wrapped example (fictional INVOICE_* keys inside `payload` — match your mapping, not this file):
Flat connector JSON (no top-level payload): put `connector_key` and ERP field names at the top level of the object — same keys your connector preview shows for a one-object export. Optional `metadata` at the top level is ignored for routing on wrapped files only.
For wrapped uploads, put optional `source` or `source_system` inside `payload` if you need a custom Source folder segment; the archive path uses `source` first, then `source_system`, otherwise `SFTP`. Top-level source_system alone is not read on wrapped files.
Credit notes and self-billed types: Same upload steps and folders; native JSON follows the matching create API pages. Connector uploads use the `connector_key` for that document type.
Step 3 — Multi-document XLSX grouping
Add a column
document_group_keywhose value on every data row is the header name of the business key column (for exampleTxn No) — not the invoice number itself.Add a column
Txn No(or your chosen name) with the invoice reference on each line row.Set the same
connector_keyon all rows when the whole file uses one connector.
Rows sharing the same Txn No value become one invoice with multiple lines.
A single XLSX may contain multiple document groups (different values in the grouping column). Each group is routed using the `connector_key` on its rows; use one connector per document type or split files when connectors differ.
Illustrative connector XLSX row (column names must match your published mapping — not copy-paste):
Every data row repeats `document_group_key` = Txn No, the same `connector_key`, and the same `Txn No` value for one invoice.
Step 4 — Upload to `sent_inbox`
GUI clients: connect with portal credentials, open sent_inbox, upload the file.
CLI:
sftp -P <port> <username>@<sftp-host> <<'EOF'
put /local/path/oracle-inv-20260326-001.json sent_inbox/
bye
EOFDo not create subfolders under sent_inbox.
Step 5 — Wait for Signal 1
Poll until the index exists (typically minutes depending on platform load):
sftp -P <port> <username>@<sftp-host> <<'EOF'
ls sent_archive/oracle-inv-20260326-001_index.json
bye
EOFDownload and inspect:
sftp -P <port> <username>@<sftp-host> <<'EOF'
get sent_archive/oracle-inv-20260326-001_index.json /tmp/
bye
EOF
jq -c 'if type=="array" then .[] else . end | {document_number, ingestion_status, document_uuid, peppol_status, retrieval_path}' /tmp/oracle-inv-20260326-001_index.jsonFor XLSX indexes, download the .xlsx and review columns in Excel, or convert to CSV before scripting.
Step 6 — Confirm inbox cleanup
List sent_inbox—your upload should be gone after successful pickup.
