POST api/CustomerAddress/InsertAddress
Documentation for 'InsertAddress'.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| model | Documentation for 'model'. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"AddressTitle": "sample string 1",
"ID": "bd387344-bd47-4b58-9f21-f53dac14ad59",
"CustomerID": "1683da26-6acb-4fc1-ab09-ddb6fe4e7843",
"Phone": "sample string 4",
"Street": "sample string 5",
"District": "sample string 6",
"ZipCode": "sample string 7",
"IsDefault": true,
"ProvinceId": "e3d1cbbf-506d-4f59-af5f-fafc86ca1ae2",
"Street2": "sample string 9",
"CityId": 10,
"Region": "4badcb33-7cc6-4958-906a-a1f479282430",
"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": "58cb854c-fc6a-497e-b212-e7a9bfa29a68",
"ProvinceName": "sample string 2",
"IsDeleted": true
},
"DistrictId": 1,
"ReceiverName": "sample string 17",
"ReceiverPhone": "sample string 18",
"DefaultAddressID": "3521abad-87c1-492b-9816-fa4726870af2",
"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>bd387344-bd47-4b58-9f21-f53dac14ad59</ID>
<CustomerID>1683da26-6acb-4fc1-ab09-ddb6fe4e7843</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>e3d1cbbf-506d-4f59-af5f-fafc86ca1ae2</ProvinceId>
<Street2>sample string 9</Street2>
<CityId>10</CityId>
<Region>4badcb33-7cc6-4958-906a-a1f479282430</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>58cb854c-fc6a-497e-b212-e7a9bfa29a68</ID>
<ProvinceName>sample string 2</ProvinceName>
<IsDeleted>true</IsDeleted>
</Province>
<DistrictId>1</DistrictId>
<ReceiverName>sample string 17</ReceiverName>
<ReceiverPhone>sample string 18</ReceiverPhone>
<DefaultAddressID>3521abad-87c1-492b-9816-fa4726870af2</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>