POST api/Debtor/Post?apiKey={apiKey}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
apiKey | string |
Required |
Body Parameters
DebtorName | Description | Type | Additional 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": "73a0e9f3-448e-44fe-91de-e8602e607efd", "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": "73a0e9f3-448e-44fe-91de-e8602e607efd", "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": "24f99782-ef8a-43d4-9597-50a8bc54738c", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "Longitude": 11.1, "Latitude": 12.1, "BranchType": { "BranchTypeID": "b5c31deb-3b9f-47dd-bebf-640e03687bf9", "Name": "sample string 2", "Attachment": { "AttachmentID": "24f99782-ef8a-43d4-9597-50a8bc54738c", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" } }, "HoursToGetReady": 15, "Description": "sample string 18", "Message": "sample string 19", "BranchOfficeTiming": {}, "GoogleLocationURL": "sample string 20" }, "NoOfVehiclesAllowed": 14, "SalesExecutiveID": "beb857e1-4ccd-4fce-b91c-dc86917608c6", "CreditLimit": 17.0, "IsDeliveryPickupAllowed": true, "IsUpgradeAllowed": true, "LicenseInfo": "sample string 21", "TRNNo": "sample string 24", "DebtorTariffID": "1ff66600-6c69-4133-8e2c-c24450fb2538", "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
ApiResultWithDataOfRecordResponseName | Description | Type | Additional information |
---|---|---|---|
Data | RecordResponse |
None. |
|
Status | ErrorCode |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "Id": "fd7e5082-b854-4ad0-8d84-0921af2eb4f9" }, "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>fd7e5082-b854-4ad0-8d84-0921af2eb4f9</Id> </Data> </ApiResultWithDataOfRecordResponsemXi9Zpx2>