POST api/customers/ordersetting

Add order setting for customer.

Request Information

URI Parameters

None.

Body Parameters

CustomerOrderSettingPostRequest
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

Updates order setting if it already exists

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:
<CustomerOrderSettingPostRequest 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>
</CustomerOrderSettingPostRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CustomerOrderSettingPostResponse
NameDescriptionTypeAdditional information
Errors

Collection of PostCustomerOrderSettingError

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:
<CustomerOrderSettingPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Business">
  <Errors>
    <PostCustomerOrderSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PostCustomerOrderSettingError>
    <PostCustomerOrderSettingError>
      <ErrorCode>InternalServerError</ErrorCode>
      <ErrorMessage>sample string 1</ErrorMessage>
    </PostCustomerOrderSettingError>
  </Errors>
  <Success>true</Success>
</CustomerOrderSettingPostResponse>