From 7fb5317308fdb16faa0e81aeec55f3c85d3b901a Mon Sep 17 00:00:00 2001 From: Ryan Westfall Date: Mon, 10 Aug 2026 14:47:10 -0500 Subject: [PATCH] Fix PCM postcard orders to use POST /order/postcard. Plain POST /order 404s at PCM; product-specific path is required for sandbox and production sends. --- site/messaging/providers/postcard/pcm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/messaging/providers/postcard/pcm.py b/site/messaging/providers/postcard/pcm.py index d4ce105..cb5c76c 100644 --- a/site/messaging/providers/postcard/pcm.py +++ b/site/messaging/providers/postcard/pcm.py @@ -309,7 +309,9 @@ def place_postcard_order( "returnAddress": return_address_from_settings(), "recipients": [recipient], } - data = pcm_request("POST", "/order", json_body=payload) + # Product-specific path — plain POST /order is 404 ("Cannot POST /order"). + # Docs: Place Postcard Order → POST /order/postcard + data = pcm_request("POST", "/order/postcard", json_body=payload) if not isinstance(data, dict): raise PcmApiError("Unexpected order response from PCM")