Skip to content

feat: add shippoAccountId request option#124

Open
spesherov wants to merge 1 commit intogoshippo:mainfrom
spesherov:feature/shippo-account-id-request-option
Open

feat: add shippoAccountId request option#124
spesherov wants to merge 1 commit intogoshippo:mainfrom
spesherov:feature/shippo-account-id-request-option

Conversation

@spesherov
Copy link
Copy Markdown

@spesherov spesherov commented Apr 28, 2026

Summary

  • Add shippoAccountId?: string to RequestOptions in src/lib/sdks.ts.
  • Set the SHIPPO-ACCOUNT-ID request header when options.shippoAccountId is provided.
  • Document Platform Account usage for customer-scoped API calls in JSDoc.

Why

Platform Account workflows require passing SHIPPO-ACCOUNT-ID: <ShippoAccountID> to make API calls on behalf of a customer account.


Note

Medium Risk
Touches core request construction for all SDK calls by conditionally injecting a new SHIPPO-ACCOUNT-ID header, which could affect request behavior if misused or if headers collide. Otherwise the change is small and backward-compatible (new optional field).

Overview
Adds an optional shippoAccountId to RequestOptions and documents its Platform Account use.

When provided, the client now includes SHIPPO-ACCOUNT-ID: <id> on outgoing requests during request creation, enabling customer-scoped API calls.

Reviewed by Cursor Bugbot for commit 806f17c. Bugbot is set up for automated code reviews on this repo. Configure here.

@spesherov spesherov force-pushed the feature/shippo-account-id-request-option branch from 28300b4 to 8c76369 Compare April 28, 2026 21:10
@spesherov spesherov force-pushed the feature/shippo-account-id-request-option branch from 8c76369 to 806f17c Compare April 28, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant