How to fixed the {variant_id: [{code: “invalid”, message: “is invalid”, options: []} in php

Ok, I have a few questions:

What does your actual query AND PHP code look like?

(ps - just a courteous reminder, don’t post any keys)

Are you sure the variant exists that you’re trying to pull?

Have you tried pulling other variants with the same code?