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:
{
"sku": "BGSM001C210", // Unique code of one of the variants present
"status": "DRAFT"
}
Attention
The sku field indicated must correspond to that of a variant.
Once found, the status change operation applies to the entire product to which that variant belongs, not just the single variant.
Possible values for the status field
| Value | Description |
|---|---|
DRAFT | The product is saved as a draft and is not visible in the shop. |
ACTIVE | The product is published and visible in the shop. |
ARCHIVED | The product is archived. It is no longer visible but remains in the Shopify catalog. |
Behavior in case of non-existent SKU
- If the SKU exists → the product status is updated and, barring Shopify-side errors, the operation will go to success.
- If the SKU does not exist and the specified
statusisDRAFTorARCHIVED→ the operation is considered successful (success). - If the SKU does not exist and the required
statusisACTIVE→ the operation is considered unsuccessful (error).
Flow configurations
In addition to the base data flow configurations add the following settings in Settings Override:
| Field | Valore | Note |
|---|---|---|
Base Url | https://adapt.flowlyze.com | adapter URL |
Resource Path | /api/adp/shopify/egress/sync-status-to-shopify | adapter path for synchronizing product status |
Headers :: x-api-key | ********** | API key for endpoint interaction verification |
Headers :: x-shopify-graphql-url | https://SHOPIFYURL.myshopify.com/ | Shopify shop URL to connect to |
Headers :: x-shopify-access-token | shpat_CODICEALFANUMERICO | secret of the custom app created for integration |