Add New Billing Address
Request Parameters:
For add new billing address
URL: ../Plugins/XcellenceIt.Plugin.Misc.NopRestApi /RemoteService/WebService.svc/AddNewBillingAddress
Parameter:
{
"apiSecretKey": "k117x118z122r116t100e100r118j122",
"storeId": "1",
"customerId": "1",
"currencyId":"1",
"attributeControlIds": ["address_attribute_1_2"],
"billingAdddresResponse":
{
"NewAddress":
{
"FirstName":"John",
"LastName":"Smith",
"Email":"admin@yourstore.com",
"Company":"Nop Solutions Ltd",
"CountryId":"1",
"StateProvinceId":"40",
"City":"New York",
"Address1":"21 West 52nd Street",
"Address2":"",
"ZipPostalCode":"10021",
"PhoneNumber":"12345678",
"FaxNumber":""
}}
}
Note:
1)attributeControlIds: address_attribute_addressAttributeId_addressAttributeValueId(If you don't have any custom address attribute then pass attributeControlIds": [""])
Response:
{
"AddNewBillingAddressResult":
{
"Id": 0,
"Message": null,
"AllowPickUpInStore": true,
"DisplayPickupPointsOnMap": false,
"ExistingAddresses":
[
{
"CustomProperties":
[
],
"Id": 1,
"Address1": "21 West 52nd Street",
"Address2": "",
"AvailableCountries":
[
],
"AvailableStates":
[
],
"City": "New York",
"CityEnabled": true,
"CityRequired": true,
"Company": "Nop Solutions Ltd",
"CompanyEnabled": true,
"CompanyRequired": false,
"CountryEnabled": true,
"CountryId": 1,
"CountryName": "United States",
"CustomAddressAttributes":
[
],
"Email": "admin@yourstore.com",
"FaxEnabled": true,
"FaxNumber": "",
"FaxRequired": false,
"FirstName": "John",
"FormattedCustomAddressAttributes": "",
"LastName": "Smith",
"PhoneEnabled": true,
"PhoneNumber": "12345678",
"PhoneRequired": true,
"StateProvinceEnabled": true,
"StateProvinceId": 40,
"StateProvinceName": "New York",
"StreetAddress2Enabled": true,
"StreetAddress2Required": false,
"StreetAddressEnabled": true,
"StreetAddressRequired": true,
"ZipPostalCode": "10021",
"ZipPostalCodeEnabled": true,
"ZipPostalCodeRequired": true
},
"GoogleMapsApiKey": "",
"NewAddress":
{
"CustomProperties":
[
],
"Id": 0,
"Address1": null,
"Address2": null,
"AvailableCountries":
[
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Select country",
"Value": "0"
}],
"AvailableStates":
[
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Select state",
"Value": "0"
}
],
"City": null,
"CityEnabled": true,
"CityRequired": true,
"Company": "test",
"CompanyEnabled": true,
"CompanyRequired": false,
"CountryEnabled": true,
"CountryId": null,
"CountryName": null,
"CustomAddressAttributes":
[
],
"Email": "admin@yourstore.com",
"FaxEnabled": true,
"FaxNumber": null,
"FaxRequired": false,
"FirstName": "test1",
"FormattedCustomAddressAttributes": null,
"LastName": "test1",
"PhoneEnabled": true,
"PhoneNumber": null,
"PhoneRequired": true,
"StateProvinceEnabled": true,
"StateProvinceId": null,
"StateProvinceName": null,
"StreetAddress2Enabled": true,
"StreetAddress2Required": false,
"StreetAddressEnabled": true,
"StreetAddressRequired": true,
"ZipPostalCode": null,
"ZipPostalCodeEnabled": true,
"ZipPostalCodeRequired": true
},
"NewAddressPreselected": false,
"PickUpInStore": false,
"PickUpInStoreFee": null,
"PickUpInStoreOnly": false,
"PickupPoints":
[
{
"CustomProperties":
[
],
"Address": "21 West 52nd Street",
"City": "New York",
"CountryName": "United States",
"Description": null,
"Id": "1",
"Latitude": null,
"Longitude": null,
"Name": "New York store",
"OpeningHours": "10.00 - 19.00",
"PickupFee": "$1.99",
"ProviderSystemName": "Pickup.PickupInStore",
"StateName": null,
"ZipPostalCode": "10021"
}],
"Warnings": null
}
}