Hi.
I’m trying to CONFIRM a new PlanetScope subscription that I just created. When I invoke the API to confirm I receive this error:
{‘error’: {‘status’: 403, ‘reason’: ‘Forbidden’, ‘message’: ‘{“error”:{“reason”:“Quota issue”,“details”:[“Insufficient quota. Please contact customer support or your Planet contact to resolve the issue.”]}}’, ‘code’: ‘COMMON_INSUFFICIENT_PERMISSIONS’}}
Mi user: antonio.santos.rodriguez@gmail.com
Python code that I’m using:
from oauthlib.oauth2 import BackendApplicationClient
from requests_oauthlib import OAuth2Session
# Your client credentials
client_id = XXXXXXXXXXX
client_secret = XXXXXXXXXX
# Create a session
client = BackendApplicationClient(client_id=client_id)
oauth = OAuth2Session(client=client)
# Get token for the session
token = oauth.fetch_token(token_url='https://services.sentinel-hub.com/auth/realms/main/protocol/openid-connect/token', client_secret=client_secret, include_client_id=True)
url = f"https://services.sentinel-hub.com/api/v1/dataimport/subscriptions/e8517fcd-123c-4e84-a02f-19a501e39aa9/confirm"
response = oauth.post(url)
#response.raise_for_status()
message = response.json()
print(message)
Please, could you help me?
Thanks.