Skip to main content Skip to complementary content

Creating the Application data type

Create a data type that contains all the information needed for a loan application.

Procedure

  1. Click the + button in the left panel and click Data type.
  2. Enter Application in the Name field and add a description.
  3. Add a property named loanId, set Required to Yes and select Available in response only.
  4. Add a property named loanType, set Required to Yes and add two Enum values: business and personal.
  5. Add a property named applicantDetails and set Required to Yes.
  6. Click string to open the list of data types available, and select oneOf, then add the Business and Personal data types in the Data types field.
    This indicates that this property can contain the properties of one of these data types.
    Definition of the applicantDetails properties.
  7. Add a property named applicationStatuts, set Required to Yes and select Available in response only.
  8. Enter three Enum values: pending, approved and rejected.
  9. Add a property named loanDetails, set Required to Yes and select the object data type.
  10. Under loanDetails, click Add property and add three new properties:
    1. Add a property named amount with the data type number, and set Required to Yes
    2. Add a property named length with the data type integer, and set Required to Yes
    3. Add a property named monthlyPayment with the data type number, and set Required to Yes
  11. Click Save.

Results

Your data type is created, it should look like this:
Definition of the Application data type.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!