---
title: Amazon Connect + NetSuite, Odoo, JDE, SAP, Acumatica
description: On October 27, 2026 a Connect flow still gives your Lambda 8 seconds to reach the ERP and return under 64 KB. NetSuite SOAP stops working with 2028.2. Odoo's external API needs a Custom plan. JD Edwards needs an orchestration you write.
url: https://www.daventa.co/blog/amazon-connect-erp-integration-netsuite-odoo-jd-edwards-2026/
datePublished: 2026-10-25T14:25:00.000Z
dateModified: 2026-11-28T00:00:00.000Z
author: palaniappan-p
category: Cloud Architecture
tags: amazon-connect, contact-center, aws, netsuite, odoo, jd-edwards, sap, acumatica, erp, aws-lambda
---

# Amazon Connect + NetSuite, Odoo, JDE, SAP, Acumatica

> On October 27, 2026 a Connect flow still gives your Lambda 8 seconds to reach the ERP and return under 64 KB. NetSuite SOAP stops working with 2028.2. Odoo's external API needs a Custom plan. JD Edwards needs an orchestration you write.

On October 27, 2026, the rule for every ERP lookup in Amazon Connect is the same: the **Invoke AWS Lambda function** block waits at most 8 seconds (synchronous), and a Lambda response must be a flat map of strings under 64 KB. NetSuite, Odoo, JD Edwards, SAP and Acumatica differ in everything else: protocol, authentication, concurrency and licence terms. The shared design comes first, then each ERP, then a [tested adapter](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/erp/README.md) that returns the same four fields from every ERP.

It is a design and a mocked test suite, plus one first-party run: on October 28, 2026 the unmodified Odoo adapter made 200 lookups against a local Odoo 19.0 container at p50 10 ms and p95 11 ms over localhost, with the shared-phone case returning `AMBIGUOUS` ([method](#odoo-first-party-benchmark), [raw results](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/benchmark/results-odoo-2026-10-28.json)). We have not run it against a live NetSuite, JD Edwards, SAP or Acumatica tenant, or a hosted Odoo database, and FactualMinds has no published Connect-ERP engagement to cite. Broader Connect work is on [Amazon Connect consulting](https://www.daventa.co/services/amazon-connect/).

---

**ERP sections:** setup steps, permissions and troubleshooting for [NetSuite](#netsuite), [Odoo](#odoo), [JD Edwards](#jd-edwards-enterpriseone), [SAP S/4HANA](#sap-s4hana) and [Acumatica](#acumatica) follow the shared design. The adapters (`netsuite.mjs`, `odoo.mjs`, `sap.mjs`, `acumatica.mjs`, JDE through the orchestration contract) sit in the one [ERP artifact folder](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/erp/README.md).

## What agents and callers actually need from the ERP

Keep the first release to what changes a conversation:

- Who is this? Match the caller to a customer record.
- Is the account usable? Active, inactive, on hold.
- What do they owe? Count of open invoices, and balance if finance allows it in the IVR.
- Where is the order? Latest order reference and status.

Everything else (full invoice lines, credit memos, pricing) belongs on the agent screen, fetched on demand, not in the flow. This is the same split we use for commerce platforms in the [AI customer support agent guide](https://www.daventa.co/blog/ai-customer-support-agent-ecommerce-2026/): small fast reads in automation, rich reads behind an agent's click.

## Architecture and capability labels

```
Caller -> Connect flow -> Invoke AWS Lambda (sync, 8 s max)
                              |-- Secrets Manager (credentials, cached at init)
                              |-- adapter: NetSuite | Odoo | JD Edwards
                              v
                        flat string map -> Set contact attributes -> branch on lookupStatus
```

| Piece | Label |
| --- | --- |
| Invoke AWS Lambda block, contact attributes, Check contact attributes | **Native** |
| Customer Profiles (profile objects, `PutProfileObject`) | **Native** |
| AppFlow into Customer Profiles from Salesforce, Zendesk, Marketo, ServiceNow, S3 | **Supported integration** |
| NetSuite, Odoo, JD Edwards lookups | **Custom engineering** (the Lambda) |
| iPaaS connectors (Celigo, Workato, MuleSoft, and similar) | **Third-party**, licensed separately; not evaluated here |

### Verify before choosing AppFlow

AppFlow is the first thing people reach for. We checked the supported-applications list on October 27, 2026. It names SAP OData, Microsoft Dynamics 365, QuickBooks Online, Oracle HCM and JDBC among dozens of entries. It does not name NetSuite, Odoo or JD Edwards. The JDBC connector exists, but pointing a contact-center sync at a production ERP database bypasses the vendor's API, licence and governance model. We would not.

EventBridge is listed as an AppFlow destination. We found no AWS-documented native ERP-to-EventBridge publisher for these three systems, so any push model (NetSuite User Event script, Odoo automated action, JD Edwards orchestration with a notification) is custom code you own.

## Live lookup versus cached summary

| | Live call in the flow | Cached summary in Customer Profiles |
| --- | --- | --- |
| Freshness | Seconds | As old as the last sync |
| Failure mode | Eats part of the 8 s, then falls back | Serves stale data confidently |
| ERP load | One burst per contact | One scheduled job |
| Where | IVR, chat bot, flow branching | Agent screen, pre-routing |

Our recommendation: live for the IVR and bot path, cached for the agent screen, and never both pretending to be the same fact. The trade-off is two code paths. The reason is that the IVR path must decide in 8 seconds and tolerate a miss, while the agent path can afford a 10-minute-old balance if it displays the sync time.

A cache is custom: define a profile object type with `PutProfileObjectType`, then write summaries with `PutProfileObject`. Detail on shaping the agent view lives in the sibling post on [custom agent UI and Customer Profiles](https://www.daventa.co/blog/amazon-connect-custom-agent-ui-customer-profiles-2026/).

## The Connect Lambda contract

Verified in the [AWS Lambda-in-flows guide](https://docs.aws.amazon.com/connect/latest/adminguide/connect-lambda-functions.html):

- Synchronous timeout: 8 seconds maximum. Failed invocations are retried up to 3 times within that window.
- Total duration of a sequence of Lambda blocks: 20 seconds.
- Response validation `STRING_MAP`: a flat object of string values, alphanumeric, dash and underscore only, under 64 KB of UTF-8.
- Values saved with **Set contact attributes** appear in contact records. Values read directly as `$.External.*` do not.

The character rule matters for ERPs. A balance of `$1,204.50` or an order status of `Pending Fulfillment` is not a legal value, even though a docs example elsewhere shows `$1000`. The adapter replaces anything outside `[A-Za-z0-9_-]` rather than testing how Connect reacts.

## Authentication and secrets

- Put credentials in AWS Secrets Manager, read them in the init phase, cache them for the container's life.
- One credential per ERP, one least-privileged ERP role: read-only on the customer, invoice and order records you map. No write scopes.
- Never return a token, internal ID or free-text name to the flow unless the flow needs it. Anything in contact attributes is stored on the contact record.
- Validate the caller's number against E.164 before it reaches a query. The NetSuite adapter builds SuiteQL text, and the test suite includes an injection-shaped phone number.

---

## NetSuite

The generic account-and-data side is on the existing [NetSuite integration with AWS](https://www.daventa.co/integrations/netsuite-aws/) page. This section is only what the contact center changes.

**Interface.** Use SuiteTalk REST web services: the record API for single records, and **SuiteQL** (a SQL-like query via REST) when you need a join or filter. Use a SuiteScript **RESTlet** only where REST cannot do the job; Oracle says it supports that scenario but you do not get 100% parity with SOAP. The adapter posts to `/services/rest/query/v1/suiteql` with a `Prefer: transient` header and a `limit` query parameter. Those two details come from integration-vendor documentation, not an Oracle page we could open, so confirm them against your release.

**SOAP status.** Oracle's [SOAP removal FAQ](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/article_2104046421.html) gives the schedule:

| Release | What Oracle says |
| --- | --- |
| 2025.2 | Last planned SOAP endpoint |
| 2026.1 | New integrations should use REST with OAuth 2.0 |
| 2027.1 | No new integrations with TBA or SOAP; existing ones keep working |
| 2027.2 | Only the last endpoint supported; older ones disabled one per release |
| 2028.2 | All SOAP endpoints disabled |

A Connect integration started now should not touch SOAP at all.

**Authentication.** On the integration record, enable **Client Credentials (Machine to Machine) Grant** and the **REST Web Services** scope; Oracle notes this grant does not support public clients. Per Oracle, only new integrations must use OAuth 2.0 starting with 2027.1, and OAuth 2.0 is preferred over TBA now. Oracle lists PS256, PS384, PS512, ES256, ES384 and ES512 for the JWT header `alg` (RS256 is not on the list); the adapter defaults to PS256. Its `aud` claim is unverified, so test it in sandbox. Step-by-step setup follows below.

**Concurrency.** This is the NetSuite-specific failure risk. Oracle's SuiteCloud Plus page says web services and RESTlet requests share one account limit, each SuiteCloud Plus license adds 10, the base limit depends on service tier, and enforcement is "lenient" so brief overages are possible. Base numbers per tier were not in the pages we read, and third-party sources conflict, so we give none. You can allocate part of the limit to a specific integration (Setup, Integration, Manage Integrations).

Design consequence: the adapter makes three SuiteQL calls per contact (find the customer, then an exact `COUNT(*)` of open invoices and the newest sales order in parallel), and one token request per container. Each call counts against the account's concurrency limit, so the parallel pair can take two slots at once. Cap Lambda reserved concurrency for the function so a promotion-day call spike cannot take the whole account budget. Licensing cost for SuiteCloud Plus is not published; get a quote.

**Role and permissions.** Create a dedicated role with view-only on Customer, Invoice and Sales Order, assigned to the integration's entity. Which exact permission names SuiteQL needs for each table is something we did not verify.

**Phone matching.** NetSuite phone fields are free text. Exact match on `+14155550123` will miss `(415) 555-0123`. Match on a normalised custom field you maintain, or do not use phone as the key.

### NetSuite setup, step by step

Oracle documents `expires_in` as always 3600 seconds, with no refresh token, a certificate valid for at most two years, and a SuiteQL cap of 100,000 results (Oracle pages read October 28, 2026). The [NetSuite setup checklist](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/netsuite-setup/README.md) in the artifact folder covers the NetSuite side only.

1. **Permissions.** Oracle says Administrators or users with the Integration Application permission create integration records, and users with the OAuth 2.0 Authorized Applications Management permission create and revoke the certificate mapping. We found no Oracle page listing the feature checkboxes (REST Web Services and OAuth 2.0 under SuiteCloud features are the usual ones; unverified). Third-party guides name REST Web Services and Log in using OAuth 2.0 Access Tokens on the integration role; we could not confirm that on an Oracle page, nor the exact permission names SuiteQL needs. Start view-only on Customer, Invoice and Sales Order and add only what a sandbox error asks for.
2. **Integration record.** Setup, Integration, Manage Integrations, New. Name it, set State to **Enabled**, and on the Authentication subtab under OAuth 2.0 check **Client Credentials (Machine to Machine) Grant** and the **REST Web Services** scope (the sample asks for `rest_webservices` only). The client ID and secret appear once on first save; copy the client ID into Secrets Manager, since it is the JWT `iss` claim.
3. **Certificate.** x.509 public certificate (`.cer`, `.pem` or `.crt`); RSA 3072 or 4096 bits, or EC 256, 384 or 521 bits; maximum validity two years (a longer period is shortened automatically); one certificate per combination of integration record, role and entity. Oracle emails Administrators at two months, one month and 14 days before expiry. For the sample's default `PS256`, Oracle's page gives (its example uses 365 days; the maximum is two years):

   ```bash
   openssl req -new -x509 -newkey rsa:4096 -keyout private.pem \
     -sigopt rsa_padding_mode:pss -sha256 -sigopt rsa_pss_saltlen:64 \
     -out public.pem -nodes -days 365
   ```

   Keep `private.pem` in Secrets Manager and upload only `public.pem`.
4. **Mapping.** Setup, Integration, Manage Authentication, OAuth 2.0 Client Credentials (M2M) Setup, Create New. Choose entity, role and application (it appears only if the M2M box is checked on the record), upload the public certificate, save. NetSuite generates a Certificate ID: that is the `kid` in the JWT header (`NS_CERT_ID`). Oracle allows at most five active certificates per integration record, entity and role, which makes overlapping rotation possible: add the new one, switch the Lambda, revoke the old one. After a revocation or expiry you must create a new mapping, and the new Certificate ID becomes the new `kid`, so update the key and the ID together.
5. **Token request.** `POST https://<accountID>.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token`, form-encoded, with `grant_type=client_credentials`, `client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer` and the signed `client_assertion`.

| JWT part | Value in the sample | Status |
| --- | --- | --- |
| header `typ`, `alg`, `kid` | `JWT`, `PS256` by default, Certificate ID | Oracle lists PS256, PS384, PS512, ES256, ES384, ES512 for `alg`; RS256 is not on the list |
| `iss` | integration client ID | documented |
| `scope` | `["rest_webservices"]` | Oracle's sample uses an array; the reference also allows a comma-separated string |
| `aud` | `${NS_BASE}/services/rest/auth/oauth2/v1/token` | unverified: Oracle's own sample uses a different host form, so test in sandbox |
| `iat`, `exp` | now, now plus 300 s | Oracle: `exp` less than 60 minutes after `iat` |

The docs do not settle the RSA-PSS salt length; the sample uses 32 bytes, so if a signature you are sure is right is rejected, vary that first. The sample caches the token in module memory with a 30-second margin and clears it on a 401, so a cold start spends one extra round trip inside the budget.

### NetSuite SuiteQL pattern

SuiteQL goes over REST as `POST /services/rest/query/v1/suiteql`, query in the body as `q`, header `Prefer: transient`, paging with `limit` and `offset`; the response shows `count`, `offset`, `totalResults` and `items`. Oracle's page does not state the default or maximum `limit`; third-party material mentions 1,000 and a `hasMore` flag, which we did not verify, so do not build on it. The sample does not page. After the phone is validated as E.164 it runs:

```sql
SELECT id, isInactive FROM customer WHERE phone = '+14155550123'            -- limit 2
SELECT COUNT(*) AS n FROM transaction
  WHERE entity = 4821 AND type = 'CustInvc' AND status = 'A'                 -- limit 1
SELECT status, tranId FROM transaction
  WHERE entity = 4821 AND type = 'SalesOrd' ORDER BY tranDate DESC           -- limit 1
```

- Limit 2 on the customer query: two rows means two records share the number, so the adapter throws `AMBIGUOUS` rather than disclose someone else's order.
- Exact `COUNT(*)` for open invoices, because counting a page of `items` is wrong the moment the count exceeds the page. `CustInvc` with status `A` is the sample's definition of open; NetSuite status codes differ by record type and configuration, so verify in your account, as well as the `isInactive` value (the sample compares to `T`).
- Oracle documents `?` placeholders with a `params` array. The sample validates the phone against `^\+[1-9][0-9]{6,14}$` instead, and a test feeds it an injection-shaped value. Bound parameters would be reasonable extra hardening; not done.

Phone fields are free text, so `+14155550123` will not match `(415) 555-0123`, and the miss looks like `NOT_FOUND`. In the order we would trust: a normalized E.164 custom entity field kept by a SuiteScript user event or the customer load (the one we would build); a saved search or lookup table of normalized values; stripping punctuation inside SuiteQL (function support unverified, and it loses plain equality); or ask the caller for an order number or account ID instead.

### NetSuite concurrency, sandbox and troubleshooting

Oracle documents HTTP 429 with `o:errorCode` `CONCURRENCY_LIMIT_EXCEEDED`, the detail "Concurrent request limit exceeded. Request blocked." and the remedy "retry". The adapter does not retry, since a second attempt competes with the next caller and Connect already retries a failed invoke up to 3 times inside the 8 seconds; it reports `HTTP_429`. The Oracle pages we read described no per-integration allocation, so Lambda reserved concurrency is your control; agree the number with the NetSuite owner. Also check how a campaign burst plays out: 10 simultaneous contacts can ask for 20 concurrent requests.

> **What could break** (modeled, not an incident): other integrations already hold most of the account's concurrency, a burst of callers pushes some lookups to 429, those callers get the generic path and lose personalization (they are not misrouted), and your burst can push the other integrations over the limit.

Sandbox: the account ID is the subdomain (Oracle's examples show `https://123456.suitetalk.api.netsuite.com`). Sandbox has its own account ID; a hyphenated form such as `1234567-sb1` is commonly used but unverified, so copy the URL from your sandbox's integration setup. Oracle states the client credentials setup is not copied to other production accounts, Release Preview, sandbox or Next Preview accounts, and that refreshing a sandbox clears it. After each refresh redo the record check and mapping and update `NS_CERT_ID` and `NS_CLIENT_ID`; keep one secret per environment.

| Symptom | Likely cause | What to do |
| --- | --- | --- |
| HTTP 401, `INVALID_LOGIN` | Bad or expired token, role lacks the log-in-with-OAuth permission, or wrong mapping | Read Setup, Users/Roles, User Management, View Login Audit Trail |
| Token endpoint fails after certificate rotation | Old key or old `kid` in the Lambda, or the old mapping revoked with no new one | Create a new mapping; update both secrets together |
| `invalid_grant` | Oracle's wording for an expired access token on reuse (clock skew on `iat` is our guess) | Build a fresh assertion |
| 401 at the query endpoint hours after deploy | Cached token past 3600 s | The sample clears the cache on 401; the failing call has already fallen back |
| `NOT_FOUND` for an existing customer | Stored phone differs from E.164 | Normalized custom field |
| `BAD_RESPONSE` | HTTP 200 with no `items`, such as an error body | Log status and shape, not content |

Test order: get a token with `curl` first; run `SELECT id FROM customer` with `limit=1`; run the three queries by hand for one known customer and compare `n` with a saved-search count; then the unit tests, the Lambda in sandbox, and the flow from a number stored in three formats; drill a revoked certificate (expect `HTTP_401` or a token failure, then fallback). NetSuite licensing is not published, nor is the SuiteCloud Plus price.

Oracle pages read October 28, 2026: [client credentials setup](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_162686838198.html), [integration records](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_157771733782.html), [certificate conditions](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/subsect_162755332391.html), [token request and response](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_162755359851.html), [SuiteQL through REST](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_157909186990.html), [REST error handling](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_156570709583.html) and [SuiteCloud Plus concurrency](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3448861.html).

## Odoo

Existing background: [Amazon Bedrock and Odoo integration](https://www.daventa.co/blog/amazon-bedrock-odoo-integration/).

**Interface and timeline.** Odoo's current documentation describes the External JSON-2 API: `POST /json/2/<model>/<method>`, with an `Authorization: bearer <API key>` header and an optional `X-Odoo-Database` header when one server hosts several databases. The older XML-RPC (`/xmlrpc`, `/xmlrpc/2`) and JSON-RPC (`/jsonrpc`) endpoints are deprecated. The Odoo 19 page states they are scheduled for removal in Odoo 22 (fall 2028) and Odoo Online 21.1 (winter 2027). An earlier removal date you may have read is superseded (see the timeline below). For a new build, use JSON-2.

**Keys.** Created under Preferences, Account Security, New API Key. A key needs a description and a duration of at most three months, and is shown once. Plan a rotation job. Programmatic key management exists through `res.users.apikeys.generate()`, limited by default to users with the Settings administration access right, with up to 10 keys per user.

**Edition constraint.** The same page says external API access is only available on Custom Odoo pricing plans, and not on One App Free or Standard. What that means for self-hosted Community, Enterprise on-premise or Odoo.sh was not on the page we read: unverified. Settle it with your Odoo contract before a project starts. A missing entitlement is a worse surprise than any latency.

**Models.** The adapter reads `res.partner` (customer, by phone), `account.move` (posted `out_invoice` moves with `payment_state` of `not_paid` or `partial`) and `sale.order` (latest by `date_order`). These are standard Odoo models and field names; we did not verify them against a running instance, and customised databases often differ. One `search_count` plus one `search_read` run in parallel after the partner lookup, so the path is three requests with two in flight at once.

**Odoo user permissions.** The API key acts as its user, so create a dedicated user whose access rights are read-only on those three models. Odoo's docs describe access rights and record rules applying to API calls; confirm in a test database that your rules hide what you expect.

### Odoo: plan, version and deprecation dates

Two gates can end the project before any code. Plan: the External JSON-2 API page says external API access is only available on Custom Odoo pricing plans; ask your Odoo Customer Success Manager for a written answer naming the API and your hosting model. Version: the page is marked "versionadded 19.0", and the 17.0 and 18.0 pages carry the Custom-plan note but not the JSON-2 section. On Odoo 17 or 18 (Odoo.sh or on-premise) the external API is XML-RPC or JSON-RPC, a different adapter. Odoo Online tracks current versions.

The deprecation dates have moved, and the earlier date is superseded:

| Source | What it says |
| --- | --- |
| Odoo 19.0 docs, October 28, 2026 | `/xmlrpc`, `/xmlrpc/2`, `/jsonrpc` scheduled for removal in Odoo 22 (fall 2028) and Odoo Online 21.1 (winter 2027) |
| Documentation commit, February 4, 2026 | Removal postponed to 21.1/22; first planned for 19.1/20 |
| Documentation commit, October 9, 2026 | Added the Online 21.1 wording to the page text |

A new build should use JSON-2 now, because on Odoo Online the old endpoints go first. Other controllers declared with `@route(type='jsonrpc')` (`type='json'` until Odoo 18) are not covered by the notice.

### Odoo bot user and API key

Odoo says JSON-2 validates every operation against the access rights, record rules and field access of the key's user, and recommends dedicated bot users: minimum permissions, an empty password (which disables password sign-in), and audit fields that point at the bot. Create one internal user, for example `connect-lookup`:

| Read | Model | Group in the 19.0 source |
| --- | --- | --- |
| Find the customer | `res.partner` | Any internal user (`base.group_user`), subject to record rules |
| Count open invoices | `account.move` | Show Accounting Features - Readonly (`account.group_account_readonly`) |
| Latest order | `sale.order` | User: All Documents (`sales_team.group_sale_salesman_all_leads`), or Own Documents Only if the bot owns nothing and you accept empty results |

The Sales groups are not read-only: User: All Documents can edit. A strictly read-only integration needs a custom group with read-only `ir.model.access` rules, which we did not build or test. Multi-company databases add record rules by company that can hide invoices from a bot in the wrong company; test with a real partner in each. Whether an extra internal user changes your subscription cost is a licensing question we cannot answer.

Create the key under the bot user's Preferences, Account Security, New API Key. A description and a duration are required, keys cannot last longer than three months, **Generate Key** creates a 160-bit random key shown once, and the key inherits the user's rights with no separate scope list. A user can generate up to 10 keys programmatically by default (`base.programmatic_api_keys_limit`; exceeding it returns HTTP 422), but we would not automate rotation on day one. A zero-outage rotation: create the second key while the first works, write it to Secrets Manager, wait for warm containers to refresh a cached copy (set a cache time-to-live), then revoke the first. The sample reads `ODOO_API_KEY` from the environment for brevity; in production use Secrets Manager with an expiring cache.

### Odoo request details

JSON-2 headers per the 19.0 page: `Host` and `Content-Type: application/json` (required), `Authorization: bearer <API key>` (required), `X-Odoo-Database` (optional, but required when one server hosts several databases and `dbfilter` does not select by `Host`), `User-Agent` (recommended). Odoo Online usually maps one hostname to one database; the adapter sends the header only when `ODOO_DB` is set. Body keys: `ids` for record methods, `context` for an object such as `{"lang": "en_US"}`, then the method's parameters by name. Success is HTTP 200 with the return value; an error is a 4xx or 5xx with `name`, `message`, `arguments`, `context` and `debug`, and `debug` is a traceback, so keep it out of contact attributes and customer-visible logs. Each call runs in its own SQL transaction and calls cannot be chained, which is why the adapter uses `search_read`, Odoo's own example of one method doing `search` and `read` consistently.

The three reads, in order: `res.partner/search_read` with `domain: [["phone","=",<caller>]]`, `fields: ["id","active"]`, `limit: 2` and `context: {"active_test": false}`; then in parallel `account.move/search_count` and `sale.order/search_read` for that partner.

- **`phone`, not `mobile`.** In the 19.0 source, base `res.partner` defines `phone` and no `mobile`; 17.0 and 18.0 define both. The 19.0 page says your own database's models and fields are on its `/doc` page, which is the authority when custom modules are involved.
- **Archived partners.** Odoo hides `active = false` records from searches, so the adapter passes `active_test: false`; otherwise `INACTIVE` could never be reported. The cost: archived duplicates also match, which feeds the `AMBIGUOUS` case.
- **Shared numbers.** `limit: 2`; two rows returns `AMBIGUOUS` and nothing is read out.
- **Invoices.** The count filters `move_type = out_invoice`, `state = posted` and `payment_state in (not_paid, partial)`. `payment_state` can also be `in_payment`, `paid`, `reversed`, `blocked` and `invoicing_legacy`. `in_payment` (registered, not yet reconciled) is not counted as open, and `blocked` and credit notes (`out_refund`) are excluded; whether to add `blocked` is a finance decision.
- **Orders.** `state` in 19.0 is `draft` (Quotation), `sent` (Quotation Sent), `sale` (Sales Order) or `cancel`; there is no "done" state, and locking is a separate boolean. The adapter returns the raw state and `name` (for example `S00042`); map `sale` to "confirmed" in prompt copy, not in the adapter.

### Odoo phone normalisation

Connect gives E.164, and the adapter does an exact match on `res.partner.phone`, so `+1 415 555 0123` and `(415) 555-0123` both miss and the flow says `NOT_FOUND` for a real customer. The 19.0 source (read, not run by us) offers: the `phone_validation` module (hidden, `auto_install` when `base` and `mail` are present) adds a stored field `phone_sanitized` to `res.partner`, computed from the phone using the partner's country and company context (blank means "could not parse"), and a non-stored, search-only `phone_mobile_search` that strips punctuation from stored values, matches both `+` and `00` forms for input starting with either, and errors for terms under 3 characters. The lowest-risk change is to search `["phone_sanitized","=","+14155550123"]` first. Caveats: the module code skips `phone_sanitized` in the combined search where its index is missing, it depends on the partner's country (partners with no country and a national-format number may stay blank), and neither field exists if `phone_validation` was uninstalled. The durable fix is data quality: rewrite partner phones to international format and add a validation rule on entry.

### Odoo first-party benchmark

On October 28, 2026 we ran the unmodified `erp/handler.mjs` and `erp/odoo.mjs` against `odoo:19.0` with PostgreSQL 16, Sales and Invoicing installed and no demo data: 202 partners (two sharing one phone), 67 posted customer invoices and 200 sales orders, called from Node v26.12.1 with a real API key over localhost on an Apple M4, using the admin user's key rather than a restricted bot.

| Metric | Result |
| --- | --- |
| Calls (after 5 warm-up calls) | 200, sequential |
| p50 / p95 / max | 10 ms / 11 ms / 13 ms |
| Statuses | 172 `OK`, 28 `AMBIGUOUS` |

It confirmed that the calls work on 19.0 as written (including `active_test: false`, `payment_state` and `state`), that the shared phone returned `AMBIGUOUS` and that an unknown number returned `NOT_FOUND`. It does not cover network distance, TLS, concurrent load, a large database, Connect-to-Lambda overhead or cold starts. On a real deployment budget roughly two round trips plus Odoo's query time against the 5-second abort. Raw results are in the [benchmark folder](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/benchmark/README.md).

### Odoo networking and troubleshooting

| Hosting | Path | What to check |
| --- | --- | --- |
| Odoo Online | Public HTTPS to your `*.odoo.com` host | Nothing in a VPC required. Confirm the plan |
| Odoo.sh | Public HTTPS to the project URL | IP allow-listing options unverified; ask |
| On-premise, public | HTTPS through your reverse proxy | `Host` and `X-Odoo-Database` routing, TLS chain |
| On-premise, private | Lambda in a VPC over Site-to-Site VPN or Direct Connect | Secrets Manager route; each hop spends the same 8 seconds |

| Symptom | Likely cause | Check |
| --- | --- | --- |
| `HTTP_401` | Key expired, revoked, or wrong database | Key at most 3 months; send `X-Odoo-Database` for multi-database servers |
| `HTTP_403` | Bot lacks model access, or a record rule hides it | Repeat the reads as the bot |
| `HTTP_404` on every call | No `/json/2` route (Odoo before 19), or wrong URL | Version; `ODOO_URL` with no trailing path |
| `HTTP_400` or `HTTP_500` on partner search | Field missing in your database (`mobile`, custom module) | The error body's `message`; the `/doc` page |
| `NOT_FOUND` for a known customer | Phone stored in a different format | Compare the stored phone |
| `INACTIVE` never appears | Context missing, or a proxy strips the body | Test an archived partner |
| `AMBIGUOUS` more than expected | Company and contact share a number, or archived duplicates | Dedupe, or key on `phone_sanitized` plus partner type |

Test order: an entitlement call from a laptop (`res.partner/search_count` with `{"domain": []}` using the bot key; a 401 or 403 means stop), confirm fields on `/doc`, repeat the three reads as the bot and confirm a test write fails, then data cases in a test database (active partner with unpaid invoice, archived partner, two partners on one number, a number stored as `(415) 555-0123`, a partner with no orders), then the Lambda and flow. Drill key expiry with a one-day key and confirm the flow lands on `HTTP_401` and the alarm fires. Not published: the Odoo Custom plan price, any extra bot-user cost, Odoo.sh hosting.

## JD Edwards EnterpriseOne

**Interface.** AIS Server exposes REST services under `https://<ais_server>:<port>/jderest/...`. For this use case use an orchestration built in Orchestrator Studio: Oracle documents that a saved orchestration is published as a REST service at `/jderest/orchestrator/<orchestrationname>`, invoked by `POST` with inputs in the request body. The adapter expects an orchestration named in `JDE_ORCHESTRATION` that takes `phone` and outputs the four mapped fields. That orchestration is custom engineering: you design, secure and version it. Its input and output names in our sample are our convention, not an Oracle contract.

**Version.** AIS v2 services need Tools 9.2.1.2 or later (documented). Orchestrator Studio 9.2.4 needs a minimum of Tools 9.2.4 and AIS Server 9.2.4.0; details below.

**Authentication.** Two documented routes. Send `Authorization: Basic ...` on each orchestration call (Oracle describes this as used for IoT devices calling orchestrations), which is stateless: credentials are supplied and a temporary session ends with each request. Or request an AIS token at `/jderest/v2/tokenrequest` (Basic auth plus `jde-AIS-Auth-Environment`, `-Role` and `-Device` headers) and pass it as `jde-AIS-Auth`. A token route saves repeated sign-on cost but adds state, device binding and an expiry you must handle. The sample uses Basic per call for simplicity. Oracle also documents a JWT bearer option with an external identity provider; it needs trusted-node and certificate configuration. Whether Basic auth is enabled on your AIS Server is an administrator setting; one source we read says it must be enabled in Server Manager.

**Network and latency.** AIS Servers are commonly on private networks. We did not find an Oracle statement either way, so check your estate. If it is private, the Lambda runs in a VPC with a route over Site-to-Site VPN or Direct Connect. Lambda in a VPC then needs an interface endpoint or NAT route to reach Secrets Manager. Every one of these hops spends the same 8 seconds. Measure from the Lambda subnet, not from a laptop.

**Licensing.** We did not verify what Oracle requires licence-wise for AIS or Orchestrator use by an external system. Do not assume it is included. Ask your Oracle account team in writing.

### JD Edwards: versions, orchestration design and REST paths

Oracle's Orchestrator Guide sets the floor: Orchestrator Studio 9.2.4 requires a minimum of EnterpriseOne Tools 9.2.4 and is deployed with AIS Server 9.2.4.0 (Studio ships on it); apply the latest Tools update. Studio 8.0 can log in to that AIS Server but creates only version 2 orchestrations (maintenance and migration), and Studio 7.3 and earlier cannot log in. Everything saved by Studio 9.2.4 is a version 3 orchestration; version 3 outputs can be typed, version 1 and 2 outputs must be strings, and the array output format changed, so review existing integrations before upgrading. Oracle recommends two AIS instances (test and production) and a separate HTML Server instance for AIS requests so web-client users are unaffected. Custom response messages need 9.2.5.4 and stateless load balancing 9.2.5.2; a lookup needs neither. We found no separate minimum for calling a version 3 endpoint beyond a Tools release with Studio 9.2.4; confirm on your AIS Server.

Design the orchestration with one input, `phone`. Oracle supports a standard request format (an `inputs` array of `name` and `value` pairs) and a generic plain-JSON one; the adapter sends `{ "phone": "+14155550123" }`, which you should copy from the Inputs section of Studio's Run Orchestrations page.

1. **Find the customer** with a form request (drives an EnterpriseOne application the way a user would; Address Book is P01012, the AIS reference uses form `P01012_W01012B`; the Process Recorder can build it) or a data request (reads a table or business view directly, page size default 1,000). We prefer a data request against a business view for a read-only lookup: no form interaction and only the columns you choose, at the cost of bypassing application logic, so confirm it returns the customer a user sees in Work With Addresses. We name no tables because we did not verify them.
2. **Phone matching.** ERP phones are typically free text, and an equality match on `+14155550123` will not match `415-555-0123`. Normalise on the JD Edwards side or match on a field you maintain, and decide what the orchestration does with zero or several matches.
3. **Receivables and the latest sales order** as a second and third request. We did not verify application IDs for those areas; use Studio's pickers and apply to this user the security you apply to those programs.
**Map outputs** in the End node's Outputs and Assertions, named exactly as the adapter expects and without spaces:

| Output | Meaning | If nothing matches |
| --- | --- | --- |
| `accountStatus` | `ACTIVE`, `INACTIVE`, `NOT_FOUND` | `NOT_FOUND` |
| `openInvoiceCount` | count | `0` |
| `lastOrderStatus` | order status text | `NONE` |
| `lastOrderRef` | order reference | `NONE` |

Use a rule step to set `NOT_FOUND` explicitly: an empty `accountStatus` maps to `UNKNOWN` with `lookupStatus` OK, which is the silent failure you do not want.
**Per-step error handling.** Oracle documents that the system generates an exception either way, but **Abort** ends the orchestration with a 500, while **Continue** keeps going and records the error in a "Continued on Error" array in a 200 response that looks like success. Abort on the customer lookup; use Continue only on optional steps (the sales order) with defaults. The illustrative request and response, labelled as not captured from a live system, are in [`jde-orchestration/`](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/jde-orchestration/README.md); its test (five tests) runs `erp/handler.mjs` with a mocked `fetch`.

Oracle's REST reference lists execute (GET and POST) at three paths: `/jderest/orchestrator/{orchestration}` (unversioned; the Orchestrator Guide's cURL example and the artifact's adapter use it, with Basic), `/jderest/v2/orchestrator/{orchestration}` and `/jderest/v3/orchestrator/{orchestration}` (for orchestrations from Studio 9.2.4). Test all three with `curl` and keep the one that returns the expected shape; compare with `/jderest/v3/open-api-catalog3/<orchestration>`. Documented statuses: 200 success, 400 invalid JSON, 403 authorization failure, 406 invalid Accept header (v3 page), 415 invalid Content-Type, 444 invalid token, 500 server failure. The 444 and 500 bodies are an error object (`message`, `exception`, `status` of `ERROR` or `WARNING`, `timeStamp`, an optional `userDefinedErrorText`, and an `exceptionId` that exists only if an exception record was written to table F980060, the thread to pull when operations asks what happened).

### JD Edwards authentication options

- **Basic on each call.** Oracle says HTTP Basic is the login type for IoT devices calling orchestrations and is enabled out of the box. Requests are stateless: each gets a temporary session removed on completion. One trap: if AIS runs on WebLogic and its user registry does not mirror EnterpriseOne's, WebLogic can intercept the credentials; Oracle's fix is `enforce-valid-basic-auth-credentials` set to `false` in the domain's `config.xml`, then restart. Oracle's v3 execute pages describe token headers and, for GET, `$username` and `$password` query parameters, but do not mention Basic; query-string credentials land in access logs, so do not use them.
- **Token.** Documented endpoints: `POST /jderest/tokenrequest` (v1), `POST /jderest/v2/tokenrequest`, and `GET` or `POST /jderest/v3/orchestrator/jde-login`, with `jde-AIS-Auth-Environment`, `-Role` and `-Device` headers; pass the result (`userInfo.token`, plus an `aisSessionCookie`) as `jde-AIS-Auth`. Logout is `POST /jderest/tokenrequest/logout` or `GET /jderest/v3/orchestrator/jde-logout`; Oracle's page is inconsistent on the device header name on logout (`jde-AIS-Auth-Device` versus `jde-AIS-Device`).
- Three facts decide whether tokens suit a Lambda. A token is bound to a device name (the requesting IP if none is sent), validated on every use, and Lambda containers can leave through different addresses; send a constant device name on every call. Sessions follow the timeout and time-to-live settings in Server Manager (`rest.ini`); a sample response shows `sessionTimeout` 20 and `timeToLive` 720 with no units. Without stateless load balancing (Tools 9.2.5.2), a session works only on the AIS node that created it, so a cached token behind a load balancer intermittently returns 444.

Recommendation: Basic per call for the pilot, tokens only if measured sign-on time eats the budget; a token adds device binding, expiry and node affinity and the adapter does not implement it (on 444, log in once and retry only if budget remains).

### JD Edwards latency, limits and security

Private connectivity needs private DNS for the AIS host, a private CA trusted by the Node 24 runtime (do not disable certificate checks), and a Secrets Manager route. A proposed (not measured) split of the 5-second abort: Lambda to AIS connect and TLS over VPN 0.5 s; AIS sign-on and orchestration start 1.0 s; customer, receivables and order steps 3.0 s; response and mapping 0.5 s. If the steps alone exceed 3 seconds, do not tune the Lambda; use the cached pattern.

We found no documented maximum number of AIS sessions or concurrent orchestration calls, only what governs them (timeout and time-to-live in Server Manager, a separate HTML Server instance). At 20 simultaneous callers, a promotion means 20 concurrent orchestration runs; cap reserved concurrency at a figure your JD Edwards team agrees to and load-test.

Security: a dedicated JD Edwards user with a role that runs only the lookup's applications and reads only what the four outputs need. Orchestrations are UDOs with life-cycle statuses (Personal, Pending Approval, Rework, Reserved, Shared) governed by UDO security; we did not verify which status the integration user needs, so test with that user. Studio is secured through proxy application P98I0000; we expect the integration user does not need it. Oracle's login response has a `passwordAboutToExpire` field, so plan rotation.

| Symptom | Likely cause | Check |
| --- | --- | --- |
| `HTTP_444` | Token invalid, expired, bound to another device or IP, or from another AIS node | Device name consistency, `rest.ini`, load balancer affinity |
| `HTTP_403` | Authorization failure | Integration user's role and UDO access |
| `HTTP_415` / `HTTP_406` | Wrong `Content-Type` or `Accept` | Send `application/json` for both |
| `HTTP_400` | Invalid JSON, or input names not matching | Copy the request from Run Orchestrations |
| `HTTP_500` | A step set to Abort failed | `exceptionId`, F980060, Orchestrator Monitor |
| `BAD_RESPONSE` | 200 without `accountStatus`: Continue on error, or output not mapped | Look for a "Continued on Error" array |
| Token login returns 405 | HTML Server Allowed Hosts does not accept this AIS Server | Server Manager, Web Runtime, Allowed Hosts |

Test order: Server Manager Test Configuration (calls `defaultconfig`) then `curl https://<ais>/jderest/defaultconfig`; run the orchestration in Studio's Run Orchestrations in the test environment; call REST with the integration user from a laptop and then from the Lambda subnet (over your 3-second step budget stops the project); then negative cases (unknown phone, a shared phone aborts so expect `HTTP_500`, wrong password, stopped AIS gives `TIMEOUT`).

> **What could break** (modeled, not an incident): someone sets the receivables step to Continue on error and a later permissions change makes it fail. Every call returns 200 with a valid `accountStatus` and `openInvoiceCount` of 0, so the IVR tells owing customers they owe nothing, and the adapter checks only `accountStatus`. Abort on receivables errors, or output `UNKNOWN` when that step fails and alarm on it.

An Oracle licensing answer for an external caller of AIS or Orchestrator was not verified; ask in writing. Cost arithmetic (not a measurement): 100,000 lookups a month at 512 MB and 1.5 seconds is 75,000 GB-seconds, inside the Lambda free tier; the Site-to-Site VPN page lists $0.05 per connection-hour for US East (Ohio), about $36.50 for a 730-hour month, plus data transfer out.

## SAP S/4HANA

As of October 30, 2026, identifying a caller in S/4HANA takes five OData requests in four sequential steps (phone to address, address to business partner, partner status, then open items and the last order in parallel), all inside the 8-second limit. The adapter is `sap.mjs` in the [ERP artifact](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/erp/README.md), with a 12-test `sap.test.mjs` that mocks `fetch` against illustrative OData responses. Nothing was run against a live SAP system.

> **Short answer:** match the caller on `InternationalPhoneNumber` in the Business Partner API, resolve the partner, then read status, open items and the last order. Expect five calls four round trips deep, so measure from the Lambda subnet before you promise 8 seconds. If the chain is too slow, ask SAP for one custom service or fall back to a cached summary.

| Piece | Label |
| --- | --- |
| Business Partner, Sales Order and accounting OData APIs, communication arrangements | **Native** (SAP) |
| AppFlow SAP OData connector into S3, Redshift or Connect | **Supported** (AWS); batch or scheduled, not a per-call lookup. Needs `$top`, `$skip` and `$count` support, caps an OData page at 3,000 records, schedules at most 1 run per minute |
| AWS SDK for SAP ABAP (GA June 30, 2023) | **Supported** (AWS); lets ABAP code call AWS services, the wrong direction here |
| The four-step lookup and 5-second abort | **Custom engineering** |

We found no SAP-specific Customer Profiles connector; AppFlow into Profiles is a batch route that answers "what do we know about this customer" on the agent screen, not "what is the status of this account" while the IVR waits.

### SAP edition and APIs

The sample uses three released OData V2 services under `/sap/opu/odata/sap/<service>` (the default path in SAP's generated metadata, both editions): `API_BUSINESS_PARTNER`, `API_SALES_ORDER_SRV` and `API_OPLACCTGDOCITEMCUBE_SRV`. Property lists come from a 2022 snapshot of SAP's service metadata in the SAP Cloud SDK, not your system; treat each name as a hypothesis that `$metadata` confirms.

- **S/4HANA Cloud Public Edition.** Each API is exposed through a communication arrangement for a communication scenario. `SAP_COM_0008` covers Business Partner, Customer and Supplier integration; an SAP Knowledge Base article names `SAP_COM_0303` ("Finance - Accounting Analytics Integration") for open items. We did not verify the sales-order scenario ID.
- **On-premise or private.** The services are activated in SAP Gateway (the AppFlow page names `/IWFND/MAINT_SERVICE` for OData V2), and the adapter appends `sap-client` when `SAP_CLIENT` is set.

### SAP phone lookup

Phone numbers are not on the business partner. They live in `A_AddressPhoneNumber` (keyed by `AddressID`, `Person`, `OrdinalNumber`), reached from the partner through `A_BusinessPartnerAddress` (`to_PhoneNumber`, `to_MobilePhoneNumber`). `PhoneNumber` (30 characters) is dialling code and number without the country dialling code, entered as dialled inside the country, so equality against a caller ID rarely matches. `InternationalPhoneNumber` (30 characters) is "dialing code + number + extension", system-calculated, and SAP says not to fill it yourself; it is the better filter target. We could not establish its literal stored shape (with or without `+`, spaces, `00`) or whether it is filterable in your service: read a known customer first, and if it is not E.164, normalise on the SAP side or change one line in the adapter. A number can belong to a contact person (the `Person` key), which the sample does not follow (it returns `NOT_FOUND` when the phone row has no matching partner address), and one number on several addresses of the same partner is deduplicated before the ambiguity decision.

```bash
# $BASE is your S/4HANA host. Plus signs must be %2B in the query string.
curl -sS -u "$SAP_USER:$SAP_PASSWORD" -H 'Accept: application/json' \
  "$BASE/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_AddressPhoneNumber?\$filter=InternationalPhoneNumber%20eq%20'%2B14155550123'&\$select=AddressID&\$top=10"

curl -sS -u "$SAP_USER:$SAP_PASSWORD" -H 'Accept: application/json' \
  "$BASE/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartnerAddress?\$filter=AddressID%20eq%20'100'&\$select=BusinessPartner,AddressID&\$top=10"
```

The adapter filters rather than reading by key, so an unknown number is a 200 with an empty `results` array: `NOT_FOUND` comes from an empty list, and a 404 never means "no such customer".

### SAP status, orders and receivables

- **Status.** `A_BusinessPartner` with `$select=BusinessPartner,Customer,BusinessPartnerIsBlocked,IsMarkedForArchiving`. The sample reports `INACTIVE` for a centrally blocked or archived-marked partner, else `ACTIVE`. An empty `Customer` means no customer role, so it returns `0` open items and `NONE` without making the last two calls. `A_Customer` carries further blocks (order, posting, deletion flag) a finance team may want; the sample leaves them out.
- **Last order.** `A_SalesOrder` in `API_SALES_ORDER_SRV`, filtered on `SoldToParty`, ordered `CreationDate desc,SalesOrder desc`, `$top=1`, selecting `SalesOrder` and `OverallSDProcessStatus` (a one-character field; we did not verify what each character means, so the flow branches on codes your team confirms).
- **Open items.** `A_OperationalAcctgDocItemCube`, filtered on `Customer`, `FinancialAccountType eq 'D'` and `IsCleared eq false`, with `$top=0&$inlinecount=allpages` so the count returns without rows. The cube is keyed by company code, fiscal year, document and item, so it counts open customer line items, not only invoices. We could not verify `$inlinecount` support or that "cleared" matches the customer line-item list; a missing count is `BAD_RESPONSE`, never zero. If SAP prefers another released API for receivables only that request changes, but the count must stay a count, because a capped page silently under-reports.

### SAP authentication and network

On Public Edition the credential is a communication user on a communication arrangement. SAP's developer tutorial shows an inbound user with the "User Name and Password" method, so Basic works; community guides describe OAuth 2.0 against the same arrangement (client ID from the arrangement's OAuth 2.0 Details, secret the communication user's password), and SAP tutorials use the SAML bearer flow for Business Partner. Which grants, token endpoint and scopes apply depends on the service and tenant; we could not open SAP Help to confirm. The adapter implements Basic only (AppFlow lists Basic for OData V2 and V4, OAuth 2.0 for V2 only). For production we would prefer OAuth client credentials where offered, at the cost of a token call in front of the lookup and expiry handling, neither in the artifact. On-premise, authentication is a Gateway user with a role for the three services; a Broadcom article describes OAuth client credentials on S/4HANA Private Cloud via `SOAUTH2` and a token URL under `/sap/bc/sec/oauth2/token` (third-party, a pointer only). CSRF tokens do not apply to GET reads.

Public Edition tenants are, as far as we know, reached over public HTTPS (confirm for your tenant); use a VPC with NAT and an Elastic IP only if SAP-side allow lists need fixed addresses. On-premise or private systems need a VPC route to the Gateway host over Site-to-Site VPN or Direct Connect, private DNS, a trusted certificate chain and a Secrets Manager route. SAP teams often suggest Cloud Connector, but the pages we read describe it as an outbound tunnel serving BTP applications calling on-premise systems; we found no SAP statement that it accepts requests from an arbitrary AWS workload, and the same applies to BTP Destinations. Ask your basis team and do not design around it until they answer in writing.

### SAP latency and fallbacks

A proposed (not measured) split of the 5 seconds: connect and TLS 0.5 s, phone filter 0.8 s, address lookup 0.5 s, partner read 0.5 s, open items and last order in parallel 2.0 s, mapping 0.2 s, leaving 0.5 s of slack. Do not use `$expand`: OData V2 cannot filter the parent by a child's property, so you would pull every address of every candidate partner (not measured). Always send `$top`. The cleanest fix is one custom OData or CDS-based service from your SAP team that takes a phone number and returns one row, collapsing five calls to one; whether that is possible depends on your edition and extension model.

| Condition | `fallbackReason` |
| --- | --- |
| 401 (wrong password, locked or expired communication user, bad token) | `HTTP_401` |
| 403 (arrangement missing the API, user without authorization) | `HTTP_403` |
| 404 (wrong service path, or service not activated on-premise) | `HTTP_404` |
| 429 or 503 | `HTTP_429` or `HTTP_503` |
| No answer in 5 s | `TIMEOUT` |
| Two partners on one number | `AMBIGUOUS` |
| 200 that is not an OData list, or lacks the block flag or count | `BAD_RESPONSE` |
| 200 with an empty list | none; `accountStatus` is `NOT_FOUND` |

We found no official SAP throttling number or status code for S/4HANA Cloud OData; third-party pages disagree between 429 and 503. The adapter treats both alike and does not retry. Ask SAP for the real limit per communication user and cap Lambda concurrency below it.

> **What could break** (modeled, not an incident): a finance change archives cleared items out of the accounting cube, or replaces it with another released API. The count call starts returning 200 with no `__count`. An adapter defaulting to zero would tell owing customers they owe nothing; this one returns `BAD_RESPONSE`, the flow takes the generic path, and a metric filter on the reason shows the change within minutes.

### SAP Business One in brief

Business One uses the Service Layer, which is stateful. These facts come from SAP's table documentation for the 10.0 SDK and community and vendor guides; we did not open SAP's Service Layer reference and built no Business One adapter.

- **Session.** `POST /b1s/v1/Login` with `CompanyDB`, `UserName` and `Password` returns a `B1SESSION` cookie for later calls. A community report puts the default timeout at 30 minutes (unverified); an expired session surfaces as 401 ("Invalid session or session already timeout" in an SAP Knowledge Base preview). Community posts report login failures when several logins race (unverified), so keep one login per warm container and reuse the cookie.
- **Customer.** `OCRD` has `Phone1` and `Cellular` (50-character free text) and `CardCode`. Service Layer property names for the blocked and valid flags differ from the table columns, so read `$metadata`. Filtering `Phone1` has the same normalisation problem as S/4HANA, worse because nothing computes an international form; one secondary guide lists `contains()` and `startswith()`, to test before relying on them.
- **Orders.** Table documentation gives `DocStatus` `O` (open) and `C` (closed) plus `CardCode` and `DocEntry`; community examples use a different enum string through the Service Layer, so test which your version accepts.

We would use a scheduled copy of partner phones and last-order status into a store the Lambda reads in milliseconds, keeping the login handshake and free-text phones out of the call path.

### SAP security and checks

Use a dedicated communication or Gateway user; SAP's tutorial says business catalogs decide what a user can do, and we could not verify whether an arrangement can be read-only on these services, so check effective authorizations and remove anything that writes. One arrangement per scenario, not a shared super user. Do not assume SAP licensing for an external API caller; ask your SAP account team in writing. Test order: read each service's `$metadata` (including any `sap:filterable` annotation on `InternationalPhoneNumber`), read the stored phone for a known customer, walk the five requests by hand against what an SAP user sees on screen, time the chain from the Lambda subnet, then break it (unknown number, a number on two partners, a blocked partner, wrong password, stopped gateway, an arrangement missing one API).

## Acumatica

As of October 30, 2026, Acumatica's April 2026 Licensing Guide (for products introduced on or after April 2024) limits what the Lambda may spend: 50 Web API requests per minute and 5 API connections on Essentials. The lookup is three requests against the contract-based REST API (`acumatica.mjs` and `acumatica.test.mjs` in the [ERP artifact](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/erp/acumatica.mjs); seven tests, `fetch` mocked, illustrative responses, no instance called). We found no Amazon Connect connector for Acumatica in the sources we read: the AppFlow list does not name it, and its marketplace search returned an Amazon Seller Central connector that is unrelated. That is "none found", not proof none exists.

> **Short answer:** call the Customer, Invoice and SalesOrder entities from one Lambda, authenticate with the OAuth password flow (Acumatica lists no client credentials flow), and keep Lambda concurrency below your Web API connection count. Match phones on a field you control.

### Acumatica endpoint and version

Requests go to `/entity/<endpoint name>/<endpoint version>/<entity>`, usually the `Default` endpoint, with versions such as 24.200.001 and 25.200.001 in Acumatica's examples. Pin one your instance offers in `ACU_VERSION` and rerun the tests before changing it. Acumatica's 2026 R2 change list shows why: Default/26.200.001 uses contract version 5 and Default/25.200.001 uses version 4; between them 163 string single-select fields change from `StringValue` to `StringSingleSelectValue`, 43 date-only fields change from `DateTimeValue` to `DateOnlyValue`, and `SalesOrder.LastModified` becomes `LastModifiedDateTime`. We did not check whether `Customer.Status`, `SalesOrder.Status` or `SalesOrder.Date` are affected; a changed `Status` shape shows up as a wrong IVR answer, not an error.

### Acumatica authentication and the session trap

Acumatica's authorization-flow page lists Authorization Code, Implicit, Resource Owner Password Credentials and Hybrid, and no client credentials. You register the client on the Connected Applications form (SM303010) inside each instance; the client ID carries the tenant (a GUID, an at sign, the tenant name).

- **Password flow (implemented).** POST `grant_type=password`, client ID and secret, an API user's name and password, and `scope=api` to `/identity/connect/token`. The response carries `access_token` and `expires_in` (3600 in the authorization-code page's example; no password-flow value seen). Acumatica says the flow suits high trust between user and client, bypasses the authorization step, and suggests another flow when you can; whether an API user behind SSO or multi-factor can use it is not stated, so test with the real user.
- **Authorization code flow (not implemented).** A person authorizes once and the Lambda holds a refresh token (`offline_access`) in Secrets Manager: no stored user password, but a manual consent step and refresh-token rotation.
- **Cookie login.** `POST /entity/auth/login` (a 204 returns cookies) "is going to be discontinued in a future version"; do not start new work on it.

Sessions are the larger risk. Acumatica counts API sessions against the license, and an unclosed session can block later sign-ins. A cookie session closes after 10 minutes; an OAuth session opened without sign-out expires after about an hour. At the limit, sign-in returns HTTP 429 (an API Login Limit error), the first documented fix is to wait an hour or sign out every time, and administrators cannot force-close API sessions. Sign-out (`POST /entity/auth/logout`, 204) skips the request queue. Without the `api:concurrent_access` scope, one access grant uses one session. The adapter requests only `api`, caches the token per warm container and never signs out (a frozen container gives no moment to), so each warm container holds one session for up to the token's lifetime.

> **Modeled comparison** (arithmetic, not a measurement): the Licensing Guide lists 5, 10, 20 and 60 Web API connections for Essentials, Select, Prime and Enterprise. Ten warm containers on Essentials try to hold ten sessions against five, and the sixth sign-in fails with HTTP 429. Starting rule: reserved concurrency no more than half the connection count, less if other apps already sign in. The named-user table lists 5, 5, 10 and 10 connections included, so your number depends on your licensing model. If a low cap is unacceptable, sign out per invocation (token, three reads, sign-out), which holds a session only while the lookup runs.

### Acumatica reads

Context: requests the adapter sends, decoded, against `Default/24.200.001`; none was run against a live instance.

```
GET /entity/Default/24.200.001/Customer?$filter=MainContact/Phone1 eq '+14155550123'&$select=CustomerID,Status&$top=2
GET /entity/Default/24.200.001/Invoice?$filter=Customer eq 'C000012' and Type eq 'Invoice' and Status eq 'Open'&$select=ReferenceNbr&$top=101
GET /entity/Default/24.200.001/SalesOrder?$filter=CustomerID eq 'C000012'&$select=OrderNbr,OrderType,Status,Date&$top=101
```

- Percent-encode the `+` in E.164 or a query string reads it as a space; the adapter encodes every value (a test checks `%2B14155550123`) and doubles single quotes, the OData convention (Acumatica's filter page says nothing about escaping).
- Filtering on a linked entity is documented (`MainContact/Email eq '...'`; `MainContact/Phone1` appears in its customer-with-contacts example). The filter page does not say whether it needs `$expand=MainContact`, and the `$select` page says nested paths in a select do; our `$select` uses only top-level fields, so no `$expand` is sent. Test with and without. Expansion is not recursive.
- Always send `$top`: omitted, the request returns all matches, and a SQL Server resource governor limit makes it error.
- Responses wrap each field as `{ "value": ... }`; the adapter reads `row.CustomerID.value`.
- The invoice call is the least certain. `Status eq 'Open'` returned results on Invoice in a January 2026 community thread, where an invoice created from the Sales Orders module was invisible to Invoice and needed the SalesInvoice entity. `Type eq 'Invoice'` and the `Customer` field name come from a third-party tool's examples and our reading, not Acumatica's docs. Customer `Status` is confirmed only as `Active` from a community payload; the adapter upper-cases it and turns spaces into underscores (for example `ON_HOLD`), so learn the exact strings from your data.
- **No sort.** Acumatica's query-parameter list names `$filter`, `$skip`, `$top`, `$expand`, `$select` and `$custom`, not `$orderby`, and a community thread says ordering is unreliable. The adapter fetches up to 101 orders, sorts on `Date` and `OrderNbr` itself, and returns `UNKNOWN` for both order fields past 100 (the newest might be outside the page); open invoices past 100 return `100_PLUS`. A Generic Inquiry returning both in one call is the better design if you have the capacity.

### Acumatica phone matching

`Phone1` is stored as text in whatever format users typed, so `+14155550123` will not equal `(415) 555-0123`, and a miss returns `NOT_FOUND` with nothing alerting. Measure first on 20 known customers; if many miss, change the data. Otherwise: (1) a normalised custom field maintained through an import or customization, with `ACU_PHONE_FIELD` pointed at it (Acumatica documents the custom-field filter `cf.String(f='<View>.<Field>') eq '...'` and `$adHocSchema`; an August 2025 community thread reports it returning only sub-table definitions for Customer on 25.1, so check yours); (2) a Generic Inquiry (SM208000) exposed at `<instance URL>/t/<TenantName>/api/odata/gi` with basic auth or OAuth 2.0 for OData clients, holding a computed phone column and returning the invoice count and last order in one request. For (2) we did not read the page on preparing an inquiry for exposure, did not verify formula functions that strip punctuation, and did not check whether OData calls count toward the per-minute limit; for concurrent-user licensing, basic-auth OData sign-ins count as conventional user sign-ins, not API sessions. `substringof`, `startswith` and `endswith` are documented without syntax and help only when the stored value contains your digits contiguously.

### Acumatica limits and budget

Limits are license properties; see your License tab in the License Monitoring Console (SM604000), whose Statistics tab shows delayed and declined requests. Requests beyond the concurrency limit queue; once requests in the past minute reach 50% of the per-minute limit, new requests are delayed by an unstated amount; a request is declined only if more than 20 are queued or it waited over 10 minutes (no HTTP status given), and the session page says exceeding the license limit returns 429. The April 2026 Licensing Guide:

| Constraint | Essentials | Select | Prime | Enterprise |
| --- | --- | --- | --- | --- |
| Web API connections | 5 | 10 | 20 | 60 |
| Web API requests per minute | 50 | 100 | 150 | 300 |
| API concurrency (max queue size) | 5 | 10 | 20 | 40 |
| Parallelism | 1 | 2 | 3 | 8 |

SaaS Reserved Resources can raise some of these, older products have their own guide (not read), and the queue size differs from the help page's 20, so trust your SM604000. Modeled (arithmetic): three requests per lookup and delays beginning at 50% of the per-minute limit means about 8 lookups a minute on Essentials, 16 on Select, 25 on Prime and 50 on Enterprise; whether the token request, a failed request or a sign-out counts is not stated, and other integrations share the limit. Parallelism 1 on Essentials runs the two parallel reads one after the other. A proposed (unmeasured) split of the 5 seconds: token request on a cold container 1.0 s, customer lookup 1.0 s, invoice and order reads 2.5 s, mapping 0.5 s.

SaaS reaches the instance over public HTTPS from a Lambda outside a VPC; we found no statement on IP allow lists or private connectivity for SaaS, so ask. A private cloud needs the VPN or Direct Connect route described for JD Edwards.

| Situation | `fallbackReason` |
| --- | --- |
| Token request rejected (bad client or user) | `HTTP_400` or `HTTP_401` (OAuth error body unverified) |
| Bearer token rejected | `HTTP_401` (adapter drops its cached token) |
| API user lacks rights | `HTTP_403` |
| License limit or API Login Limit | `HTTP_429` |
| Instance error, or `$top` missing against a governor limit | `HTTP_500` |
| Two customers on one phone | `AMBIGUOUS` |
| 200 with an error object or missing field | `BAD_RESPONSE` |
| No answer in 5 s | `TIMEOUT` |
| Missing configuration | `NOT_CONFIGURED` |

Required configuration: `ACU_URL` (instance URL including any instance path), `ACU_VERSION`, `ACU_CLIENT_ID`, `ACU_CLIENT_SECRET`, `ACU_USER`, `ACU_PASSWORD`; optional `ACU_ENDPOINT` (default `Default`) and `ACU_PHONE_FIELD` (default `MainContact/Phone1`). Use a dedicated API user (the Licensing Guide says API users cannot use the UI) limited to Customer, Invoice and SalesOrder reads, and rotate both the client secret and the user's password. Troubleshooting: `HTTP_429` on the first call of a spike means more warm containers than connections; `HTTP_429` mid-spike means the per-minute limit; slow lookups with no errors mean delays after the 50% threshold (read SM604000); `BAD_RESPONSE` after an upgrade means the endpoint version or field types changed; `openInvoiceCount` always 0 means invoices live in SalesInvoice or `Type` and `Status` differ; `lastOrderRef` `UNKNOWN` means more than 100 orders. Test order: read SM604000; get a token with `curl` (`/identity/connect/token`, `grant_type=password`, `scope=api`; how a multi-tenant instance expects the tenant in the user name is not stated, so check your sign-in); run the three reads; try 20 known customers' E.164 numbers; negative cases; time from the Lambda; run 10 concurrent lookups and recheck SM604000.

> **What could break** (modeled, not an incident): an Essentials instance has 5 API connections and another vendor's integration holds two. A campaign warms eight containers, the fourth sign-in fails, those contacts get `HTTP_429` fallbacks, and the other integration cannot sign in either until sessions expire, because administrators cannot free them. Cap reserved concurrency below the free connections and agree the cap with the other integration's owner.

Acumatica sources: [authorization flows](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=a8f71c44-9f5c-4af8-9d47-bc815c8a58e7), [signing in to the REST API](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=0322492a-de9b-4443-b256-923c48aff31d), [API sessions](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=f6701ec1-2296-4155-8242-03d29006bf6e), [license restrictions](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=7a796856-3dec-4a4f-abf8-171324c9642b), [OAuth troubleshooting](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=1a864bb9-3e45-4e94-82e1-a4d52331c3d6), [query parameters](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=775ca16b-cba6-4c1d-89d5-c1df7833bfea), [Generic Inquiries through OData](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=5d97a93d-45e0-466e-ba5e-77e1ccf96643), [26.200.001 change list](https://help.acumatica.com/Wiki/ShowWiki.aspx?pageid=b49d1af2-80a7-4271-b421-ab64173eead8) and the [Licensing Guide, April 2026](https://www.acumatica.com/media/2026/05/Acumatica-Licensing-Guide-April2026-Final-May-21.pdf).

SAP sources: [AppFlow SAP OData connector](https://docs.aws.amazon.com/appflow/latest/userguide/sapodata.html), [Customer Profiles external integrations](https://docs.aws.amazon.com/connect/latest/adminguide/integrate-external-apps-customer-profiles.html), [AWS SDK for SAP ABAP GA](https://aws.amazon.com/about-aws/whats-new/2023/06/aws-sdk-sap-abap-available), SAP Cloud SDK clients for [A_AddressPhoneNumber](https://cdn.jsdelivr.net/npm/@sap/cloud-sdk-vdm-business-partner-service@2.1.0/AddressPhoneNumber.d.ts), [A_BusinessPartnerAddress](https://cdn.jsdelivr.net/npm/@sap/cloud-sdk-vdm-business-partner-service@2.1.0/BusinessPartnerAddress.d.ts), [A_SalesOrder](https://cdn.jsdelivr.net/npm/@sap/cloud-sdk-vdm-sales-order-service@2.1.0/SalesOrder.d.ts) and [A_OperationalAcctgDocItemCube](https://cdn.jsdelivr.net/npm/@sap/cloud-sdk-vdm-accounting-document-service@2.1.0/OperationalAcctgDocItemCube.d.ts), [SAP Knowledge Base 3731318](https://userapps.support.sap.com/sap/support/knowledge/en/3731318), the [SAP Business Partner Basic-auth tutorial](https://developers.sap.com/tutorials/abap-environment-business-partner-basic-auth), the [SAP Community CSRF explainer](https://blogs.sap.com/2021/06/04/how-does-csrf-token-work-sap-gateway/), and Business One 10.0 table docs [OCRD](https://help.sap.com/doc/089315d8d0f8475a9fc84fb919b501a3/10.0/en-US/SDKHelp/ocrd.html) and [ORDR](https://help.sap.com/doc/089315d8d0f8475a9fc84fb919b501a3/10.0/en-US/SDKHelp/ordr.html).

---

## Data mapping

| Field (flow attribute) | NetSuite | Odoo | JD Edwards | SAP S/4HANA | Acumatica | Profile object (custom) |
| --- | --- | --- | --- | --- | --- | --- |
| `accountStatus` | `customer.isInactive` | `res.partner.active` | orchestration output | `BusinessPartnerIsBlocked`, `IsMarkedForArchiving` | `Customer.Status` | `AccountStatus` |
| `openInvoiceCount` | count of `CustInvc` with status `A` | `account.move` count, posted, unpaid or partial | orchestration output | open-items count (`IsCleared eq false`) | open `Invoice` count, `100_PLUS` past 100 | `OpenInvoiceCount` |
| `lastOrderStatus` | latest `SalesOrd` status | `sale.order.state` | orchestration output | `OverallSDProcessStatus` | `SalesOrder.Status` | `LastOrderStatus` |
| `lastOrderRef` | `tranId` | `sale.order.name` | orchestration output | `SalesOrder` | `OrderNbr` | `LastOrderRef` |
| `lookupStatus` | adapter | adapter | adapter | adapter | adapter | not stored |

The right column is a design you create with `PutProfileObjectType`. It is not a built-in schema. The flat map is what makes three different ERPs look the same to a flow: add a fifth field in one place and every adapter must provide it or return `UNKNOWN`.

## Failure handling inside 8 seconds

The handler never throws. It aborts the ERP call at 5 seconds (`AbortSignal.timeout`, capped at 6 seconds whatever `ERP_BUDGET_MS` says) and returns `lookupStatus=FALLBACK` with a reason: `TIMEOUT`, `HTTP_401`, `HTTP_429`, `HTTP_444`, `HTTP_503` and other HTTP codes, `AMBIGUOUS`, `BAD_RESPONSE`, `BAD_INPUT` or `NOT_CONFIGURED`. All data fields become `UNKNOWN`.

Three of those reasons exist to stop a wrong answer. `AMBIGUOUS`: NetSuite and Odoo are asked for two matching customers, and two means a shared number, so neither is read out. `BAD_RESPONSE`: a 200 response without the expected fields (a NetSuite error body, a broken JDE orchestration) is never reported as `OK` or `NOT_FOUND`. `NOT_CONFIGURED`: missing credentials or URLs are reported as such, not as a customer who does not exist. The Odoo adapter also sends `active_test: false`, because Odoo filters archived partners out by default and `INACTIVE` could otherwise never be reported. The flow checks `lookupStatus` and sends the caller to a human or a generic path.

Why not rely on Connect's Error branch? Because Connect retries a failed invoke up to 3 times inside the same 8 seconds, and an error branch tells you nothing about why. With a clean fallback you get a reason in the contact record and a branch you designed.

```js
// handler.mjs (Node 24): abort the ERP call before Connect's 8 s ceiling, never throw.
try {
  const raw = await adapter.lookup({ phone, cfg, fetchFn, signal: AbortSignal.timeout(budget) });
  return toStringMap(raw);
} catch (e) {
  const timedOut = e?.name === 'TimeoutError' || e?.name === 'AbortError';
  return fallback(timedOut ? 'TIMEOUT' : (e?.code ?? 'ERP_ERROR'));
}
```

### Where this breaks

> **What could break (modeled, not an incident):** Three sequential ERP calls that each take 2.8 seconds finish at 8.4 seconds, after Connect has already routed the contact to the Error branch. The Lambda keeps running and bills for it, and the caller hears the failure path. Our budget math: token request (cached after the first call), plus one SuiteQL call and then two in parallel, must fit well inside 5 seconds at your measured p95, or move that ERP to the cached pattern.

Two further breaks to expect: the phone key (free-text formats) returns `NOT_FOUND` for real customers, and the account-wide concurrency on NetSuite throttles under a spike.

## Deployment, testing and validation

1. Add the function to the instance (Flows, AWS Lambda) and grant the Connect principal invoke permission.
2. Set the block to **Synchronous**, **STRING_MAP**, timeout 6 to 7 seconds so the handler's 5-second abort fires first.
3. Test each adapter against a **sandbox** ERP before production: NetSuite sandbox account, Odoo test database, JD Edwards non-production environment.
4. Run `node --test` in the artifact. The 13 tests check output shape, fallback on timeout and on HTTP 503, query-injection rejection, the NetSuite token request (claims, and reuse on a warm call), inactive accounts in NetSuite and Odoo, ambiguous matches, error bodies returned with HTTP 200, missing config, and a log line that never contains the phone number.
5. In the flow, use Connect's test and simulation to confirm the attribute names you reference match the keys returned.
6. Alarm on duration and on `FALLBACK` by reason. The handler never throws, so Lambda's `Errors` metric stays at zero; the signal is the one JSON log line it writes per call (`lookupStatus`, `fallbackReason`, duration, never the phone), read through a CloudWatch metric filter.

> **Reproduce this:** The adapters, README, sample event and test file are in [`/examples/architecture-blog-2026/connect-commerce-context/erp/`](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/erp/README.md). Run `cd examples/architecture-blog-2026/connect-commerce-context/erp && node --test`. Expected output: 13 passing tests for the shared suite. The folder also holds `sap.test.mjs` (12 tests) and `acumatica.test.mjs` (seven tests), and the JDE orchestration contract has its own five-test folder. All HTTP is mocked; none of it has been run against live ERPs. The handler is [`handler.mjs`](https://www.daventa.co/examples/architecture-blog-2026/connect-commerce-context/erp/handler.mjs).

## Costs (published only)

- **Lambda:** the published free tier is 1 million requests and 400,000 GB-seconds a month. Beyond it you pay per request and per GB-second. See the [Lambda pricing page](https://aws.amazon.com/lambda/pricing/) for current rates.
- **Site-to-Site VPN:** charged per connection-hour, plus data transfer out, per the [VPN pricing page](https://aws.amazon.com/vpn/pricing/). Direct Connect has its own pricing.
- **Secrets Manager:** per secret per month and per 10,000 API calls. Caching at init keeps the call count near the number of cold starts.
- **Amazon Connect (checked October 28, 2026):** Connect Customer lists voice at $0.038 per minute, chat $0.010 per message, email $0.080 and SMS or third-party messaging $0.014, telephony extra, with AI agents, conversational analytics and summaries included; Connect Customer Basic excludes them. See the [Connect pricing page](https://aws.amazon.com/connect/pricing/).
- **Arithmetic, not measurements:** 100,000 lookups a month at 512 MB and 1.5 seconds is 75,000 GB-seconds, inside the Lambda free tier. The Site-to-Site VPN page lists $0.05 per connection-hour for US East (Ohio), about $36.50 for a 730-hour month, plus data transfer out.
- **Not published:** NetSuite SuiteCloud Plus, SAP and Acumatica API allowances and licensing, an Odoo Custom plan, Oracle JD Edwards licensing, and any third-party iPaaS. We list none of these because we cannot cite a price.

## Recommendation

Build a thin Lambda per ERP behind one output contract, start with live reads for the IVR, and add a cached summary for the agent screen only when measured latency says so. The trade-off is custom code that you maintain across ERP releases. We prefer it to an iPaaS for a four-field lookup, because the iPaaS adds a licence, a hop and a second timeout inside the same 8 seconds. Choose an iPaaS when you already run one for finance and want its connectors, monitoring and retry policies, and verify its added latency first.

By ERP: NetSuite is the safest on tooling and the riskiest on shared concurrency. Odoo is the simplest API and the one with the plan question to settle first. JD Edwards has the lowest-level control and the most project work, because you build the orchestration and the network path.

## What to do this week

1. Measure p95 round-trip from the Lambda's subnet to the ERP. If it exceeds 3 seconds, plan the cached pattern first.
2. Confirm entitlement in writing: NetSuite integration role and concurrency allocation, Odoo plan, Oracle licensing for AIS and Orchestrator.
3. Create a read-only ERP user or role for the integration, and store its credentials in Secrets Manager.
4. Clone the artifact, replace the field mapping, and run `node --test`.
5. Build the flow with a `lookupStatus` branch before any data branch.
6. Add the `FALLBACK` metric-filter alarms (by reason) before you route live traffic.

## What this post doesn't cover

- A live run against any of the five ERPs. The only tests are mocked, apart from the local Odoo benchmark.
- NetSuite feature-checkbox and SuiteQL permission names, per-tier concurrency numbers, the default and maximum SuiteQL `limit`, and the sandbox hostname format, none of which we could confirm on an Oracle page.
- Odoo licensing outside the documented Custom-plan rule, and any difference between Online, Odoo.sh and self-hosted for the API.
- JD Edwards licensing, application IDs and tables for receivables and orders, the exact version 3 response envelope, token expiry values, and a documented AIS session limit.
- SAP: OAuth, SAML bearer or certificate adapters, verified sales-order status codes, the stored phone format, `$inlinecount` support on the accounting cube, SAP throttling numbers and whether Cloud Connector can front a Lambda. Business One was not built.
- Acumatica: verified Customer status values, Invoice field names, `SalesOrder.Date` and `$expand` behaviour, version 26.200.001, the authorization code flow, per-invocation sign-out and OData effects on request limits.
- Writes back to the ERP (creating a case, updating an address). Read-only is a deliberate scope.
- Third-party iPaaS evaluation, ERP-to-Connect event push, and the Shopify, BigCommerce and WooCommerce side. See [Amazon Connect + Shopify, Magento, BigCommerce, WooCommerce](https://www.daventa.co/blog/amazon-connect-bigcommerce-woocommerce-integration-2026/).
- Compliance. Running on AWS does not make customer or invoice handling compliant.

Price it with the [Connect cost per contact calculator](https://www.daventa.co/tools/amazon-connect-cost-per-contact-calculator/) or compare [Amazon Connect and Zendesk](https://www.daventa.co/compare/amazon-connect-vs-zendesk/).

For an overview of how we approach the commerce side of Connect, see [Amazon Connect for eCommerce](https://www.daventa.co/services/amazon-connect/aws-retail-ecommerce/).

## FAQ

### Can Amazon AppFlow load NetSuite, Odoo or JD Edwards data into Connect Customer Profiles?
Not as native connectors. On October 27, 2026 the AppFlow supported-applications list includes SAP OData, Microsoft Dynamics 365, QuickBooks Online, Oracle HCM and JDBC, but not NetSuite, Odoo or JD Edwards. The Customer Profiles API documents Salesforce, Zendesk, Marketo, ServiceNow and Amazon S3 as AppFlow sources. For these three ERPs you write a Lambda, or buy a third-party iPaaS connector.

### How long can a Connect flow wait for an ERP lookup?
A synchronous Invoke AWS Lambda function block allows a maximum of 8 seconds. Errors are retried up to 3 times inside that window, then the flow takes the Error branch. A chain of Lambda functions is limited to 20 seconds in total. Asynchronous mode allows up to 60 seconds. Add a Wait block set to Lambda returned, and pass that invocation's RequestId, when the contact should hold for the result. When the API is already an MCP tool on an AgentCore gateway, the November 2, 2026 External Tool block is the alternative, described in the Connect AI agents FAQ self-service post.

### When should we not call the ERP live from the flow?
Skip the live call when the ERP is slower than your budget at p95, when it sits behind a VPN you cannot make highly available, or when the account limit is shared with finance integrations. Then publish a small summary to Customer Profiles on a schedule and read the cache. Accept that the data can be stale and show the age.

### What could go wrong with NetSuite concurrency?
Web services and RESTlet requests share one account concurrency limit, and each SuiteCloud Plus license adds 10. Oracle's page says the base depends on service tier but does not list it in the pages we read. A peak of simultaneous calls from the contact center can starve a finance integration. Use a per-integration allocation and cache on the Lambda side.

### Is the Odoo external API available on every plan?
No. Odoo's documentation says access to data via the external API is only available on Custom pricing plans, and not on One App Free or Standard. Self-hosted and Odoo.sh licensing is not covered by the page we read, so treat it as unverified for your contract.

### Which NetSuite authentication should a new Connect integration use?
OAuth 2.0 with the client credentials (machine to machine) grant. Oracle says new integrations built from 2026.1 should use REST web services with OAuth 2.0, and from 2027.1 new integrations cannot use token-based authentication. SOAP requires TBA, so SOAP is not a starting point.

### Does using AWS make this integration compliant?
No. Customer and invoice data are personal data. You still own access scoping, retention, logging and the ERP vendor's terms under shared responsibility. Return the minimum fields to the flow, because values stored as contact attributes are included in contact records.

### What breaks first on JD Edwards?
Latency and ownership. AIS is usually on a private network, so the Lambda needs a VPC route (Site-to-Site VPN or Direct Connect), and each hop spends part of the 8 seconds. The orchestration is a custom artifact someone must version and test across Tools releases.

### How long does a NetSuite client credentials access token last?
Oracle documents expires_in as always 3600 seconds, and the response has no refresh token. When it expires you build and sign a new assertion and call the token endpoint again. The sample adapter caches the token in the Lambda container and drops it on a 401.

### What happens when NetSuite returns 429?
Oracle documents HTTP 429 with errorCode CONCURRENCY_LIMIT_EXCEEDED and says to retry. Inside an 8 second window you cannot afford a retry loop, so the adapter reports HTTP_429 and the flow takes the generic path. The real fix is capping the Lambda's reserved concurrency below the share of the account limit you may use.

### What could go wrong after we rotate the NetSuite certificate?
After a revocation or expiry you must create a new mapping, which produces a new Certificate ID, the kid in the JWT header. If the Lambda still holds the old key or kid, every token request fails and every call falls back. Rotate in Secrets Manager and the NetSuite mapping together, and test in sandbox first.

### Which Odoo versions can a Connect Lambda call with the JSON-2 API?
Odoo 19.0 and later. The 19.0 documentation marks the External JSON-2 API as added in 19.0, and the 17.0 and 18.0 pages do not describe it. On Odoo 17 or 18 the external API is XML-RPC or JSON-RPC, which is a different adapter.

### How long can an Odoo API key live?
At most three months. Odoo's documentation says keys cannot be created that last longer, so keys must be rotated at least every three months, and a key is shown once at creation. Put rotation on a calendar and in a runbook before go-live.

### Why does the Odoo adapter send active_test false?
Odoo hides archived records from searches by default. Without a context of active_test false, an archived partner is not found, so the flow would report NOT_FOUND for a customer that exists and could never report INACTIVE.

### What is the minimum JD Edwards Tools release for an Orchestrator-based lookup?
Oracle's Orchestrator Guide says Orchestrator Studio 9.2.4 needs a minimum of EnterpriseOne Tools 9.2.4 and is deployed with AIS Server 9.2.4.0. Studio 8.0 can still log in but creates only version 2 orchestrations. Oracle recommends applying the latest Tools update.

### Should the JD Edwards Lambda use Basic authentication on every call or request an AIS token?
Basic on every call is stateless: the AIS Server gives each request a temporary session and removes it afterwards. A token saves repeated sign-on but is bound to a device name or source IP, expires by Server Manager settings, and without stateless load balancing (Tools 9.2.5.2) works only on the AIS node that issued it. Start with Basic for a pilot.

### Does a JD Edwards orchestration error come back as an HTTP error?
It depends on the step setting. A step set to Abort ends the orchestration and the call returns 500 with an error body. A step set to Continue can return 200 and records the error in a Continued on Error array. The adapter therefore treats a 200 without accountStatus as BAD_RESPONSE.

### Can a Lambda reach SAP through SAP Cloud Connector?
We would not plan on it. The sources we read describe Cloud Connector as an outbound tunnel serving SAP BTP applications calling on-premise systems, and we found no SAP statement that it accepts calls from an AWS Lambda. Use a public S/4HANA Cloud endpoint, or a VPN or Direct Connect route to the Gateway host, and confirm with your SAP basis team.

### Why not Amazon AppFlow for the in-call SAP lookup?
AppFlow's SAP OData connector transfers records on demand or on a schedule, with a fastest schedule of one run per minute, so it fits profile ingestion, not a per-call question. A scheduled flow into Customer Profiles is the fallback when live lookup is too slow; we have not built that pipeline.

### Which OAuth flow should a Lambda use to call the Acumatica REST API?
Acumatica's authorization-flow page lists Authorization Code, Implicit, Resource Owner Password Credentials and Hybrid, and no client credentials flow. For a Lambda with no human present, the password flow with a dedicated API user is the only listed flow that needs no browser step. Acumatica says to prefer another flow when possible, so weigh that with your security team.

### What happens if the Acumatica Lambda never signs out?
Acumatica limits API sessions by license. An unclosed session can block later sign-ins, an OAuth session opened without sign-out expires after about an hour, and a cookie session closes after 10 minutes. At the limit the sign-in returns HTTP 429 and administrators cannot force-close API sessions. Keep reserved concurrency well below your Web API connection count.

### Is there an Amazon Connect connector for Acumatica?
We found none in the sources we read on October 30, 2026. The AppFlow supported-applications list does not name Acumatica, and its marketplace search turned up an unrelated Amazon Seller Central connector. A third-party iPaaS may exist; we did not evaluate any.

---

*Source: https://www.daventa.co/blog/amazon-connect-erp-integration-netsuite-odoo-jd-edwards-2026/*
