POST api/CustomerAddress/SetDefaultAddress?isChangeAddress={isChangeAddress}

Documentation for 'SetDefaultAddress'.

Request Information

Parameters

NameDescriptionAdditional information
model
Documentation for 'model'.

Define this parameter in the request body.

isChangeAddress
Documentation for 'isChangeAddress'.

Define this parameter in the request URI.

Request body formats

application/json, text/json

Sample:
{
  "AddressTitle": "sample string 1",
  "ID": "2ed924f2-2e16-464e-9978-f440854e5d3e",
  "CustomerID": "00d4ed62-0191-4272-b0e6-82101e0bb4b2",
  "Phone": "sample string 4",
  "Street": "sample string 5",
  "District": "sample string 6",
  "ZipCode": "sample string 7",
  "IsDefault": true,
  "ProvinceId": "5f429ddb-6fd9-4b5a-a07b-599126601db7",
  "Street2": "sample string 9",
  "CityId": 10,
  "Region": "270ceba3-8b42-4557-b487-765978d58b72",
  "CityLabel": "sample string 11",
  "Street3": "sample string 12",
  "ProvinceName": "sample string 13",
  "RegionName": "sample string 14",
  "DefaultStore": "sample string 15",
  "AddressType": 16,
  "Province": {
    "$id": "2",
    "ID": "dad249b8-d85e-4a16-9e6a-a8b7bf4ffa15",
    "ProvinceName": "sample string 2",
    "IsDeleted": true
  },
  "DistrictId": 1,
  "ReceiverName": "sample string 17",
  "ReceiverPhone": "sample string 18",
  "DefaultAddressID": "39b62d2e-af79-426e-a3bc-afd2e2473358",
  "IsDeliveryStoreActivated": true,
  "IsIPP": true,
  "IsBDIPP": true,
  "Longitude": 1.0,
  "Latitude": 1.0,
  "GoogleAddress": "sample string 23",
  "KetAlamat": "sample string 24",
  "IPPServiceType": 25,
  "StoreCode": "sample string 26",
  "FullRegionName": "sample string 27"
}

application/xml, text/xml

Sample:
<CustomerAddressModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <AddressTitle>sample string 1</AddressTitle>
  <ID>2ed924f2-2e16-464e-9978-f440854e5d3e</ID>
  <CustomerID>00d4ed62-0191-4272-b0e6-82101e0bb4b2</CustomerID>
  <Phone>sample string 4</Phone>
  <Street>sample string 5</Street>
  <District>sample string 6</District>
  <ZipCode>sample string 7</ZipCode>
  <IsDefault>true</IsDefault>
  <ProvinceId>5f429ddb-6fd9-4b5a-a07b-599126601db7</ProvinceId>
  <Street2>sample string 9</Street2>
  <CityId>10</CityId>
  <Region>270ceba3-8b42-4557-b487-765978d58b72</Region>
  <CityLabel>sample string 11</CityLabel>
  <Street3>sample string 12</Street3>
  <ProvinceName>sample string 13</ProvinceName>
  <RegionName>sample string 14</RegionName>
  <DefaultStore>sample string 15</DefaultStore>
  <AddressType>16</AddressType>
  <Province>
    <ID>dad249b8-d85e-4a16-9e6a-a8b7bf4ffa15</ID>
    <ProvinceName>sample string 2</ProvinceName>
    <IsDeleted>true</IsDeleted>
  </Province>
  <DistrictId>1</DistrictId>
  <ReceiverName>sample string 17</ReceiverName>
  <ReceiverPhone>sample string 18</ReceiverPhone>
  <DefaultAddressID>39b62d2e-af79-426e-a3bc-afd2e2473358</DefaultAddressID>
  <IsDeliveryStoreActivated>true</IsDeliveryStoreActivated>
  <IsIPP>true</IsIPP>
  <IsBDIPP>true</IsBDIPP>
  <Longitude>1</Longitude>
  <Latitude>1</Latitude>
  <GoogleAddress>sample string 23</GoogleAddress>
  <KetAlamat>sample string 24</KetAlamat>
  <IPPServiceType>25</IPPServiceType>
  <StoreCode>sample string 26</StoreCode>
  <FullRegionName>sample string 27</FullRegionName>
</CustomerAddressModel>