API Key Management
Generate and manage secure authentication tokens for Odoo 19 integration.
Active & Historical Keys
Only keys created by Approved Accounts are permitted to consume rates.
| Key Name | Key Prefix | Status | Created | Last Used | Action |
|---|---|---|---|---|---|
| Loading API Keys... | |||||
Odoo 19 OAuth 2.0 Client Credentials
Standard RFC 6749 OAuth 2.0 authentication for Odoo 16/17/18/19 automated currency rate sync crons.
| Client Name | Client ID | Secret Prefix | Scope | Created | Last Used | Action |
|---|---|---|---|---|---|---|
| Loading OAuth 2.0 clients... | ||||||
Odoo 19 Scheduled Cron Integration Snippet
# Odoo automated action or scheduled cron script:
import requests
# 1. Request OAuth 2.0 Bearer Access Token
token_response = requests.post(
"https://YOUR_API_DOMAIN/oauth/token",
data={
"grant_type": "client_credentials",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"scope": "rates:read"
},
headers={"Accept": "application/json"}
)
access_token = token_response.json()["access_token"]
# 2. Fetch Daily Economic Rates with OAuth Bearer Token
rates_response = requests.get(
"https://YOUR_API_DOMAIN/api/v1/rates/daily",
headers={"Authorization": f"Bearer {access_token}"}
)
rates_data = rates_response.json()
# 3. Update Odoo Currency Rates (USD, UF, EUR, UTM, Aduana)
# rate_usd = rates_data["rates"]["USD"]["rate"]
# inverse_usd = rates_data["rates"]["USD"]["inverse_rate"]