POST api/usePromotionHappyBirthday

Request Information

URI Parameters

None.

Body Parameters

UsePromotionHappyBirthdayReqeust
NameDescriptionTypeAdditional information
CrmCode

string

Required

Branch

string

None.

Discount

decimal number

Range: inclusive between 0 and 7.92281625142643E+28

CreatyBy

string

None.

orderList

Collection of orderListRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "crmCode": "sample string 1",
  "branch": "sample string 2",
  "discount": 1.0,
  "creatyBy": "sample string 3",
  "orderList": [
    {
      "orderID": "sample string 1",
      "branchCode": "sample string 2",
      "orderDate": "sample string 3",
      "orderTime": "sample string 4",
      "orderType": "sample string 5",
      "orderDetail": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "orderID": "sample string 1",
      "branchCode": "sample string 2",
      "orderDate": "sample string 3",
      "orderTime": "sample string 4",
      "orderType": "sample string 5",
      "orderDetail": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<UsePromotionHappyBirthdayReqeust xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VentilatorAPI.HTTP.Request">
  <Branch>sample string 2</Branch>
  <CreatyBy>sample string 3</CreatyBy>
  <CrmCode>sample string 1</CrmCode>
  <Discount>1</Discount>
  <orderList>
    <orderListRequest>
      <branchCode>sample string 2</branchCode>
      <orderDate>sample string 3</orderDate>
      <orderDetail xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </orderDetail>
      <orderID>sample string 1</orderID>
      <orderTime>sample string 4</orderTime>
      <orderType>sample string 5</orderType>
    </orderListRequest>
    <orderListRequest>
      <branchCode>sample string 2</branchCode>
      <orderDate>sample string 3</orderDate>
      <orderDetail xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </orderDetail>
      <orderID>sample string 1</orderID>
      <orderTime>sample string 4</orderTime>
      <orderType>sample string 5</orderType>
    </orderListRequest>
  </orderList>
</UsePromotionHappyBirthdayReqeust>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.