Discussing APIs and development related to customers, discounts, and order management.
Hi, im trying to use the api:
[POST] https://{domain}/admin/api/2023-04/price_rules.json
as specified here: https://shopify.dev/docs/api/admin-rest/2023-04/resources/pricerule#post-price-rules
but im receiving an array with all codes instead the created price rule.
i can confirm that no creating any price rule at all.
Can you help me with that? Follow de request id.
X-Request-ID: 47a1cdd5-ca53-44c5-930d-9dfbef354318
Tks
Hi there 👋
When I review the logs for that X-request-id, it is a request being made to GET "/admin/api/2023-04/price_rules.json
So that would make sense that it is returning a list of Price Rules.
Do you have the code for the request that you are trying to make that you would like me to review?
To learn more visit the Shopify Help Center or the Community Blog.
Im Just checked out that i sending a post request.
Im using postman just to make sure everything is fine, follow the screenshot
If this is not working could you share
1) The request body
2) The request response
3) The X-request-id
To learn more visit the Shopify Help Center or the Community Blog.
Hi, thanks for your help. I have the same problem and right now. I'm using POST method, my body:
Hello,
I'm facing the same issue. anyone were able to solve it?
Nothing so far.. we terminating declining the customer contract because of this bug.
it turns out it only happens when we call the main domain but it doesn't happen when we call myshopify domain. so probably a bug on the redirection where the POST requests end up turning into GET requests