Connecting Your POS System
Published March 3, 2026
Connecting Your POS System
Connect your point-of-sale system to Cockato to automate loyalty point awards and customer tracking. Every transaction at checkout can automatically earn your customers rewards.
Overview
The POS integration uses Cockato's REST API to:
- Look up customers by barcode, email, or phone number
- Award points based on transaction amounts
- Record punches on punch cards
- Redeem rewards and welcome offers
- Track visits by outlet location
💡 Tip: The POS integration works with any system that can make HTTP requests — no special plugins or SDKs required.
Getting Started
- Generate an API Key — Follow the steps in the "Generating and Managing API Keys" guide
- Review the API Documentation — Visit the POS Setup Guides in Organization Settings
- Configure Your POS — Add the API endpoint and key to your POS system's integration settings
- Test with a sample customer — Verify points are awarded correctly before going live
⚠️ Important: Always test your integration with a test customer first. This ensures points are calculated correctly before real customers are affected.
API Endpoint
Your POS system communicates with Cockato through the transaction endpoint:
- Endpoint:
https://your-project.supabase.co/functions/v1/pos-transaction - Method:
POST - Authentication: API key in the
x-api-keyheader
Transaction Flow
Here's what happens during a typical POS transaction:
- Customer presents their loyalty card (barcode) at checkout
- POS scans the barcode and sends transaction details to Cockato
- Cockato processes the transaction:
- Awards points based on the transaction amount
- Records any punch card punches
- Returns the updated customer balance
- POS displays the updated loyalty status to the customer
📝 Note: The API response includes the customer's updated points balance, so you can display it on the receipt or checkout screen.
Supported POS Systems
Cockato's REST API works with any POS system that supports custom integrations:
| POS System | Integration Method |
|---|---|
| Square | Custom webhook or Zapier |
| Lightspeed | Custom API integration |
| Vend | Custom API integration |
| Toast | Custom webhook |
| Custom-built | Direct API calls |
| Any HTTP-capable system | REST API |
💡 Tip: Check the POS Setup Guides in Organization Settings for system-specific integration instructions and code examples.
Phone Number Normalization
When looking up customers by phone number, Cockato automatically normalizes phone numbers to handle different formats. For example, 0412345678, +61412345678, and 61412345678 all match the same customer.
Testing Your Integration
Before going live:
- Create a test customer through the signup page
- Use the API documentation to send a test transaction
- Verify the customer's points balance updated correctly
- Check the Activity Log to confirm the transaction was recorded
📝 Note: You can use the API documentation page to make test API calls directly from your browser.
Frequently Asked Questions
Can I award points and punches in the same transaction? Yes — a single API call can award both points and punch card stamps simultaneously.
What if the customer's barcode isn't found? The API returns an error indicating the customer was not found. Your POS should handle this gracefully, perhaps prompting the customer to sign up.
Is there a rate limit on API calls? Cockato does not impose strict rate limits for normal POS usage. However, extremely high volumes may be throttled. Contact support if you anticipate more than 1,000 transactions per minute.
Can I send historical transactions? Yes — you can backfill transactions by sending them through the API with the appropriate dates. This is useful when migrating from another loyalty system.
Ready to get started?
Try Cockato for free and see how it can help grow your business.
Get Started Free