shopify.json•7.28 kB
{
"nodeType": "n8n-nodes-base.shopify",
"displayName": "Shopify",
"description": "Consume Shopify API",
"version": 1,
"properties": [
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "The amount that's deducted from the order total",
"placeholder": "Add Field",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"order"
]
}
}
},
{
"name": "limeItemsUi",
"displayName": "Line Items",
"type": "fixedCollection",
"default": {},
"description": "The ID of the product that the line item belongs to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add Line Item",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"resource": [
"order"
],
"operation": [
"create"
]
}
}
},
{
"name": "orderId",
"displayName": "Order ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"order"
],
"operation": [
"delete"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Fields the order will return, formatted as a string of comma-separated values. By default all the fields are returned.",
"placeholder": "Add Field",
"options": [
{
"name": "fields",
"displayName": "Fields",
"type": "string",
"default": "",
"description": "Fields the order will return, formatted as a string of comma-separated values. By default all the fields are returned."
}
],
"displayOptions": {
"show": {
"operation": [
"get"
],
"resource": [
"order"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"resource": [
"order"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 50,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 250
},
"displayOptions": {
"show": {
"resource": [
"order"
],
"operation": [
"getAll"
],
"returnAll": [
false
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "The customer's email address",
"placeholder": "Add Field",
"options": [
{
"name": "email",
"displayName": "Email",
"type": "string",
"default": "",
"description": "The customer's email address",
"placeholder": "name@email.com"
},
{
"name": "locationId",
"displayName": "Location Name or ID",
"type": "options",
"default": "",
"description": "The ID of the physical location where the order was processed. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "note",
"displayName": "Note",
"type": "string",
"default": "",
"description": "An optional note that a shop owner can attach to the order"
}
],
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"order"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create an order",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create an order"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete an order"
},
{
"name": "Get",
"value": "get",
"description": "Get an order"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many orders"
},
{
"name": "Update",
"value": "update",
"description": "Update an order"
}
],
"displayOptions": {
"show": {
"resource": [
"order"
]
}
}
},
{
"name": "title",
"displayName": "Title",
"type": "string",
"default": "",
"description": "The name of the product",
"placeholder": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"product"
]
}
}
},
{
"name": "productId",
"displayName": "Product ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"product"
],
"operation": [
"update"
]
}
}
},
{
"name": "apiVersion",
"displayName": "Shopify API Version: 2024-07",
"type": "notice",
"default": ""
},
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "apiKey",
"options": [
{
"name": "Access Token",
"value": "accessToken"
},
{
"name": "OAuth2",
"value": "oAuth2"
},
{
"name": "API Key",
"value": "apiKey"
}
]
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "order",
"options": [
{
"name": "Order",
"value": "order"
},
{
"name": "Product",
"value": "product"
}
]
}
],
"credentialsConfig": [
{
"name": "shopifyApi",
"required": true
},
{
"name": "apiVersion",
"required": false
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}