POST
http://appapi.sunhouse.com.vn/api/EWarranty/ActiveWarranty

Kích hoạt bảo hành điện tử

Yêu cầu

URI Parameters

None.

Body Parameters

object chứa danh sách parram

ActiveWarranty_ViewModel
NameDescriptionTypeAdditional information
serialno

string

None.

customerphone

string

None.

customername

string

None.

customeraddress

string

None.

shprovinceid

integer

None.

shdistrictid

integer

None.

communeid

integer

None.

activeby

string

None.

Request Formats

application/json, text/json

Sample:
{
  "serialno": "sample string 1",
  "customerphone": "sample string 2",
  "customername": "sample string 3",
  "customeraddress": "sample string 4",
  "shprovinceid": 5,
  "shdistrictid": 6,
  "communeid": 7,
  "activeby": "sample string 8"
}

application/xml, text/xml

Sample:
<ActiveWarranty_ViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SH.Mobile.API.Models">
  <activeby>sample string 8</activeby>
  <communeid>7</communeid>
  <customeraddress>sample string 4</customeraddress>
  <customername>sample string 3</customername>
  <customerphone>sample string 2</customerphone>
  <serialno>sample string 1</serialno>
  <shdistrictid>6</shdistrictid>
  <shprovinceid>5</shprovinceid>
</ActiveWarranty_ViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ActiveWarranty_ViewModel'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />