POST api/CustomerRequest/Post?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

CustomerRequest
NameDescriptionTypeAdditional information
Identity

Identity

None.

Customer

ContactInfo

None.

VehicleNo

string

None.

AgreementNo

string

None.

InvoiceNo

string

None.

CustomerRequestBookingOn

date

None.

CurrentKms

integer

None.

CustomerRemark

string

None.

CustomerRequestStatus

CustomerRequestStatus

None.

AppointmentOn

date

None.

AppointmentRemark

string

None.

CustomerRequestType

CustomerRequestType

None.

CustomerRequestRefNo

string

None.

BookingSource

BookingSource

None.

Request Formats

application/json, text/json

Sample:
{
  "Identity": {
    "Id": "a37f671b-66df-46b5-ac9b-66db5d549b9b",
    "Code": "sample string 2"
  },
  "Customer": {
    "CustomerType": 0,
    "TitleType": 0,
    "Name": "sample string 1",
    "Address": "sample string 2",
    "Email": "sample string 3",
    "ContactNo": "sample string 4",
    "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"
    },
    "Id": "f57a5707-9bad-4622-bf7d-d6f4d3711b06",
    "Code": "sample string 9"
  },
  "VehicleNo": "sample string 1",
  "AgreementNo": "sample string 2",
  "InvoiceNo": "sample string 3",
  "CustomerRequestBookingOn": "2024-06-16T14:15:39.6444076+04:00",
  "CurrentKms": 5,
  "CustomerRemark": "sample string 6",
  "CustomerRequestStatus": 0,
  "AppointmentOn": "2024-06-16T14:15:39.6444076+04:00",
  "AppointmentRemark": "sample string 8",
  "CustomerRequestType": {
    "CustomerRequestTypeID": "31315e7c-d1fa-4d61-b849-91666213dac0",
    "Name": "sample string 2",
    "Description": "sample string 3",
    "IsAgreementNoRequired": true,
    "IsVehicleNoRequired": true,
    "IsInvoiceNoRequired": true,
    "IsCurrentKmRequired": true,
    "IsAppointmentDateRequired": true
  },
  "CustomerRequestRefNo": "sample string 10",
  "BookingSource": 0
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
IsValid

boolean

None.

Message

string

None.

Code

string

None.

ID

globally unique identifier

None.

Errors

Collection of string

None.

ErrorCodes

Collection of ErrorCode

None.

Response Formats

application/json, text/json

Sample:
{
  "IsValid": true,
  "Message": "sample string 2",
  "Code": "sample string 3",
  "ID": "8d22e398-4ad7-44a7-b370-07a8ca85aaaf",
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorCodes": [
    1,
    1
  ]
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity">
  <Code>sample string 3</Code>
  <ErrorCodes>
    <ErrorCode>Success</ErrorCode>
    <ErrorCode>Success</ErrorCode>
  </ErrorCodes>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ID>8d22e398-4ad7-44a7-b370-07a8ca85aaaf</ID>
  <IsValid>true</IsValid>
  <Message>sample string 2</Message>
</Result>