v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1430193167.6 KB

Maps the input file according to the provided template file. The API call downloads the file contents from the Amazon S3 location, and passes the contents in as a string, to the <code>inputFileContent</code> parameter.

post/#X-Amz-Target=B2BI.TestMapping

Headers

X-Amz-Target'B2BI.TestMapping' required

Request body

inputFileContentstring required

Specify the contents of the EDI (electronic data interchange) XML or JSON file that is used as input for the transform.

mappingTemplatestring required
<p>Specifies the mapping template for the transformer. This template is used to map the parsed EDI file using JSONata or XSLT.</p> <note> <p>This parameter is available for backwards compatibility. Use the <a href="https://docs.aws.amazon.com/b2bi/latest/APIReference/API_Mapping.html">Mapping</a> data type instead.</p> </note>
fileFormat'XML' | 'JSON' | 'NOT_USED' required

Specifies that the currently supported file formats for EDI transformations are <code>JSON</code> and <code>XML</code>.

Response

Success

mappedFileContentstring required

Returns a string for the mapping that can be used to identify the mapping. Similar to a fingerprint