Create definitions
You will create a definition for the JSON request for a bank check. The request looks like this:
{"CheckRequestElement":
{"PayorAccountName":"Cartoon Studios",
"PayorAccountID":"8458jf8757275234",
"CheckType":"P",
"Payee":"Elmer Funn",
"PayeeAddr":"124 East Sunset Drive; Sunset, AL 64846",
"PayeeRouteNo":"03849032874908",
"Amount":999}
}
- In the navigation tree, click Definitions.
- Click + to create a new definition. Click new-definition-1 to expand the form. In the Name field, enter
JSONCheckRequest
. Set the type to Object.
- Set the name of the first property to Amount. Set the type to Integer.
- Repeat these steps to create the remaining fields in the following order:
Field Type PayeeRouteNo String PayeeAddr String Payee String CheckType String PayorAccountID String PayorAccountName String - Click + to create a new definition.
- Click new-definition-1 to expand the form. In the Name field, enter
JSONCheckResponse
. Set the type to Object.
- Create the following properties:
Field Type Amount Integer Payee String PayorAccountID String CheckType String CheckNum String TransactionNum String - Click the Save icon.