Exchange Customer Sign In Link
/customer_sign_in_links/exchangeRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/customer_sign_in_links/exchange" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'{ "id": "string", "object": "customer_session", "customer": "string", "allowed_flows": [ "update_payment_method" ], "allowed_origins": [ "string" ], "expires_at": "2019-08-24T14:15:22Z", "idle_expires_at": "2019-08-24T14:15:22Z", "livemode": true, "token": "string"}Ensure Hosted Checkout Key POST
Ensure a catalog:read publishable key for the selected company and mode. Live issuance requires HERMOS_LIVE_HOSTED_CHECKOUT=enabled and HERMOS_ENV=production; staging never issues live keys. HERM-73 may enable the flag only after both PR 1b (submission readiness admission) and PR 3 (Migration B) are deployed. Test and live keys coexist for the same company. The flag gates issuance and discovery only: revoke an issued key to stop its use. Product readiness is checked when opening a new checkout.
Export Payments GET
Streams synced payments newest first instead of creating a background export job. Uses the same filters and search as listPayments: q is trimmed, requires 3–200 characters, matches exact payment IDs, and with customers:read matches customer name/email (full email is an exact case-insensitive lookup; partial search is limited to the first 1000 matching active customers ordered by ID). CSV has a UTF-8 BOM, CRLF endings and formula-safe RFC 4180 cells. Columns: payment_id, created_at (ISO 8601 UTC), status, amount, currency, amount_refunded, amount_disputed, product_id, subscription_id, customer_id. Only callers with customers:read receive the additional customer_name, customer_email, customer_country columns. Product names are not exposed by the list. Amounts convert the list’s integer minor units to exact decimal major units using the ISO 4217 currency exponent (two digits for unknown exponents). Before streaming, more than 100000 matching rows returns invalid_request with too_many_rows on query.created_from; narrow the date range. Idempotency-Key is refused because replay storage would buffer the export. All exports, including q searches, use the payments_export rate bucket (10 per minute per principal) instead of customer_search.