Check out example codes for "The settlement id provided is null". It will help you in understanding the concepts better.

Code Example 1

Example EntityCopy  {
    "id": "setl_7IZKKI4Pnt2kEe",
    "entity": "settlement",
    "amount": 50000,
    "status" : "processed",
    "fees": 123,
    "tax": 12,
    "utr": "1597813219e1pq6w",
    "created_at": 1509622307
  }

Learn ReactJs, React Native from akashmittal.com