Request Parameters:


For select payment method


URL: ../Api/Client/SelectPaymentMethod


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


Case-1. Exception Respons  :
Parameter:
{

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

      "StoreId": "",

       "Paymentmethod":"Payments.CheckMoneyOrder",

      "UseRewardPoints":"true"

}

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

       "Paymentmethod":"",

      "UseRewardPoints":"true"

}

Response :
{

    "Status": 0,

    "Message": "Payment method not found",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Respons  :
Parameter:
{

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

      "StoreId": "1",

       "Paymentmethod":"Payments.CheckMoneyOrder",

      "UseRewardPoints":"true"

}

Response :
{
    "Status": 0,
    "Message": "Payment work flow not required.",
    "Data": {
        "UseRewardPoints": true,
        "RedeemedRewardPoint": 1360,
        "RewardPointsAmount": "$1,360.00",
        "RewardPointsBalance": 1810
    },
    "ValidationMessage": [],
    "ErrorMessage": null
}