/checkWarranty

Check HP and Lenovo devices warranty status

Primary LanguagePython

Quickly check HP warranty status

Access https://support.hp.com/us-en/checkwarranty/multipleproducts/ and find the mwsid from source,like below

<input type="hidden" id="secureFieldJson" value='{"mwsid":"7e4eed8c-66a3-4fa9-84af-d905bd2a8ee1"}' />

Fill the mwsid into this url and post the JSON body(format like below) to url like below

https://support.hp.com/hp-pps-services/os/multiWarranty?ssid=

1. cookies

  • Using cookies from first url(import)

2. headers

"Content-Type"="application/json"

3. JSON Body like below

{
    "obligationServiceRequests":  [
                                      {
                                          "serialNumber":  "4CV6010FGW",
                                          "modelNumber":  "",
                                          "lc":  "ZH",
                                          "isoCountryCde":  "CN",
                                          "cc":  "CN"
                                      },
                                      {
                                          "serialNumber":  "6CR6459M4M",
                                          "modelNumber":  "",
                                          "lc":  "ZH",
                                          "isoCountryCde":  "CN",
                                          "cc":  "CN"
                                      },
                                      {
                                          "serialNumber":  "6CR7082XPP",
                                          "modelNumber":  "",
                                          "lc":  "ZH",
                                          "isoCountryCde":  "CN",
                                          "cc":  "CN"
                                      },
                                      {
                                          "serialNumber":  "6CR7082XPQ",
                                          "modelNumber":  "",
                                          "lc":  "ZH",
                                          "isoCountryCde":  "CN",
                                          "cc":  "CN"
                                      }
                                  ],
    "gRecaptchaResponse":  ""
}

You will have a JSON respond about the warranty status