Request Mappers

Request mappers allow you to convert any request to the exact format required by the API.

There are four types of mappers:

Custom Mappers

Custom mappers allow you modify the request in code, giving you total freedom.

Within a custom mapper, you have the ability to edit the code, with an interface that looks like this:

Here you have input as an object that you can manipulate as you wish, with a preview of the output visible.

JSON Mapper

This mapper allows you to convert the JSON format from camel case (camelCase) to snake case (snake_case).

Data Type Mapper

This mapper allows you to adjust how specific data types are handled, wherein you can adjust the code to cast or modify values as needed, as well as the ability to set the format standard of country codes where needed (alpha-2, alpha-3, country-code, or custom).

XML Mapper

XML Mappers simply take the request object (default in JSON) and convert it to XML.

Mapper Sequencing

If you use multiple mappers (which is common), you can set the sequence in the property window on the right side.

If you set a sequence on one mapper, you must set the sequence on all mappers.