V2 Alpha — This authentication flow is part of the V2 API preview. Breaking changes may occur.
Overview
All V2 Merchant API endpoints require a JWT token passed via thex-access-token header. You obtain this token by exchanging your merchant API key at POST /v2/authenticate.
Merchant API Key
Your merchant (shop) API key is found in Settings > Information in the PuppetVendors dashboard.| Key Type | Prefix | Token Scope | Where to Find |
|---|---|---|---|
| Merchant key | (none) | merchant — full access | Settings > Information in the PuppetVendors dashboard |
Authenticating
Exchange your merchant API key for a JWT token:Response
Using the Token
Include the token in all subsequent requests via thex-access-token header:
Token Expiry & Refresh
Tokens expire after 24 hours (86400 seconds). UsePOST /v2/refresh-token with a valid (non-expired) token to get a new one without re-authenticating:
Filtering by Vendor
Merchant tokens have access to all vendors. You can optionally filter byvendorId query parameter to see a specific vendor’s data. Some endpoints (like fulfillments and payouts) require the vendorId parameter for merchant tokens.