...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhookwebhookjson/v1/json/loans/<loan_id:int>/transactions" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } payload = json.dumps({ "type": "payout", "date": "2024-05-22", "amount": 1000.33, }) response = requests.request("POST", url, headers=headers, data=payload) |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } payload = json.dumps({ "type": "credit", "date": "2024-05-22", "amount": 1000.33, }) response = requests.request("POST", url, headers=headers, data=payload) |
...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions/<transaction_id:int> |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions/<transaction_id:int>" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } payload = json.dumps({ "type": "reversal", "date": "2024-05-22", }) response = requests.request("POST", url, headers=headers, data=payload) |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } payload = json.dumps({ "type": "settlement", "date": "2024-05-22", "amount": 3253.45, }) response = requests.request("POST", url, headers=headers, data=payload) |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } payload = json.dumps({ "type": "write-off", "date": "2024-05-22", }) response = requests.request("POST", url, headers=headers, data=payload) |
...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions/<transaction_id:int> |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions/<transaction_id:int>" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } response = requests.request("GET", url, headers=headers) |
...
Code Block |
---|
https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions?sort=date&order=desc https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions?limit=10 ... |
...
Code Block |
---|
import requests import json url = "https://www.giggle.tasksuite.com/webhook/json/v1/json/loans/<loan_id:int>/transactions" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <api_key>' } response = requests.request("GET", url, headers=headers) |
...
Code Block |
---|
{ "data": [ { "id": 1, "date": "2024-05-30", "amount":1000.00, "type": "payout" }, { "id": 2, "date": "2024-06-06", "amount": 100.00, "type": "credit" }, { "id": 3, "date": "2024-06-13", "amount": 100.00, "type": "credit" }, { "id": 4, "date": "2024-06-15", "amount": 100.00, "type": "reversal" }, ], "metadata": { "totalCount": 4, "loanBalance": 900.0, "loanId": 234, // "limit": 10 } } |
Error Handling
...