POST api/Debtor?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

Debtor
NameDescriptionTypeAdditional information
Identity

Identity

None.

InvoiceRule

InvoiceRule

None.

Name

string

None.

MonthlyRentalPaymentTerm

integer

None.

DailyRentalPaymentTerm

integer

None.

WeeklyRentalPaymentTerm

integer

None.

TollFinePaymentTerm

integer

None.

TrafficFinePaymentTerm

integer

None.

Telephone

string

None.

EmailId

string

None.

Address

string

None.

Balance

decimal number

None.

Branch

Branch

None.

NoOfVehiclesAllowed

integer

None.

SalesExecutiveID

globally unique identifier

None.

CreditLimit

decimal number

None.

IsDeliveryPickupAllowed

boolean

None.

IsUpgradeAllowed

boolean

None.

LicenseInfo

string

None.

TRNNo

string

None.

DebtorTariffID

globally unique identifier

None.

RentalContract

RentalSetting

None.

Discount

integer

None.

DailyInvoiceCycle

InvoiceCycle

None.

WeeklyInvoiceCycle

InvoiceCycle

None.

MonthlyInvoiceCycle

InvoiceCycle

None.

Request Formats

application/json, text/json

Sample:
{
  "Identity": {
    "Id": "fba335a1-6838-4526-8dca-64da0ec394af",
    "Code": "sample string 2"
  },
  "InvoiceRule": 1,
  "Name": "sample string 1",
  "MonthlyRentalPaymentTerm": 2,
  "DailyRentalPaymentTerm": 3,
  "WeeklyRentalPaymentTerm": 4,
  "TollFinePaymentTerm": 5,
  "TrafficFinePaymentTerm": 6,
  "Telephone": "sample string 7",
  "EmailId": "sample string 8",
  "Address": "sample string 9",
  "Balance": 11.0,
  "Branch": {
    "Identity": {
      "Id": "fba335a1-6838-4526-8dca-64da0ec394af",
      "Code": "sample string 2"
    },
    "CountryState": {
      "StateCode": "sample string 2",
      "StateName": "sample string 3",
      "CountryCode": "sample string 4",
      "CountryName": "sample string 5",
      "NationalityCode": "sample string 6",
      "NationalityName": "sample string 7"
    },
    "Name": "sample string 4",
    "Address": "sample string 5",
    "ContactNo": "sample string 6",
    "TelephoneNo": "sample string 7",
    "EmailID": "sample string 8",
    "Attachment": {
      "AttachmentID": "59e55501-c6a9-4909-a456-f9c835daa674",
      "ImageString": "sample string 6",
      "AttachmentDataBase64": "sample string 7"
    },
    "Longitude": 11.1,
    "Latitude": 12.1,
    "BranchType": {
      "BranchTypeID": "eecb6840-c036-4880-94a6-5ae6c8255996",
      "Name": "sample string 2",
      "Attachment": {
        "AttachmentID": "59e55501-c6a9-4909-a456-f9c835daa674",
        "ImageString": "sample string 6",
        "AttachmentDataBase64": "sample string 7"
      }
    },
    "HoursToGetReady": 15,
    "Description": "sample string 18",
    "Message": "sample string 19",
    "BranchOfficeTiming": {
      "BranchTimings": [
        {
          "DayString": "sample string 1",
          "Shifts": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "DayString": "sample string 1",
          "Shifts": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ]
    },
    "GoogleLocationURL": "sample string 20"
  },
  "NoOfVehiclesAllowed": 14,
  "SalesExecutiveID": "31fa39a8-63c6-41b4-ae9f-10acc440bce3",
  "CreditLimit": 17.0,
  "IsDeliveryPickupAllowed": true,
  "IsUpgradeAllowed": true,
  "LicenseInfo": "sample string 21",
  "TRNNo": "sample string 24",
  "DebtorTariffID": "29ae0120-90a0-406b-b4a5-fee28805844c",
  "RentalContract": {
    "GracePeriodDailyRental": 2,
    "GracePeriodWeeklyRental": 3,
    "TollAdminFees": "sample string 4",
    "TrafficAdminFees": "sample string 5",
    "OutOfOfficeCharge": 7.1,
    "ReservationTermsConditions": "sample string 9",
    "FuelSurcharge": "sample string 11"
  },
  "Discount": 29,
  "DailyInvoiceCycle": 1,
  "WeeklyInvoiceCycle": 1,
  "MonthlyInvoiceCycle": 1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResultWithDataOfRecordResponse
NameDescriptionTypeAdditional information
Data

RecordResponse

None.

Status

ErrorCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "Id": "072bce12-4e7a-4794-b9b9-b62b54421996"
  },
  "Status": 1,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<ApiResultWithDataOfRecordResponsemXi9Zpx2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Service.Models">
  <Message>sample string 1</Message>
  <Status>Success</Status>
  <Data>
    <Id>072bce12-4e7a-4794-b9b9-b62b54421996</Id>
  </Data>
</ApiResultWithDataOfRecordResponsemXi9Zpx2>