2023-03-31 16:00:37 +00:00
|
|
|
{
|
|
|
|
"active": false,
|
2023-04-25 16:00:22 +00:00
|
|
|
"connections": {
|
2023-12-04 11:00:06 +00:00
|
|
|
"Success?": {
|
2023-04-25 16:00:22 +00:00
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
2023-12-04 11:00:06 +00:00
|
|
|
"node": "Wait",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Wait": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "HTTP Request1",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"HTTP Request1": {
|
|
|
|
"main": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"node": "Success?",
|
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"node": "Edit Fields3",
|
2023-04-25 16:00:22 +00:00
|
|
|
"type": "main",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2023-12-04 11:00:06 +00:00
|
|
|
"createdAt": "2023-12-04T08:45:57.778Z",
|
|
|
|
"id": "o9uPy8XY0bMFCS9H",
|
|
|
|
"meta": null,
|
2023-03-31 16:00:37 +00:00
|
|
|
"name": "My workflow",
|
|
|
|
"nodes": [
|
2023-04-25 16:00:22 +00:00
|
|
|
{
|
2023-12-04 11:00:06 +00:00
|
|
|
"parameters": {
|
|
|
|
"options": {}
|
|
|
|
},
|
|
|
|
"id": "5cd78676-a0bd-4536-8759-f996d97b4254",
|
|
|
|
"name": "Edit Fields2",
|
|
|
|
"type": "n8n-nodes-base.set",
|
|
|
|
"typeVersion": 3.1,
|
|
|
|
"position": [
|
|
|
|
860,
|
|
|
|
660
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"conditions": {
|
|
|
|
"number": [
|
|
|
|
{
|
|
|
|
"value1": "={{ $json.statusCode }}",
|
|
|
|
"operation": "equal",
|
|
|
|
"value2": 200
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"id": "4f308b2e-f65b-4879-a566-6e6ebafbf125",
|
|
|
|
"name": "Success?",
|
|
|
|
"type": "n8n-nodes-base.if",
|
2023-04-25 16:00:22 +00:00
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-12-04 11:00:06 +00:00
|
|
|
0,
|
|
|
|
-1340
|
2023-04-25 16:00:22 +00:00
|
|
|
]
|
|
|
|
},
|
2023-03-31 16:00:37 +00:00
|
|
|
{
|
|
|
|
"parameters": {
|
2023-12-04 11:00:06 +00:00
|
|
|
"unit": "seconds"
|
2023-03-31 16:00:37 +00:00
|
|
|
},
|
2023-12-04 11:00:06 +00:00
|
|
|
"id": "c06f9de4-8423-4104-bf3b-fe9eb49e447e",
|
|
|
|
"name": "Wait",
|
|
|
|
"type": "n8n-nodes-base.wait",
|
2023-03-31 16:00:37 +00:00
|
|
|
"typeVersion": 1,
|
|
|
|
"position": [
|
2023-12-04 11:00:06 +00:00
|
|
|
220,
|
|
|
|
-1360
|
|
|
|
],
|
|
|
|
"webhookId": "de46ac63-1976-47ce-a91c-2d96bbd61bad"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"options": {}
|
|
|
|
},
|
|
|
|
"id": "8f2309ea-1d47-4542-8202-36d23cbdefa7",
|
|
|
|
"name": "Edit Fields3",
|
|
|
|
"type": "n8n-nodes-base.set",
|
|
|
|
"typeVersion": 3.1,
|
|
|
|
"position": [
|
|
|
|
0,
|
|
|
|
-1580
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"parameters": {
|
|
|
|
"url": "https://app.billbee.io/api/v1/orders",
|
|
|
|
"authentication": "genericCredentialType",
|
|
|
|
"genericAuthType": "httpBasicAuth",
|
|
|
|
"sendQuery": true,
|
|
|
|
"queryParameters": {
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "pageSize",
|
|
|
|
"value": "250"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "page",
|
|
|
|
"value": "={{$runIndex + 1}}"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sendHeaders": true,
|
|
|
|
"headerParameters": {
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "X-Billbee-Api-Key",
|
|
|
|
"value": "2855BE2C-1D67-4AB0-9DEB-3073E6D27B1C"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"options": {}
|
|
|
|
},
|
|
|
|
"id": "25d5e4e0-a202-46c7-9df8-b72721fe0861",
|
|
|
|
"name": "HTTP Request1",
|
|
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
|
|
"typeVersion": 4.1,
|
|
|
|
"position": [
|
|
|
|
-260,
|
|
|
|
-1340
|
2023-03-31 16:00:37 +00:00
|
|
|
],
|
2023-04-25 16:00:22 +00:00
|
|
|
"credentials": {
|
2023-12-04 11:00:06 +00:00
|
|
|
"httpBasicAuth": {
|
|
|
|
"id": "MM5S4dq8ufNI1gGH",
|
|
|
|
"name": "Billbee"
|
2023-04-25 16:00:22 +00:00
|
|
|
}
|
|
|
|
}
|
2023-03-31 16:00:37 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"pinData": {},
|
2023-12-04 11:00:06 +00:00
|
|
|
"settings": {
|
|
|
|
"executionOrder": "v1"
|
|
|
|
},
|
2023-03-31 16:00:37 +00:00
|
|
|
"staticData": null,
|
|
|
|
"tags": [],
|
|
|
|
"triggerCount": 0,
|
2023-12-04 11:00:06 +00:00
|
|
|
"updatedAt": "2023-12-04T10:46:50.000Z",
|
|
|
|
"versionId": "44977b72-02d7-4b5f-b629-2123ce53cc13"
|
2023-03-31 16:00:37 +00:00
|
|
|
}
|