We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

"PRODUCT_NOT_AVAILABLE" error in Shopify Checkout Creation

"PRODUCT_NOT_AVAILABLE" error in Shopify Checkout Creation

Klaux
Shopify Partner
1 0 0

Someone could help me with this? I have a problem related to the creation of payment processes for products generated through the GraphQL Admin API productCreate function.

Specifically, every time I try to proceed to checkout with products created through the API, I encounter the following error:

  • Error Code: PRODUCT_NOT_AVAILABLE.
  • Field: ['input', 'lineItems', '0', 'variantId']
  • Message: 'The variant the product is not published for this customer'.

 

{
    data: {
      checkoutCreate: {
        checkout: null,
        checkoutUserErrors: [
          {
            code: 'PRODUCT_NOT_AVAILABLE',
            field: [ 'input', 'lineItems', '0', 'variantId' ],
            message: 'The variant the product is not published for this customer'
          }
        ]
      }
    }
  }

 

I have verified that all products created through the GraphQL Admin API are active and available for sale within the Shopify store. Despite this, customers are unable to proceed to checkout with these products, either by accessing the store directly or through other channels.

 

I hope you can help me, thank you!

Replies 0 (0)