Comments (1)
@peteroleeman As mentioned in the shopify order resource,
parameters such as "created_at", "name", "order_number", etc. are read-only, which means that you cannot pass them as params, instead only shopify can modify those values.
shopify.order.create({
"number": 51,
"transactions": [{
"kind": "sale",
"status": "success",
"amount": 238.47
}],
"source_name": "gkash_source",
"note": "this is a detail note from gkash",
"tags": "Léon,Noël",
"note_attributes": [{
"name": "custom engraving",
"value": "Happy Birthday"
},
{
"name": "colour",
"value": "green"
}
],
"line_items": [{
"title": "Big Brown Bear Boots",
"price": 74.99,
"quantity": 1,
}]
})
.then((order) => {
res.send(order)
})
.catch((err) => {
res.send(err)
});
your code should look something like this.
from shopify-api-node.
Related Issues (20)
- collectionListing is not working HOT 2
- Unable to add properties to line_items HOT 1
- Error build incorretly extends interface HOT 1
- deprecated API and custom app warning HOT 7
- IOrder type missing some properties HOT 1
- Uncatchable exception thrown HOT 2
- customerRecover
- fulfillmentOrder.list calls `/assigned_fulfillment_orders` instead of `/orders/:id/fulfillment_orders` HOT 2
- can i have example of update customer metafileds
- Discount Code lookup redirects HOT 1
- Error: Missing or invalid options HOT 2
- When using shopify order list api it gives data but shopify api helath-check give unsupported warning HOT 9
- shopify.order.cancel({ id }), name: "HTTPError", code: "ERR_NON_2XX_3XX_RESPONSE" HOT 1
- ERR_NON_2XX_3XX_RESPONSE - shopify.location.list
- Update for breaking Shopify API changes
- Get Shopify shop name from object with correct type HOT 2
- Shopify Deprecating Rest API HOT 1
- Shedule request based on query costs
- Metaobject support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopify-api-node.