WhoCPA API documentation

GET https://whocpa.asia/api/lead

Returns a list of targeted actions

Request parameters

Parameter Type Description
id int or array(int) One or more IDs
sale_id string or array(string) One or more click IDs
offer_id int or array(int) One or more offer IDs
d_created_from date Target action created after specified date
d_created_to date Target action created before date
closed bool Is the target action closed
subid1 string or array(string) One or more subid1

Request example

GET https://whocpa.asia/api/lead/?
      api_key=wrong_account_type
     &d_created_from=2023-04-27
     &d_created_to=2024-04-25T14:15:16
     &per_page=10

Response description

Field Description
id Lead ID
tid Redirect ID
sale_id Sale ID
type Type of lead: 0 - lead, 1 - sale
is_closed Is the lead closed: 0 - hold, 1 - closed
status Lead status, code decryption:
  • 0 Pending
  • 1 Approved
  • 2 Rejected
  • 3 Spam
  • 4 Double
substatus Lead status comment
offer_id Offer id
goal_id Goal ID
hold_period Hold period, in days
currency_id Currency ID
date_closed Closing date
date_approved Confirmation date
date_created Date of creation
date_redirect Redirect date
promo_id Promo ID
product_id Product ID
stock_id Stock ID
area_id Area ID
deeplink_id Deeplink ID
landing_id LANDIDNG_ID
subid1 SubID 1
subid2 SubID 2
subid3 SubID 3
subid4 SubID 4
subid5 SubID 5
keyword Search query if there was
ip Client IP
ua Client user-agent
url_from Redirect url — redirect referer
cookie_ttl_days Cookies lifetime with tid (days)
language Lead language
money How much money the webmaster earned, or how much the advertiser paid