Skip to main content

Product Publication

Flow that allows publishing, unpublishing or archiving products on Shopify, updating only the status of individual products without acting on other fields.

Structure

Structure for managing product status:

{
"skus": [
"BGSM001C210",
"BGSM001C210-0",
"BGSM001C210-1",
"BGSM001C210-2"
], // Unique codes for the variants included in the product
"status": "DRAFT"
}
Attention

The sku may contain the list of SKUs of the product’s variants. Once the product is identified, the status change applies to the entire product, not just the single variant.

Possible values for the status field

ValueDescription
DRAFTThe product is saved as a draft and is not visible in the shop.
ACTIVEThe product is published and visible in the shop.
ARCHIVEDThe product is archived. It is no longer visible but remains in the Shopify catalog.

Behavior in case of non-existent SKU

  • If at least one SKU exists → the product status is updated and, barring Shopify-side errors, the operation will go to success.
  • If all SKUs do not exist and the specified status is DRAFT or ARCHIVED → the operation is considered successful (success).
  • If all SKUs do not exist and the required status is ACTIVE → the operation is considered unsuccessful (error).

Flow configurations

In addition to the base data flow configurations add the following settings in Settings Override:

FieldValoreNote
Base Urlhttps://adapt.flowlyze.comadapter URL
Resource Path/api/adp/shopify/egress/sync-products-status-to-shopifyadapter path for synchronizing product status
Headers :: x-api-key**********API key for endpoint interaction verification
Headers :: x-shopify-graphql-urlhttps://SHOPIFYURL.myshopify.com/Shopify shop URL to connect to
Headers :: x-shopify-access-tokenshpat_CODICEALFANUMERICOsecret of the custom app created for integration