Skip to content

Detect error when adding item to cart #193

Answered by logeshswell
wialy asked this question in Help
Discussion options

You must be logged in to vote

@wialy Yes, you're right! It would return 200 status code and you could handle it using response.errors object to confirm if there's an error in placing an item in the cart.
I would also take your feedback to replace it with error status codes (4xx) while versioning the API later.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@logeshswell
Comment options

Answer selected by logeshswell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
3 participants