Dmitry Ezhov commented on How to change default address for Customer?
I've also tried PUT https://{{host}}/admin/customers/{{customerId}}.json {"customer": {"id": {{customerId}},"default_address": {"id": {{not-currently-default-id}},"default": true } } }it will return...
View ArticleChris Saunders commented on How to change default address for Customer?
Interesting. I guess that is currently only configurable by the customer account. I'll file an issue and see if we can come up with a decent way of setting the default address via the API.
View ArticleDmitry Ezhov commented on How to change default address for Customer?
You can probably pull this off using metafields.Yes, it looks like I have to use workaround: add one-per-address Metafield on Customer (so Customer will have addresses.size() metafields).Something like...
View ArticleDmitry Ezhov commented on How to change default address for Customer?
2) delete one of customers addresses (by addressId?);There isn't an API for this yetI've find out another topic here:...
View Articleawd commented on Create a transaction via the API ERROR
Hello, can you include a gist of your code, and the data you are sending to the API? Feel free to *** out any sensitive data.
View Articleawd commented on Fastest way to import ~24000 products
In addition to everything already mentioned, consider running your task in parallel chunks. If you cannot hit 2 requests per second because a Product takes longer to create, you don't need to create...
View ArticleCloud Elements commented on Create a transaction via the API ERROR
first create an order:url: https://cloudelements.myshopify.com/admin/orders.jsonheader: {X-Shopify-Access-Token=***}json body:{ "order": { "line_items": [ {...
View Articleawd commented on Adding Metafields to a Product results in 422 Unprocessable...
Hello, are you trying to update existing metafields in your PUT request? Or are you trying to append new metafields in your PUT request?
View ArticleLightburn commented on Adding Metafields to a Product results in 422...
I was hoping I could both insert and update metafields for a given product with a PUT to /admin/products/XXXXXX.json. That was not the case, and I have adjusted my code to perform updates via a PUT to...
View Articleawd commented on One click payments
Hello, at this time we do not support the ability to bypass the checkout process.
View Articleawd commented on Adding Metafields to a Product results in 422 Unprocessable...
The PUT request to metafields you have mentioned above is a good alternative. However, you are using the ID of the metafield to make that request anyways, so why not save some API calls and include it...
View ArticleLightburn commented on Adding Metafields to a Product results in 422...
I absolutely understand that, but what I was alluding to was that it would be nice if we didn't need the metafield id in order to perform an update. Because the metafield id is required, I either need...
View ArticleBest way to target front page of store via API by JoelS
I have a POC that works but I want to know that for all possible store configurations I can reliably target the frontpage of a store. My question is: when I use the /pages API, can I reliably expect...
View ArticleDo you think the Shopify API or EASDK would be overkill for this purpose? by...
Hello all. I'm part of a small business that wants to provide a script tag on product, cart, and checkout pages that loads dynamic javascript from our servers, as well as a sale pixel on the receipt...
View ArticleOrder JSON not containing all orders by Adrian Edwards
I'm pulling an order.json through the API but for some reason not all of the orders are coming through 50/67. Is there a reason why this might be happening?
View ArticleBBG commented on Do you think the Shopify API or EASDK would be overkill for...
Product, cart and thanks page you can do with javascript. Checkout page you can't touch (even with an App).
View ArticleHunkyBill commented on Do you think the Shopify API or EASDK would be...
First off, adding tracking pixels is trivial in the sense that a simple copy & paste will do. Problem you have is getting some unique identifier into said script so as to make it work per store. If...
View ArticleJustin Stern commented on Order JSON not containing all orders
Basically all Shopify API calls limit the number of results returned, so that the result sets aren't huge. For orders, like most resources, this limit defaults to 50, and you can return more records...
View Article