From c2f45c57bbe262dad3f0a336c923de5a6b9436d8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 26 May 2026 17:00:03 +0000 Subject: [PATCH] fix: point sandbox environment to the single API host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The OpenAPI spec defines a single host (https://developers.dealermax.app) for both production and sandbox, with traffic routed by the API key prefix (pmk_live_* vs pmk_sand_*). The SDK's `sandbox` environment instead targeted https://sandbox.developers.dealermax.app, which does not resolve (NXDOMAIN), so any partner using `environment="sandbox"` — including the first example in the README — hit an unrecoverable APIConnectionError. Point sandbox at the same host so the key prefix performs the routing, as the contract intends. Also refresh the stale self-version in uv.lock (0.0.1 -> 0.10.0). https://claude.ai/code/session_016dVWauAWAvgrctxxjCQLVV --- src/partnermax/_client.py | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/partnermax/_client.py b/src/partnermax/_client.py index 432abce..aae844c 100644 --- a/src/partnermax/_client.py +++ b/src/partnermax/_client.py @@ -55,7 +55,7 @@ ENVIRONMENTS: Dict[str, str] = { "production": "https://developers.dealermax.app", - "sandbox": "https://sandbox.developers.dealermax.app", + "sandbox": "https://developers.dealermax.app", } diff --git a/uv.lock b/uv.lock index 22f65eb..416228e 100644 --- a/uv.lock +++ b/uv.lock @@ -788,7 +788,7 @@ wheels = [ [[package]] name = "partnermax" -version = "0.0.1" +version = "0.10.0" source = { editable = "." } dependencies = [ { name = "anyio" },