Skip to main content
Record payments and link them to visitors for revenue attribution.

Endpoint

Authentication

Requires API key authentication.

Request body

Request example

Response

Success response (200)

Error responses

Missing required fields (400)

Unauthorized (401)

Linking payments to visitors

Payments are automatically linked to visitors using:
  1. Visitor/Session IDs (most reliable) - Include visitorId and sessionId in the request
  2. Email matching - If user identification is enabled, payments are linked via customerEmail
  3. Timestamp correlation - Fallback method using payment timestamp

Use cases

  • Custom payment providers - Record payments from providers not supported by webhooks
  • Manual payment entry - Record payments manually
  • Payment reconciliation - Sync payments from external systems
  • Testing - Test revenue attribution

Examples

Stripe payment

Custom provider

Next steps

Revenue attribution guide

Learn more about revenue attribution