Cannot save order with api python sdk

Topic summary

Main issue: Saving an order via the Shopify Python SDK returns a validation error: {‘base’: [‘is invalid’]} after calling save.

Reported causes:

  • Invalid product tags, including disallowed characters like {} and malformed tag lists (e.g., “,tag1, tag2, {}”).
  • An invalid telephone number associated with the order.

Resolution: The original poster identified the root cause as an invalid phone number. Correcting the telephone number allowed the order to save successfully.

Implications: The error message is non-specific and can be triggered by various invalid field values. Common culprits highlighted here are tag formatting/characters and phone number validity.

Recommended checks before saving:

  • Validate phone number format according to expected standards.
  • Sanitize tags to remove disallowed characters (e.g., {}) and fix formatting.

Status: Resolved for the original reporter; the thread underscores multiple potential data-validation causes for the same error.

Summarized with AI on December 29. AI used: gpt-5.

Hello I am trying to save an order with shopify python sdk but I get a strange error after the save calling:

{'base': ['is invalid']}

what does error mean?

This is not a new thread but I had the same issue, my issue was that I was the product with invalid tags (,tag1, tag2, {})
Seems like the {} is invalid.

I discovered that the problem was caused by an invalid telephone number.