This functionality is available in a Stedi module. Contact us for details.
Response
The endpoint applies the specified mapping to the processed transaction and returns the fully mapped output. This endpoint returns a 202 Accepted upon receiving the initial request and while the transaction’s output is being mapped in the background. Once the mapping process completes, the endpoint returns a 302 Temporary redirect to the document download URL. Many HTTP clients will automatically follow this redirect, or have a simple follow redirects configuration to set. For instance incurl using the -L or --location flag will automatically follow the redirect.
In the event you cannot, or chose not to automatically follow the redirect, the body of the 302 response contains a JSON object with a key documentDownloadUrl which contains a temporary URL to download the document. This URL is good for 60 minutes.