PUT api/customers/ordersetting

Update order setting for customer.

Request Information

URI Parameters

None.

Body Parameters

CustomerOrderSettingPutRequest
NameDescriptionTypeAdditional information
CustomerNumber

integer

None.

EnableReasonText

boolean

None.

EnableFreeReasonText

boolean

None.

OrderReasonMandatory

boolean

None.

LicensePlate

integer

None.

YourReference

integer

None.

Odometer

integer

None.

WorkOrderNumber

integer

None.

DeliveryAddress

integer

None.

Vat

integer

None.

Remarks

Creates order setting if it doesn't exist

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerNumber": 1,
  "EnableReasonText": true,
  "EnableFreeReasonText": true,
  "OrderReasonMandatory": true,
  "LicensePlate": 5,
  "YourReference": 6,
  "Odometer": 7,
  "WorkOrderNumber": 8,
  "DeliveryAddress": 9,
  "Vat": 10
}

application/xml, text/xml

Sample:
<CustomerOrderSettingPutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <DeliveryAddress>9</DeliveryAddress>
  <EnableFreeReasonText>true</EnableFreeReasonText>
  <EnableReasonText>true</EnableReasonText>
  <LicensePlate>5</LicensePlate>
  <Odometer>7</Odometer>
  <OrderReasonMandatory>true</OrderReasonMandatory>
  <Vat>10</Vat>
  <WorkOrderNumber>8</WorkOrderNumber>
  <YourReference>6</YourReference>
  <CustomerNumber>1</CustomerNumber>
</CustomerOrderSettingPutRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CustomerOrderSettingPutResponse
NameDescriptionTypeAdditional information
Errors

Collection of PutCustomerOrderSettingError

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    },
    {
      "ErrorCode": 1,
      "ErrorMessage": "sample string 1"
    }
  ],
  "Success": true
}

application/xml, text/xml

Sample:
<CustomerOrderSettingPutResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <Errors>
    <PutCustomerOrderSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutCustomerOrderSettingError>
    <PutCustomerOrderSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PutCustomerOrderSettingError>
  </Errors>
  <Success>true</Success>
</CustomerOrderSettingPutResponse>