Cart /add API returns no response for specific markets

We’re running into an issue that could be linked to Markets and Selling plans. Has anyone else run into this?

On our app, merchants can link a preorder selling plan to a product. We noticed with a handful of merchants that adding the product to cart works fine for the primary market, but the API call for a non-primary market returns no response. In most cases, the primary market is USA.

You can see the issue at hand on these 2 stores -

  1. BANG BANG PANTS V2 – Horrid
  2. https://found.store/products/goji-green-jersey?_pos=1&_sid=a92c191b0&_ss=r

To replicate -

  1. Select US as the region, click ‘Preorder’ → product is added to cart with selling plan.
  2. Select any non-US country like Canada, click ‘Preorder’ → product is not added to cart, and there’s no response and no error from /cart/add.

What points us to Markets is that if you add the product with selling plan from primary market and then switch to non-primary, the product is removed from cart.

From talking to a few other developers, it seems like this could be related to payment gateways available to process the transaction. But we’re not able to replicate it on a dev store or find any settings that could point to why.

Did you check the eligibility requirements and make sure the market meets those?

https://help.shopify.com/en/manual/products/purchase-options/subscriptions/setup#eligibility-requirements

We did. They are using Shopify Payments and/or Paypal, and meeting the rest of the requirements too.

What’s odd to me is the cart /add call not returning any kind of helpful response.

Generally, if the product can’t be purchased as a preorder, the product gets added to cart and the customer is blocked from purchasing it at checkout.

From Online Store and Theme Development to Products and Orders APIs

Removed theme-troubleshootin

I was able to figure this out! The issue is Managed Markets - it specifically does not support preorders & subscriptions. Documented here: https://help.shopify.com/en/manual/international/managed-markets/requirements-and-considerations

For anyone else running into this: ask your merchant to turn off Managed markets in Settings > Markets, or build with it in mind. :slight_smile:

1 Like