Compare commits

..

No commits in common. "db94a35f89e607ff72d6916f30d810c392a1e0c7" and "e6a22f64ac33cdd2803bfcc176ae7fa235d5c11c" have entirely different histories.

1 changed files with 107 additions and 213 deletions

View File

@ -5,7 +5,7 @@
"main": [ "main": [
[ [
{ {
"node": "In Billbee Format umwandeln", "node": "Set1",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
@ -25,18 +25,17 @@
}, },
"PDF": { "PDF": {
"main": [ "main": [
[ [],
{
"node": "Dokumente hochladen",
"type": "main",
"index": 0
}
],
[ [
{ {
"node": "Auftragsdaten CSV einlesen", "node": "Auftragsdaten CSV einlesen",
"type": "main", "type": "main",
"index": 0 "index": 0
},
{
"node": "Ins Archiv verschieben",
"type": "main",
"index": 0
} }
] ]
] ]
@ -63,6 +62,17 @@
] ]
] ]
}, },
"Set1": {
"main": [
[
{
"node": "Bestellung an Billbee senden",
"type": "main",
"index": 0
}
]
]
},
"Rückmeldung CSV erzeugen": { "Rückmeldung CSV erzeugen": {
"main": [ "main": [
[ [
@ -74,7 +84,18 @@
] ]
] ]
}, },
"In Ausgabeformat umwandeln": { "Webhook": {
"main": [
[
{
"node": "Code1",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"main": [ "main": [
[ [
{ {
@ -84,66 +105,6 @@
} }
] ]
] ]
},
"Webhook für Billbee": {
"main": [
[
{
"node": "In Ausgabeformat umwandeln",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "FTP",
"type": "main",
"index": 0
},
{
"node": "Execute Command",
"type": "main",
"index": 0
}
]
]
},
"In Billbee Format umwandeln": {
"main": [
[
{
"node": "Bestellung an Billbee senden",
"type": "main",
"index": 0
}
]
]
},
"Bestellung an Billbee senden": {
"main": [
[
{
"node": "Ins Archiv verschieben",
"type": "main",
"index": 0
}
]
]
},
"Dokumente hochladen": {
"main": [
[
{
"node": "Ins Archiv verschieben1",
"type": "main",
"index": 0
}
]
]
} }
}, },
"createdAt": "2023-01-17T13:26:26.485Z", "createdAt": "2023-01-17T13:26:26.485Z",
@ -161,8 +122,8 @@
"type": "n8n-nodes-base.ftp", "type": "n8n-nodes-base.ftp",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
660, 400,
460 -180
], ],
"credentials": { "credentials": {
"sftp": { "sftp": {
@ -193,28 +154,31 @@
"type": "n8n-nodes-base.set", "type": "n8n-nodes-base.set",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
900, 380,
220 180
] ]
}, },
{ {
"parameters": { "parameters": {
"authentication": "basicAuth", "authentication": "basicAuth",
"requestMethod": "POST", "requestMethod": "POST",
"url": "https://app.billbee.io/api/v1/orders?shopId=97989", "url": "=https://app.billbee.io/api/v1/orders?shopId={{$node[\"Billbee ShopID + Token\"].parameter[\"values\"][\"string\"][0][\"value\"]}}",
"jsonParameters": true, "options": {},
"options": { "headerParametersUi": {
"fullResponse": false "parameter": [
}, {
"bodyParametersJson": "={{$json}}", "name": "={{$node[\"Billbee ShopID + Token\"].parameter[\"values\"][\"string\"][1][\"name\"]}}",
"headerParametersJson": "={\n \"Content-Type\":\"application/json\",\n \"X-Billbee-Api-Key\":\"{{$node[\"Billbee ShopID + Token\"].parameter[\"values\"][\"string\"][1][\"value\"]}}\"\n }" "value": "=2855BE2C-1D67-4AB0-9DEB-3073E6D27B1C"
}
]
}
}, },
"name": "Bestellung an Billbee senden", "name": "Bestellung an Billbee senden",
"type": "n8n-nodes-base.httpRequest", "type": "n8n-nodes-base.httpRequest",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
2020, 1140,
480 180
], ],
"id": "c81d1331-8653-4693-ada1-6697dc9ee038", "id": "c81d1331-8653-4693-ada1-6697dc9ee038",
"credentials": { "credentials": {
@ -238,8 +202,8 @@
"type": "n8n-nodes-base.spreadsheetFile", "type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
900, 1260,
740 620
] ]
}, },
{ {
@ -254,8 +218,8 @@
"type": "n8n-nodes-base.spreadsheetFile", "type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
1440, 1160,
480 -160
] ]
}, },
{ {
@ -267,8 +231,8 @@
"type": "n8n-nodes-base.executeCommand", "type": "n8n-nodes-base.executeCommand",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
660, 180,
220 180
] ]
}, },
{ {
@ -288,8 +252,8 @@
"type": "n8n-nodes-base.if", "type": "n8n-nodes-base.if",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
1120, 840,
460 -180
] ]
}, },
{ {
@ -302,8 +266,8 @@
"type": "n8n-nodes-base.ftp", "type": "n8n-nodes-base.ftp",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
900, 620,
460 -180
], ],
"credentials": { "credentials": {
"sftp": { "sftp": {
@ -312,97 +276,6 @@
} }
} }
}, },
{
"parameters": {
"protocol": "sftp",
"operation": "rename",
"oldPath": "={{$node[\"PDF\"].binary.data.directory}}/{{$node[\"PDF\"].binary.data.fileName}}",
"newPath": "=/archiv/{{$node[\"PDF\"].binary.data.fileName}}",
"options": {}
},
"id": "8e265faa-72f6-4d78-92f2-d946aa866f2f",
"name": "Ins Archiv verschieben",
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
2340,
480
],
"credentials": {
"sftp": {
"id": "1",
"name": "SFTP MyToys"
}
}
},
{
"parameters": {
"protocol": "sftp",
"operation": "upload",
"path": "=/in/{{$binary.data.fileName}}"
},
"id": "cd13302a-3bcf-4fdf-88a5-1ef5a40a725f",
"name": "FTP2",
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
1140,
740
],
"credentials": {
"sftp": {
"id": "1",
"name": "SFTP MyToys"
}
}
},
{
"parameters": {
"jsCode": "let lines = [];\n\nfor (const item of $input.all()) {\n let parcel_type;\n switch(item.json.query.id) {\n case \"Eurocourier\":\n parcel_type = \"EC_STD_NATIONAL\";\n break;\n case \"GLS\":\n parcel_type = \"GLS_STD_NATIONAL\";\n break;\n default:\n parcel_type = \"DPD_STD_NATIONAL\";\n}\n let line = {\n \"TB_ORDER_ID\": item.json.query.id,\n \"ORDER_PAID\" : 0,\n \"TYPE\" : item.json.query.type,\n \"PARCEL_TYPE\": parcel_type,\n \"SHIP_CODE\" : item.json.query.shipment,\n \"COMMENT_INTERN\" : \"\",\n \"COMMENT\" : \"\",\n }; \n lines.push(line);\n}\n\nreturn lines;"
},
"id": "3f76d0dd-3525-4cdb-baab-e2205621ec39",
"name": "In Ausgabeformat umwandeln",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
660,
740
]
},
{
"parameters": {
"path": "1730d70c-f532-4b6f-a20e-e2fc7edb2d45",
"options": {}
},
"id": "5a16780d-19a1-4967-8710-9225ddc59ddf",
"name": "Webhook für Billbee",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
420,
740
],
"webhookId": "1730d70c-f532-4b6f-a20e-e2fc7edb2d45"
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours"
}
]
}
},
"id": "47aa99b1-e403-47c1-a8d9-f6d10c2ec553",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
420,
460
]
},
{ {
"parameters": { "parameters": {
"keepOnlySet": true, "keepOnlySet": true,
@ -520,7 +393,7 @@
"number": [ "number": [
{ {
"name": "PaymentMethod", "name": "PaymentMethod",
"value": 26 "value": "3"
}, },
{ {
"name": "Customer.Id", "name": "Customer.Id",
@ -529,10 +402,6 @@
{ {
"name": "Customer.Number", "name": "Customer.Number",
"value": 20089 "value": 20089
},
{
"name": "State",
"value": 3
} }
] ]
}, },
@ -541,29 +410,29 @@
} }
}, },
"id": "50b02a14-bac8-4748-be52-d2e789633254", "id": "50b02a14-bac8-4748-be52-d2e789633254",
"name": "In Billbee Format umwandeln", "name": "Set1",
"type": "n8n-nodes-base.set", "type": "n8n-nodes-base.set",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
1720, 860,
480 180
] ]
}, },
{ {
"parameters": { "parameters": {
"protocol": "sftp", "protocol": "sftp",
"operation": "rename", "operation": "rename",
"oldPath": "=/out/{{$json[\"name\"]}}", "oldPath": "={{$binary.data.directory}}/{{$binary.data.fileName}}",
"newPath": "=/archiv/{{$json[\"name\"]}}", "newPath": "=/archiv/{{$binary.data.fileName}}",
"options": {} "options": {}
}, },
"id": "e3fe469c-7ee9-4435-8cff-7ad964fe3b02", "id": "8e265faa-72f6-4d78-92f2-d946aa866f2f",
"name": "Ins Archiv verschieben1", "name": "Ins Archiv verschieben",
"type": "n8n-nodes-base.ftp", "type": "n8n-nodes-base.ftp",
"typeVersion": 1, "typeVersion": 1,
"position": [ "position": [
1720, 1160,
220 -360
], ],
"credentials": { "credentials": {
"sftp": { "sftp": {
@ -574,32 +443,57 @@
}, },
{ {
"parameters": { "parameters": {
"binaryData": true, "protocol": "sftp",
"name": "={{$binary.data.fileName}}", "operation": "upload",
"parents": [ "path": "=/in/{{$binary.data.fileName}}"
"0AFGOvDYEtp0yUk9PVA"
],
"options": {}
}, },
"id": "101e2897-0ec5-4401-90d4-1ee5e4b96e14", "id": "cd13302a-3bcf-4fdf-88a5-1ef5a40a725f",
"name": "Dokumente hochladen", "name": "FTP2",
"type": "n8n-nodes-base.googleDrive", "type": "n8n-nodes-base.ftp",
"typeVersion": 2, "typeVersion": 1,
"position": [ "position": [
1440, 1620,
220 620
], ],
"credentials": { "credentials": {
"googleDriveOAuth2Api": { "sftp": {
"id": "9", "id": "1",
"name": "Google Drive account" "name": "SFTP MyToys"
} }
} }
},
{
"parameters": {
"path": "1730d70c-f532-4b6f-a20e-e2fc7edb2d45",
"options": {}
},
"id": "5a16780d-19a1-4967-8710-9225ddc59ddf",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
1660,
180
],
"webhookId": "1730d70c-f532-4b6f-a20e-e2fc7edb2d45"
},
{
"parameters": {
"jsCode": "let lines = [];\n\nfor (const item of $input.all()) {\n let parcel_type;\n switch(item.json.query.id) {\n case \"Eurocourier\":\n parcel_type = \"EC_STD_NATIONAL\";\n break;\n case \"GLS\":\n parcel_type = \"GLS_STD_NATIONAL\";\n break;\n default:\n parcel_type = \"DPD_STD_NATIONAL\";\n}\n let line = {\n \"TB_ORDER_ID\": item.json.query.id,\n \"ORDER_PAID\" : 0,\n \"TYPE\" : item.json.query.type,\n \"PARCEL_TYPE\": parcel_type,\n \"SHIP_CODE\" : item.json.query.shipment,\n \"COMMENT_INTERN\" : \"\",\n \"COMMENT\" : \"\",\n }; \n lines.push(line);\n}\n\nreturn lines;"
},
"id": "3f76d0dd-3525-4cdb-baab-e2205621ec39",
"name": "Code1",
"type": "n8n-nodes-base.code",
"typeVersion": 1,
"position": [
1880,
180
]
} }
], ],
"pinData": {}, "pinData": {},
"settings": {}, "settings": {},
"staticData": null, "staticData": null,
"tags": [], "tags": [],
"updatedAt": "2023-01-24T06:49:22.307Z" "updatedAt": "2023-01-23T16:29:54.307Z"
} }