Request Parameters:


For add new shipping address


URL: ../Plugins/XcellenceIt.Plugin.Misc.NopRestApi /RemoteService/WebService.svc/AddNewShippingAddress


Parameter:

{

"apiSecretKey": "k117x118z122r116t100e100r118j122",

"storeId": "1",

"customerId": "1",

"currencyId": "1",

"attributeControlIds": ["address_attribute_1_2"],

"shippingAddressResponse":

{

"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:


   {

       "AddNewShippingAddressResult":

       {

           "Id": 0,

           "Message": null,

           "ShippingMethods":

           [

               {

                   "Description": "Compared to other shipping methods, ground shipping is carried out closer to the earth",

                   "Fee": "$0.00",

                   "Name": "Ground",

                   "Selected": true,

                   "ShippingOption":

                   {

                       "Description": "Compared to other shipping methods, ground shipping is carried out closer to the earth",

                       "Name": "Ground",

                       "Rate": 0,

                       "ShippingRateComputationMethodSystemName": "Shipping.FixedOrByWeight"

                   },

                   "ShippingRateComputationMethodSystemName": "Shipping.FixedOrByWeight"

               },

               {

                   "Description": "The one day air shipping",

                   "Fee": "$0.00",

                   "Name": "Next Day Air",

                   "Selected": false,

                   "ShippingOption":

                   {

                       "Description": "The one day air shipping",

                       "Name": "Next Day Air",

                       "Rate": 0,

                       "ShippingRateComputationMethodSystemName": "Shipping.FixedOrByWeight"

                   },

                   "ShippingRateComputationMethodSystemName": "Shipping.FixedOrByWeight"

               },

               {

                   "Description": "The two day air shipping",

                   "Fee": "$0.00",

                   "Name": "2nd Day Air",

                   "Selected": false,

                   "ShippingOption":

                   {

                       "Description": "The two day air shipping",

                       "Name": "2nd Day Air",

                       "Rate": 0,

                       "ShippingRateComputationMethodSystemName": "Shipping.FixedOrByWeight"

                   },

                   "ShippingRateComputationMethodSystemName": "Shipping.FixedOrByWeight"

               }

           ],

           "Warnings": null

       }

   }