Input/Output

Input - data this App requires to work

Party (person or organization)

// if type person
{
  "resourceType": "person",
  "firstName": "John",
  "lastName": "Smith",
  "addresses": {
    "living": { // optional
      "city": "Warsaw",
      "country": "PL",
      "postalCode": "00-150",
      "street": "ul. Marszałkowska 999/99"
    }
  }
}
// if type organization
{
  "resourceType": "organization",
  "name": "firma Sp. z o. o.",
  "addresses": {
    "registry": { // optional
      "city": "Warsaw",
      "country": "PL",
      "postalCode": "00-150",
      "street": "ul. Marszałkowska 999/99"
    }
  }
}

Account

{
  "name": "Name of the account",
  "iban": "PL39573806962640627424403979",
  "bookingBalance": 1000,
  "availableBalance": 2000,
  "currency": "PLN",
}

Transaction

{
  "resourceType": "transaction",
  "amount": -1337.37,
  "currency": "PLN",
  "title": "March paycheck",
  "tradedAt": "2004-02-12T15:19:21.123Z",
  "status": "DONE",
  "description": "External money transfer", // optional
  "bookedAt": "2021-02-13T15:19:21.123456Z",
  "counterpartyAccount": "PL29109024022476249659199381", // optional
  "counterpartyName": "Jan Kowalski", // optional
  "counterpartyBankName": "ING Bank Slaski", // optional
  "category": "TRANSFER",
  "accountId": "aebbe6c6-280c-4507-8bf9-91aaf1b974b3",
  "addedAt": "2021-02-13T15:19:21.123456Z"
}

Output - data you can expect this App to add

Transaction

{
  "scorings": 0.5
}