1. Analytic
UpPromote Public API
  • API Overview
  • API Changelog
  • Program
    • Get programs
      GET
    • Get a program by ID
      GET
    • Get excluded products/collections of a program
      GET
  • Affiliate
    • Get affiliates
      GET
    • Get affiliate by ID
      GET
    • Create an affiliate
      POST
    • Approve/Deny affiliate
      POST
    • Set upline for an affiliate
      POST
    • Move an affiliate to a program
      POST
    • Get connected customer list
      GET
    • Connect a customer to an affiliate
      POST
    • Delete a customer connection
      DELETE
  • Coupon
    • Get coupons
      GET
    • Assign a coupon to an affiliate
      POST
  • Payment
    • Get unpaid payments
      GET
    • Get paid payments (History)
      GET
    • Count total paid payments
      GET
    • Get a payment by ID
      GET
    • Mark as paid a manual payment
      POST
  • Referral
    • Get list referrals
    • Get a referral by ID
    • Approve/Deny referral
    • Create a referral
    • Add referral adjustment
  • Analytic
    • Get performance summary
      GET
    • Get commission breakdown
      GET
    • Get referrals by tracking type
      GET
    • Get top affiliates
      GET
  • Webhook
    • Get webhook subscriptions
    • Subscribe a webhook event
    • Update a webhook subscription
    • Delete a webhook subscription
  • Webhook Event Payload
    • Webhook overview
    • Referral new
    • Referral approved
    • Referral denied
    • Referral status changed
    • Affiliate new
    • Affiliate approved
    • Affiliate inactive
    • Affiliate status changed
    • Payment paid
  1. Analytic

Get referrals by tracking type

GET
/api/v2/analytics/referrals-by-tracking-type

Request

Query Params

Header Params

Responses

🟢200
application/json
Success
Bodyapplication/json

🟠401
🟠422
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://aff-api.uppromote.com/api/v2/analytics/referrals-by-tracking-type?from_date=2025-05-01T00%3A00%3A00Z&to_date=2025-05-31T23%3A59%3A59Z&exclude_network_sales=true&program_id=12&affiliate_email=jane%40example.com' \
--header 'Accept: application/json' \
--header 'Authorization: <YOUR_API_KEY>' \
--header 'Content-Type: application/json'
Response Response Example
200 - Success
{
    "status": 200,
    "message": "success",
    "data": {
        "date_range": {
            "from_date": "2025-05-01T00:00:00Z",
            "to_date": "2025-05-31T23:59:59Z"
        },
        "referrals_by_tracking_type": {
            "affiliate_link": 120,
            "coupon": 45,
            "connected_customers": 8,
            "connected_products": 12,
            "others": 5
        }
    }
}
Modified at 2026-08-18 08:37:40
Previous
Get commission breakdown
Next
Get top affiliates
Built with