Skip to main content
Transaction endpoints allow you to send purchase data from your POS system to ClearLine. This data powers loyalty programs, customer analytics, personalized marketing campaigns, and receipt promotions.

What are Transactions?

Transactions represent completed purchases at your point of sale. When you send transaction data to ClearLine, you unlock:
  • Loyalty Program Tracking: Automatically award points, stamps, or rewards based on purchase behavior
  • Customer Analytics: Track purchase patterns, preferences, and customer lifetime value
  • Targeted Marketing: Trigger personalized offers based on what customers buy
  • Receipt Promotions: Display relevant promotions on customer receipts
  • Coupon Validation: Apply and track coupon usage in real-time

Core Workflow

Start an Interaction

Initiate a customer interaction session using Start Interaction. This returns a sessionId that links the transaction to the customer interaction.

Send Transaction Data

Submit the completed purchase using the Create POS Transaction endpoint with your session ID, purchase items, and customer details.

Process Response

ClearLine returns loyalty points earned, applied coupons, triggered promotions, and receipt content.

When to Send Transactions

Send transaction data after the purchase is complete and payment is confirmed. Best for: Standard checkout flow with confirmed payments (most common)

Transaction Endpoints

Best Practices

Always Link to Sessions

Send refund transactions with negative amounts and reference the original transaction ID to ensure loyalty points are adjusted and analytics remain accurate.
Send detailed product information (SKU, category, price) for each item to enable category-based promotions and better customer insights.
Network issues happen. Implement exponential backoff retry for failed transaction sends to prevent lost data and loyalty point discrepancies.

Next Steps