File: /var/www/html/kipu-api-10/webhook-kipu-sf-lead-old.log
Date: 2025-03-26 13:51:19 +00:00 UTC
006Uf00000IN953IAD
-------------------------
Date: 2025-03-26 13:51:21 +00:00 UTC
Salesforce Response = {"access_token":"00DD7000000jUHt!AQgAQIzNMKK3XdfQr4JFJ1yCX5TCX4ERVTGAGc27QuF9Dgbf48g090uw7QMJGRYncoQ8yb2dQvj9cbrFUBK6UgCA17bS0NB_","instance_url":"https://amend-treatment--devjts.sandbox.my.salesforce.com","id":"https://test.salesforce.com/id/00DD7000000jUHtMAM/005Hu00000QOle3IAD","token_type":"Bearer","issued_at":"1742997081792","signature":"JWjLQn1eumoDUtkrIBAQ/XPL6LDjO2Nioj9zA0aULcM="}
-------------------------
Date: 2025-03-26 13:51:21 +00:00 UTC
Salesforce url = https://amend-treatment--devjts.sandbox.my.salesforce.com/services/data/v48.0/query?q=SELECT+Id%2C+stageName%2C+First_Name__c%2C+Middle_Name__c%2C+Last_Name__c%2C+Preferred_Name__c%2C+Client_DOB__c%2C+Marital_Status__c%2C+Phone__c%2C+Alternative_Phone__c%2CSSN__c%2CAddress_Street__c%2CAddress_Street_2__c%2CAddress_City__c%2CAddress_ZIP__c%2CAddress_State__c%2CAddress_Country__c%2CGender__c%2CEmail__c%2CPrimary_Insurance_Company__c%2CPrimary_Insurance_Phone__c%2CPrimary_Subscriber_First_Name__c%2CPrimary_Subscriber_Middle_Name__c%2CPrimary_Subscriber_Last_Name__c%2CPrimary_Subscriber_SSN__c%2CPrimary_Subscriber_DOB__c%2CPrimary_Insurance_Group_Number__c%2CPrimary_Subscriber_Address_Street__c%2CPrimary_Subscriber_Address_Street_2__c%2CPrimary_Subscriber_Address_City__c%2CPrimary_Subscriber_Address_ZIP__c%2CPrimary_Subscriber_Address_State__c%2CPrimary_Member_ID__c%2CPrim_Sub_Relationship_to_Client__c%2CPrimary_Insurance_Plan_Type__c%2CEmployer_Name__c%2CAccountId+FROM+Opportunity+where+Id+%3D+%27006Uf00000IN953IAD%27+LIMIT+1
-------------------------
Date: 2025-03-26 13:51:21 +00:00 UTC
Salesforce query = SELECT Id, stageName, First_Name__c, Middle_Name__c, Last_Name__c, Preferred_Name__c, Client_DOB__c, Marital_Status__c, Phone__c, Alternative_Phone__c,SSN__c,Address_Street__c,Address_Street_2__c,Address_City__c,Address_ZIP__c,Address_State__c,Address_Country__c,Gender__c,Email__c,Primary_Insurance_Company__c,Primary_Insurance_Phone__c,Primary_Subscriber_First_Name__c,Primary_Subscriber_Middle_Name__c,Primary_Subscriber_Last_Name__c,Primary_Subscriber_SSN__c,Primary_Subscriber_DOB__c,Primary_Insurance_Group_Number__c,Primary_Subscriber_Address_Street__c,Primary_Subscriber_Address_Street_2__c,Primary_Subscriber_Address_City__c,Primary_Subscriber_Address_ZIP__c,Primary_Subscriber_Address_State__c,Primary_Member_ID__c,Prim_Sub_Relationship_to_Client__c,Primary_Insurance_Plan_Type__c,Employer_Name__c,AccountId FROM Opportunity where Id = '006Uf00000IN953IAD' LIMIT 1
-------------------------
Date: 2025-03-26 13:51:22 +00:00 UTC
Salesforce query response = {"totalSize":0,"done":true,"records":[]}
-------------------------
Date: 2025-03-26 13:51:23 +00:00 UTC
KIPU Post Payload = {
"document": {
"recipient_id": "fw20AQBVKpyODNxgPxsUf_OFDe3SZtxF_3Foc-bBE9o",
"sending_app_name": "Amend Treatment",
"data": {
"sending_app_patient_id": "",
"first_name": "",
"middle_name": "",
"last_name": "",
"preferred_name": "",
"dob": "",
"marital_status": "",
"mr": "",
"phone": "",
"alternate_phone": "",
"ethnicity": "",
"pre_admission_status": "",
"admission_date": "",
"anticipated_discharge_date": "",
"sobriety_date": "",
"ssn": "",
"address_street": "",
"address_street2": "",
"address_city": "",
"address_zip": "",
"address_state": "",
"address_country": "",
"gender": "",
"email": "",
"first_contact_date": "",
"first_contact_rep_on_call": "",
"first_contact_name": "",
"first_contact_information": "",
"first_contact_relationship": "",
"referrer_id": "",
"payment_method": "",
"referrer_name": "",
"discharge_to_name": "",
"bed_name": "",
"discharge_to_name": "",
"ext_id_mappings_attributes": [
{
"ext_system_name": "Salesforce",
"ext_id": "006Uf00000IN953IAD"
}
],
"insurances_attributes": [
{
"insurance_company": "",
"insurance_phone": "",
"subscriber_first_name": "",
"subscriber_middle_name": "",
"subscriber_last_name": "",
"subscriber_SSN": "",
"subscriber_DOB": "",
"subscriber_address_street": "",
"subscriber_address_street2": "",
"subscriber_address_city": "",
"subscriber_address_zip": "",
"subscriber_address_state": "",
"subscriber_address_country": "",
"notes": "",
"policy_no": "",
"group_ID": "",
"subscriber_relationship": "",
"insurance_plan_type": "",
"subscriber_employer":"",
"subscriber_gender":""
}
]
}
}
}
-------------------------
Date: 2025-03-26 13:51:23 +00:00 UTC
Salesforce Stage Name =
-------------------------
Date: 2025-03-26 14:00:13 +00:00 UTC
006Uf00000IN953IAD
-------------------------
Date: 2025-03-26 14:00:14 +00:00 UTC
Salesforce Response = {"access_token":"00DHu00000APRHq!AQEAQIJRsZct0NccT3ioL2YIHPomb5g7FtfRWzfjAI8.30SlJaMZ2.ByUdmfIG9hj8rDgruMexwvW1akdnVLOwf2KMdamXdh","instance_url":"https://amend-treatment.my.salesforce.com","id":"https://login.salesforce.com/id/00DHu00000APRHqMAP/005Hu00000QOle3IAD","token_type":"Bearer","issued_at":"1742997614768","signature":"Qtom4i7qc4bGymcuEdSH4Xenjaf3NvQbQ25MJRTkBfM="}
-------------------------
Date: 2025-03-26 14:00:14 +00:00 UTC
Salesforce url = https://amend-treatment.my.salesforce.com/services/data/v48.0/query?q=SELECT+Id%2C+stageName%2C+First_Name__c%2C+Middle_Name__c%2C+Last_Name__c%2C+Preferred_Name__c%2C+Client_DOB__c%2C+Marital_Status__c%2C+Phone__c%2C+Alternative_Phone__c%2CSSN__c%2CAddress_Street__c%2CAddress_Street_2__c%2CAddress_City__c%2CAddress_ZIP__c%2CAddress_State__c%2CAddress_Country__c%2CGender__c%2CEmail__c%2CPrimary_Insurance_Company__c%2CPrimary_Insurance_Phone__c%2CPrimary_Subscriber_First_Name__c%2CPrimary_Subscriber_Middle_Name__c%2CPrimary_Subscriber_Last_Name__c%2CPrimary_Subscriber_SSN__c%2CPrimary_Subscriber_DOB__c%2CPrimary_Insurance_Group_Number__c%2CPrimary_Subscriber_Address_Street__c%2CPrimary_Subscriber_Address_Street_2__c%2CPrimary_Subscriber_Address_City__c%2CPrimary_Subscriber_Address_ZIP__c%2CPrimary_Subscriber_Address_State__c%2CPrimary_Member_ID__c%2CPrim_Sub_Relationship_to_Client__c%2CPrimary_Insurance_Plan_Type__c%2CEmployer_Name__c%2CAccountId+FROM+Opportunity+where+Id+%3D+%27006Uf00000IN953IAD%27+LIMIT+1
-------------------------
Date: 2025-03-26 14:00:14 +00:00 UTC
Salesforce query = SELECT Id, stageName, First_Name__c, Middle_Name__c, Last_Name__c, Preferred_Name__c, Client_DOB__c, Marital_Status__c, Phone__c, Alternative_Phone__c,SSN__c,Address_Street__c,Address_Street_2__c,Address_City__c,Address_ZIP__c,Address_State__c,Address_Country__c,Gender__c,Email__c,Primary_Insurance_Company__c,Primary_Insurance_Phone__c,Primary_Subscriber_First_Name__c,Primary_Subscriber_Middle_Name__c,Primary_Subscriber_Last_Name__c,Primary_Subscriber_SSN__c,Primary_Subscriber_DOB__c,Primary_Insurance_Group_Number__c,Primary_Subscriber_Address_Street__c,Primary_Subscriber_Address_Street_2__c,Primary_Subscriber_Address_City__c,Primary_Subscriber_Address_ZIP__c,Primary_Subscriber_Address_State__c,Primary_Member_ID__c,Prim_Sub_Relationship_to_Client__c,Primary_Insurance_Plan_Type__c,Employer_Name__c,AccountId FROM Opportunity where Id = '006Uf00000IN953IAD' LIMIT 1
-------------------------
Date: 2025-03-26 14:00:15 +00:00 UTC
Salesforce query response = {"totalSize":1,"done":true,"records":[{"attributes":{"type":"Opportunity","url":"/services/data/v48.0/sobjects/Opportunity/006Uf00000IN953IAD"},"Id":"006Uf00000IN953IAD","StageName":"VOB Received","First_Name__c":"Test Deepak","Middle_Name__c":null,"Last_Name__c":"VOB Email Notification","Preferred_Name__c":null,"Client_DOB__c":"1983-03-03","Marital_Status__c":null,"Phone__c":null,"Alternative_Phone__c":null,"SSN__c":null,"Address_Street__c":null,"Address_Street_2__c":null,"Address_City__c":null,"Address_ZIP__c":null,"Address_State__c":null,"Address_Country__c":null,"Gender__c":null,"Email__c":null,"Primary_Insurance_Company__c":"Test Insurance","Primary_Insurance_Phone__c":null,"Primary_Subscriber_First_Name__c":null,"Primary_Subscriber_Middle_Name__c":null,"Primary_Subscriber_Last_Name__c":null,"Primary_Subscriber_SSN__c":null,"Primary_Subscriber_DOB__c":"2006-03-03","Primary_Insurance_Group_Number__c":null,"Primary_Subscriber_Address_Street__c":null,"Primary_Subscriber_Address_Street_2__c":null,"Primary_Subscriber_Address_City__c":null,"Primary_Subscriber_Address_ZIP__c":null,"Primary_Subscriber_Address_State__c":null,"Primary_Member_ID__c":"2343453454","Prim_Sub_Relationship_to_Client__c":"Self","Primary_Insurance_Plan_Type__c":null,"Employer_Name__c":null,"AccountId":"001Uf00000OUSifIAH"}]}
-------------------------
Date: 2025-03-26 14:00:21 +00:00 UTC
KIPU Post Payload = {
"document": {
"recipient_id": "fw20AQBVKpyODNxgPxsUf_OFDe3SZtxF_3Foc-bBE9o",
"sending_app_name": "Amend Treatment",
"data": {
"sending_app_patient_id": "001Uf00000OUSifIAH",
"first_name": "Test Deepak",
"middle_name": "",
"last_name": "VOB Email Notification",
"preferred_name": "",
"dob": "1983-03-03",
"marital_status": "",
"mr": "",
"phone": "",
"alternate_phone": "",
"ethnicity": "",
"pre_admission_status": "",
"admission_date": "",
"anticipated_discharge_date": "",
"sobriety_date": "",
"ssn": "",
"address_street": "",
"address_street2": "",
"address_city": "",
"address_zip": "",
"address_state": "",
"address_country": "",
"gender": "",
"email": "",
"first_contact_date": "",
"first_contact_rep_on_call": "",
"first_contact_name": "",
"first_contact_information": "",
"first_contact_relationship": "",
"referrer_id": "",
"payment_method": "",
"referrer_name": "",
"discharge_to_name": "",
"bed_name": "",
"discharge_to_name": "",
"ext_id_mappings_attributes": [
{
"ext_system_name": "Salesforce",
"ext_id": "006Uf00000IN953IAD"
}
],
"insurances_attributes": [
{
"insurance_company": "Test Insurance",
"insurance_phone": "",
"subscriber_first_name": "",
"subscriber_middle_name": "",
"subscriber_last_name": "",
"subscriber_SSN": "",
"subscriber_DOB": "2006-03-03",
"subscriber_address_street": "",
"subscriber_address_street2": "",
"subscriber_address_city": "",
"subscriber_address_zip": "",
"subscriber_address_state": "",
"subscriber_address_country": "",
"notes": "",
"policy_no": "2343453454",
"group_ID": "",
"subscriber_relationship": "Self",
"insurance_plan_type": "",
"subscriber_employer":"",
"subscriber_gender":""
}
]
},"attachments_attributes":[{
"attachment_patient_process_id":"61"
}]
}
}
-------------------------
Date: 2025-03-26 14:00:21 +00:00 UTC
Salesforce Stage Name = VOB Received
-------------------------
Date: 2025-03-26 14:00:21 +00:00 UTC
KIPU End Point = https://kipuapi.kipuworks.com/api/patients
-------------------------
Date: 2025-03-26 14:00:21 +00:00 UTC
KIPU Header Point = ["Accept: application\/vnd.kipusystems+json; version=3","Authorization: APIAuth KV2ICK_sztnZgoBYygHJIy3XJOKR4BvZ6Ca_X1QStdY:RJqzJz9PFtmDOZSLd39f1W1gfUk=","Content-type: multipart\/form-data; boundary=MultipartBoundary","Content-MD5: KZCkWuaZTZKPRbaIf0jYpw==","Date: Wed, 26 Mar 2025 14:00:21 GMT"]
-------------------------
Date: 2025-03-26 14:00:23 +00:00 UTC
{"status":"Delivered"}
-------------------------
Date: 2025-03-26 14:00:23 +00:00 UTC
server_output KIPU Response = {"status":"Delivered"}
-------------------------