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
This commit is contained in:
Saravana Achu Mac 2026-03-30 00:26:48 -07:00
parent 1ee97327ee
commit e13d0cba6b

View File

@ -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");
}