Repository navigation
docs(integration-toolkit): inbound payload format - #197
Merged
Merged
Conversation
added 4 commits
November 26, 2026 20:52
New Payload Format page for the payload_format option of inbound use
cases: what the root of a mapping is with 1.0 and 2.0, the 2.0 envelope
(kind, body, raw, original_request), matching the entity a managed call
was made for by _id from original_request with a company register
lookup example, JSONata pitfalls with raw, moving a use case from 1.0
to 2.0, and simulating a managed call's response with original_request.
Linked from the inbound use case options and the managed call fields
in Configuration, the _id identifier, the Mapping page and the
overview. Also corrects the managed call response_mapping example: its
input is { response, original_request }.
A managed call's inbound event is never stored for replay, so the caution described a case that cannot occur. A replayed event is mapped with the same envelope as the first time.
File imports cannot use payload format 2.0; text sent with format json that does not parse is raw under 2.0 (1.0 refuses it), so a 2.0 mapping should check kind; and a managed call response queued before switching to 2.0 is read like a pushed event.
Names the Payload format setting on the use case's General card and the Original request field on the Test tab. Depends on the Integration Hub change that adds them; drop this commit if the docs ship first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents the new optional
payload_formatoption ("1.0"|"2.0") on inbound use cases of the Integration Toolkit (API 1.65.0).integrations/integration-toolkit/inbound/payload-format:$) of a mapping is with 1.0 and with 2.0{ kind, body, raw, original_request }and the five kinds, with examples per source"unique_ids": ["_id"]and_idfromoriginal_request, with a company register lookup over an XML API as the worked example$substringAfter/$substringBeforereturn the whole input when the tag is missing, string functions fail on anullraw, XML escapes are not decoded, an id that no longer exists creates an entity, and only responses below400are routedjsonthat does not parse: refused with 1.0,rawwith 2.0, so a 2.0 mapping checkskindoriginal_requestfield of the v2 mapping simulation_id), Mapping and the Overview.response_mappingexample useddata.full_name, but its input is{ response, original_request }. The example now readsresponse.data.full_name, and the field table says what the input is.The worked example's mapping was run through the toolkit's real extraction code (unique identifiers and entity updates) for a found response, a not-found response, an empty response and the simulation path.
Integration Hub text
The page names the Hub's Payload format setting (General card) and the Original request (optional) field on the Test tab. That UI is in an open, unmerged Integration Hub MR. Merge this PR after the Hub change ships, or drop commit 95dd0a4 first if the docs go out before it.
Not changed
CHANGELOG.md: written by the "epilot CI" changelog job from the API spec, so the entry will come from there.https://docs.api.epilot.io/erp-integration.yaml(redoc.config.js), not kept in this repo.Checks
npm run buildpasses (Node 20, as in CI). The[ERROR] The image at …svg can't be readlines come from existing SVGs that this PR does not touch.🤖 Generated with Claude Code