Skip to main content

Official SDKs

The TypeScript SDK is published as @beach-depository/sdk.

Installation

Quick start

token is the same Bearer key from Getting Started. BeachApiEnvironment.Sandbox is https://sandbox.api.beachdepository.com. For live, pass baseUrl: "https://api.beachdepository.com". The client appends /v1. Calls are grouped by resource: A non-success response throws BeachApiError, with statusCode, message, and body.

Idempotency

Creates for FBO accounts, addresses, aliases, inbound shipments, outbound requests, transfers, and webhooks take an optional idempotencyKey. The client sends it as the Idempotency-Key header. Cancel and label rates do not accept the option.
Retrying that call with the same key within 24 hours returns the original response. The replayed response includes Idempotency-Replayed: true.