cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2991
Views
5
Helpful
19
Replies

Services and Contracts API returning Access Denied

rahul.sharma
Level 1
Level 1

Hi

 

I'm trying to fetch basic contract details using the API below but keep getting Access Denied in response.

 

 

https://apx.cisco.com/cs/api/v1/contracts/contract-details?customerId=1234

 

I hope that my application (which I am using to generate the bearer authtoken) has got the right API permissions?

 

Screenshot 2019-11-22 at 11.38.41.png

I am able to generate the bearer token and use it for fetching PSIRT Advisories perfectly but for the rest of the services, it just gives me Access Denied response. Please can someone suggest what I am doing wrong?

 

Thanks in advance!

19 Replies 19

Hi Rahul,

 

Yes, I did receive. Let me go over and will reply you soon.

 

Thanks,

Supriya

Hi Rahul,

 

Tim replied you with great detail. Please do let me know if you still have any question on process.

 

Thanks,

Supriya

Hi Supriya,

Thank you and Tim for your messages. We are trying to establish the next steps internally and will come back to you if we have any further issues.

Thanks so much for your help so far.

Regards,

Rahul

Hi @Supriya Patel 

I wanted to check something with you, hope you don't mind providing a bit of clarity.

Just to reiterate, I am basically interested in fetching all customer inventory and contracts using Services APIs

https://developer.cisco.com/docs/service-apis/#!collections

As mentioned in my original post, at the moment any of the above API calls return 'Access Denied' response. This, as per your suggestion, requires me to be granted SNTC access by customer DA. The customer in question, doesn't currently have anyone signed up for CCO account. Following Tim's response when I read following steps to register customer DA

https://www.cisco.com/c/en/us/support/services/smart-net-total-care/index.html

I am under the impression that customer would need to upload their device inventory and contracts in the SNTC portal which then would be available for us to fetch via above Services APIs. Is that correct?

 

If so, then we are better off doing the inventory audit ourselves and build the database instead of relying on customer upload for accuracy reasons. I was under the impression that Cisco would have the database of all hardware/contracts sold against each customer which can be fetched via Services APIs, which doesn't seem to be the case?

 

Thanks.

Rahul

Hi Rahul,

 SNTC APIs allows Customers and their Partners to programmatically access and consume Customer's collected Install Base Data that is known to SNTC Portal.
It is true that SNTC Portal does not have any way of knowing of customer's install base without customer uploading the collected data to SNTC either via API or CSPC collector.

From what you describe, you may want to explore Support API  to help see if they serve your purpose. Support APIs do not link to your collected install base. If you need more information on this, please reach out to supportapis-help@cisco.com for more help.

 

 Thanks,

Supriya