MAF du kannst einen einfachen HTTP-Basic-Auth Request verwenden. Unten ein Beispiel welches du via copy&paste in Make einfügen, den API-Key und die Organisation ersetzen kannst (das Forum übernimmt die pretty JSON-Formatierung leider nicht).
Wie die URL aufgebaut ist findest du auch in der CashCtrl API-Dokumentation direkt im Intro (https://app.cashctrl.com/static/help/en/api/index.html).
Ich empfehle nicht in der produktiven Buchhaltung "rumzuspielen" sondern eine Kopie davon zu machen (siehe auch API-Dokumentation).
Falls für dich interessant, bieten wir recht neu Kurse für make.com Einsteiger an, damit kannst du in CashCtrl (fast) alles Automatisieren…
Happy Automate 🤖
{
"subflows": [
{
"flow": [
{
"id": 2,
"module": "http:ActionSendDataBasicAuth",
"version": 3,
"parameters": {
"key": 1914,
"handleErrors": false
},
"mapper": {
"ca": "",
"qs": [],
"url": "https://ORGANISATION.cashctrl.com/api/v1/person/list.json",
"gzip": true,
"method": "get",
"headers": [],
"timeout": "",
"useMtls": false,
"bodyType": "",
"serializeUrl": false,
"shareCookies": false,
"parseResponse": true,
"followRedirect": true,
"useQuerystring": false,
"followAllRedirects": false,
"rejectUnauthorized": true
},
"metadata": {
"designer": {
"x": 300,
"y": 0
},
"restore": {
"expect": {
"qs": {
"mode": "chose"
},
"method": {
"mode": "chose",
"label": "GET"
},
"headers": {
"mode": "chose"
},
"bodyType": {
"label": "Empty"
}
},
"parameters": {
"key": {
"label": "CashCtrl API-Key"
}
}
},
"parameters": [
{
"name": "key",
"type": "keychain:basicauth",
"label": "Credentials",
"required": true
},
{
"name": "handleErrors",
"type": "boolean",
"label": "Evaluate all states as errors (except for 2xx and 3xx )",
"required": true
}
],
"expect": [
{
"name": "url",
"type": "url",
"label": "URL",
"required": true
},
{
"name": "serializeUrl",
"type": "boolean",
"label": "Serialize URL",
"required": true
},
{
"name": "method",
"type": "select",
"label": "Method",
"required": true,
"validate": {
"enum": [
"get",
"head",
"post",
"put",
"patch",
"delete",
"options"
]
}
},
{
"name": "headers",
"spec": [
{
"name": "name",
"type": "text",
"label": "Name",
"required": true
},
{
"name": "value",
"type": "text",
"label": "Value"
}
],
"type": "array",
"label": "Headers"
},
{
"name": "qs",
"spec": [
{
"name": "name",
"type": "text",
"label": "Name",
"required": true
},
{
"name": "value",
"type": "text",
"label": "Value"
}
],
"type": "array",
"label": "Query String"
},
{
"name": "bodyType",
"type": "select",
"label": "Body type",
"validate": {
"enum": [
"raw",
"x_www_form_urlencoded",
"multipart_form_data"
]
}
},
{
"name": "parseResponse",
"type": "boolean",
"label": "Parse response",
"required": true
},
{
"name": "timeout",
"type": "uinteger",
"label": "Timeout",
"validate": {
"max": 300,
"min": 1
}
},
{
"name": "shareCookies",
"type": "boolean",
"label": "Share cookies with other HTTP modules",
"required": true
},
{
"name": "ca",
"type": "cert",
"label": "Self-signed certificate"
},
{
"name": "rejectUnauthorized",
"type": "boolean",
"label": "Reject connections that are using unverified (self-signed) certificates",
"required": true
},
{
"name": "followRedirect",
"type": "boolean",
"label": "Follow redirect",
"required": true
},
{
"name": "useQuerystring",
"type": "boolean",
"label": "Disable serialization of multiple same query string keys as arrays",
"required": true
},
{
"name": "gzip",
"type": "boolean",
"label": "Request compressed content",
"required": true
},
{
"name": "useMtls",
"type": "boolean",
"label": "Use Mutual TLS",
"required": true
},
{
"name": "followAllRedirects",
"type": "boolean",
"label": "Follow all redirect",
"required": true
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}