From e13d0cba6ba005ed7c88ac9e17eb8de88cd77631 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Mon, 30 Mar 2026 00:26:48 -0700 Subject: [PATCH] fix(subscription-client): add missing X-Product-Id header to API requests Aligns with referral-client, org-client, and marketplace-client which all send this header. The billing API likely requires it for product scoping. Made-with: Cursor --- packages/subscription-client/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/subscription-client/src/index.ts b/packages/subscription-client/src/index.ts index 80351353..461547ce 100644 --- a/packages/subscription-client/src/index.ts +++ b/packages/subscription-client/src/index.ts @@ -50,6 +50,7 @@ export function createSubscriptionClient( const token = opts.getAccessToken(); const headers = new Headers(init?.headers); headers.set("Authorization", `Bearer ${token}`); + headers.set("X-Product-Id", opts.productId); if (!headers.has("Content-Type") && init?.body !== undefined) { headers.set("Content-Type", "application/json"); }