API Overview

Complete reference for all ShipStream Data Border API endpoints

API Reference

This section provides complete documentation for all ShipStream Data Border API endpoints.

Base URL

All API endpoints are relative to your Data Border instance:

https://your-adb-instance.fly.dev

Authentication

Data Border uses multiple authentication methods depending on the endpoint:

MethodHeaderUsed For
JWT BearerAuthorization: Bearer <JWT>Tenant creation, Data Border access token
Data Border Access Tokenx-adb-access-token: <token>Seller management
Seller Access Tokenx-seller-access-token: <token>All seller operations
Amazon Token Secretx-amazon-token-secret: <secret>Decrypting Amazon tokens

API Groups

Tenant Management

Create tenants and manage Data Border access tokens.

EndpointMethodDescription
/api/create-tenantPOSTRegister a new WMS tenant
/api/get-adb-access-tokenPOSTExchange refresh token for access token

Seller Management

Connect Amazon sellers and manage their access.

EndpointMethodDescription
/api/claim-codePOSTClaim OAuth authorization code
/api/get-seller-access-tokenPOSTGet seller access token
/api/create-sandbox-seller-with-tokensPOSTCreate sandbox seller (testing only)

OAuth

Amazon OAuth integration for seller authorization.

EndpointMethodDescription
/auth/initializeGETStart OAuth flow
/auth/redirectGETOAuth callback handler

PII Access

Controlled access to personally identifiable information.

EndpointMethodDescription
/api/pii/getPII/:orderIdGETFetch customer address for order
/api/pii/blockPIIPOSTBlock PII access for order
/api/pii/completeOrderPOSTMark order complete
/api/pii/getFileGETRetrieve stored file
/api/pii/writeFilePUTStore file for order
/api/pii/deleteFileDELETERemove stored file

Label Proxy

Generate shipping labels through carrier APIs.

EndpointMethodDescription
/api/label-proxy/forwardPOSTForward request to carrier with PII injection

Print

Send labels to Device Hub for printing.

EndpointMethodDescription
/api/print/sendPOSTSend labels to printer

Passthrough

Proxy requests to Amazon SP-API.

EndpointMethodDescription
/passthrough-api/*GET/POST/DELETEProxy to whitelisted SP-API endpoints

Notifications

Amazon order change notifications.

EndpointMethodDescription
/api/notification/registerNotificationPOSTSubscribe to order changes

Health

System health monitoring.

EndpointMethodDescription
/health-checkGETCheck system status

Response Format

Success Response

{
  "success": true,
  "data": {
    // Response data
  }
}

Error Response

{
  "is_adb_error": true,
  "success": false,
  "error": {
    "message": "Error description",
    "details": "Additional context (optional)"
  }
}

Rate Limits

ScopeLimitWindow
OAuth endpoints5 requests10 seconds per IP
PII access1 request1 hour per order
File operations50 requests24 hours per tenant
General APIAdaptivePer IP (Arcjet WAF)

HTTP Status Codes

CodeMeaning
200Success
204Success (no content)
302Redirect (OAuth flows)
400Bad request (validation error)
401Unauthorized (invalid token)
403Forbidden (access denied)
404Not found
429Rate limited
500Server error

Tenant Management

Create tenants and get access tokens.

PII Access

Fetch and manage customer data.

Label Proxy

Generate shipping labels.

Passthrough API

Access Amazon SP-API.