POST api/costcalculation/tenantvals

set the tenant values and triggers the cost calculation when appliccable

Request Information

URI Parameters

None.

Body Parameters

Base values for cost calculation

CostCalc
NameDescriptionTypeAdditional information
i

verplicht ( ApiKey ) de api sleutel van de ista debiteur

globally unique identifier

Required

u

optioneel ( ResponseUri ) Geef uw email op. U krijgt bericht via de email met de samenvatting hoe uw verhuizingen zijn gekoppeld aan percelen in onze database. Geef het woord 'test' mee om de wijzigingen in onze test database door te voeren. De wijziging wordt dan niet in doorgevoerd in onze werkelijke administratie. Geef scheiding tussen email adres en 'test' door middel van een punt-komma.

string

Max length: 2083

t

verplicht ( Tenants ) lijst met (n) bewoners mutaties

Collection of mCostTenant

Required

Request Formats

application/json, text/json

Sample:
{
  "i": "228b409d-0ff4-45ff-a7cd-fce36da44f75",
  "u": "sample string 2",
  "t": [
    {
      "p": [
        {
          "s": 0,
          "a": 1.0
        },
        {
          "s": 0,
          "a": 1.0
        }
      ],
      "m": 1.0,
      "n": "sample string 1",
      "s": "2024-09-20T01:16:06.1036696+02:00",
      "z": "sample string 2",
      "h": "sample string 3",
      "e": "2024-09-20T01:16:06.1036696+02:00",
      "k": "sample string 4"
    },
    {
      "p": [
        {
          "s": 0,
          "a": 1.0
        },
        {
          "s": 0,
          "a": 1.0
        }
      ],
      "m": 1.0,
      "n": "sample string 1",
      "s": "2024-09-20T01:16:06.1036696+02:00",
      "z": "sample string 2",
      "h": "sample string 3",
      "e": "2024-09-20T01:16:06.1036696+02:00",
      "k": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<CostCalc xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ista.web.api.models">
  <ApiKey>228b409d-0ff4-45ff-a7cd-fce36da44f75</ApiKey>
  <ResponseUri>sample string 2</ResponseUri>
  <Tenants>
    <mCostTenant>
      <debtorkey>sample string 4</debtorkey>
      <enddate>2024-09-20T01:16:06.1036696+02:00</enddate>
      <homenumber>sample string 3</homenumber>
      <zipcode>sample string 2</zipcode>
      <Prepaids>
        <mPrepaid>
          <Amount>1</Amount>
          <Service>ALL</Service>
        </mPrepaid>
        <mPrepaid>
          <Amount>1</Amount>
          <Service>ALL</Service>
        </mPrepaid>
      </Prepaids>
      <miscellaneous>1</miscellaneous>
      <newtenantname>sample string 1</newtenantname>
      <startdate>2024-09-20T01:16:06.1036696+02:00</startdate>
    </mCostTenant>
    <mCostTenant>
      <debtorkey>sample string 4</debtorkey>
      <enddate>2024-09-20T01:16:06.1036696+02:00</enddate>
      <homenumber>sample string 3</homenumber>
      <zipcode>sample string 2</zipcode>
      <Prepaids>
        <mPrepaid>
          <Amount>1</Amount>
          <Service>ALL</Service>
        </mPrepaid>
        <mPrepaid>
          <Amount>1</Amount>
          <Service>ALL</Service>
        </mPrepaid>
      </Prepaids>
      <miscellaneous>1</miscellaneous>
      <newtenantname>sample string 1</newtenantname>
      <startdate>2024-09-20T01:16:06.1036696+02:00</startdate>
    </mCostTenant>
  </Tenants>
</CostCalc>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CostCalc'.

Response Information

Resource Description

Boolean if object accepted for processing returns true

CostResponse
NameDescriptionTypeAdditional information
ex

Collection of oErr

None.

Response Formats

application/json, text/json

Sample:
{
  "ex": [
    {
      "n": 1,
      "t": "sample string 2"
    },
    {
      "n": 1,
      "t": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<CostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ista.web.api.models">
  <ex>
    <oErr>
      <errNmbr>1</errNmbr>
      <errText>sample string 2</errText>
    </oErr>
    <oErr>
      <errNmbr>1</errNmbr>
      <errText>sample string 2</errText>
    </oErr>
  </ex>
</CostResponse>