GET api/Request/GetPurchaseByInstallmentReport?NationalCode={NationalCode}&LedgerNumber={LedgerNumber}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
NationalCode

string

None.

LedgerNumber

string

None.

Body Parameters

None.

Response Information

Resource Description

MellatInsurancePurchaseInstallmentResponse
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

Response

MellatInsurancePurchaseInstallmentResponseBody

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "responseCode": 1,
  "response": {
    "remaining": 1.0,
    "used": 2.0,
    "purchasePlusDetails": [
      {
        "payId": "sample string 1",
        "amount": 2.0,
        "cashAmount": 3.0,
        "date": "sample string 4",
        "installmentDetails": [
          {
            "date": "sample string 1",
            "amount": 2.0,
            "paymentDate": "sample string 3",
            "paymentAmount": 4.0
          },
          {
            "date": "sample string 1",
            "amount": 2.0,
            "paymentDate": "sample string 3",
            "paymentAmount": 4.0
          }
        ]
      },
      {
        "payId": "sample string 1",
        "amount": 2.0,
        "cashAmount": 3.0,
        "date": "sample string 4",
        "installmentDetails": [
          {
            "date": "sample string 1",
            "amount": 2.0,
            "paymentDate": "sample string 3",
            "paymentAmount": 4.0
          },
          {
            "date": "sample string 1",
            "amount": 2.0,
            "paymentDate": "sample string 3",
            "paymentAmount": 4.0
          }
        ]
      }
    ]
  },
  "message": "sample string 2"
}

text/html

Sample:
{"responseCode":1,"response":{"remaining":1.0,"used":2.0,"purchasePlusDetails":[{"payId":"sample string 1","amount":2.0,"cashAmount":3.0,"date":"sample string 4","installmentDetails":[{"date":"sample string 1","amount":2.0,"paymentDate":"sample string 3","paymentAmount":4.0},{"date":"sample string 1","amount":2.0,"paymentDate":"sample string 3","paymentAmount":4.0}]},{"payId":"sample string 1","amount":2.0,"cashAmount":3.0,"date":"sample string 4","installmentDetails":[{"date":"sample string 1","amount":2.0,"paymentDate":"sample string 3","paymentAmount":4.0},{"date":"sample string 1","amount":2.0,"paymentDate":"sample string 3","paymentAmount":4.0}]}]},"message":"sample string 2"}

application/xml, text/xml

Sample:
<MellatInsurancePurchaseInstallmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saba.Common.PublicApi">
  <Message>sample string 2</Message>
  <Response>
    <PurchasePlusDetails>
      <MellatInsurancePurchasePlusDetail>
        <Amount>2</Amount>
        <CashAmount>3</CashAmount>
        <Date>sample string 4</Date>
        <InstallmentDetails>
          <MellatInsuranceInstallmentDetail>
            <Amount>2</Amount>
            <Date>sample string 1</Date>
            <PaymentAmount>4</PaymentAmount>
            <PaymentDate>sample string 3</PaymentDate>
          </MellatInsuranceInstallmentDetail>
          <MellatInsuranceInstallmentDetail>
            <Amount>2</Amount>
            <Date>sample string 1</Date>
            <PaymentAmount>4</PaymentAmount>
            <PaymentDate>sample string 3</PaymentDate>
          </MellatInsuranceInstallmentDetail>
        </InstallmentDetails>
        <PayId>sample string 1</PayId>
      </MellatInsurancePurchasePlusDetail>
      <MellatInsurancePurchasePlusDetail>
        <Amount>2</Amount>
        <CashAmount>3</CashAmount>
        <Date>sample string 4</Date>
        <InstallmentDetails>
          <MellatInsuranceInstallmentDetail>
            <Amount>2</Amount>
            <Date>sample string 1</Date>
            <PaymentAmount>4</PaymentAmount>
            <PaymentDate>sample string 3</PaymentDate>
          </MellatInsuranceInstallmentDetail>
          <MellatInsuranceInstallmentDetail>
            <Amount>2</Amount>
            <Date>sample string 1</Date>
            <PaymentAmount>4</PaymentAmount>
            <PaymentDate>sample string 3</PaymentDate>
          </MellatInsuranceInstallmentDetail>
        </InstallmentDetails>
        <PayId>sample string 1</PayId>
      </MellatInsurancePurchasePlusDetail>
    </PurchasePlusDetails>
    <Remaining>1</Remaining>
    <Used>2</Used>
  </Response>
  <ResponseCode>1</ResponseCode>
</MellatInsurancePurchaseInstallmentResponse>