Skip to main content

Connector API

A connector is one integration your organization runs โ€” an ERP or accounts-payable system that exchanges documents with GoRoute. The connector registry lets you register the connectors you operate and read their health.

There is exactly one row per (organization, connector type). Registering the same type twice updates the existing row rather than creating a second one.

Requires the connectors:manage permission โ€” most API keys do not have it

Every endpoint on this page is gated by connectors:manage, with two exceptions: held invoices and unpaid invoices and bills are gated by invoices:read instead, so that the people who work in finance can read them without being administrators.

The two calls that write into your accounting system, creating an invoice and recording a supplier bill, need connectors:manage like everything else here.

For an API key, that permission is granted only by the admin scope (and the legacy all scope). The read, write, send and integrate scopes do not include it, so a key with ordinary integration scopes receives HTTP 403 on every call here.

For a signed-in user, the org_owner, org_admin and developer roles hold it.

If you are getting 403 from these endpoints with a working API key, the key's scope is the reason โ€” not the key, and not your organization.

A refused call returns HTTP 403 with this body:

{
"error": "forbidden",
"error_code": "INSUFFICIENT_PERMISSION",
"message": "This action requires the 'connectors:manage' permission."
}

Connector typesโ€‹

connector_type must be one of these values. Any other value is rejected with HTTP 400.

ValueSystem
xeroXero
quickbooksQuickBooks
odooOdoo
zohoZoho Books
bolbol.com marketplace (Retailer API)
amazonAmazon seller account (Selling Partner API)
zuoraZuora
oracle_ebsOracle E-Business Suite
tallyTally
sapSAP
sage50Sage 50 Accounts, through the on-site agent
fusionOracle Fusion Cloud ERP: see Oracle Fusion Cloud ERP. Built, not yet proven on an instance, and switched on per organisation by GoRoute (until then its connect answers 403 with FEATURE_NOT_ENABLED)
netsuiteOracle NetSuite: see NetSuite. Built, not yet proven on an account, and switched on per organisation by GoRoute (until then its connect answers 403 with FEATURE_NOT_ENABLED)
apiDirect API integration
customAnything else you operate

List your connectorsโ€‹

GET /api/v1/connectors

Returns the connectors belonging to the calling organization, ordered by connector_type, each with its derived health.

curl https://app.goroute.ai/peppol-api/api/v1/connectors \
-H "X-API-Key: your_api_key"

The response is an object with a single connectors array:

{
"connectors": [
{
"id": "3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1",
"connector_type": "odoo",
"status": "active",
"display_name": "Odoo Online (production)",
"config": {
"environment": "production"
},
"api_key_id": "c1d2e3f4-5678-4abc-9def-0123456789ab",
"api_key_prefix": "pk_live_ab12",
"last_seen_at": "2026-08-16T09:12:44+00:00",
"last_document_at": "2026-08-16T09:12:44+00:00",
"health_status": "healthy",
"last_error": null,
"needs_attention": [],
"created_at": "2026-05-02T11:00:00+00:00",
"updated_at": "2026-08-16T09:12:44+00:00",
"poll_interval_seconds": 300
}
]
}

Your clients' connectors (partners)โ€‹

A partner that supports its clients can see every client's connectors in one list, without acting as each client in turn. Add scope=subtree:

GET /api/v1/connectors?scope=subtree
curl "https://app.goroute.ai/peppol-api/api/v1/connectors?scope=subtree" \
-H "X-API-Key: your_api_key"

The list covers your own organisation and every active organisation beneath it, at any depth: your clients, and their clients. Your own organisation comes first, then the others in order of name. Within each organisation, connectors are ordered by connector_type.

The call is read-only, and each row is short. A row has exactly these eight fields:

FieldWhat it holds
org_idThe organisation the connector belongs to
org_nameThat organisation's name
connector_typeOne of the connector types
statusconfigured, active or disabled, as in the full list
last_success_atThe last time a document went through this connector, or null
held_countHow many invoices the connector is holding: the same entries as held invoices. Invoices someone skipped or marked never send are not counted
stuck_countHow many of those have been held longer than that client's stuck-alert threshold (3 days unless the client set another).
last_errorThe first sentence of the connector's last error, at most 200 characters, or null

A row carries no config, no credentials and no API key. To read a connector in full, or to change it, open that client's own organisation.

{
"scope": "subtree",
"connectors": [
{
"org_id": "11111111-2222-4333-8444-555555555555",
"org_name": "Example Partner LLC",
"connector_type": "api",
"status": "active",
"last_success_at": "2026-10-20T08:01:12+00:00",
"held_count": 0,
"last_error": null
},
{
"org_id": "66666666-7777-4888-9999-000000000000",
"org_name": "Example Client One SAOC",
"connector_type": "zoho",
"status": "active",
"last_success_at": "2026-10-19T14:22:05+00:00",
"held_count": 2,
"last_error": "2 invoices were not accepted: INV-000101, INV-000102."
}
]
}
  • Nothing beneath you: you get your own organisation's connectors, in this short shape.
  • Acting as a client (read-only): you get only the connectors of the client you are viewing.
  • Without scope, or with any other value: the call returns your own connectors in the full shape shown above.

The call needs the same connectors:manage permission as the rest of this page: a partner key with the admin scope, or a signed-in org_owner, org_admin or developer.

Register or update a connectorโ€‹

POST /api/v1/connectors
This is an upsert, not a create

POST is idempotent on (organization, connector type). Sending it for a connector_type you already have updates that connector โ€” it does not create a second one, and it does not return a conflict. If you expected create semantics, this will surprise you.

Only the top-level fields you send are changed; omitted top-level fields are left as they are. config is the exception โ€” on POST, if you send it at all, it replaces your own settings in it. GoRoute's own working keys that you leave out are kept. To change one setting, use PATCH, which merges. See how config is written.

FieldRequiredNotes
connector_typeYesOne of the connector types. Anything else is HTTP 400.
display_nameNoFree text, maximum 120 characters.
configNoSettings object. On POST, replaces your own settings; GoRoute's own working keys you leave out are kept โ€” see below.
api_key_idNoAn API key belonging to your organization. A key from another organization is HTTP 400.
curl -X POST https://app.goroute.ai/peppol-api/api/v1/connectors \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"connector_type": "odoo",
"display_name": "Odoo Online (production)",
"config": {"environment": "production"}
}'

The response is the single connector object, in the same shape as the list entries.

Response fieldsโ€‹

FieldMeaning
idConnector UUID.
connector_typeOne of the connector types.
statusconfigured, active or disabled.
display_nameYour label, or null.
configSettings object. Returned to callers in full โ€” see the warnings below.
api_key_id / api_key_prefixThe API key tagged to this connector, if any. Only the prefix is shown.
last_seen_atLast time traffic was attributed to this connector.
last_document_atLast document handled.
health_statusDerived at read time โ€” see below. Not stored.
last_errorOne line of text, usually summarising every invoice currently parked and who has to fix them โ€” but not always. Read it together with the next field, and see below. Null when there is nothing to report.
last_error_is_held_summarytrue when last_error only restates the parked list; false when it is something else, such as a connection that could not be made โ€” see last_error is not always about invoices. On both the production and test services since 22 September 2026; the availability note in that section has the dates.
needs_attentionSorted list of parked invoice names, and nothing else about them โ€” see below. An invoice someone skipped or marked never send is not in it.
held_invoicesThe same parked invoices, but each with its reason and who has to fix it โ€” see Held invoices, with reasons. On both the production and test services since 22 September 2026; the availability note in that section has the dates.
created_at / updated_atTimestamps.
poll_interval_secondsThe cadence the poller actually runs at, reported rather than assumed.

needs_attention โ€” the invoices a person has to unstickโ€‹

needs_attention lists invoices that were skipped because only a person can fix them โ€” for example a rejected invoice that would otherwise block the queue. It is the sorted list of keys held in the connector's parked-invoice register.

Every pull connector writes that register: Odoo, Zoho Books, bol.com, Amazon, SAP S/4HANA with automatic sending on, Oracle Fusion Cloud ERP and NetSuite. It is still not a universal mechanism. A connector type nobody polls has nothing to park, so it always shows an empty needs_attention, and for those types an empty list should not be read as "nothing is wrong". That includes the on-site agents for Sage 50, Oracle EBS and Tally: their held lists are on the agent and reach GoRoute in its status, not in this register, and Tally's as a count only. Tally has been an agent connector on app.goroute.ai since 22 November 2026 and on GoRoute's test service since 17 November 2026; GoRoute's services in Oman take it with their next release.

What to do about a parked invoice, and how each connector brings it back, is on Connectors โ†’ When an invoice cannot be sent.

last_error โ€” a summary of what is parked, and whose fault it isโ€‹

last_error is not the last thing that went wrong. It is rebuilt on every poll from the whole parked register, so it describes everything currently parked, not only the most recent one. Every pull connector builds it the same way.

The part worth reading is that it says who can fix it:

  • A fault the customer has to fix reads "<invoice> was not accepted: <reason> Correct it in your accounting system and it will be picked up automatically."
  • A fault GoRoute has to fix reads "<invoice> could not be processed because of an error on GoRoute's side: <reason> We retry it automatically โ€” no action is needed in Odoo." That sentence names Odoo whichever connector it came from, including Zoho Books; read it as "no action is needed in your accounting system".
  • With several parked at once it names up to four invoices, counts the rest, and โ€” when the two kinds are mixed โ€” says how many of them failed on GoRoute's side and retry automatically.

Do not tell a customer to go and correct invoices that the line says are waiting on us.

The line is capped at 500 characters, so a long reason behind many parked invoices is cut short; needs_attention always has the full list of names.

last_error is still not a permanent record. Once the register is empty and a cycle passes with no failure, the poller sets it back to null and resets the error count. The record that survives is needs_attention: an invoice stays listed there until it is either sent or superseded.

last_error is not always about invoicesโ€‹

Everything above describes a poll that reached your accounting system. A poll that could not log in never gets as far as the parked register, so last_error then holds the connection failure instead โ€” text like "Odoo rejected the credentials" rather than a list of invoices.

That is the trap: the line still reads like an invoice problem, and a person who treats it as one can spend an afternoon correcting invoices that were never the cause.

last_error_is_held_summary is the field that tells the two apart.

last_errorlast_error_is_held_summaryWhat it means
SettrueThe line restates the parked list. Correcting those invoices is the remedy.
SetfalseThe line is about something else โ€” most often that GoRoute could not reach or log in to your system. Correcting invoices will not help. Fix the connection first.
nullfalseNothing to report.

The field is deliberately cautious: GoRoute answers true only when last_error is character-for-character the summary it builds from the parked register. Anything it cannot be sure about answers false, which shows you the message rather than hiding it. So a false on a connector that is otherwise fine costs you a second look; it never costs you a hidden outage.

Availability โ€” on both services, checked 23 September 2026

last_error_is_held_summary is on GoRoute's production service and on its test service. It reached test on 20 September 2026 and production on 22 September 2026, when production was upgraded to the build test was already running.

You can still check rather than trust this page: call GET /api/v1/connectors on the service you use and look for last_error_is_held_summary on a connector.

Run a sync now, and read what it didโ€‹

POST /api/v1/connectors/{connector_id}/sync

Runs one poll cycle immediately instead of waiting for the schedule, and returns what that cycle did. It needs connectors:manage, like the rest of this page, and it returns HTTP 400 if the connector is not connected.

FieldMeaning
fetchedInvoices read from your accounting system this cycle.
submittedInvoices sent onward to the network.
failedInvoices that could not be submitted.
unreachable1 when the cycle could not reach your system at all, otherwise 0.
last_errorThe connector's last_error after the cycle โ€” read it with last_error_is_held_summary above.
connectorThe whole connector object, in the same shape as a list entry.
failed: 0 does not mean the sync worked

failed counts invoices, so a cycle that never logged in has no invoices to count and comes back {"fetched": 0, "submitted": 0, "failed": 0} โ€” byte for byte what an idle, healthy connector returns. That is exactly what a customer saw for four hours on 20 September 2026 while nothing at all was being sent.

unreachable is the field that separates the two. unreachable: 1 with zeros everywhere else means the cycle never got in, not that there was nothing new.

A cycle counts as unreachable in four situations: the stored credentials cannot be read, the connector is sitting out a wait after earlier failures (below), the stored address is one GoRoute refuses to dial, or the connection itself failed.

Availability โ€” on both services, checked 23 September 2026

unreachable is on GoRoute's production service and on its test service. It reached test on 20 September 2026 and production on 22 September 2026, when production was upgraded to the build test was already running. Call the endpoint on your own service and see whether the key comes back. Zoho Books connectors return 0 here; the counter is written by the Odoo poll.

After repeated failures, GoRoute waits before dialling againโ€‹

A connector whose credentials have stopped working used to be re-dialled on every cycle, for as long as it stayed broken. It now backs off: after the first failed connection GoRoute waits 30 seconds before trying again, and doubles that wait with each further failure, up to a ceiling of ten minutes. These waits are minimums: a connector is dialled only when its regular check runs, every 5 minutes by default, so in practice attempts are 5 minutes apart until the wait grows past that.

What an operator needs to know about it is short:

  • The ordinary recovery never waits. Pressing Connect or Test โ€” or calling POST /api/v1/connectors/{connector_id}/connect or .../test โ€” clears the wait immediately, because both of those prove the connection before they return. Disconnecting clears it too. So pasting a working credential and pressing Connect takes effect at once.
  • Connect and Test also clear last_error and the error count, so the health badge turns from red as soon as the connection is proved, rather than at the next successful poll.
  • While the wait is running, cycles still report unreachable: 1. A connector is no healthier for not having been dialled, so a skipped cycle is reported rather than shown as idle.
  • Anything GoRoute is unsure about resolves towards dialling, not towards waiting. A connector that has been fixed is never held down by a wait it cannot see.
Availability โ€” on both services, checked 23 September 2026

The wait is on GoRoute's production service and on its test service. It reached test on 20 September 2026 and production on 22 September 2026, when production was upgraded to the build test was already running. There is no field that reports it directly; the way to tell is that connect_backoff appears in the connector's config โ€” see the table under how config is written.

Held invoices, with reasonsโ€‹

GET /api/v1/connectors/held-invoices

One entry per invoice your connectors are currently holding, across all of your connectors, each carrying the reason it was held. This is the read side of the same register that needs_attention lists by name: the names told you which invoices were stuck, and never why.

Availability โ€” on both services, checked 23 September 2026

This call, and the held_invoices field on GET /api/v1/connectors, are on GoRoute's production service (app.goroute.ai) and on its test service (app-test.goroute.ai). They reached test on 19 September 2026 and production on 22 September 2026, when production was upgraded to the build test was already running.

On 19 September 2026 production still answered 404 here; on 23 September 2026 it answers 401, the same as GET /api/v1/connectors on that host, which is the answer a real address gives to a caller with no key.

Rather than trust this page, call the address on the service you use. A 404 would mean your service does not have it: fall back to needs_attention and last_error, which are on both.

Permissionโ€‹

This one call needs invoices:read, not the connectors:manage that the rest of this page needs. That is deliberate. The connector page is an administrator's page, but the person who can actually correct a held invoice works in finance โ€” and a held invoice never becomes a transaction or a draft, so without this call there is no screen on which that person can learn that an invoice they raised went nowhere, or why.

  • Signed-in users: every organization role holds invoices:read โ€” org_owner, org_admin, finance, operations, developer and viewer.
  • API keys: the read, write, admin and legacy all scopes include it. The send and integrate scopes do not, so a key with only those scopes gets HTTP 403.
curl https://app.goroute.ai/peppol-api/api/v1/connectors/held-invoices \
-H "X-API-Key: your_api_key"

Responseโ€‹

{
"held_invoices": [
{
"name": "INV/2026/00042",
"reason": "VATEX-OM-01 is an exemption code but the tax is zero-rated.",
"guide": {
"title": "A 0% tax carries the code VATEX-OM-01, which is for the other kind of 0% sale: a tax marked zero-rated needs a VATZR-OM code.",
"steps": [
"In Odoo, open Accounting โ€บ Configuration โ€บ Taxes and open the tax whose name contains VATEX-OM-01.",
"Replace the code with the VATZR-OM code that describes the sale, and save."
],
"next": "Nothing else to do: the invoice is checked again by itself within about 15 minutes and sent. To send it at once, press Retry now beside it on the portal.",
"reference": null
},
"explanation": "A 0% tax carries the code VATEX-OM-01, which is for the other kind of 0% sale: a tax marked zero-rated needs a VATZR-OM code.\nWhat to do:\n1. In Odoo, open Accounting โ€บ Configuration โ€บ Taxes and open the tax whose name contains VATEX-OM-01.\n2. Replace the code with the VATZR-OM code that describes the sale, and save.\nNothing else to do: the invoice is checked again by itself within about 15 minutes and sent. To send it at once, press Retry now beside it on the portal.",
"kind": "customer",
"first_failed_at": "2026-09-18T07:14:02.481913+00:00",
"last_tried_at": "2026-09-19T06:02:11.903244+00:00",
"document": "invoice",
"customer": "Muscat Horizon Trading LLC",
"invoice_date": "2026-09-17",
"amount_total": 819.0,
"currency": "OMR",
"source_url": "https://mycompany.odoo.com/web#id=1042&model=account.move&view_type=form",
"source_note": "posted",
"connector_id": "3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1",
"connector_type": "odoo"
}
],
"total": 1
}

Entries come back oldest failure first, so the invoice that has been stuck longest is at the top. total is the number of entries in the list.

FieldMeaning
nameThe invoice number as your accounting system holds it. The one field that is always present.
reasonWhy it was held, in the words the sender was given. null when the entry was written by a release that did not record one โ€” reported as missing rather than guessed at. Kept exactly as written, for support; guide is what a person should read.
guideThe same reason in plain words, as an object: title (what is wrong, without rule codes), steps (what to do, in order, in the system the invoice was raised in; Odoo gets its own menu paths), next (what happens after that) and reference (the rule codes the reason cited, for support; null when it cites none). Always present: a reason the guide does not recognise, or no reason at all, gets a general guide.
explanationguide as plain text: the title, "What to do:" and the numbered steps, next, and last "Reference for support: โ€ฆ" when there is a reference. One line per part.
kindWho has to fix it. customer โ€” the remedy is in your accounting system, and the invoice is re-presented by itself once you correct it. platform โ€” GoRoute's code failed, and nothing you change will help. Entries written before this field existed read customer.
first_failed_atWhen it was first held. This is the "how long has this been stuck" field; it is not overwritten on a retry.
last_tried_atWhen it was last attempted.
documentinvoice or credit_note.
customerThe buyer named on it.
invoice_dateThe invoice date.
amount_totalThe gross total, as a number.
currencyThe currency as your accounting system names it.
source_urlA link that opens the invoice where it was written. Odoo only, and only when the stored address plainly begins https:// or http://; otherwise null.
source_noteWhether the reason also reached the invoice in the source system: posted, failed, or null when that was never attempted. In Odoo the reason is a note on the invoice; in Zoho Books an internal comment on the invoice or credit note; in Oracle Fusion Cloud ERP, with write-back on, the flexfield or attachment GoRoute writes; in NetSuite, with write-back on, the two custom body fields GoRoute writes. The connectors that have nowhere to write the reason carry null. failed matters โ€” it means this list is the only place the reason can be read.
connector_id / connector_typeWhich of your connectors is holding it.

Fields other than name may be absent on older entries: the register has grown a field at a time since August 2026, and rows written by earlier releases are still in it.

guide and explanation have been on app.goroute.ai since 22 November 2026 and on GoRoute's test service since 16 November 2026. GoRoute's services in Oman take them with their next release; until then their entries carry reason only.

An Odoo invoice taken back in Odoo leaves the list. If a held Odoo invoice is reset to draft, cancelled or deleted in Odoo, it leaves the list the next time GoRoute checks it again: about every 15 minutes, or at once when someone presses Retry now. An entry stays if Odoo could not be asked at that moment, or if it was held before GoRoute recorded which Odoo record it was. This has been on app.goroute.ai and on GoRoute's test service since 22 November 2026; GoRoute's services in Oman take it with their next release.

What to do about a held invoice, and how each connector brings it back, is on Connectors โ†’ When an invoice cannot be sent.

Every entry also carries status โ€” held, or with include=skipped (below) skipped or never_send โ€” and stuck_alerted_at, the time the stuck alert e-mailed about it, or null.

Skipped invoices in the listโ€‹

GET /api/v1/connectors/held-invoices?include=skipped
GET /api/v1/connectors/{connector_id}/held-invoices?include=skipped

Without include=skipped the list holds only what still needs attention. With it, the invoices someone skipped or marked never send are listed too, each with:

FieldMeaning
statusskipped or never_send
skip_reasonThe reason given
skipped_atWhen
skipped_byWho: the person's e-mail address, or the API key's name

The second form lists one connector's invoices and answers {"connector_id", "connector_type", "held_invoices", "total"}. Both need invoices:read. The second form answers 400 with error_code NO_HELD_REGISTER for a connector type that keeps no held register, the on-site agents included.

Retry, skip or never send a held invoiceโ€‹

On every GoRoute service

These calls, the per-connector list, include=skipped, the status and stuck_alerted_at fields, stuck_count and the stuck alert are on every GoRoute service: on production and the test service since 8 November 2026, and on GoRoute's services in Oman since 10 November 2026.

POST   /api/v1/connectors/{connector_id}/held-invoices/{key}/retry
POST /api/v1/connectors/{connector_id}/held-invoices/{key}/skip {"reason": "..."}
POST /api/v1/connectors/{connector_id}/held-invoices/{key}/never-send {"reason": "..."}
DELETE /api/v1/connectors/{connector_id}/held-invoices/{key}/skip

These calls are for every connector that holds documents: Odoo, Zoho Books, bol.com, Amazon, SAP S/4HANA, Oracle Fusion Cloud ERP and NetSuite, and the on-site Oracle EBS agent (see On-site agent connectors below). All four need connectors:manage; a role without it gets 403.

key is the held invoice's name from the list, URL-encoded: INV/2026/00042 is sent as INV%2F2026%2F00042 (a / sent as it is also works). For bol.com the name is the order id, for Amazon the shipment key, for SAP S/4HANA the billing document number (90000002), for Oracle Fusion the transaction number, for NetSuite the document number (when an invoice and a credit memo held at the same time share one, the second is listed under GoRoute's own send key), for Oracle EBS the transaction number.

CallWhat it does
Retry nowSends the invoice through again at once, without waiting for the next automatic retry. Odoo fetches that one invoice and nothing else; the other systems run one sync with this invoice first in line (a Zoho Books sync fetches back a limited number of held invoices, so on a long list a second press may be needed). The connector must be connected, or the call answers 400. A skipped or never-send invoice answers 409 HELD_INVOICE_SKIPPED: un-skip it first.
SkipStops retrying the invoice and takes it out of what needs attention. reason is required (up to 500 characters): without one the call answers 422 and nothing changes. A skip lasts until the invoice changes in your accounting system. In Odoo, Zoho Books, SAP S/4HANA, Oracle Fusion and NetSuite that is any edit (its change date moves); for bol.com and Amazon, the order or shipment coming back refused for a different reason. Then it is held, or sent, like any other.
Never sendFor an invoice handled outside GoRoute, for example sent on paper. It is never retried and never sent, even if it changes in your accounting system or you reconnect the connector. reason is required. A never send outlives a reconnect, which clears the held list, and can then be given a new reason with the same call.
Un-skipLifts a skip or a never send. The invoice is held again and retried on its usual schedule, or press Retry now.

Responsesโ€‹

Retry now answers what happened to the invoice, the counts of the sync it ran, and the connector's last_error afterwards:

{
"connector_id": "3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1",
"connector_type": "odoo",
"key": "INV/2026/00042",
"state": "held",
"held_invoice": {
"name": "INV/2026/00042",
"reason": "VATEX-OM-01 is an exemption code but the tax is zero-rated.",
"kind": "customer",
"status": "held",
"first_failed_at": "2026-09-18T07:14:02.481913+00:00",
"last_tried_at": "2026-11-09T08:02:11.903244+00:00"
},
"cycle": {"fetched": 1, "submitted": 0, "failed": 1, "parked": 1, "unreachable": 0},
"last_error": "INV/2026/00042 was not accepted: โ€ฆ"
}
stateMeaningheld_invoice
sentIt went. It is no longer held.null
heldRefused again. held_invoice.reason says why.the row, as the list shows it
no_longer_heldIt had already been sent, or is no longer posted in your accounting system. Nothing was sent.null
unreachableYour accounting system could not be reached; last_error says why.the row

held_invoice has the same fields as an entry of the list; the example shows some of them.

Skip and Never send answer the invoice's row as the list with include=skipped shows it, and state skipped or never_send:

{
"connector_id": "3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1",
"connector_type": "odoo",
"key": "INV/2026/00042",
"state": "skipped",
"held_invoice": {
"name": "INV/2026/00042",
"status": "skipped",
"skip_reason": "Sent to the customer by post",
"skipped_at": "2026-11-09T08:05:40.118201+00:00",
"skipped_by": "finance@example.com"
}
}

Un-skip answers in the same shape, with state held when the invoice is held again, or not_held when only a never-send mark was left and its invoice is no longer in the held list.

curl -X POST "https://app.goroute.ai/peppol-api/api/v1/connectors/3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1/held-invoices/INV-000042/skip" \
-H "X-API-Key: your_api_key" -H "Content-Type: application/json" \
-d '{"reason": "Sent to the customer by post"}'

When it is refusedโ€‹

Statuserror_codeWhen
400NO_HELD_REGISTERThe connector type keeps no held list: Xero, QuickBooks, Zuora, Tally, api, custom. Also Un-skip on an on-site agent connector (see below).
400โ€”Retry now on a connector that is not connected: "Connect the connector first."
404HELD_INVOICE_NOT_FOUNDkey is not held by this connector.
404HELD_INVOICE_NOT_SKIPPEDUn-skip of an invoice that is neither skipped nor marked never send.
409HELD_INVOICE_SKIPPEDRetry now on a skipped or never-send invoice.
409HELD_INVOICE_NOT_HELDSkip of an invoice no longer held, of which only a never-send mark remains. Never send is still accepted.
422โ€”Skip or Never send without a reason, or with one that is only spaces.

Who did what: the audit logโ€‹

Each of the four is written to your organisation's audit log in the same transaction as the change, as connector.held_invoice.retry, .skip, .never_send or .unskip, with who did it (the signed-in person, or the API key), when, the invoice, the connector and the reason.

On-site agent connectorsโ€‹

For Oracle EBS the held list is the one its agent reports, and the document lives in EBS on your network, so GoRoute cannot act on it directly. The same three calls queue a command for the agent instead, which applies it in EBS at its next heartbeat (normally within a minute):

  • The answer is state queued, with the agent's command (id, type, params, status, issued_by, issued_at, delivered_at, finished_at, detail). Its status moves from pending through delivered to done or failed, with detail saying what happened, or to cancelled when a later command for the same document replaced it.
  • Add ?document_id=<the ERP's own id> when the same number exists more than once in EBS.
  • A second Retry, Skip or Never send of the same document replaces one still waiting. A command for another document is left alone.
  • Un-skip is not offered: Retry now on a skipped document sends it again.
  • 409 AGENT_NOT_ENROLLED before an agent has enrolled; 409 COMMAND_NOT_SUPPORTED for an agent that does not act on single documents (Sage 50, whose held invoices are handled in the agent window); 400 DOCUMENT_REQUIRED for an empty key or one longer than 60 characters; 400 REASON_REQUIRED for a Skip or Never send without a reason.
  • The audit entries are the same, written when the command is queued.

The agent's own command channel, POST /api/v1/connectors/{connector_id}/agent/commands, does not take these three: it answers 400 USE_HELD_INVOICES_ROUTE. What each action does in EBS is on Oracle EBS R12 โ†’ Retry, Skip and Never send.

The stuck alertโ€‹

Once a day, at 06:17 UTC, the invoices a connector has held for longer than 3 days are e-mailed to your organisation's owners and administrators (or, when it has none, its contact address), one e-mail per connector, each invoice with its reason and a link to the connector. A white-label partner's owners, administrators and partner administrators are copied for its clients. Each invoice is e-mailed once each time it is held: one that is sent and later held again is e-mailed again. Skipped and never-send invoices are not included, and neither are the on-site agents' held lists.

Your organisation chooses whether it gets this e-mail and after how many days (1 to 90), in Company settings โ€บ Notifications โ€บ Invoices a connector is holding, or with PUT /api/v1/settings/company/notifications and the fields connector_stuck (true or false) and connector_stuck_days; send only the fields you change. An organisation that has never chosen gets the service's default:

  • On GoRoute's production and test services: the e-mail is on.
  • On GoRoute's services in Oman: the e-mail is off until your organisation turns it on.

GET /api/v1/settings/company/notifications answers connector_stuck and connector_stuck_days as they apply to your organisation now: whether it gets the e-mail, and after how many days. Where your organisation never chose the days, the answer shows the number support set for it before this choice existed, or 3.

The time it was e-mailed is the entry's stuck_alerted_at in the list. On the test service, invoices that were already stuck when the e-mail was first switched on there were recorded as told without being e-mailed, so they show a stuck_alerted_at time although no e-mail was sent for them.

From 10 November 2026 each organisation chooses. Before that, GoRoute support set the number of days, and GoRoute's services in Oman sent no stuck e-mail. Before 8 November 2026 it was not sent on production.

E-mails as it happensโ€‹

On app.goroute.ai since 22 November 2026 and on GoRoute's test service since 16 November 2026; GoRoute's services in Oman take it with their next release. Two more notices, both off until your organisation turns them on, in Company settings โ€บ Notifications or with PUT /api/v1/settings/company/notifications:

FieldWhat it does
connector_held_nowtrue: within about ten minutes of a pull connector holding an invoice, one e-mail lists everything newly held on that connector, with the reason for each and who corrects it. Each invoice is listed once each time it is held.
connector_unreachabletrue: one e-mail when the connection to your accounting system has failed connector_unreachable_tries times in a row, and one when it works again.
connector_unreachable_triesA whole number from 2 to 16; 5 when you never chose. See how the attempts are spaced.

GET /api/v1/settings/company/notifications answers all three as they apply now. The e-mails go to the same people as the stuck alert. Skipped and never-send invoices are not included, and neither are the on-site agents' held lists.

E-mails when a sent document failsโ€‹

The notices above cover the invoices a pull connector holds before sending them, and a connection that is down. A document that was sent and then failed has two notices of its own, whichever way it was sent: the API, a batch, a file import, the portal, or a pull connector. They are off until your organisation turns them on, in Company settings โ€บ Notifications or with PUT /api/v1/settings/company/notifications:

On the test service first

These two e-mails run on GoRoute's test service and reach production in a later release. On a service without them, GET /api/v1/settings/company/notifications answers without document_failed_now, and a request that sets only the three fields below is refused with 422.

FieldWhat it does
document_failed_nowtrue: within about ten minutes of a document failing for good, one e-mail lists everything that failed since the last one, with the reason for each. Failed for good means a sent transaction that ended failed (its retries used up, or refused before it was sent) or authority_rejected, a batch item that ended failed or invalid without becoming a transaction, or a row a file import refused. A document that failed more than a day before the notice first sees it is not included.
document_failed_dailytrue: once a day, from 06:00 UTC, one e-mail lists the documents of the last 7 days that failed and have not been sent since. A document leaves the list once it is sent again (retried, resent, or sent with the same number) or deleted. No e-mail on a day with nothing to list.
notification_recipientsUp to 10 more e-mail addresses that receive these two e-mails. Send the whole list; [] removes them all. An address that is not one is refused with 422.

Each e-mail lists at most 50 documents and counts the rest, with a link to each one in your transactions. A document a pull connector sent is named with its connector, so you know to correct it in that system. An invoice the connector is holding (in its held list, sent or not) is left to the connector notices above, so the same invoice is never in both. The e-mails go to your organisation's owners and administrators (or its contact e-mail when it has none), to its white-label operator's administrators for a partner's client, and to notification_recipients. GET /api/v1/settings/company/notifications answers all three fields.

Unpaid invoices and bills in your accounting systemโ€‹

GET /api/v1/connectors/{connector_id}/open-items

What is still to be paid, read live from your own accounting system through one of your connectors: the sales invoices your customers still owe you, or the supplier bills you still owe. It reads the accounting system's own payment records, not GoRoute's transactions, so an invoice paid in the accounting system drops off this list there and then. Nothing is written.

It works with an Odoo or a Xero connector. The connector must be active.

Query parameterDefaultWhat it does
directionsalessales for invoices your customers owe you, purchases for bills you owe. Any other value is read as sales
overdue_onlyfalsetrue keeps only the documents past their due date

It needs invoices:read, the same permission as held invoices, so the roles and API key scopes listed there apply.

curl "https://app.goroute.ai/peppol-api/api/v1/connectors/3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1/open-items?direction=sales&overdue_only=false" \
-H "X-API-Key: your_api_key"

Responseโ€‹

For an Odoo connector:

{
"connector_id": "3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1",
"system": "odoo",
"direction": "sales",
"as_of": "2026-11-01",
"items": [
{
"number": "INV/2026/00038",
"contact": "Muscat Horizon Trading LLC",
"issue_date": "2026-09-20",
"due_date": "2026-10-20",
"currency": "OMR",
"total": 819.0,
"amount_paid": 300.0,
"amount_due": 519.0,
"days_overdue": 12,
"status": "overdue",
"part_paid": true
},
{
"number": "INV/2026/00051",
"contact": "Sohar Marine Supplies SAOC",
"issue_date": "2026-10-28",
"due_date": "2026-11-27",
"currency": "OMR",
"total": 210.0,
"amount_paid": 0.0,
"amount_due": 210.0,
"days_overdue": 0,
"status": "open",
"part_paid": false
}
],
"totals": {
"OMR": { "open": 729.0, "overdue": 519.0, "count": 2 }
}
}
FieldMeaning
system, direction, as_ofWhich accounting system answered, which side you asked for, and the date the overdue days were counted from
numberFor a sales invoice, its number in the accounting system. For a bill, the supplier's own invoice number, or the accounting system's number when the bill has none
contactThe customer or supplier
issue_date, due_dateThe invoice date and the due date
currencyThe document's currency, as the accounting system names it
total, amount_paid, amount_dueThe gross total, what has been paid, and what is still due
days_overdueDays since the due date; 0 when it is not yet due or has no due date
statusoverdue once the due date has passed, otherwise open
part_paidtrue when part of it has been paid
totalsOne entry per currency: open is everything still due, overdue the late part of it, count the number of documents

Items come back in due-date order, earliest first, with those that have no due date at the end.

From Odoo, GoRoute reads posted customer invoices (or vendor bills) whose payment state is not paid or partly paid. When the connector is set to one company with company_id, only that company's documents are read. It reads at most 500 documents, in Odoo's own order, and overdue_only is applied to those 500, so a database with more unpaid documents than that sees only part of them.

From Xero, the call is passed to your own Xero connector service, at the address and with the token stored on the connector. A Xero connector without them answers 409 CONNECTOR_NOT_CONFIGURED.

When it is refusedโ€‹

Statuserror_codeWhy
400CONNECTOR_NOT_AN_ACCOUNTING_SYSTEMThe connector is not Odoo or Xero
403INSUFFICIENT_PERMISSIONThe caller does not hold invoices:read
404โ€”No connector with that id in your organization
409CONNECTOR_NOT_ACTIVEThe connector is not active: connect it first
409CONNECTOR_NOT_ACTIVEXero: the Xero connector service says Xero is not connected to it
409CONNECTOR_NOT_CONFIGUREDThe connector has no usable credentials (Odoo), or no service address or token, or the Xero connector service refused the token (Xero)
502ERP_UNREACHABLEThe accounting system, or the Xero connector service, did not answer or refused the call

Create an invoice or record a bill in your accounting systemโ€‹

POST /api/v1/connectors/{connector_id}/invoices
POST /api/v1/connectors/{connector_id}/bills

These two calls write into your own accounting system through one of your connectors. The first creates a customer invoice there. The second records a supplier's invoice there as a draft bill. Both work with an Odoo or a Xero connector, and the connector must be active. Both need connectors:manage, like the rest of this page.

Each takes the invoice in GoRoute's JSON invoice format, the same shape as POST /api/v1/invoices, under invoice.

CallBody fieldDefaultWhat it does
โ€ฆ/invoicesinvoiceโ€”The invoice to create. buyer must have a name
โ€ฆ/invoicesposttruetrue posts (confirms) the invoice. false leaves a draft
โ€ฆ/invoicescreate_missing_customertrueCreate the customer as a contact when none matches. With false, an unmatched customer is refused
โ€ฆ/billsinvoiceโ€”The supplier's invoice. seller is the supplier and must have a name
โ€ฆ/billscreate_missing_suppliertrueOdoo only: create the supplier as a contact when none matches. With false, an unmatched supplier is refused
post: true sends the invoice over Peppol

With post left at its default, the invoice is posted in Odoo (approved, in Xero). Your connector then picks it up like any invoice keyed in the accounting system and sends it over Peppol to the customer. It then appears under Transactions with its delivery status. Use post: false to create a draft that is not sent. Never try this call with post: true against a live accounting system unless you mean to invoice that customer.

What the invoice call doesโ€‹

  • The customer is matched to exactly one contact. Odoo matches by its Peppol ID, then its VAT number, then its exact company name. Xero matches by its VAT number, then its name. If several contacts match, the call is refused rather than guessing. If none matches, the customer is created as a new contact, unless create_missing_customer is false.
  • The number is the accounting system's own. Odoo and Xero each number the invoice from their own sequence, and a number in the body is not used. Odoo says so in warnings. Xero does not.
  • The tax on each line is the company's sales tax at that line's rate. If Odoo has no sales tax at that rate, the line is created without a tax and warnings says so: set it in Odoo before posting. Xero uses the account's default tax and also warns.
  • A credit note is created in Odoo when the invoice's document_type is credit_note. Xero cannot take a credit note through this call. It creates an ordinary sales invoice whatever the document_type, and with post: true that invoice is approved and sent. Raise a credit note for a Xero customer in Xero itself.
  • The currency must be active in Odoo, or the call is refused.
  • In Odoo, the buyer reference becomes the payment reference and the order reference the source document, where that Odoo has the field.
curl -X POST "https://app.goroute.ai/peppol-api/api/v1/connectors/3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1/invoices" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"post": false,
"invoice": {
"issue_date": "2026-11-02",
"due_date": "2026-12-02",
"currency": "OMR",
"buyer": {
"name": "Sohar Marine Supplies SAOC",
"vat_number": "OM1100012345"
},
"lines": [
{ "description": "Consulting, October", "quantity": 10, "unit_price": 35, "tax_rate": 5 }
]
}
}'

From Odoo, the answer carries move_id (Odoo's record id), odoo_number, state (draft or posted), amount_untaxed, amount_tax and amount_total, partner_id, customer_matched_by (routing_endpoint or peppol_endpoint for the Peppol ID, vat, name, or created), customer_created, warnings, the connector's company_id and company_name, and next, a sentence saying what happens now. From Xero it carries xero_invoice_id, xero_number, status, currency, subtotal, tax, total, contact, customer_matched_by (tax_number, name or created), url (the invoice in Xero), warnings and next.

What the bill call doesโ€‹

  • The bill is a draft. It is never posted or approved: your accountant checks it in the accounting system and posts it.
  • The supplier is matched in Odoo as the customer is above, and created when none matches, unless create_missing_supplier is false.
  • The supplier's own invoice number becomes the bill's reference.
  • No duplicates. If a bill from the same supplier with the same number is already in Odoo, the call reports it with already_in_odoo: true and creates nothing.
  • The tax on each line is the company's purchase tax at that line's rate, with a warning for a rate it does not have.
curl -X POST "https://app.goroute.ai/peppol-api/api/v1/connectors/3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1/bills" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"invoice": {
"number": "SMS-4471",
"issue_date": "2026-10-30",
"due_date": "2026-11-29",
"currency": "OMR",
"seller": { "name": "Sohar Marine Supplies SAOC", "vat_number": "OM1100012345" },
"lines": [
{ "description": "Mooring lines", "quantity": 4, "unit_price": 50, "tax_rate": 5 }
]
}
}'

From Odoo:

{
"connector_id": "3f7c1b9e-2a44-4d31-9d0e-8b1f2c6a55d1",
"connector_type": "odoo",
"move_id": 4182,
"already_in_odoo": false,
"state": "draft",
"amount_untaxed": 200.0,
"amount_tax": 10.0,
"amount_total": 210.0,
"supplier_matched_by": "vat",
"supplier_created": false,
"warnings": []
}

A bill already in Odoo answers with move_id, already_in_odoo: true, its state and amount_total, and supplier_matched_by. From Xero the answer carries draft_created, xero_bill_id, url, exceptions and facts.

Xeroโ€‹

Both calls are passed to your organization's own Xero connector service, at the address and with the token stored on the connector, as unpaid items are. The Xero connector service runs on GoRoute's test service only today, so on production these two calls work with an Odoo connector.

When it is refusedโ€‹

Statuserror_codeWhy
400CONNECTOR_CANNOT_CREATE_INVOICESInvoice call: the connector is not Odoo or Xero
400CONNECTOR_NOT_AN_ACCOUNTING_SYSTEMBill call: the connector is not Odoo or Xero
403INSUFFICIENT_PERMISSIONThe caller does not hold connectors:manage
404โ€”No connector with that id in your organization
409CONNECTOR_NOT_ACTIVEThe connector is not active. For Xero, also when the Xero connector service says Xero is not connected, or, for a bill, that bills are not enabled on it
409CONNECTOR_NOT_CONFIGUREDThe connector has no usable credentials (Odoo), or no service address or token, or the Xero connector service refused the token (Xero)
422ERP_INVOICE_REFUSEDThe invoice was refused: for example no buyer name, several matching contacts, an unmatched customer with create_missing_customer: false, an inactive currency or no lines. The message says which
422ERP_BILL_REFUSEDOdoo only: the bill was refused for the same kinds of reason. The message says which
502ERP_UNREACHABLEThe accounting system, or the Xero connector service, did not answer or refused the call

Derived healthโ€‹

health_status is computed when you read it, from status and the freshness timestamps. It is not a stored column, so it cannot drift out of sync.

BucketCondition
disabledstatus is disabled.
errorError count above zero.
unknownNever seen โ€” just registered, or no attributed traffic yet.
healthySeen within the last 24 hours.
degradedSeen within 7 days, but not in the last 24 hours.
staleNot seen for more than 7 days.

The thresholds are deliberately generous: a connector that is idle but fine should not alarm. Show last_seen_at next to the badge so a person can judge borderline cases.

config is not for secretsโ€‹

config is returned to callers

config holds settings rather than credentials โ€” environment, external company or tenant id, webhook source and similar. It is serialised back on every read of this endpoint. Do not put credentials in it.

Credentials for connectors that must be polled are sent separately, through the connector connect endpoint. They are stored encrypted and are never returned by the API.

How config is written: POST replaces your settings, PATCH mergesโ€‹

GoRoute keeps its own working state in config, alongside your settings (the table below). So how a call writes config decides whether a well-formed call that sets one setting also destroys state you never knew was there.

  • PATCH /api/v1/connectors/{connector_id} merges. Each key you send is set to the value you send, replacing that key's whole value. A key you send as null is removed. Every key you do not send is kept as it is. So a PATCH that sets one key changes only that key.
  • POST /api/v1/connectors replaces your settings. Registering a connector type you already have, with config in the body, assigns the config you send over your own settings: a setting of yours that is not in your request is gone, reference_fields and the Oman code settings included. GoRoute's own working keys (the table below, apart from reference_fields) are kept when you leave them out. A key you do send is set to what you send, GoRoute's own included. Prefer PATCH to change a setting.
This changed on 31 October 2026 โ€” POST used to wipe GoRoute's own keys too

Until 31 October 2026, a POST with config replaced the whole stored object, so it also erased GoRoute's working records: the list of stuck invoices, the poll bookmarks, the network hold and an in-flight Zoho authorisation. Since 31 October 2026, on production and the test service, POST keeps every key the poll cycle owns, and pending_oauth, whenever you leave them out. Your own settings are still replaced.

This changed on 24 September 2026 โ€” PATCH used to replace too

Until 24 September 2026, PATCH assigned config over the stored object exactly as POST does, and these pages told you to read the whole object and send it back. That still works and gives the same result, because every key you send back is set to what you read. Two things differ:

  • To remove a key, send it as null. Leaving it out keeps it.
  • {"config": {}} changes nothing. It used to clear the whole object.

The merge happens in the database, so a poll that records something into config while your call is on its way keeps what it recorded. It works the other way too: a poll cycle (Odoo, Zoho Books or bol.) writes back only its own keys, merged the same way, so a PATCH that lands while a cycle is running is not put back by it. For Zoho Books this holds from the build that shipped it on 24 September 2026; before it, a Zoho cycle that was running when your PATCH arrived could restore the value it had loaded.

Check which behaviour your service has before relying on a single-key PATCH: the change reaches a service when it is deployed there. Send a PATCH with one harmless key to a connector that holds parked_invoices or another GoRoute key, and read config back. If the other keys are still there, you have the merge.

Keys GoRoute writes into config itself:

KeyWhat it isWhat losing it costs
parked_invoicesThe register behind needs_attentionEvery stuck invoice stops being reported, and nothing brings it back
pending_oauthAn in-flight Zoho authorisation, held between the OAuth callback and the connect callThe authorisation is abandoned; the customer has to start the Zoho connection again
smp_holdA hold set when the sender is not registered on the networkThe hold is lost and sending is retried against a registration that is not there
cn_cursorHow far the Zoho credit-note poll has readCredit notes are re-read from the beginning
evidence_blockedA flag on the Zoho evidence write-backThe write-back state is reset
sync_cursor_handledThe Odoo or Zoho Books invoices already handled around the poll's bookmarkInvoices around the bookmark are read again, and may be offered a second time
cn_cursor_handledThe Zoho Books credit notes already handled around the credit-note bookmarkCredit notes around the bookmark are read again
connect_backoffHow many connections in a row have failed, and when the last one did โ€” see the waitThe wait is forgotten and dialling restarts at full rate. Harmless in itself, and a disconnect clears it deliberately
reference_fieldsThe one key in this table you write, not GoRoute, and the one a POST without it still erases โ€” which of your own Odoo fields carry the contract, project and PO references, see belowYour mapping is gone and invoices go out with the sales order alone, silently. It has an endpoint of its own, which checks the mapping

The bol and Amazon connectors keep working registers of their own in config too, and a POST that leaves them out keeps them: bol_cursor_handled, bol_awaiting_shipment, bol_uploads_pending and bol_consumer_requests; amazon_cursor_handled, amazon_orders_seen, amazon_vidr_report, amazon_uploads_pending and amazon_status.

amazon_vcs_upload_acknowledged and amazon_vcs_upload_acknowledged_at are not on that list. They hold your own confirmation that VCS is set to I will upload my own invoices (see Amazon readiness). Like your other settings, a POST that leaves them out erases them, and the vcs_acknowledged readiness check then fails until you confirm again.

An Odoo connector has two settings of yours that are not in the table either: delivery_receipts and writeback_portal_invoices. Both are on when they are absent. Set one to false with a PATCH to stop GoRoute attaching delivery receipts to your Odoo invoices, or booking the invoices you send from GoRoute into your Odoo. A POST that leaves one out erases it, which turns that behaviour back on. What each one does is in What GoRoute writes into your Odoo.

sync_cursor_handled, connect_backoff and reference_fields are on both the production and test services. The first two reached test on 20 September 2026 and reference_fields on 22 September 2026; all three reached production on 22 September 2026, when production was upgraded to the build test was already running. Read your own connector's config to see which keys your service writes; the rule below does not depend on knowing them all, which is the point of it.

Changing a settingโ€‹

curl -X PATCH https://app.goroute.ai/peppol-api/api/v1/connectors/CONNECTOR_ID \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"config": {"oman_export_zero_rate_code": "VATZR-OM-10"}}'

To remove a setting, send it as null:

curl -X PATCH https://app.goroute.ai/peppol-api/api/v1/connectors/CONNECTOR_ID \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"config": {"oman_export_zero_rate_code": null}}'

The Oman reason codes of a Zoho Books connector are moving from the connector's config to the organisation's own Oman settings, where every connector reads them and where the organisation's code wins over the connector's: see Setting the codes.

Prefer PATCH to sending config to POST /api/v1/connectors for a connector you already have: a POST still replaces your own settings, so a setting you forget to send back, such as reference_fields or an Oman code, is lost. Never send one of GoRoute's keys in the table above, in a PATCH or a POST, unless you mean to overwrite GoRoute's own record: a PATCH of {"config": {"parked_invoices": {}}} still empties the list of stuck invoices.

Odoo: which of your fields carry the contract, project and PO referencesโ€‹

The Odoo connector sends each invoice's sales order (Odoo's Source Document, invoice_origin) as the seller's order reference, with no setting. Odoo has no standard field for a contract, a project or the customer's purchase order on an invoice, so if you keep one in a field of your own you can tell the connector which it is:

TargetOn the e-invoiceExample field
contract_referenceContract reference (IBT-012)contract_id
project_referenceProject reference (IBT-011)x_studio_project
order_referencePurchase order reference (IBT-013)x_customer_po

Set it with its own endpoint, not with PATCH โ€” this one changes the one setting and leaves the rest of config exactly as it is:

PUT /api/v1/connectors/{connector_id}/reference-fields
curl -X PUT https://app.goroute.ai/peppol-api/api/v1/connectors/CONNECTOR_ID/reference-fields \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"contract_reference": "contract_id"}'
  • The body names the field on Odoo's invoice (account.move), lower case. Only the three targets above are accepted; anything else is refused with 422. Send {} to remove the setting.
  • The field must be a text field or a link to another record โ€” a link is sent as the record's name, as Odoo shows it. Any other kind of field, a field that does not exist, or one the connector's Odoo user cannot read is skipped, with a warning in GoRoute's log. The invoice is still sent, without that reference. A setting can never hold an invoice.
  • Whatever you map is written into the e-invoice and filed with the Tax Authority, so a field that is a secret or names a person is refused with 400, and never read even if it is stored some other way: the portal's access_token and access_url, any field whose name contains token, password or secret, and fields about people โ€” partner_id, commercial_partner_id, invoice_user_id, create_uid, anything named for an email, phone, bank or contact. When the connector reads the field it also checks what Odoo says of it, whatever the field is called:
    • A link is sent as the name of the record it links to, so a link to a person, a bank account, a message, a secret or an Odoo setting (res.partner, res.users, res.partner.bank, hr.employee, resource.resource, website.visitor, โ€ฆ) is skipped โ€” however Odoo fills the link in.
    • A text field is sent as itself, so it must hold the invoice's own text. A text field Odoo fills in from somewhere else is skipped: a related field (say one showing the salesperson's login) or a computed one. Map the field it comes from instead โ€” a link is sent as its record's name.
  • It applies from the next poll on. An invoice already sent keeps what it was sent with.
  • Only the Odoo connector reads it (400 on any other type).
  • It is safe to set while a poll is running: the poller writes back only its own bookkeeping, never the whole config, so it cannot put the old value back.
Availability โ€” on both services, checked 23 September 2026

This call is on GoRoute's production service and on its test service. It reached test on 22 September 2026 and production later the same day, on 22 September 2026 at 22:05 UTC, when production was upgraded to the build test was already running.

Test it yourself rather than trusting this page: send the PUT above to the service you use, with your API key. Anything other than 405 Method Not Allowed means the service has the call and is answering you about your key, your connector id or your body โ€” a 401 means the key, a 404 means the connector id, a 400 or 422 means the body. A 405 would mean your service does not have this call, because that is the same answer it gives for an address that does not exist at all. Both services answered 401 when this page was last checked.

Odoo: the start dateโ€‹

On app.goroute.ai since 22 November 2026 and on GoRoute's test service since 16 November 2026; GoRoute's services in Oman take it with their next release. What a start date is, and what it does not do, is under The start date.

curl -X PUT https://app.goroute.ai/peppol-api/api/v1/connectors/{connector_id}/send-from \
-H "X-API-Key: $GOROUTE_API_KEY" -H "Content-Type: application/json" \
-d '{"send_from": "2026-11-01"}'

send_from is a date (YYYY-MM-DD), or null to remove the start date. It must be sent: an empty body is refused with 422. The answer is the connector, with the date under config.send_from. It is read from the next sync on. POST /connect takes the same send_from field, and a reconnect that leaves it out keeps the stored date. Needs connectors:manage; 400 on a connector that is not Odoo.

Odoo: the link Odoo can callโ€‹

The link has been on app.goroute.ai since 22 November 2026 and on GoRoute's test service since 16 November 2026. The two routes that put the Send e-invoice now action into Odoo for you have been on both since 23 November 2026. GoRoute's services in Oman take all four with their next release. How to use them in Odoo is under Sending from inside Odoo.

  • GET /api/v1/connectors/{connector_id}/odoo/retry-url answers {"url": "...", "rotated": false}.
  • POST /api/v1/connectors/{connector_id}/odoo/retry-url/rotate answers a new url; every link given out before stops working. The answer also carries action_updated: true when the action the connector put in Odoo now points at the new link, false when Odoo could not be asked or refused, and null when the connector has not put an action in Odoo.
  • POST /api/v1/connectors/{connector_id}/odoo/retry-action adds the action to the customer's Odoo, or points the one already there at the current link.
  • DELETE /api/v1/connectors/{connector_id}/odoo/retry-action removes it.

All four need connectors:manage, and none is answered to a partner viewing a client read-only (403, ACT_AS_READ_ONLY): the token in the link is a credential. Each answers 400 for a connector that is not Odoo and 404 for a connector id that is not in your organization. The link itself takes a POST with no other authentication and answers {"ok": true, "queued": true} at once, or "queued": false when the connector is disconnected or was called less than 20 seconds before. A wrong token and an unknown connector both answer 404.

Add the action to Odooโ€‹

POST /api/v1/connectors/{connector_id}/odoo/retry-action takes no body. It creates a server action named Send e-invoice now, of the Send Webhook Notification kind, on Odoo's Journal Entry model, shown under Action in the list and the form. If the connector already put one there, the same action is pointed at the current link instead of a second one being made. The answer:

FieldMeaning
installedAlways true on success
createdtrue when a new action was made, false when an existing one was updated
action_idThe action's id in Odoo
nameSend e-invoice now

The Odoo user the connector signs in as needs Administration / Settings rights for this call. Refusals:

Statuserror_codeWhy
400โ€”The connector is not Odoo
403ACT_AS_READ_ONLYA partner viewing a client read-only
403ODOO_ADMIN_RIGHTS_NEEDEDOdoo refused: the connector's Odoo user lacks Administration / Settings rights. The answer also carries manual_steps, a list of sentences, one per step, for adding the action by hand
404โ€”No connector with that id in your organization
409CONNECTOR_NOT_ACTIVEThe connector is not active: connect it first
409CONNECTOR_NOT_CONFIGUREDThe connector has no usable credentials; connect it again
409ODOO_VERSION_UNSUPPORTEDThis Odoo cannot hold the action: it is older than Odoo 17, or has no Accounting app. message says which
502ERP_UNREACHABLEOdoo did not answer, or refused the call for another reason

The rights are needed for that one call only: they can be taken away afterwards, and the action stays.

Remove the action from Odooโ€‹

DELETE /api/v1/connectors/{connector_id}/odoo/retry-action answers:

FieldMeaning
removedtrue when Odoo deleted the action
odoo_answeredfalse when Odoo could not be asked or refused. The action may then still be in Odoo: delete it there by hand

The connector forgets the action either way. The link itself keeps working until you replace it.

Disconnecting the connector also removes the action from Odoo, if Odoo answers within 12 seconds. A disconnect never waits for Odoo and never fails because of it.

Lifecycle endpointsโ€‹

These are gated by the same connectors:manage permission. Only pull connectors (odoo, sap, zoho, bol, amazon) have credentials to connect, so /connect returns 400 on a push connector โ€” see Connectors.

  • PATCH /api/v1/connectors/{connector_id} โ€” update a connector
  • DELETE /api/v1/connectors/{connector_id} โ€” remove it
  • POST /api/v1/connectors/{connector_id}/connect โ€” hand over credentials
  • POST /api/v1/connectors/{connector_id}/disconnect โ€” forget them
  • POST /api/v1/connectors/{connector_id}/test โ€” confirm we can reach the system
  • POST /api/v1/connectors/{connector_id}/sync โ€” pull now rather than wait; what it returns is under Run a sync now
  • POST /api/v1/connectors/{connector_id}/documents/{doc_id}/send โ€” SAP, send one document

Zoho Books endpointsโ€‹

Zoho connects over OAuth, so it carries its own endpoints alongside the shared ones:

EndpointPurpose
GET /api/v1/connectors/zoho/oauth/configWhether the one-click button can be offered. Returns {"configured": true|false} and no secrets
POST /api/v1/connectors/zoho/oauth/startBegin the one-click flow; returns the Zoho authorize URL
GET /api/v1/connectors/zoho/oauth/callbackWhere Zoho redirects back. Authenticated by a signed state token, not an API key
POST /api/v1/connectors/{connector_id}/zoho/organizationsList the Zoho Books organizations the grant can see, so you can pick one
POST /api/v1/connectors/zoho/exchangeSelf-Client route: exchange a grant token when you are not using the one-click flow
GET /api/v1/connectors/{connector_id}/zoho/webhook-urlThe URL to register in Zoho so an invoice reaches the network without waiting for the next poll. See below
POST /api/v1/connectors/{connector_id}/zoho/webhook-url/rotateIssue a new URL and stop every URL issued before. See below
POST /api/v1/connectors/zoho/webhook/{connector_id}The doorbell Zoho calls. Token-gated; the body is ignored and the poller re-reads from Zoho

Full request and response schemas are in the API Reference.

Reading and rotating the Zoho webhook URLโ€‹

Both calls answer with the same two fields:

{
"url": "https://app.goroute.ai/peppol-api/api/v1/connectors/zoho/webhook/<connector_id>?token=<token>",
"rotated": true
}

url is the address to paste into the Zoho Books workflow rule. rotated says whether this connector's URL has ever been rotated: GET reports false until the first rotation and true afterwards, and the rotate call always answers true.

The URL is a credential. The token is in it, and whoever holds the URL can make GoRoute pull from Zoho and send for that connector, with nothing else to prove who they are. Treat it as you would a password: do not put it in a ticket, a chat message or a screenshot.

Only the organisation itself can read or rotate it. Both calls require the connectors:manage permission, and both additionally refuse any session that is acting on behalf of another organisation โ€” a partner working in your account, however much access they have. The refusal is 403 with error_code ACT_AS_READ_ONLY. The code name says read-only, but the check does not look at the access level: every act-as session is refused, not only a read-only one.

GET is the method that makes this matter. Without the extra check, a partner who can see your connectors at all could read a live credential of an account they may only look at.

What else is refused. A connector that is not a Zoho connector gets 400 with the message Not a Zoho connector.; a connector id that does not belong to your organisation gets 404 "Connector not found".

After a rotation, update Zoho. Every URL handed out before the rotation stops working the moment the rotate call returns, so the Zoho Books workflow rule has to be updated with the new URL. Until it is, invoices still reach GoRoute on the regular poll โ€” they simply stop arriving instantly. Rotate when a URL may have been seen by someone who should not have had it.

bol.com: the connect bodyโ€‹

bol.com adds no endpoints of its own; it uses the shared lifecycle above. POST /api/v1/connectors/{connector_id}/connect on a bol connector takes:

FieldPurpose
client_id, client_secretRetailer API credentials from the bol seller dashboard (Settings โ†’ Services โ†’ API settings). Proven against bol before anything is saved; stored encrypted, never returned
demotrue points the connector at bol's demo environment (fixed sample orders; uploads are accepted and discarded). Default false
vat_rateThe VAT rate the shop charges, as a percentage. bol gives prices including VAT and no rate. Default 21
invoice_number_prefixWhat precedes the bol order id in the invoice number. Default BOL-

config then carries environment, client_id_prefix, vat_rate and invoice_number_prefix, plus the poller's own registers (bol_awaiting_shipment, bol_uploads_pending, bol_consumer_requests, bol_cursor_handled). Those registers are why the rate and the prefix are not changed through config: to change them, disconnect and connect again rather than PATCH the config (see how config is written). What the poller does with an order is described under bol.com.

Amazon: one-click authorisation and the connect bodyโ€‹

Amazon connects in one click: the portal's Connect with Amazon button asks the API for the consent URL (the amazon/oauth/start action under the connectors resource, taking the country whose Seller Central the seller signs in to, or โ€” when the flow began on the Selling Partner Appstore โ€” Amazon's amazon_callback_uri and amazon_state to be sent back), the seller authorises GoRoute on Amazon's page, and Amazon redirects to the amazon/oauth/callback action with state, selling_partner_id and spapi_oauth_code. The signed state is bound to the organisation that started the flow; the code is exchanged for the refresh token, the seller's stores are discovered and the connector goes active. amazon/oauth/config says whether the platform's application is registered on the service and whether it is still a draft (the consent URL then carries version=beta). All four authorisation addresses are now in the API reference:

CallWhat it is forWho may call it
GET /api/v1/connectors/amazon/oauth/configWhether the platform's Amazon application is registered on this service, whether it is still a draft, which Seller Central countries are offered, and the redirect address. No secrets are returnedconnectors:manage
POST /api/v1/connectors/amazon/oauth/startThe URL to send the browser to. Answers 409 when the platform's application is not registered on this service โ€” paste a refresh token insteadconnectors:manage
GET /api/v1/connectors/amazon/oauth/loginThe application's OAuth Login URI, used when the flow begins on the Selling Partner Appstore rather than in GoRoute. Redirects the seller into the portal, which then calls amazon/oauth/startNobody signs in here โ€” it is a browser redirect Amazon opens
GET /api/v1/connectors/amazon/oauth/callbackWhere Amazon returns with state, selling_partner_id and spapi_oauth_codeAlso a browser redirect; the signed state is the authentication

The fallback is the shared lifecycle: POST /api/v1/connectors/{connector_id}/connect on an amazon connector takes:

FieldPurpose
refresh_tokenThe LWA refresh token from a self-authorisation in Seller Central (Apps & Services โ†’ Manage Your Apps). Proven in three named stages โ€” Amazon's sign-in (lwa), the API (spapi), a VCS store (marketplaces) โ€” before anything is saved; stored encrypted, never returned
regioneu (default), na or fe โ€” the SP-API region of the seller's stores
sandboxtrue points the connector at Amazon's hosted sandbox (static answers; nothing reaches a buyer). Default false
invoice_number_prefixWhat precedes Amazon's shipment id in the invoice number. Default AMZ-

A failed connect or test answers 400 with {"error", "stage", "message"} so the page can say which stage refused. config then carries environment, region, authorised_via (oauth or pasted), selling_partner_id, marketplaces (the VCS stores enabled) and all_marketplaces, plus the poller's own registers (amazon_orders_seen, amazon_uploads_pending, amazon_vidr_report, amazon_cursor_handled, amazon_status) โ€” written back under the same merge as the other pollers. The seller's confirmation that VCS is set to I will upload my own invoices is a merged PATCH of config.amazon_vcs_upload_acknowledged (true, with amazon_vcs_upload_acknowledged_at); there is no endpoint of its own. What the poller does with a shipment is described under Amazon.

Amazon readinessโ€‹

GET /api/v1/connectors/{connector_id}/amazon/readiness needs connectors:manage. It is the call behind the readiness list on the connector page, and it is the only place an integrator can read the same answer.

The call reads what GoRoute already holds โ€” the connector's config, the organisation's own seller record and the SMP. It does not contact Amazon, so it is cheap and safe to poll, and a green answer says GoRoute is ready rather than that Amazon has just confirmed anything.

Two refusals:

  • 400 with Not an Amazon connector. โ€” the connector exists and is yours, but it is some other kind.
  • 404 with Connector not found โ€” the id is unknown, or it belongs to another organisation. The two cases are deliberately indistinguishable.

The generated reference page for this call shows no response fields. That is a gap in the published API description, not in the call: the handler returns a plain object the description cannot express. The fields are these.

FieldWhat it holds
readytrue when every check that counts has passed โ€” see the warning below
checksThe eight checks, in the order the panel shows them. Each is an object with id, ok, label and detail
awaitingHow many Amazon orders the poller has seen and not yet turned into invoices
uploads_pendingHow many issued documents are still waiting to be uploaded to Amazon, or waiting for Amazon's verdict on a feed
lateThe keys of the pending uploads that have passed Amazon's business-day deadline. Empty when nothing is late
last_cycle_atWhen the poller last ran for this connector, or null if it has not run yet
held_invoicesInvoices this connector is holding, each with its reason โ€” the same entries as on GET /api/v1/connectors, described under Held invoices, with reasons

The eight checks, by id:

idlabelPasses when
connectedAmazon authorisedThe connector is active and holds stored credentials. detail then names how it was authorised (oauth or a pasted token) and which environment it points at; otherwise it tells the seller to connect or paste a refresh token
marketplacesStores foundAt least one VCS store was discovered. detail lists their country codes
seller_identitySeller identity completeYour organisation has a seller record and nothing is missing from it. detail names the missing fields, which are filled in under Settings โ†’ Company
seller_registeredSeller registered on the networkThe seller's own Peppol identifier is registered on GoRoute's SMP, or โ€” failing that โ€” still resolves on the network
vcs_acknowledgedVCS set to "I will upload my own invoices"config.amazon_vcs_upload_acknowledged is set. Amazon offers no API for this setting, so it is a confirmation the seller gives after changing it in Seller Central, not something GoRoute can read
buyer_dataBuyer details released by AmazonThe poller has recorded no problem getting buyer details. This check does not affect ready
vidrVAT Invoice Data ReportThe last recorded state of the report is good, or none has been requested yet
on_timeUploads within Amazon's business dayNo pending upload has passed its deadline โ€” the same list as late
ready can be true while a check is failing

ready is computed from seven of the eight checks: buyer_data is excluded. So a connector whose buyer details Amazon has not released still reports ready: true, while the panel shows that check in red. If you are gating anything on readiness, read checks and decide for yourself which failures matter to you rather than trusting ready alone.