Create orders in batch
Create multiple orders at one time instead of one order at a timeRequest body which must comply to the following JSON Schema:
{
"required" : [ "orders" ],
"type" : "object",
"properties" : {
"orders" : {
"type" : "array",
"description" : "array of order objects",
"items" : {
"required" : [ "amount", "createdAt", "id", "products", "status", "updatedAt" ],
"type" : "object",
"properties" : {
"id" : {
"type" : "string",
"description" : "Unique ID of the order.",
"example" : "14"
},
"createdAt" : {
"type" : "string",
"description" : "Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created.",
"example" : "2021-07-29T20:59:23.383Z"
},
"updatedAt" : {
"type" : "string",
"description" : "Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated.",
"example" : "2021-07-30T10:59:23.383Z"
},
"status" : {
"type" : "string",
"description" : "State of the order.",
"example" : "completed"
},
"amount" : {
"type" : "number",
"description" : "Total amount of the order, including all shipping expenses, tax and the price of items.",
"example" : 308.42
},
"storeId" : {
"type" : "string",
"description" : "ID of store where the order is placed",
"example" : "ST-21"
},
"products" : {
"type" : "array",
"items" : {
"required" : [ "price", "productId", "quantity" ],
"type" : "object",
"properties" : {
"productId" : {
"type" : "string",
"description" : "ID of the product.",
"example" : "P1"
},
"quantity" : {
"type" : "number",
"description" : "How many pieces of the product the visitor has added to the cart.",
"example" : 10
},
"variantId" : {
"type" : "string",
"description" : "Product ID of the red color shirts.",
"example" : "P100"
},
"price" : {
"type" : "number",
"description" : "The price of a unit of product",
"example" : 99.99
}
},
"description" : "Details for the Products in an order."
}
},
"email" : {
"type" : "string",
"description" : "Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter.",
"example" : "example@brevo.com"
},
"billing" : {
"type" : "object",
"properties" : {
"address" : {
"type" : "string",
"description" : "Full billing address.",
"example" : "15 Somewhere Road, Brynmenyn"
},
"city" : {
"type" : "string",
"description" : "Exact city of the address.",
"example" : "Basel"
},
"countryCode" : {
"type" : "string",
"description" : "Billing country 2-letter ISO code.",
"example" : "CA"
},
"country" : {
"type" : "string",
"description" : "Billing country name.",
"example" : "Canada"
},
"phone" : {
"type" : "string",
"description" : "Phone number to contact for further details about the order, Mandatory if \"email\" field is not passed.",
"example" : "01559 032133"
},
"postCode" : {
"type" : "string",
"description" : "Postcode for delivery and billing.",
"example" : "4052"
},
"paymentMethod" : {
"type" : "string",
"description" : "How the visitor will pay for the item(s), e.g. paypal, check, etc.",
"example" : "PayPal"
},
"region" : {
"type" : "string",
"description" : "Exact region (state/province) for delivery and billing.",
"example" : "Northwestern Switzerland"
}
},
"description" : "Billing details of an order."
},
"coupons" : {
"type" : "array",
"description" : "Coupons applied to the order. Stored case insensitive.",
"example" : [ "EASTER15OFF" ],
"items" : {
"type" : "string"
}
}
}
}
},
"notifyUrl" : {
"type" : "string",
"description" : "Notify Url provided by client to get the status of batch request",
"example" : "https://en.wikipedia.org/wiki/Webhook"
},
"historical" : {
"type" : "boolean",
"description" : "Defines wether you want your orders to be considered as live data or as historical data (import of past data, synchronising data). True: orders will not trigger any automation workflows. False: orders will trigger workflows as usual.",
"example" : true,
"default" : true
}
}
}Specify how the response should be mapped to the table output. The following formats are available:
Raw Response: Returns the raw response in a single row with the following columns:
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
To use this node in KNIME, install the extension Brevo from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!