Getting startedwith the partner API.

Integrate Mexican fiscal calculation with API-key auth, national catalogs and AlloraHR fiscal engines.

01

Request an API key

Contact the commercial or partnerships team. Sandbox keys use environment=test and the partner_calculations module.

02

Authenticate with Bearer

Send Authorization: Bearer al_plt_… on every request. No X-Company-Id is required. Calculation POSTs use scope platform:read.

03

Call a calculation endpoint

Start with POST /api/v1/partner/calculate/mx/payroll or GET /api/v1/partner/version to confirm contract_version=v1.

04

Respect the rate limit

The limit is 120 requests per minute per key. On 429, wait and retry with backoff.

Example · curl (illustrative)
curl -sS https://api.allorahr.com/api/v1/partner/calculate/mx/payroll \
  -H "Authorization: Bearer al_plt_…" \
  -H "Content-Type: application/json" \
  -d '{
    "gross_salary": 45000,
    "period": "monthly",
    "year": 2026,
    "worker_type": "employee",
    "state": "JAL"
  }'
Modulepartner_calculations
Scopeplatform:read
Rate limit120 req/min
Contractcontract_version=v1

The example host is illustrative. Base URL and environment (sandbox or production) are confirmed when the key is issued. Filtered OpenAPI: GET /api/partner/openapi — same Bearer auth, no X-Company-Id.