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}
}

  1. In the navigation tree, click Definitions.
  2. 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.
  3. Set the name of the first property to Amount. Set the type to Integer.
  4. 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

  5. Click + to create a new definition.
  6. Click new-definition-1 to expand the form. In the Name field, enter JSONCheckResponse. Set the type to Object.
  7. Create the following properties:
    Field Type
    Amount Integer
    Payee String
    PayorAccountID String
    CheckType String
    CheckNum String
    TransactionNum String
  8. Click the Save icon.