...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/customers |
Request Method
POST
...
Code Block | ||
---|---|---|
| ||
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/customers" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } payload = json.dumps({ "active": true, "customerType": "person", "ssn": 123456789, "dob": "2000-01-30", "name": "John", "surname": "Doe", "accessUserName": "john_doe", "email": "john.doe@email.com", "companyName": "ABC Company L.L.C", "ein": 123456789, "giggleId": 89043762, "address": { "street1": "123 Main St.", "street2": "Suite 5.", "country": "USA", "city": "Austin", "state": "TX", "zip": "22222" }, "phone": { "number": "123-456-7890", "type": "mobile", "carrierVerified": true, "carrierName": "AT&T" } }) response = requests.request("POST", url, headers=headers, data=payload) |
...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/customers/<giggle_id:int> |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/customers/<giggle_id:int>" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } response = requests.request("GET", url, headers=headers) |
...
Code Block | ||
---|---|---|
| ||
{ "customerData": { "giggleId": 123456, "active": true, "customerType": "person", "name": "John", "surname": "Doe", "age": 21, "city": "Austin", "companyName": "ABC Company L.L.C", "address": { "street1": "123 Main St.", "street2": "Suite 5.", "city": "Austin", "State": "TX", "zip": "22222", "country": "US", }, "phone": { "number": "1234567890", "type": "mobile", "carrierVerified": true, "carrierName": "AT&T", }, "dob": "2000-01-30", "ein": "123456789", }, "loanData": [ { "id": 768943, "state": "draft", "loanAmount": 1000000.11, "loanTerm": 52, "contractDate": "2024-05-22", "firstPaymentDate": "2024-06-22", "loanClass": "gold", "loanType": "instalment", "oFee": 200.55, "disbursementAmount": 800000.88, "discountSavings": "0.00", "discountDate": "2024-05-27", "renewalIncrement": 8, "applicationId": 79834, "disbursementFee": "25.99", "fundedDate": "2024-06-13", "partnerId": 75475, "leadId": 456312, "ccrScore": 800, "clarityScore": 788, "daysOverDue": 12, "amountOverdue": 1987.32, "contractBalance": 421123.33, }, { "id": 768944, "state": "active", "loanAmount": 1000000.11, "loanTerm": 52, "contractDate": "2024-05-22", "firstPaymentDate": "2024-06-22", "loanClass": "gold", "loanType": "instalment", "oFee": 200.55, "disbursementAmount": 800000.88, "discountSavings": "0.00", "discountDate": "2024-05-27", "renewalIncrement": 8, "applicationId": 79834, "disbursementFee": "25.99", "fundedDate": "2024-06-13", "partnerId": 75475, "leadId": 456313, "ccrScore": 800, "clarityScore": 788, "daysOverDue": 12, "amountOverdue": 1987.32, "contractBalance": 421123.33, } ] } |
Example Response (Failure)
...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/customers/<giggle_id:int> |
...
Code Block | ||
---|---|---|
| ||
{ "active": true, "customerType": "person", "ssn": "123456789", "dob": "2000-01-30", "name": "John", "surname": "Doe", "accessUserName": "john_doe", "email": "john.doe@email.com", "companyName": "ABC Company L.L.C", "ein": "123456789", "address": { "street1": "123 Main St.", "street2": "Suite 5.", "country": "USA", "city": "Austin", "state": "TX", "zip": "22222", }, "phone": { "number": "123-456-7890", "type": "mobile", "carrierVerified": true, "carrierName": "AT&T", } } |
Example (Python)
Code Block | ||
---|---|---|
| ||
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/customers/<giggle_id:int>" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } payload = json.dumps({ "active": true, "customerType": "person", "ssn": 123456789, "dob": "2000-01-30", "name": "John", "surname": "Doe", "accessUserName": "john_doe", "email": "john.doe@email.com", "companyName": "ABC Company L.L.C", "ein": 123456789, "address": { "street1": "123 Main St.", "street2": "Suite 5.", "country": "USA", "city": "Austin", "state": "TX", "zip": "22222", }, "phone": { "number": "123-456-7890", "type": "mobile", "carrierVerified": true, "carrierName": "AT&T", } }) response = requests.request("PATCH", url, headers=headers, data=payload) |
...
Code Block |
---|
{
"statusCode": 200,
"status": "OK",
"message": "Customer Successfully Updated",
"error": false,
"giggleId": 123456,
} |
Example Response (Failure)
...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/customers/<giggle_id:int> |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/customers/<giggle_id:int>" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } response = requests.request("DELETE", url, headers=headers) |
...
Code Block |
---|
{
"statusCode": 200,
"status": "OK",
"message": "Customer Successfully Deleted",
"error": false,
"giggleId": 123456,
} |
Example Response (Failure)
...