Idempotency-Key headers, timeouts and typed errors (TendrApiError). Endpoint methods so far: client.paymentLinks, client.themes, client.themeAssets and client.checkoutSessions.create (below). Quotes and payments are coming in the checkout project.
Payment links
create, list, retrieve, update and archive map to the
payment links API and throw TendrApiError with its error codes
(LINK_NOT_SUPPORTED, AMOUNT_TOO_LOW, and so on). The key needs payment_links:read or
payment_links:write.
Checkout themes
client.themes has presets, list, create, retrieve, update, delete, publish, setDefault, validate, preview, fromWebsite and fromStore. client.themeAssets has upload (multipart), list and delete. Errors such as THEME_INVALID carry details.problems. See the themes API. The key needs themes:read or themes:write.
Webhooks
Webhook verification is Node-only — do not import@tendr/sdk/webhook into browser bundles.
