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.
This commit is contained in:
@@ -309,7 +309,9 @@ def place_postcard_order(
|
|||||||
"returnAddress": return_address_from_settings(),
|
"returnAddress": return_address_from_settings(),
|
||||||
"recipients": [recipient],
|
"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):
|
if not isinstance(data, dict):
|
||||||
raise PcmApiError("Unexpected order response from PCM")
|
raise PcmApiError("Unexpected order response from PCM")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user