Request Parameters:


For select shipping method


URL : ../Api/Client/SelectShippingMethod


Header:

Content-Type:application/json


Required Parameters :  


Note : shippingoption : ShippingName___ShippingSystemName

[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. ]


Case-1. Exception parameters :
Parameter:
{

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

         "CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",

      "StoreId": "",

      "CurrencyId": "",

      "LanguageId":"1",

      "Shippingoption":"Ground___Shipping.FixedByWeightByTotal"

}
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",

      "LanguageId":"1",

      "Shippingoption":""

}

Response :
{

    "Status": 0,

    "Message": "Shipping option not available",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Response :
Parameter:
{

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

         "CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",

      "StoreId": "1",

      "CurrencyId": "1",

      "LanguageId":"1",

      "Shippingoption":"Ground___Shipping.FixedByWeightByTotal"

}

Response :
{
    "Status": 1,
    "Message": "Success.",
    "Data": {
        "PaymentMethods": [
            {
                "PaymentMethodSystemName": "Payments.CheckMoneyOrder",
                "Name": "Check / Money Order",
                "Fee": null,
                "Selected": true,
                "LogoUrl": "http://localhost:15536/plugins/Payments.CheckMoneyOrder/logo.jpg"
            },
            {
                "PaymentMethodSystemName": "Payments.Manual",
                "Name": "Credit Card",
                "Fee": null,
                "Selected": false,
                "LogoUrl": "http://localhost:15536/plugins/Payments.Manual/logo.jpg"
            }
        ],
        "DisplayRewardPoints": true,
        "RewardPointMessage": "Use my reward points, 3170 reward points ($3,170.00) available for this order",
        "RewardPointsBalance": 3170,
        "RewardPointsAmount": "$3,170.00",
        "UseRewardPoints": false,
        "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
        "Message": null
    },
    "ValidationMessage": [],
    "ErrorMessage": null
}