CartrellaDocs
DevelopersAPIBundlesPacks

Record published Shopify artifacts

Called by the admin publisher after it ensures the pack products on Shopify. Records product/variant/handle per tier (matched by size), stores the resolved eligible snapshot for mix packs, and flips the pack to published. Not exposed as a copilot tool — the copilot publishes via the admin pipeline, never by writing artifacts directly.

View as Markdown
PUT
/v1/packs/{id}/artifacts

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/v1/packs/497f6eca-6276-4993-bfeb-53cbbbba6f08/artifacts" \  -H "Content-Type: application/json" \  -d '{    "tiers": [      {        "size": 0,        "shopify_product_id": "string",        "shopify_variant_id": "string",        "shopify_handle": "string"      }    ]  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "shop_id": "string",  "name": "string",  "mode": "fixed",  "base_product_id": "string",  "base_variant_id": "string",  "eligible_product_ids": [    "string"  ],  "eligible": [    {      "product_id": "string",      "variant_id": "string",      "title": "string",      "image_url": "string",      "price_each": "string"    }  ],  "tiers": [    {      "size": 1,      "pack_price": 1,      "shopify_product_id": "string",      "shopify_variant_id": "string",      "shopify_handle": "string"    }  ],  "status": "draft",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}