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": [
[
{
"node": "In Billbee Format umwandeln",
"node": "Set1",
"type": "main",
"index": 0
}
@ -25,18 +25,17 @@
},
"PDF": {
"main": [
[
{
"node": "Dokumente hochladen",
"type": "main",
"index": 0
}
],
[],
[
{
"node": "Auftragsdaten CSV einlesen",
"type": "main",
"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": {
"main": [
[
@ -74,7 +84,18 @@
]
]
},
"In Ausgabeformat umwandeln": {
"Webhook": {
"main": [
[
{
"node": "Code1",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"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",
@ -161,8 +122,8 @@
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
660,
460
400,
-180
],
"credentials": {
"sftp": {
@ -193,28 +154,31 @@
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
900,
220
380,
180
]
},
{
"parameters": {
"authentication": "basicAuth",
"requestMethod": "POST",
"url": "https://app.billbee.io/api/v1/orders?shopId=97989",
"jsonParameters": true,
"options": {
"fullResponse": false
},
"bodyParametersJson": "={{$json}}",
"headerParametersJson": "={\n \"Content-Type\":\"application/json\",\n \"X-Billbee-Api-Key\":\"{{$node[\"Billbee ShopID + Token\"].parameter[\"values\"][\"string\"][1][\"value\"]}}\"\n }"
"url": "=https://app.billbee.io/api/v1/orders?shopId={{$node[\"Billbee ShopID + Token\"].parameter[\"values\"][\"string\"][0][\"value\"]}}",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "={{$node[\"Billbee ShopID + Token\"].parameter[\"values\"][\"string\"][1][\"name\"]}}",
"value": "=2855BE2C-1D67-4AB0-9DEB-3073E6D27B1C"
}
]
}
},
"name": "Bestellung an Billbee senden",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
2020,
480
1140,
180
],
"id": "c81d1331-8653-4693-ada1-6697dc9ee038",
"credentials": {
@ -238,8 +202,8 @@
"type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
900,
740
1260,
620
]
},
{
@ -254,8 +218,8 @@
"type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
1440,
480
1160,
-160
]
},
{
@ -267,8 +231,8 @@
"type": "n8n-nodes-base.executeCommand",
"typeVersion": 1,
"position": [
660,
220
180,
180
]
},
{
@ -288,8 +252,8 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1120,
460
840,
-180
]
},
{
@ -302,8 +266,8 @@
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
900,
460
620,
-180
],
"credentials": {
"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": {
"keepOnlySet": true,
@ -520,7 +393,7 @@
"number": [
{
"name": "PaymentMethod",
"value": 26
"value": "3"
},
{
"name": "Customer.Id",
@ -529,10 +402,6 @@
{
"name": "Customer.Number",
"value": 20089
},
{
"name": "State",
"value": 3
}
]
},
@ -541,29 +410,29 @@
}
},
"id": "50b02a14-bac8-4748-be52-d2e789633254",
"name": "In Billbee Format umwandeln",
"name": "Set1",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1720,
480
860,
180
]
},
{
"parameters": {
"protocol": "sftp",
"operation": "rename",
"oldPath": "=/out/{{$json[\"name\"]}}",
"newPath": "=/archiv/{{$json[\"name\"]}}",
"oldPath": "={{$binary.data.directory}}/{{$binary.data.fileName}}",
"newPath": "=/archiv/{{$binary.data.fileName}}",
"options": {}
},
"id": "e3fe469c-7ee9-4435-8cff-7ad964fe3b02",
"name": "Ins Archiv verschieben1",
"id": "8e265faa-72f6-4d78-92f2-d946aa866f2f",
"name": "Ins Archiv verschieben",
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
1720,
220
1160,
-360
],
"credentials": {
"sftp": {
@ -574,32 +443,57 @@
},
{
"parameters": {
"binaryData": true,
"name": "={{$binary.data.fileName}}",
"parents": [
"0AFGOvDYEtp0yUk9PVA"
],
"options": {}
"protocol": "sftp",
"operation": "upload",
"path": "=/in/{{$binary.data.fileName}}"
},
"id": "101e2897-0ec5-4401-90d4-1ee5e4b96e14",
"name": "Dokumente hochladen",
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 2,
"id": "cd13302a-3bcf-4fdf-88a5-1ef5a40a725f",
"name": "FTP2",
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
1440,
220
1620,
620
],
"credentials": {
"googleDriveOAuth2Api": {
"id": "9",
"name": "Google Drive account"
"sftp": {
"id": "1",
"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": {},
"settings": {},
"staticData": null,
"tags": [],
"updatedAt": "2023-01-24T06:49:22.307Z"
"updatedAt": "2023-01-23T16:29:54.307Z"
}