Specifying a path for mapping
Path expressions can be used to define required data from XML or JSON messages. There are several places in ION API connector where this data can be used to:
- Define request parameters that are based on input document
- Construct a request body parameter that is based on input document
- Construct an output document that is based on API response
If source message type is JSON, you must specify a JSON Path.
If source message type is XML, you must specify an XPath.
When using a path pointing to an repeating element, or is part of a repeating structure, the first occurrence is retrieved by default. To extract a different occurrence, you can use index and filter expressions. See the examples.