on ‎2020 May 04 3:22 PM
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi,
you got status code: 403 when you try to call the business partner API of Subscription Billing, the explanation of this error can be found on the API hub
https://api.sap.com/api/BusinessPartner_APIs/resource
{
"status":403,"message":"Given request does not have required scopes in access token. It is not authorized to perform this operation.","type":"insufficient_permissions"
}
You do not have the necessary authorization as defined by the permissions (scopes) assigned to your user.please check if you have maintained the correct scope for the token you get from the API authorization server? In the response body from the token request, you would see something like:
{"scope": "revenue-cloud!b1532.business-partner-customer_create revenue-cloud!b1532.business-partner-contact_create",}if you cannot see such info, you need to configure the scope for service instance. You can find the relevant info on Subscription Billing API Guide->Getting Started with APIs->SAP Subscription Billing API Scopes:
"Your administrator provides the relevant scopes when defining the service instance, as described in the SAP Cloud Platform Configuration guide (section Prepare API Access)."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As seen in error snapshot, the HTTP call is getting a response status code as 403 which means that due to insufficient privilege of the communication user or API KEY, Subscription BIlling has rejected the request for HTTP operation.
Hence my recommendation to you is cross check API Key used and its assigned roles in SCP.
Thanks
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 11 | |
| 9 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.