Development discussions around Shopify APIs
Using our Sales Channel and the Checkout API we got the following response back from Shopify
"statusCode": 422, "body": { "errors": { "checkout": { "shipping_line": { "id": [{ "code": "invalid", "message": "is invalid", "options": {} }] }, "shipping_rate": { "id": [{ "code": "invalid", "message": "is invalid", "options": {} }] } } } }
The request-id is
"x-request-id": "51f2aa61-2e60-459c-9943-330dc6c0629e"
I'd like to know what does that error mean. Thank you.
Hey @JCDY ,
Thank you for providing the error message and the X-Request-ID value, it was very helpful for the investigation.
After going through our platform logs, it appears this error was thrown because the 'ShippingLineValidator' failed to validate the shipping line of the checkout. This could be because the shipping line is missing from your checkout, or because the shipping rate that is selected in the shipping line is missing or is invalid. Alternatively there could be a typo or incorrect input in your shipping line, which is causing the validator to fail.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
User | RANK |
---|---|
10 | |
5 | |
3 | |
3 | |
3 |
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023