Integration Options
Payment Gateway
Recommended: Connect Stripe, Paddle, or Chargebee for automatic tracking
JavaScript SDK
Client-side tracking for web applications
REST API
Server-side tracking for full control
Zapier/Make
No-code integrations with third-party platforms
Payment Gateway Integration (Recommended)
The easiest way to track transactions is by connecting your payment gateway. Partnero handles everything automatically, including:- Transaction creation on successful payments
- Refund handling and commission adjustments
- Subscription renewals and recurring payments
API Transaction Tracking
For custom integrations or when payment gateways aren’t suitable, use the REST API:Basic Example
The
customer.key must match the key used when the customer was created in Partnero.With Product Information
Include product details for advanced commission rules:Creating Customer and Transaction Together
Useoptions.create_customer to create both in one request:
Handling Refunds
When a refund or chargeback occurs, delete the transaction to adjust partner commissions:Commission Calculation
Partnero automatically calculates partner commissions based on your program settings. You can configure:- Percentage-based commissions (e.g., 20% of sale)
- Fixed amount commissions (e.g., $10 per sale)
- Product-specific rates using
product_idandproduct_type - Tiered commissions based on performance
Best Practices
Use unique transaction keys
Use unique transaction keys
Always provide a unique
key for each transaction (like your order ID) to enable refund handling.Include currency codes
Include currency codes
Set
amount_units to the currency code (USD, EUR, GBP) for accurate multi-currency reporting.Track product types
Track product types
Use
product_id and product_type to enable product-specific commission rules.Handle failures gracefully
Handle failures gracefully
Implement retry logic for API failures to ensure no transactions are missed.
