User does not have access to the request
Code retour de l'authentification : 200
Jeton : Bearer i5zoHpyVZjDMyFRMI4uCdSgwB3cT
uuid généré : 638d45a8-9b31-4bf0-9b64-67101272cbbe
headers :
{'Authorization': 'Bearer i5zoHpyVZjDMyFRMI4uCdSgwB3cT', 'RequestId': '638d45a8-9b31-4bf0-9b64-67101272cbbe', 'Accept': 'application/json', 'Content-Type': 'application/json'}
body :
{'Filters': {'IncludePayerGroup': 'false', 'IncludeEIDDetails': 'false'}}
Code retour pricedtransactionssummary : 403
Corps de la réponse :
{"RequestId":"638d45a8-9b31-4bf0-9b64-67101272cbbe","Status":"FAILED","Errors":[{"Code":"E0006","Title":"Forbidden","Detail":"User does not have access to the requested operation","AdditionalInfo":{}}]}
A titre d'information, code source python de test :
base_url = "https://api-test.shell.com"
auth_url = "/v2/oauth/token"
accounts_url = "/user-management/v1/loggedinuser"
####################################################################
############ Récupération du Token #################################
####################################################################
# https://api-test.shell.com/v2/oauth/token
response = requests.post(
base_url + auth_url,
auth=HTTPBasicAuth(username, password),
data={"grant_type": "client_credentials" },
verify=False
)
print("")
token = f"Bearer {response.json()["access_token"]}"
print(f"Code retour de l'authentification : {response.status_code}")
print(f"Jeton : {token}")
print("")
####################################################################
############ accounts ################ #############################
####################################################################
# https://api-test.shell.com/user-management/v1/loggedinuser
uuid = str(uuid.uuid4())
print(f"uuid généré : {uuid}")
print("")
headers = {
"Authorization": token,
"RequestId": uuid,
"Accept": "application/json",
"Content-Type": "application/json"
}
body = {
"Filters": {
"IncludePayerGroup": "false",
"IncludeEIDDetails": "false",
}
}
print("headers : ")
print(headers)
print("")
print("body : ")
print(body)
print("")
response = requests.post(
base_url + accounts_url,
headers=headers,
json=body,
verify=False
)
print(f"Code retour pricedtransactionssummary : {response.status_code}")
print("Corps de la réponse :")
print(response.text)
Charging Station location API
Hi there I want to know why only 1 chargers are visible on the test API for EV charging location
Am I doing something wrong implementing it?
User does not have access error
Hello,
i try to implement a connection to the b2b api. I can retrieve a oauth token like it is described in the documentation. But all endpoints are then giving me this endpoint afterwards.
Sample Response:
https://api-test.shell.com/test/transaction-data/v1/fuelconsumption
Headers (3)
> RequestId:0ef3f2bd-3c8f-4fa8-86ad-c7fe394e1e1e
> Authorization:Bearer anO4xB9U86IuzADKp6OkPKW8TBwu
> content-type:application/json
Response:
{
"RequestId": "0ef3f2bd-3c8f-4fa8-86ad-c7fe394e1e1e",
"Status": "FAILED",
"Errors": [
{
"Code": "E0006",
"Title": "Forbidden",
"Detail": "User does not have access to the requested operation",
"AdditionalInfo": {}
}
]
}
What do I have to configure to get the API working?
Greetings
Tobias
Sandbox environment outage (Resolved)
Dear customer,
The sandbox environment is currently experiencing an unexpected outage. Our team is actively working to resolve the issue and restore services as soon as possible. We apologize for any inconvenience this may cause and appreciate your patience.
Next Update:
Fix is expected to be delivered on February 12, 2025.
Contact:
For questions or further support, please contact us at api@shell.com.
Sandbox Environment Downtime (Resolved)
Dear customer,
The sandbox environment is currently experiencing an unexpected outage. Our team is actively working to resolve the issue and restore services as soon as possible. We apologize for any inconvenience this may cause and appreciate your patience.
Next Update:
We will provide an update on February 11, 2025, or sooner if the environment becomes available earlier.
Contact:
For questions or further support, please contact us at api@shell.com.
Pagination
- Previous page ‹‹
- Page 7
