profitWell.json•3.91 kB
{
"nodeType": "n8n-nodes-base.profitWell",
"displayName": "ProfitWell",
"description": "Consume ProfitWell API",
"version": 1,
"properties": [
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "getSetting",
"description": "Get your company's ProfitWell account settings",
"options": [
{
"name": "Get Settings",
"value": "getSetting",
"description": "Get your company's ProfitWell account settings"
}
],
"displayOptions": {
"show": {
"resource": [
"company"
]
}
}
},
{
"name": "type",
"displayName": "Type",
"type": "options",
"default": "",
"description": "Retrieve financial metric broken down by day for either the current month or the last",
"required": true,
"options": [
{
"name": "Daily",
"value": "daily",
"description": "Retrieve financial metric broken down by day for either the current month or the last"
},
{
"name": "Monthly",
"value": "monthly",
"description": "Retrieve all monthly financial metric for your company"
}
],
"displayOptions": {
"show": {
"resource": [
"metric"
],
"operation": [
"get"
]
}
}
},
{
"name": "month",
"displayName": "Month",
"type": "string",
"default": "",
"description": "Can only be the current or previous month. Format should be YYYY-MM.",
"placeholder": "YYYY-MM",
"required": true,
"displayOptions": {
"show": {
"resource": [
"metric"
],
"operation": [
"get"
],
"type": [
"daily"
]
}
}
},
{
"name": "simple",
"displayName": "Simplify",
"type": "boolean",
"default": true,
"description": "Whether to return a simplified version of the response instead of the raw data",
"displayOptions": {
"show": {
"resource": [
"metric"
],
"operation": [
"get"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Only return the metric for this Plan ID. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add option",
"options": [
{
"name": "plan_id",
"displayName": "Plan Name or ID",
"type": "options",
"default": "",
"description": "Only return the metric for this Plan ID. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
}
],
"displayOptions": {
"show": {
"resource": [
"metric"
],
"operation": [
"get"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "metric",
"options": [
{
"name": "Company",
"value": "company"
},
{
"name": "Metric",
"value": "metric"
}
]
}
],
"credentialsConfig": [
{
"name": "profitWellApi",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}