Below is the data that is being pinged by our api system when a lead makes a purchase

ParametersValues
lead
{
    "id": integer,
    "first_name": string,
    "middle_name": string,
    "last_name": string,
    "last_name2": string,
    "email": string,
    "phone_country_code": string,
    "phone": string,
    "company": string,
    "address": string,
    "city": string,
    "zip": string,
    "state": string,
    "country": string,
    "date_joined": string (YYYY-mm-dd hh:mm:ss),
    "website": string,
    "ip": string,
    "ip_country": string,
    "facebook": string,
    "twitter": string,
    "linkedin": string,
    "sales_tax_id": string,
    "lead_picture": string,
    "source": string,
    "score": integer,
    "referring_id": integer, 
    "blacklisted": integer,    
    "source_id": integer,
    "gdpr_lead_status": integer,
    "gdpr_lead_status_date": string,
    "gdpr_lead_status_ip": string,
    "gdpr_lead_communications": integer,
    "lead_preferred_time_zone": string,
    "custom_fields": [
	{
	    "field_id":integer,
	    "field_identifier":string,
	    "field_type":string,
	    // In the case of input_field and text_area this will be string, else it will have the following structure:
	    "field_value":[
		{
	            "option_id":integer,
		    "option_value":string,
		},
		{
		    "option_id":integer,
		    "option_value":string,
		}
	    ]
	}
    ]
}
  • id: A unique numeric identifier for the lead.
  • first_name: The lead's first name.
  • middle_name: The lead's middle name.
  • last_name: The lead's last name.
  • last_name2: The lead's second last name.
  • email: The lead's email address.
  • phone_country_code: The lead's phone country code.
  • phone: The lead's phone.
  • company: The lead's company.
  • address: The lead's address.
  • city: The lead's city.
  • zip: The lead's zip.
  • state: The lead's state.
  • country: The lead's country.
  • date_joined: The date when the lead joined kartra.
  • website: The lead's website.
  • ip: The lead's IP.
  • ip_country: The lead's IP country.
  • facebook: The lead's facebook URL.
  • twitter: The lead's twitter URL.
  • linkedin: The lead's linkedin URL.
  • sales_tax_id: The lead's sales tax id.
  • lead_picture: The lead's picture URL.
  • source: The lead's creation source ('single-optin','double-optin','helpdesk','affiliate-signup','checkout','import','api','manual','checkout-first').
  • score: The lead's score.
  • referring_id: The lead's referring affiliate id.
  • blacklisted: If the lead is blacklisted or not (0/1).
  • source_id: The lead's source assed id.
  • gdpr_lead_status: The lead's GDPR status, possible values: 0 - For GDPR status off - Your account has GDPR deactivated 1 - For GDPR status not subject - The lead's IP is from a country not subject to GDPR 2 - For GDPR status accepted - The lead has accepted the GDPR terms 3 - For GDPR status not accepted - The lead hasn't accepted the GDPR terms 4 - For GDPR status unknown - The lead's location could not be determined 5 - For GDPR status pending 
  • gdpr_lead_status_date: The date of the last GDPR status change
  • gdpr_lead_status_ip: The IP of the last GDPR status change
  • gdpr_lead_communications: 0 - if the user has agreed to be contacted, 1 - if not
  • lead_preferred_time_zone: The lead's preferred time zone.
  • custom fields:
    • field_id - the unique id reference (integer)
    • field_identifier - the unique identifier chosen when it was created (string)
    • field_type - the field type (string with the following values: input_field, text_area, drop_down, radio_button, checkbox)
    • field_value - the value saved for the particular lead. In the case of input_field and text_area this will be string, if not it will be an array. In the case of checkboxes the values can have multiple values:
  • [
    	{
    		"option_id":1, // the unique id reference (integer)
    		"option_value":"red", // option value (string)
    	},
    	{
    		"option_id":integer,
    		"option_value":string,
    	}
    ]
action
  • buy_product
action_details
{
    "transaction_details":{
        "transaction_id":integer,
        "lead_first_name":string,
        "lead_last_name":string,
        "lead_email":string,
        "lead_username":string,
        "lead_id":integer,
        "product_name":string,
        "product_id":integer,
        "product_price_point":integer,
        "transaction_quantity":integer,
        "transaction_full_amount":float,
        "transaction_base_amount":float,
        "transaction_discount":float,
        "transaction_tax":float,
        "transaction_shipping":float,
        "transaction_affiliate":string,
        "transaction_jv":string,
        "transaction_date":date(Y-m-d H:i:s),
        "transaction_type":"sale",
        "transaction_parent_id":integer,
        "transaction_subscription_id":string,
        "transaction_internal_subscription_id":integer,
        "transaction_subscription_pay_number":integer,
        "transaction_last_4_card_digits":integer,
        "original_id":integer,
        "lead_country":string,
        "lead_country_code_2":string,
        "lead_country_code_3":string,
        "lead_ip":string,
        "lead_state":string,
        "lead_phone_country_code":string,
        "lead_phone_number":string,
        "lead_address":string,
        "lead_city":string,
        "lead_zip":string,
        "vendor_tracking_id_1":string,
        "vendor_tracking_id_2":string,
        "vendor_tracking_link":string,
        "trial":integer,
        "trial_period":integer,
        "trial_period":float,
        "rebill_circle":integer,
        "installments":integer,
        "payments_left":integer,
        "shipping_first_name":string,
        "shipping_last_name":string,
        "shipping_address":string,
        "shipping_city":string,
        "shipping_zip":string,
        "shipping_country":string,
        "shipping_state":string,
        "gdpr_lead_status":"0",
        "gdpr_lead_status_date":"2021-05-26 02:57:29",
        "gdpr_lead_status_ip":"127.0.0.1",
        "gdpr_lead_communications":"1",
        "payment_processor_type": string,
        "kartra_reference_id": string
   } 
}
  • transaction_id: Kartra order id.
  • lead_first_name: The buyer first name.
  • lead_last_name: The buyer last name.
  • lead_email: The buyer email address.
  • lead_username: The buyer username.
  • lead_id: A unique numeric identifier for the lead id.
  • product_name: The product name.
  • product_id: A unique numeric identifier for the kartra product.
  • product_price_point: The product price point of the transaction.
  • transaction_quantity: The product quantity.
  • transaction_full_amount: The final paid amount on this specific transaction.
  • transaction_base_amount: The base price for the transaction (for trial this will be the base price of the initial transaction).
  • transaction_discount: If any discount coupon was applied, the amount in dollars deducted from the original price.
  • transaction_tax: The amount of sales tax or VAT.
  • transaction_shipping: The shipping cost
  • transaction_affiliate: The username of the affiliate ("N/A" if no affiliate).
  • transaction_jv: The username of the jv broker ("N/A" if no jv).
  • transaction_date: The date of the transaction (Y-m-d H:i:s).
  • transaction_type: sale
  • transaction_parent_id: 0
  • transaction_subscription_id: A unique identifier for the subscription id (PayPal transactions will return PayPal subscription id. If there is no recurring payments this will be 0).
  • transaction_internal_subscription_id: A unique numeric identifier for the subscription id(if there is no recurring payments this will be 0).
  • transaction_subscription_pay_number: 1
  • transaction_last_4_card_digits: The last 4 digits of the used card (‘N/A’ if PayPal)
  • original_id: In case of a payment subscription, the order ID of the first transaction within the subscription. In this case it will be the same as the transaction_id since it is a first payment.
  • lead_country: The buyer country.
  • lead_country_code_2: The lead two letter country code at the moment of purchase.
  • lead_country_code_3: The lead three letter country code at the moment of purchase.
  • lead_ip: The buyer ip.
  • lead_state: The buyer state.
  • lead_phone_country_code: The buyer phone country code.
  • lead_phone_number: The buyer phone number.
  • lead_address: The buyer address.
  • lead_city: The buyer city.
  • lead_zip: The buyer zip code.
  • vendor_tracking_id_1: Vendor’s tracking ID 1 if the sale was generated from a tracking link.
  • vendor_tracking_id_2: Vendor’s tracking ID 2 if the sale was generated from a tracking link.
  • vendor_tracking_link: Vendor’s tracking link name.
  • trial: 1 or 0, depending on whether it is activated or not.
  • trial_period: The trial period in days.
  • trial_amount: The trial amount.
  • rebill_circle: Days left for the next payment. Present only for recurring subscription payments.
  • installments: The number of installments for the subscription. Present only for recurring subscription payments with finite number of installments.
  • payments_left: Number of upcoming payments until the end of the subscription. 9999 if “cancelled by customer”. Present only for recurring subscription payments.
  • shipping_first_name: Buyer’s shipping first name.
  • shipping_last_name: Buyer’s shipping last name.
  • shipping_address: Buyer’s shipping address.
  • shipping_city: Buyer’s shipping city.
  • shipping_zip: Buyer’s shipping ZIP
  • shipping_country: Buyer’s shipping country
  • shipping_state: Buyer’s shipping state
  • gdpr_lead_status: The lead's GDPR status, possible values: 0 - For GDPR status off - Your account has GDPR deactivated 1 - For GDPR status not subject - The lead's IP is from a country not subject to GDPR 2 - For GDPR status accepted - The lead has accepted the GDPR terms 3 - For GDPR status not accepted - The lead hasn't accepted the GDPR terms 4 - For GDPR status unknown - The lead's location could not be determined 5 - For GDPR status pending 
  • gdpr_lead_status_date: The date of the last GDPR status change
  • gdpr_lead_status_ip: The IP of the last GDPR status change
  • gdpr_lead_communications: 0 - if the user has agreed to be contacted, 1 - if not
  • payment_processor_type: The payment processor type: "PayPal", "Braintree", "Stripe", "Authorize.net"
  • kartra_reference_id: Kartra internal reference id