https://developers.hp.com/css/api/product-warranty-api#!/queries/post_queries

225 posts / 0 new
Last post
Author
Message
jwarne
Posted: 10 September 2017 - 7:21pm
Warranty API

Hi,

I'm also very interested in gaining access to the Warranty API.

Cheers, 

Top
Author
Message
owen
Posted: 10 September 2017 - 7:57pm
Warranty API Access

Hi jwarne@vigilant.it,

You may request access to the warranty API by submitting the following form: https://developers.hp.com/css-enroll.

Best regards,

HP Developer Program

Top
Author
Message
adkg12
Posted: 12 October 2017 - 8:31am
Enterprise Server Warranty Lookup - Is this still active -

I know this doesnt appear to be the correct site for this, but I cannot seem to find any info on the Enterprise Entitlement lookup API anywhere.  I have been using powershell to invoke a soap request and some other magic, to request server warranty and up until just a couple of weeks ago, this worked perfectly.  Has something changed on the HPE side that makes the HPE lookup fail now?  ANY INFO would be great!! 

Thank you

Glen

Top
Author
Message
owen
Posted: 12 October 2017 - 9:32am
Enterprise Server Warranty Lookup

Hi Glen,

Hewlett-Packard Enterprise (HPE) and HP, Inc. (HPI) are now two separate companies as you may know. As such, we (HPI) do not have definitive information regarding their enterprise server warranty lookup tools, though last I checked they had a web page utility and no known API.

The API offered here is relevant to HPI personal systems and printing products and is not inclusive of HPE server products.

Best regards,

HP Developer Program

Top
Author
Message
garthmj
Posted: 18 October 2017 - 10:21am
printing products

Hi Owen, Just for my info, you said above "The API offered here is relevant to HPI personal systems and printing products...", does this mean this API will return warranty results for HP Inc. printers too? 

Top
Author
Message
owen
Posted: 18 October 2017 - 10:37am
printing products

Hi garthmj,

Yes, it should.

Best regards,

Owen Wright

Top
Author
Message
terencenarain
Posted: 18 October 2017 - 9:40am
401 Errors

I'm able to get the access token, however, when I tried to use that token in the Authorization header of the product query I receive a 401 error: Invalid Access token.

Any tips?

Top
Author
Message
daviddawson
Posted: 11 December 2017 - 4:48am
Product Warranty API

Hi 

Could I please be granted access to this api here also? https://developers.hp.com/css/api/product-warranty-api-0

Thanks

Top
Author
Message
owen
Posted: 11 December 2017 - 7:59am
Submit form to request access

Hi,

Please submit the form at https://developers.hp.com/css-enroll to request access.

Best regards,

HP Developer Program

Top
Author
Message
joris.wils
Posted: 16 January 2018 - 7:35am
Does anyone have a simple c#

Does anyone have a simple c# example on this?

Top
Author
Message
MThorj
Posted: 22 January 2018 - 2:10am
Access

Since the change in the normal checkwarrenty, i am now requesting access to the API.

This is to ensure that we have the warrenty data corrent in our assets for all the machines we purshaces from HP.

PLease expedite this request, since i already have setup a new integration type for 5 countries to use punch-out to make purchaes.

With more to come.

Kind regards 

Martin

Top
Author
Message
owen
Posted: 22 January 2018 - 8:27am
Access

Please use the form at http://hp.io/css-enroll to request access.

Thanks,

HP Developer Program

Top
Author
Message
arkadylan
Posted: 5 February 2018 - 2:56am
python code

hi, 

I can get results with curl:

curl -X POST "https://css.api.hp.com/productWarranty/v1/queries" -H "accept: application/json" -H "Authorization: Bearer xxxxx" -H "Content-Type: application/json" -d "[ { \"sn\": \"CZJ73513KJ\", \"pn\": \"D5H49AV\" }]"

 

anyway, i can't get it with python, where are is my error?

api_url = 'https://css.api.hp.com/productWarranty/v1/queries/' 

headers = { "Accept": "application/json", "content-Type": "application/x-www-form-urlencoded", "Authorization": "Bearer QgPltcn6yUBxrriASHHN6kPhgXAW" }

data = {"sn":"CZJ73513KR","pn":"D9R53AV"}

headers = json.dumps (headers)

data_json = json.dumps (data)

warranty = requests.post (api_url, headers=headers, data=data_json ,verify=False, timeout=4.0)  

Top
Author
Message
umesh.kshirsaga...
Posted: 3 April 2018 - 9:19pm
How to use product warrenty API to fetch warrenty dates

Hello Team,

Could you please help me on, how to use product warrenty api to fetch the warrenty dates. if you could share Step by step process or code is highly appriciated.

 

Thanks

Umesh

Top
Author
Message
umesh.kshirsaga...
Posted: 9 April 2018 - 9:04pm
Please share the API for Machines

Hello Team ,

We are planning to get warranty details in bulk so please help with api for the same.

Please do let me know in case you neeed more details.

Regards

Umesh

Top
Author
Message
owen
Posted: 9 April 2018 - 9:21pm
Bulk processing warranty details

Hi Umesh,

See the documentation here and for submitting many products for bulk processing you'll want to use the /jobs method. 

Best,

Owen

Top
Author
Message
robols
Posted: 16 April 2018 - 4:24am
A working Powershell example...

​This example is based on a couple of custom attribute in AD, those with name staring on "kS". It gets a list with all computers in AD with product number and serial in their attribute (populated through logon script) and WarrantyStatus is not "Expired". It then gets warranty status of those computers and writes that info in the AD.

###
#Get-HPWarrantyBulk.ps1
#Author: Robert Olsén
#Description: Gets Warranty information based on product- and serialnumber. The tag # ENVIROMENT # is specific for the local enviroment
###

#InputValues:
$Computers=Get-ADComputer -Filter {(serialNumber -like '*') -and (kSProductNumber -like '*') -and (kSWarrantyStatus -notlike '*')} -Properties serialNumber,kSProductNumber  # ENVIROMENT #
Write-Output "There is $($computers.count) computers left without warranty info."
$Computers=Get-ADComputer -Filter {(serialNumber -like '*') -and (kSProductNumber -like '*') -and (kSWarrantyStatus -ne 'Expired')} -Properties serialNumber,kSProductNumber -ResultSetSize 1000 # ENVIROMENT #

## Get access token ##
$apiKey="key" # ENVIROMENT #
$apiSecret="secret" # ENVIROMENT #
$tokenURI="https://css.api.hp.com/oauth/v1/token"
$tokenHeaders= @{"accept"="application/json"}
$tokenBody="apiKey="+$apiKey+"&apiSecret="+$apiSecret+"&grantType=client_credentials&scope=warranty"

$authkeyResponse=Invoke-WebRequest -Method POST -Uri $tokenURI -Headers $tokenHeaders -Body $tokenBody -ContentType application/x-www-form-urlencoded
$authkey=($authkeyResponse | ConvertFrom-Json | Select-Object -Property "access_token").access_token

## Create Query Warranty Job ##
$queryURI="https://css.api.hp.com/productWarranty/v1/jobs"
$queryHeaders= @{}
$queryHeaders["accept"] = "application/json"
$queryHeaders["Authorization"]="Bearer " + $authkey

$queryBody=ConvertTo-Json @(foreach ($computer in $computers){ [ordered]@{"sn"=[string]$computer.serialNumber;"pn"=$computer.kSProductNumber} }) # ENVIROMENT #

try{
    Write-Output "Post data and start the query batch..."
    $queryResponse=Invoke-WebRequest -Method POST -Uri $queryURI -Headers $queryHeaders -Body $queryBody -ContentType application/json

    ## Get Query Warranty Job ##
    $jobId=($queryResponse | ConvertFrom-Json | Select-Object -Property "jobId").jobId
    $JobStatusURI=$queryURI+"/"+$jobId
    $JobResultsURI=$queryURI+"/"+$jobId+"/results"

    Write-Output "Waiting for the job to be complete..."
    $JobStatus=Invoke-WebRequest -Method GET -Uri $JobStatusURI -Headers $queryHeaders | ConvertFrom-Json
    while ($jobstatus.status -ne "completed") { # Keeping the job status check to a minimum to avoid the API Request per day limit
        if ($JobStatus.estimatedTime -gt '1200') {
            Write-Output "Estimated time in seconds to completion: $($JobStatus.estimatedTime)"
            Write-Output "Next jobcheck in 1 minutes..."
            Write-Output ""
            Start-Sleep 20
            }
        if (($JobStatus.estimatedTime -gt '60') -and ($JobStatus.estimatedTime -lt '1200')) {
            Write-Output "Estimated time in seconds to completion: $($JobStatus.estimatedTime)"
            Write-Output "Next jobcheck in 30 seconds..."
            Write-Output ""
            Start-Sleep 10
            }
        if ($JobStatus.estimatedTime -lt '600') {
            Write-Output "Estimated time in seconds to completion: $($JobStatus.estimatedTime)"
            Write-Output "Next jobcheck in 1 minutes..."
            Write-Output ""
            Start-Sleep 10
            }
        $JobStatus=Invoke-WebRequest -Method GET -Uri $JobStatusURI -Headers $queryHeaders | ConvertFrom-Json
        }
    $JobResults=Invoke-WebRequest -Method GET -Uri $JobResultsURI -Headers $queryHeaders | ConvertFrom-Json
    $success=0
    Write-Output "Writing information to computer objects in Active Directory..."
    foreach ($entry in $JobResults) { # ENVIROMENT #
            $sn=$entry.sn
            try {
                Get-ADComputer -filter {SerialNumber -eq $sn} | Set-ADComputer -Replace @{kSWarrantyStatus=$($entry.status);ksWarrantyEndDate=$($entry.endDate)}
                $success++ 
            }
            catch { continue }
    }

    Write-Output "Warranty information was updated on $success objects."
}

catch { 
    Write-Output "Something went wrong:"
    Write-Output "-----------------------"
    $error[0] 
    }

 

Top
Author
Message
owen
Posted: 10 April 2018 - 9:08am
Thanks!

Thanks for the example! Very helpful. Cheers!

Top
Author
Message
Hilton.howie
Posted: 24 April 2018 - 1:47pm
access to https://developers.hp.com/css/api/product-warranty-api

Hello, is it possible for me to please get access to https://developers.hp.com/css/api/product-warranty-api ?

Top
Author
Message
TheSkipper
Posted: 24 April 2018 - 3:52pm
How to access

• You need to first create an app for the Warranty API product. To do that, you first have to enroll as a developer in the Customer Service and Support group. (Here is the enrollment form: https://developers.hp.com/css-enrol.) • Then you'll be able to view the documentation at https://developers.hp.com/css/api/product-warranty-api-0 • Then you'll be able to create your app at https://developers.hp.com/user/me/my-apps.

Top
Author
Message
sstrn_admin
Posted: 5 June 2018 - 3:29am
Enrollement process

Good afternoon,

I'd like to know the delay for the approval. Because now I still can't access to the documentation "https://developers.hp.com/css/api/product-warranty-api-0". If you could give any answer, because we need that kind of API for our fleet.

Thank you for your work and time.

Sstrn_admin

Top
Author
Message
TheSkipper
Posted: 5 June 2018 - 10:06am
Your access has been approved

Good morning/bonjour from Oregon USA, where the HP Developer Program is based.

I have approved your application for enrollment in the Warranty API. I am an early riser, but given the time difference from France to Oregon, I was still asleep when you sent your request. Now you are "good to go." Watch for my email explaining how to use the Warranty API. We offer several different scripts that you can choose from, based on your environment.

Top
Author
Message
martin.siddall
Posted: 6 July 2018 - 2:33am
Access to Warrent Checker API

Hi I've been trying to register for the API using the follwing link but I'm getting "page not found"  https://developers.hp.com/css-enrol

Are you able to register me or provide an alternative link ?

Thanks

 

Martin

 

Top
Author
Message
owen
Posted: 6 July 2018 - 8:20am
Correct link

Hi Martin,

The correct link is https://developers.hp.com/css-enroll (enroll with 2 'Ls'). 

Best regards,

Owen Wright

HP Developers

Top
Author
Message
titigreg92
Posted: 11 July 2018 - 1:25pm
Warranty API

Could you please allow my account to access the https://developers.hp.com/css/api/product-warranty-api-0

Top
Author
Message
TheSkipper
Posted: 12 July 2018 - 10:15am
Fill out the "CSS Enroll" form, then I can approve you

To get access to the HP Product Warranty API, please use the "CSS Enroll" form on this page: https://developers.hp.com/css-enroll

Once you submit the form, I can grant you access. The Editor

Top
Author
Message
majewswo
Posted: 16 August 2018 - 4:40am
Batches

Hi I still have no access to the documentation, anyway I got it to work with single entries.

Can you please let me know how json should be constructed for batches?

Top
Author
Message
TheSkipper
Posted: 20 August 2018 - 1:03pm
JSON structure

According to Damon, our staff developer, the JSON should be constructed as an array of objects with the fields “sn” for Serial Numbers and “pn” for the optional Part Numbers in each object.

Here's an example:

   [

           {

                     "sn": "[SERIAL NUMBER 1]",

                      "pn": "[PART NUMBER 1]"

             },

             {

                      "sn": "[SERIAL NUMBER 2]",

                      "pn": "[PART NUMBER 2]"

               },

                ...

   ]

Remember, the part number is optional.

Top
Author
Message
jjordan
Posted: 16 August 2018 - 11:06am
Requested Access

I requested access thru the link that was provided how long does it take to gain access?

Top
Author
Message
TheSkipper
Posted: 20 August 2018 - 11:54am
Requests usually approved the same day or next day

My response time depends on your location. Warranty requests come in from around the world, and I sit in Oregon, USA, so requests from the western hemisphere are usually approved the same day. If you are in Europe or Asia, approvals can be the next workday (no approvals on Saturday or Sunday).  jjordan, my email record shows that your request on 8/16 was approved the next day, and that I sent you our Welcome Letter, explaining how to use the Warranty API in the app you write. Have you been successfully accessing the API?

Top
Author
Message
jjordan
Posted: 16 August 2018 - 11:08am
Requested Access

I requested access thru the link that was provided how long does it take to gain access?

Top
Author
Message
smilligan
Posted: 11 September 2018 - 10:29am
Requested Access

I requested access thru the link that was provided.  Please grant access.

Top
Author
Message
TheSkipper
Posted: 11 September 2018 - 4:24pm
Access granted

I approved your request. You should have received my Welcome letter at 1:39 p.m. (PDT).

Top
Author
Message
jsjohnsmith2679...
Posted: 23 October 2018 - 11:53pm
Anyone having the issue with

Anyone having the issue with your HP device such that installation Accelerometer in Windows 10 and other versions of Windows OS And other Operating System to get the solution to follow HP Accelerometer. I was following it for my Computer when there is an error message is occurred 'this app can't be worked on this'.

Top
Author
Message
jsjohnsmith2679...
Posted: 23 October 2018 - 11:53pm
HP Accelerometer

Anyone having the issue with your HP device such that installation Accelerometer in Windows 10 and other versions of Windows OS And other Operating System to get the solution to follow HP Accelerometer. I was following it for my Computer when there is an error message is occurred 'this app can't be worked on this'.

Top
Author
Message
averdier
Posted: 13 November 2018 - 7:14am
API Key for GLPI Project

Hi everyone,

I'm new here and it's been a while since i look on the Internet to find my API Key and my secret API Key.

I need this two things for my GLPI Project.

If anyone can help me, it would be great :)

 

Thanks !

Top
Author
Message
damon.kaswell
Posted: 13 November 2018 - 8:39am
Hello,

To access your application's API key and secret, go to the top of this page and click on your account name, then select My Apps from the dropdown menu. You will see a list of all of your apps, and can access your API keys and secrets there.

Regards,
Damon Kaswell
HP Developers Portal

Top
Author
Message
pminformatique
Posted: 22 November 2018 - 3:36am
Product Warranty API

Product Warranty API

Hi HP Developer Program,

I deploy an open source solution (Glpi), and i am also interested in a warranty API. I would like an effecient way to track their warranty status.

I 've an API key and API secret, but i don't know how track warranty status (Url, parameters, ..).

In other case, is it possible to have access through https://developers.hp.com/css-enroll

Thanks

Regards

Jack

Top
Author
Message
TheSkipper
Posted: 26 November 2018 - 5:16am
Your access to the Warranty API is approved.

I have approved your request for access to the HP Product Warranty API. You should now be able to use the API in your Warranty App.

Top
Author
Message
Hon-Yeong.Moo
Posted: 19 December 2018 - 6:07pm
Api access

Hello, Requested access thru the links, kindly grant access asap. Tqvm

Top
Author
Message
TheSkipper
Posted: 20 December 2018 - 2:22pm
HP Inc. Warranty API does NOT cover servers

I approved your access to the HP Inc. Product Warranty API, but you mentioned servers in your Business Need. Since HP split with Hewlett Packard Enterprise in 2015, we do not make servers. Unfortunately Hewlett Packard Enterprise does NOT yet have a Warranty API, just a web form that accepts 20 serial numbers at a time. If you ever learn of an HPE Server Warrany API, please let us know. We will help them alert the world.

Top
Author
Message
WM
Posted: 20 December 2018 - 12:36pm
Looking for access to API

Looking for access to API thanks. Sent in a request

Top
Author
Message
TheSkipper
Posted: 20 December 2018 - 2:25pm
Approved your request for access to the HP Warranty API

You have been approved. Look for the Welcome Letter in your email. It offers guidance on making the best use of the Warranty API.

Top
Author
Message
TheSkipper
Posted: 20 December 2018 - 2:27pm
Approved your request for access to the HP Warranty API

You have been approved. Look for the Welcome Letter in your email. It offers guidance on making the best use of the Warranty API.

Top
Author
Message
rakeshsamal
Posted: 10 January 2019 - 10:07am
Request for approval

I have sent the warranty check API acess request form and it's still pending. Can you please approve it.

Top
Author
Message
TheSkipper
Posted: 11 January 2019 - 8:44am
I approved you

I approved your request at about 11 a.m. Thursday, 1/10/2019. I sent you a Welcome Letter explaining the HP Warranty API. Let me know if you did not receive 1) notice of approval and 2) our Welcome Letter. 

Top
Author
Message
infrastructure
Posted: 17 January 2019 - 7:51am
Request in progress :-)

I followed the provided link.
My CMDB will take a huge benefit of the warranties update.

Thanks a lot

Top
Author
Message
infrastructure
Posted: 18 January 2019 - 12:04am
Hello,

Hello,

I quickly received a mail saying that my request is approved.
But My Apps page is empty. Where can I find the Key and Secret for the API?

Thanks a lot

Top
Author
Message
TheSkipper
Posted: 18 January 2019 - 2:50pm
Try again. Your "My Apps" page has "HP Product Warranty" in it

Please try again to create a Warranty App. I can see HP Product Warranty in your My Apps page. (I sent you an email with screen captures.) You can use our script templates (Powershell, Python, Node.js) to help you write your app. When you click on your Warranty App, it will call our Warranty API and provide you with the key and secret.

Top
Author
Message
pavel.satny
Posted: 4 February 2019 - 7:47am
HP Warranty App

 

Hello,

I just tried and there is NO Warranry App to select when creating apps. Only MASHUP. Could someone help me how to properly register, please.

I tried to register Meshup app, but this is indeed not working. I can get token but I cannot use this for productwarranty query.

 

Thank you in advance.

Regards, Pavel

 

Top
Please login to comment