Select Shipping Address
Request Parameters:
For selecting shipping address
URL: ../Api/Client/SelectShippingAddress
Header:
Content-Type:application/json
Required Parameters :
- [Note: 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. ]
- PickUpInStore Set to true when ship product to pickup point.
Case-1. Exception parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId":"",
"AddressId":"",
"PickUpInStore": true,
"PickUpPointProviderSystemName": "Pickup.PickupInStore"
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Incorrect Parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId":"1",
"AddressId":"658",
"PickUpInStore": true,
"PickUpPointProviderSystemName": "Pickup.PickupInStore"
}
Response :
{
"Status": 0,
"Message": "Address not found",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-3. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId":"1",
"AddressId":"1",
"PickUpInStore": true,
"PickUpPointProviderSystemName": "Pickup.PickupInStore"
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"ShippingMethods": [
{
"ShippingRateComputationMethodSystemName": "Shipping.FixedByWeightByTotal",
"Name": "Ground",
"Description": "Compared to other shipping methods, ground shipping is carried out closer to the earth",
"Fee": "$0.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>0</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": "$0.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>0</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": "$0.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>0</Rate>\r\n <Name>2nd Day Air</Name>\r\n <Description>The two day air shipping</Description>\r\n</ShippingOption>"
}
],
"Warnings": null,
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
"Message": null
},
"ValidationMessage": [],
"ErrorMessage": null
}