Skip to main content

If a transaction is refunded

Below is the data that is being pinged by our api system when a transaction is refunded or partially refunded

Parameters

Values

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,
		}
	    ]
	}
    ]
}

action

  • refund_product OR

  • partial_refund_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":iintegernt,
        "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":"refund" or "partial_refund",
        "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,
        "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
    }
}
Did this answer your question?