Request Parameters:


For add new shipping address


URL : ../Api/Client/AddNewShippingAddress


Header:

Content-Type:application/json


Parameter:
{
       "ApiSecretKey":"d101g114q119n106g97y111j112d104",
           "CustomerGUID":"F1F13527-BA8E-4C5A-ACA2-9EC3D78B3FF4",
       "StoreId": "1",
     "CurrencyId": "1",    
         "AttributeControlIds":["address_attribute_1_2"],
     "AddressModel":
          {
      "FirstName": "Ella ",
            "LastName": "Aria ",
            "Email": "Ella@gmail.com",
            "Company": "Aria 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": [""])

2. For Guest_customers as we get the CustomerGUID after add the product into the cart from that CustomerGUID  get the CustomerGUID and pass that CustomerGUID in to the parameter.


Response:

{
   "ShippingMethods": [
       {
           "ShippingRateComputationMethodSystemName": "Shipping.FixedByWeightByTotal",
           "Name": "Ground",
           "Description": "Compared to other shipping methods, ground shipping is carried out closer to the earth",
           "Fee": "$10.00",
           "Selected": true,
           "ShippingOption": "<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<ShippingOption xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n  <ShippingRateComputationMethodSystemName>Shipping.FixedByWeightByTotal</ShippingRateComputationMethodSystemName>\r\n  <Rate>10</Rate>\r\n  <Name>Ground</Name>\r\n  <Description>Compared to other shipping methods, ground shipping is carried out closer to the earth</Description>\r\n</ShippingOption>"
       },
       {
           "ShippingRateComputationMethodSystemName": "Shipping.FixedByWeightByTotal",
           "Name": "Next Day Air",
           "Description": "The one day air shipping",
           "Fee": "$12.50",
           "Selected": false,
           "ShippingOption": "<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<ShippingOption xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n  <ShippingRateComputationMethodSystemName>Shipping.FixedByWeightByTotal</ShippingRateComputationMethodSystemName>\r\n  <Rate>12.5</Rate>\r\n  <Name>Next Day Air</Name>\r\n  <Description>The one day air shipping</Description>\r\n</ShippingOption>"
       },
       {
           "ShippingRateComputationMethodSystemName": "Shipping.FixedByWeightByTotal",
           "Name": "2nd Day Air",
           "Description": "The two day air shipping",
           "Fee": "$15.00",
           "Selected": false,
           "ShippingOption": "<?xml version=\"1.0\" encoding=\"utf-16\"?>\r\n<ShippingOption xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\r\n  <ShippingRateComputationMethodSystemName>Shipping.FixedByWeightByTotal</ShippingRateComputationMethodSystemName>\r\n  <Rate>15</Rate>\r\n  <Name>2nd Day Air</Name>\r\n  <Description>The two day air shipping</Description>\r\n</ShippingOption>"
       }
   ],
   "Warnings": null,
   "CustomerGuid": "f1f13527-ba8e-4c5a-aca2-9ec3d78b3ff4",
   "Message": "Address added successfully"
}