Clearway Documentation
  • Home
  • Guides
  • Merchant API
  • Investor Read API
API integration
Getting startedAuthenticationAPI keys and scopesRequest headersIdempotencyErrorsWebhook verificationWebhook eventsOrders and revenueSubscriptionsCheckout integrationDashboard vs APIRate limits
Investor / LP
Investor Read API
Merchant dashboard
Getting startedPayment links & chargesPayment widgetClearway ElementsCheckout & branding
powered by Zudoku
Guides

Request headers

Request headers

All merchant API operations use POST to {docsEnv.apiBaseUrl}/{FUNCTION_NAME} with JSON bodies.

Authentication (required)

HeaderExampleNotes
AuthorizationBearer clwy_test_…Recommended
x-clearway-api-keyclwy_test_…Alternative to Bearer

See Authentication.

Correlation

HeaderRequiredPurpose
x-cidNoCorrelation id for support trails — echo in logs and audit

Pass a stable id per logical user action (checkout session creation, webhook handler run, etc.).

Multi-brand

HeaderRequiredPurpose
x-brand-idWhen multi-brandPlatform brand slug for order/list filters and brand-scoped reads

Required for some operations (for example GET_ORDER) when your account sells under multiple platform brands.

Idempotency (writes)

HeaderRequiredPurpose
Idempotency-KeyRecommended on money-moving opsSafe retries — see Idempotency

Content type

HeaderValue
Content-Typeapplication/json

Next steps

  • Orders and revenue — x-brand-id with orders
  • Errors — gateway and handler error codes
  • API Reference
Last modified on July 22, 2026
API keys and scopesIdempotency
On this page
  • Authentication (required)
  • Correlation
  • Multi-brand
  • Idempotency (writes)
  • Content type
  • Next steps