[{"data":1,"prerenderedAt":484},["ShallowReactive",2],{"bootstrap":3,"blog-use-sku-lists-as-wishlists":277},{"navigation":4,"globalConfig":196,"forms":218},{"headerSections":5,"headerFooterLinks":67,"footer":76,"legalLinks":153,"socialLinks":176},[6,39,44,50,57,62],{"hasSubMenu":7,"title":8,"links":9,"columns":38},true,"Product",[10,20,26,32],{"showTag":11,"_modelApiKey":12,"text":13,"subtitle":14,"icon":15,"isExternal":11,"link":16,"openForm":11},false,"navigation_link","Universal checkout","Sell anywhere","globe-simple",{"_modelApiKey":17,"slug":18,"title":19},"page","universal-checkout","Universal Checkout",{"showTag":11,"_modelApiKey":12,"text":21,"subtitle":22,"icon":23,"isExternal":11,"link":24,"openForm":11},"Distributed OMS","Manage orders","package",{"_modelApiKey":17,"slug":25,"title":21},"distributed-oms",{"showTag":11,"_modelApiKey":12,"text":27,"subtitle":28,"icon":29,"isExternal":11,"link":30,"openForm":11},"Promotion engine","Automated discounts","seal-percent",{"_modelApiKey":17,"slug":31,"title":27},"promotion-engine",{"showTag":11,"_modelApiKey":12,"text":33,"subtitle":34,"icon":35,"isExternal":11,"link":36,"openForm":11},"POS system","Operate stores","devices",{"_modelApiKey":17,"slug":37,"title":33},"pos-system",2,{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":40,"isExternal":11,"link":41,"openForm":11,"title":40},"Pricing",{"_modelApiKey":42,"slug":43},"pricing_page","pricing",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":45,"isExternal":11,"link":46,"openForm":11,"title":45},"Customers",{"_modelApiKey":47,"slug":48,"title":49},"customer_landing_page","customers","Customers page",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":51,"isExternal":11,"link":52,"openForm":11,"form":54,"title":51},"Partners",{"_modelApiKey":17,"slug":53,"title":51},"partners",{"_modelApiKey":55,"slug":53,"name":56},"form","PartnersForm",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":58,"label":59,"isExternal":7,"url":60,"openForm":11,"title":61},"Docs Hub","Learn more","https:\u002F\u002Fdocs.commercelayer.io\u002F","Docs",{"hasSubMenu":11,"showTag":11,"_modelApiKey":12,"text":63,"isExternal":11,"link":64,"openForm":11,"title":63},"Blog",{"_modelApiKey":65,"slug":66},"blog_landing_page","blog",[68,72],{"text":69,"link":70},"Sign in",{"_modelApiKey":12,"text":69,"isExternal":7,"url":71,"openForm":11},"https:\u002F\u002Fdashboard.commercelayer.io\u002Fsign_in",{"text":73,"link":74},"Sign up for free",{"_modelApiKey":12,"text":73,"isExternal":7,"url":75,"openForm":11},"https:\u002F\u002Fdashboard.commercelayer.io\u002Fsign_up",[77,89,109,132],{"hasSubMenu":7,"title":8,"links":78},[79,81,83,85,87],{"showTag":11,"_modelApiKey":12,"text":13,"subtitle":14,"icon":15,"isExternal":11,"link":80,"openForm":11},{"_modelApiKey":17,"slug":18,"title":19},{"showTag":11,"_modelApiKey":12,"text":21,"subtitle":22,"icon":23,"isExternal":11,"link":82,"openForm":11},{"_modelApiKey":17,"slug":25,"title":21},{"showTag":11,"_modelApiKey":12,"text":27,"subtitle":28,"icon":29,"isExternal":11,"link":84,"openForm":11},{"_modelApiKey":17,"slug":31,"title":27},{"showTag":11,"_modelApiKey":12,"text":33,"subtitle":34,"icon":35,"isExternal":11,"link":86,"openForm":11},{"_modelApiKey":17,"slug":37,"title":33},{"showTag":11,"_modelApiKey":12,"text":40,"isExternal":11,"link":88,"openForm":11},{"_modelApiKey":42,"slug":43},{"hasSubMenu":7,"title":90,"links":91},"Resources",[92,94,99,104,107],{"showTag":11,"_modelApiKey":12,"text":93,"isExternal":7,"url":60,"openForm":11},"Documentation",{"showTag":11,"_modelApiKey":12,"text":95,"label":95,"isExternal":11,"link":96,"openForm":11},"Agentic Commerce",{"_modelApiKey":17,"slug":97,"title":98},"agentic-commerce-whitepaper","Agentic Commerce Whitepaper",{"showTag":11,"_modelApiKey":12,"text":100,"isExternal":11,"link":101,"openForm":11},"Core concepts",{"_modelApiKey":17,"slug":102,"title":103},"headless-commerce","Headless commerce",{"showTag":11,"_modelApiKey":12,"text":105,"isExternal":7,"url":106,"openForm":11},"Changelog","https:\u002F\u002Fdocs.commercelayer.io\u002Fchangelog\u002F",{"showTag":11,"_modelApiKey":12,"text":63,"isExternal":11,"link":108,"openForm":11},{"_modelApiKey":65,"slug":66},{"hasSubMenu":7,"title":110,"links":111},"Company",[112,116,118,121,126],{"showTag":11,"_modelApiKey":12,"text":113,"isExternal":11,"link":114,"openForm":11},"Vision",{"_modelApiKey":17,"slug":115,"title":113},"vision",{"showTag":11,"_modelApiKey":12,"text":45,"isExternal":11,"link":117,"openForm":11},{"_modelApiKey":47,"slug":48,"title":49},{"showTag":11,"_modelApiKey":12,"text":51,"isExternal":11,"link":119,"openForm":11,"form":120},{"_modelApiKey":17,"slug":53,"title":51},{"_modelApiKey":55,"slug":53,"name":56},{"showTag":11,"_modelApiKey":12,"text":122,"isExternal":11,"link":123,"openForm":11},"Security",{"_modelApiKey":17,"slug":124,"title":125},"security","Security at Commerce Layer",{"showTag":11,"_modelApiKey":12,"text":127,"label":128,"isExternal":11,"openForm":7,"form":129},"Giveback","Giveback program",{"_modelApiKey":55,"slug":130,"name":131},"giveback","GivebackForm",{"hasSubMenu":7,"title":133,"links":134},"Get in touch",[135,140,145,149],{"showTag":11,"_modelApiKey":12,"text":136,"isExternal":11,"openForm":7,"form":137},"Contact",{"_modelApiKey":55,"slug":138,"name":139},"contact","ContactUsForm",{"showTag":11,"_modelApiKey":12,"text":141,"isExternal":11,"openForm":7,"form":142},"Book a demo",{"_modelApiKey":55,"slug":143,"name":144},"demo","RequestDemoForm",{"showTag":11,"_modelApiKey":12,"text":146,"label":147,"isExternal":7,"url":148,"openForm":11},"Support","Email support","mailto:support@commercelayer.io",{"showTag":11,"_modelApiKey":12,"text":150,"label":151,"isExternal":7,"url":152,"openForm":11},"Community","Discord community","https:\u002F\u002Fdiscord.gg\u002Fcommercelayer",{"hasSubMenu":7,"title":154,"links":155},"Legal",[156,161,165,169,173],{"showTag":11,"_modelApiKey":12,"text":157,"label":158,"isExternal":7,"url":159,"openForm":11,"htmlClassNames":160},"Terms","Terms and conditions","\u002Flegal-embed\u002Fterms-of-service","iubenda-nostyle no-brand iubenda-noiframe iubenda-embed",{"showTag":11,"_modelApiKey":12,"text":162,"label":163,"isExternal":7,"url":164,"openForm":11,"htmlClassNames":160},"Privacy","Privacy policy","\u002Flegal-embed\u002Fprivacy-policy",{"showTag":11,"_modelApiKey":12,"text":166,"label":167,"isExternal":7,"url":168,"openForm":11,"htmlClassNames":160},"Cookies","Cookie policy","\u002Flegal-embed\u002Fcookie-policy",{"showTag":11,"_modelApiKey":12,"text":170,"isExternal":7,"url":171,"openForm":11,"htmlClassNames":172},"Notice at collection","#","iubenda-cs-uspr-link",{"showTag":11,"_modelApiKey":12,"text":174,"isExternal":7,"url":171,"openForm":11,"htmlClassNames":175},"Privacy preferences","iubenda-cs-preferences-link",[177,180,184,188,192],{"title":178,"type":179,"url":152,"isExternal":7},"Discord","discord-logo",{"title":181,"type":182,"url":183,"isExternal":7},"Github","github","https:\u002F\u002Fgithub.com\u002Fcommercelayer",{"title":185,"type":186,"url":187,"isExternal":7},"Bluesky","bluesky-logo","https:\u002F\u002Fbsky.app\u002Fprofile\u002Fcommercelayer.io",{"title":189,"type":190,"url":191,"isExternal":7},"X","x-logo","https:\u002F\u002Fx.com\u002Fcommercelayer",{"title":193,"type":194,"url":195,"isExternal":7},"LinkedIn","linkedin","https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fcommerce-layer",{"pagesWithoutCtaPanel":197,"ctaPanel":198,"notification":208,"showApiResponseTime":11,"newsletterSignup":216},[],{"title":199,"subtitle":200,"ctas":201},"Ready to get started?","Discover how we can help your business.",[202,205],{"_modelApiKey":203,"text":204,"isExternal":7,"url":75,"openForm":11},"link","Get started for free",{"_modelApiKey":203,"text":206,"isExternal":11,"openForm":7,"form":207},"Contact us",{"_modelApiKey":55,"slug":138,"name":139},{"showNotification":7,"link":209,"linkText":210,"text":215},{"_modelApiKey":203,"text":210,"isExternal":11,"link":211,"openForm":11},"Read article",{"_modelApiKey":212,"slug":213,"title":214},"blog_post","the-new-payments-api-built-for-how-people-pay-now","The new Payments API. Built for how people pay now.","\u003Cp>The new Payments API. Built for how people pay now.\u003C\u002Fp>\n",{"ctaText":217},"Subscribe",[219,225,229,236,240,246,249,253,261,262,267,272,274],{"_modelApiKey":55,"slug":220,"pardotFormEmbedCode":221,"formEmbedMinHeight":222,"successTitle":223,"successCopy":224},"agentic-commerce","https:\u002F\u002Fcommercelayer.fillout.com\u002Ft\u002F5w4Khwgxr6us?whitepaper=agentic",520,"Thank you for your request!","We’ll be in touch soon to arrange a date and time for your personalized demo.",{"_modelApiKey":55,"slug":226,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"successTitle":223,"successCopy":224},"shopify","https:\u002F\u002Fform.fillout.com\u002Ft\u002FgVnLSmKZwRus",850,{"_modelApiKey":55,"slug":130,"pardotFormEmbedCode":230,"formEmbedMinHeight":231,"displayTitle":232,"copy":233,"successTitle":234,"successCopy":235},"https:\u002F\u002Fform.fillout.com\u002Ft\u002FmVDF8aAiofus",500,"We give back.","\u003Cp>Part of Commerce Layer&#39;s company ethos is to empathize and support one another: co-workers, customers, and community. We want to do our part to help nonprofit organizations and small businesses who may feel adversely affected by the current global economic climate, and as a result, need in-kind support to reach their customers.\u003C\u002Fp>\n\n\u003Cp>If this general description matches your organization’s needs, please tell us your story by completing the following form so we can consider helping your cause.\u003C\u002Fp>\n","Thank you!","We will contact you soon to learn more about your story.",{"_modelApiKey":55,"slug":237,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"displayTitle":238,"copy":239},"book-an-onboarding-session","Book an onboarding session","\u003Cp>Schedule some time and our devs will help you set up a Commerce Layer + Sanity store.\u003C\u002Fp>\n",{"_modelApiKey":55,"slug":241,"pardotFormEmbedCode":242,"formEmbedMinHeight":243,"displayTitle":244,"successTitle":234,"successCopy":245},"download-our-whitepaper","https:\u002F\u002Fform.fillout.com\u002Ft\u002F5YPWmy8oT7us?whitepaper=ComposableCommerce",450,"Download our whitepaper.","Check your inbox. You should receive a download link soon.",{"_modelApiKey":55,"slug":247,"pardotFormEmbedCode":248,"formEmbedMinHeight":243,"displayTitle":244,"successTitle":234,"successCopy":245},"download-the-content-and-commerce-whitepaper","https:\u002F\u002Fform.fillout.com\u002Ft\u002F5YPWmy8oT7us?whitepaper=ContentAndCommerce",{"_modelApiKey":55,"slug":250,"pardotFormEmbedCode":251,"formEmbedMinHeight":243,"displayTitle":244,"copy":252,"successTitle":234,"successCopy":245},"whitepaper","https:\u002F\u002Fform.fillout.com\u002Ft\u002F5YPWmy8oT7us?whitepaper=Jamstack","\u003Cp>Commerce Layer is the perfect platform for building commerce on the Jamstack. Convert any design into pixel perfect HTML pages. Connect a best-of-breed headless CMS. Go serverless and forget the hassle of managing complex infrastructures.\u003C\u002Fp>\n",{"_modelApiKey":55,"slug":254,"pardotFormEmbedCode":255,"formEmbedMinHeight":256,"displayTitle":257,"copy":258,"successTitle":259,"successCopy":260},"contact-links","https:\u002F\u002Fform.fillout.com\u002Ft\u002FeWPyhHGHT7us",750,"Contact us.","\u003Cp>Tell us about your project. Our team will reach out to you for a personalized offer.\u003C\u002Fp>\n","Thanks for your message!","We’ll be in touch soon to discuss your project details.",{"_modelApiKey":55,"slug":138,"pardotFormEmbedCode":255,"formEmbedMinHeight":256,"displayTitle":257,"copy":258,"successTitle":259,"successCopy":260},{"_modelApiKey":55,"slug":263,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"displayTitle":264,"successTitle":265,"successCopy":266},"demo-embed","Want to see it in action? Request a demo.","Thanks for your request!","We’ll be in touch soon to arrange a date and time for your free live demo.",{"_modelApiKey":55,"slug":53,"pardotFormEmbedCode":268,"formEmbedMinHeight":228,"displayTitle":269,"copy":270,"successTitle":234,"successCopy":271},"https:\u002F\u002Fform.fillout.com\u002Ft\u002F9MTkDWMUSqus","Become our partner.","\u003Cp>Join us and get our guidance in helping your clients succeed. Our partners are our ambassadors. We are committed to your success as much as you are.\u003C\u002Fp>\n","We will contact you soon to discuss the details of our partnership.",{"_modelApiKey":55,"slug":273,"pardotFormEmbedCode":268,"formEmbedMinHeight":228,"displayTitle":269,"copy":270,"successTitle":234,"successCopy":271},"partners-embed",{"_modelApiKey":55,"slug":143,"pardotFormEmbedCode":227,"formEmbedMinHeight":228,"displayTitle":275,"copy":276,"successTitle":265,"successCopy":266},"Get a free live demo.","\u003Cp>Get a personalized demo and learn more about what Commerce Layer can do for your company.\u003C\u002Fp>\n",{"_modelApiKey":212,"link":278,"subtitle":283,"date":283,"author":284,"additionalAuthors":294,"icon":295,"abstract":296,"tag":297,"displayTitle":279,"cardRatio":300,"featured":11,"seoMetaTags":301,"layout":365,"blogPostCarousel":303,"_seoMetaTags":445,"authors":479},{"text":279,"isExternal":11,"url":280,"link":281},"Use SKU lists as wishlists.","",{"_modelApiKey":212,"slug":282},"use-sku-lists-as-wishlists","May 22, 2025",{"name":285,"picture":286},"Alex Canessa",{"url":287,"alt":288,"title":288,"width":289,"height":289,"format":290,"focalPoint":291,"customData":293},"https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1754320167-alessandro-can.jpg","Commerce Layer avatar",1280,"jpg",{"x":292,"y":292},0.5,{},[],"heart","How to create a personal wishlist using Commerce Layer’s SKU Lists by linking products to a customer and make it shoppable using Commerce Layer Links.",{"color":298,"name":299},"gray","Behind the Docs","portrait",[302,306,310,313,317,320,323,327,331,335,338,342,346,350,354,357,361],{"attributes":303,"tag":304,"content":305},null,"title","Use SKU Lists as Wishlists",{"attributes":307,"tag":309,"content":303},{"property":308,"content":305},"og:title","meta",{"attributes":311,"tag":309,"content":303},{"name":312,"content":305},"twitter:title",{"attributes":314,"tag":309,"content":303},{"name":315,"content":316},"description","Build a creative microstore with Commerce Layer Links. Create an interactive shopping experience with a custom UI, cart integration, and checkout.",{"attributes":318,"tag":309,"content":303},{"property":319,"content":316},"og:description",{"attributes":321,"tag":309,"content":303},{"name":322,"content":316},"twitter:description",{"attributes":324,"tag":309,"content":303},{"property":325,"content":326},"og:image","https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1745428444-cl_sku-lists-as-wishlists-02.jpg?auto=format&fit=max&w=1200",{"attributes":328,"tag":309,"content":303},{"property":329,"content":330},"og:image:width","1200",{"attributes":332,"tag":309,"content":303},{"property":333,"content":334},"og:image:height","630",{"attributes":336,"tag":309,"content":303},{"name":337,"content":326},"twitter:image",{"attributes":339,"tag":309,"content":303},{"property":340,"content":341},"og:locale","en",{"attributes":343,"tag":309,"content":303},{"property":344,"content":345},"og:type","article",{"attributes":347,"tag":309,"content":303},{"property":348,"content":349},"og:site_name","Commerce Layer",{"attributes":351,"tag":309,"content":303},{"property":352,"content":353},"article:modified_time","2025-10-08T16:39:07Z",{"attributes":355,"tag":309,"content":303},{"property":356,"content":280},"article:publisher",{"attributes":358,"tag":309,"content":303},{"name":359,"content":360},"twitter:card","summary_large_image",{"attributes":362,"tag":309,"content":303},{"name":363,"content":364},"twitter:site","@commercelayer",[366,372,383,386,391,394,396,399,403,405,407,410,412,414,425,428,430,433,442],{"_modelApiKey":367,"copy":368,"listStyle":369,"darkTheme":11,"buttons":370,"color":371,"indent":7},"wysiwyg","\u003Cp>At Commerce Layer we’re really proud of our documentation. It’s simple to understand, extensive, and saves \u003Cem>loads\u003C\u002Fem> of time.\nThat&#39;s why I decided to start off a series of small blog posts: \u003Cem>&quot;Behind the Docs&quot;\u003C\u002Fem>. In this series I intend to take pieces of our documentation and explain possible usage in real world scenarios.\u003C\u002Fp>\n\n\u003Cp>Today I want to start from our Data Model, in particular the SKU Lists.\u003C\u002Fp>\n","checkbox",[],"pink",{"_modelApiKey":373,"border":11,"caption":374,"image":375,"size":382,"darkTheme":11,"rounded":11,"color":371},"image_block","SKU List data model",{"url":376,"alt":377,"title":377,"width":378,"height":379,"format":380,"focalPoint":303,"customData":381},"https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1663863736-sku-list.svg","SKU lists \u002F SKU \u002F Promotions relationship",1080,480,"svg",{},"slim",{"_modelApiKey":367,"copy":384,"listStyle":369,"darkTheme":11,"buttons":385,"color":371,"indent":11},"\u003Ch3>SKU List Anatomy\u003C\u002Fh3>\n\n\u003Cp>Here’s what a SKU List can be connected to:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>\u003Cstrong>SKUs\u003C\u002Fstrong> - the SKUs part of the list\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Promotion Rules\u003C\u002Fstrong> - conditions that apply to the list\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Customer\u003C\u002Fstrong> - \u003Cem>&quot;Why does a SKU List have a customer relationship?&quot;\u003C\u002Fem>\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Cp>SKU List can be used in different ways and one of them is if you tie it to a Customer, what you’ve got is… a \u003Cstrong>Wishlist\u003C\u002Fstrong>.\u003C\u002Fp>\n\n\u003Cp>No need for a separate resource. No need for a special name or plugin. You’re using what’s already there.\u003C\u002Fp>\n\n\u003Ch3>Let’s Build One with the CLI\u003C\u002Fh3>\n\n\u003Cp>Let’s say you want to create a wishlist for a user (me, actually - I’ve got my eyes on a Commerce Layer hat).\u003C\u002Fp>\n\n\u003Cp>Rather than building the wishlist mechanism in a front-end application, today I want to show you the concept using our \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fcommercelayer\u002Fcommercelayer-cli\">Commerce Layer CLI\u003C\u002Fa>, and we’ll need the \u003Ccode>resources\u003C\u002Fcode> plugin, which you can install this way:\u003C\u002Fp>\n",[],{"_modelApiKey":387,"code":388,"showLineNumbers":11,"highlightLines":280,"language":389,"size":390},"code_block","cl plugins:install resources","shell","Standard",{"_modelApiKey":367,"copy":392,"listStyle":369,"darkTheme":11,"buttons":393,"color":371,"indent":11},"\u003Ch4>1. Create the SKU List\u003C\u002Fh4>\n\n\u003Cp>First, we want to create the actual list that will hold our SKUs.Think of it as a container for your wishlist items.\u003C\u002Fp>\n",[],{"_modelApiKey":387,"code":395,"showLineNumbers":11,"highlightLines":280,"language":389,"size":390},"cl create sku_list -a name=\"Alex's Wishlist\"",{"_modelApiKey":387,"code":397,"showLineNumbers":11,"highlightLines":280,"language":398,"size":390},"{\n  id: 'JqjZIgXaZn',\n  type: 'sku_lists',\n  name: \"Alex's wishlist\",\n  slug: 'alex-s-wishlist',\n  description: null,\n  image_url: null,\n  manual: true,\n  sku_code_regex: null,\n  created_at: '2025-04-05T06:42:20.637Z',\n  updated_at: '2025-04-05T06:42:20.637Z',\n  reference: null,\n  reference_origin: null,\n  metadata: {}\n}","json",{"_modelApiKey":367,"copy":400,"listStyle":401,"darkTheme":11,"buttons":402,"color":371,"indent":11},"\u003Ch4>2. Assign it to a Customer\u003C\u002Fh4>\n\n\u003Cp>Now we tie the list to a specific customer. This operation could be done when the user first adds the SKU to the favourites\u002Fwishlist.\u003C\u002Fp>\n\n\u003Cp>We&#39;re using \u003Ccode>last\u003C\u002Fcode> to get the ID of the latest operation and \u003Ccode>customer_id\u003C\u002Fcode> with the ID of the user (from Commerce Layer) using the flag \u003Ccode>-r\u003C\u002Fcode> to update the relationship.\u003C\u002Fp>\n","directional",[],{"_modelApiKey":387,"code":404,"showLineNumbers":11,"highlightLines":280,"language":389,"size":390},"cl update sku_list\u002Flast -r customer={customer_id}",{"_modelApiKey":387,"code":406,"showLineNumbers":11,"highlightLines":280,"language":398,"size":390},"{\n  id: 'JqjZIgXaZn',\n  type: 'sku_lists',\n  name: \"Alex's Wishlist\",\n  slug: 'alex-s-wishlist',\n  description: null,\n  image_url: null,\n  manual: true,\n  sku_code_regex: null,\n  created_at: '2025-04-05T15:29:39.130Z',\n  updated_at: '2025-04-05T15:34:57.760Z',\n  reference: null,\n  reference_origin: null,\n  metadata: {},\n  customer: {\n    id: 'nxqWhMveDY',\n    type: 'customers',\n    email: 'alex@commercelayer.io',\n    status: 'prospect',\n    has_password: false,\n    total_orders_count: 0,\n    shopper_reference: '1B545D53510259365D4BA9D3F66E2970B9102266',\n    profile_id: '1B4DA567BC561EED03DC6BF7C695E9B81959A6A7',\n    tax_exemption_code: null,\n    created_at: '2025-04-05T15:29:57.692Z',\n    updated_at: '2025-04-05T15:29:57.692Z',\n    reference: null,\n    reference_origin: null,\n    metadata: {}\n  }\n}",{"_modelApiKey":367,"copy":408,"listStyle":401,"darkTheme":11,"buttons":409,"color":371,"indent":11},"\u003Ch4>3. Add items to the Wishlist\u003C\u002Fh4>\n\n\u003Cp>Finally we can add the SKU to the list, using the \u003Ccode>sku_list_items\u003C\u002Fcode> resource’s relationships and using \u003Ccode>last\u003C\u002Fcode> alias to get the id of the SKU List we just created (\u003Ccode>&#39;JqjZIgXaZn&#39;\u003C\u002Fcode>) and the ID of the SKU we want to add.\u003C\u002Fp>\n",[],{"_modelApiKey":387,"code":411,"showLineNumbers":11,"highlightLines":280,"language":389,"size":390},"cl create sku_list_items -r sku_list=last sku={sku_id}",{"_modelApiKey":387,"code":413,"showLineNumbers":11,"highlightLines":280,"language":398,"size":390},"{\n  id: 'zqLZIPLrpW',\n  type: 'sku_list_items',\n  position: 1,\n  sku_code: 'HATBLACKM',\n  quantity: 1,\n  created_at: '2025-04-05T15:41:44.429Z',\n  updated_at: '2025-04-05T15:41:44.429Z',\n  reference: null,\n  reference_origin: null,\n  metadata: {},\n  sku_list: {\n    id: 'JqjZIgXaZn',\n    type: 'sku_lists',\n    name: \"Alex's Wishlist\",\n    slug: 'alex-s-wishlist',\n    description: null,\n    image_url: null,\n    manual: true,\n    sku_code_regex: null,\n    created_at: '2025-04-05T15:29:39.130Z',\n    updated_at: '2025-04-05T15:41:44.434Z',\n    reference: null,\n    reference_origin: null,\n    metadata: {}\n  },\n  sku: {\n    id: 'ZXxPSELwVo',\n    type: 'skus',\n    code: 'HATBLACKM',\n    name: 'Hat Black Medium',\n    description: 'Lorem ipsum dolor sit amet.',\n    image_url: 'https:\u002F\u002Fdata.commercelayer.app\u002Fassets\u002Fimages\u002Fold_skus\u002FHATBSBMU000000FFFFFF.jpg',\n    pieces_per_pack: null,\n    weight: null,\n    unit_of_weight: null,\n    hs_tariff_number: '',\n    do_not_ship: true,\n    do_not_track: false,\n    created_at: '2025-04-02T08:43:34.424Z',\n    updated_at: '2025-04-02T08:43:34.424Z',\n    reference: null,\n    reference_origin: null,\n    jwt_custom_claim: null,\n    metadata: {}\n  }\n}",{"_modelApiKey":373,"border":7,"caption":415,"image":416,"size":424,"darkTheme":11,"rounded":7,"color":371},"The SKU List we created using the CLI",{"url":417,"alt":418,"title":418,"width":419,"height":420,"format":421,"focalPoint":422,"customData":423},"https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1745429320-created_sku_list.png","Wishlist used as SKU List",1572,1096,"png",{"x":292,"y":292},{},"standard",{"_modelApiKey":367,"copy":426,"listStyle":401,"darkTheme":11,"buttons":427,"color":371,"indent":11},"\u003Cp>That’s it. You’ve easily created a fully functional wishlist. It contains a specific product and it can be retrieved and updated\u003C\u002Fp>\n\n\u003Ch3>From Wishlist to Microstore\u003C\u002Fh3>\n\n\u003Cp>One interesting aspect of using the SKU List as a wishlist, is that you can turn it into a checkout experience using \u003Cstrong>Commerce Layer’s Links\u003C\u002Fstrong> and send to your customers their wishlist in a microstore.\u003C\u002Fp>\n",[],{"_modelApiKey":387,"code":429,"showLineNumbers":11,"highlightLines":280,"language":389,"size":390},"cl create links -a name=\"Alex's Wishlist\" scope=\"market:id:{market_id}\" client_id=\"xxx-yyy-zzz\" -r item=\"sku_lists\u002F{sku_list_id}\"",{"_modelApiKey":367,"copy":431,"listStyle":401,"darkTheme":11,"buttons":432,"color":371,"indent":11},"\u003Cp>And now we can hit the generated link from the output and see our result on the browser\u003C\u002Fp>\n",[],{"_modelApiKey":373,"border":11,"caption":434,"image":435,"size":424,"darkTheme":11,"rounded":7,"color":371},"Generated Microstore for the wishlist.",{"url":436,"alt":437,"title":437,"width":438,"height":439,"format":421,"focalPoint":440,"customData":441},"https:\u002F\u002Fwww.datocms-assets.com\u002F35053\u002F1745430073-wishlist_to_microstore.png","Wishlist to Microstore",1698,1160,{"x":292,"y":292},{},{"_modelApiKey":367,"copy":443,"listStyle":401,"darkTheme":11,"buttons":444,"color":371,"indent":11},"\u003Ch3>Why this is cool\u003C\u002Fh3>\n\n\u003Cp>Using SKU List for wishlists means you get:\u003C\u002Fp>\n\n\u003Cul>\n\u003Cli>No extra modelling or workarounds\u003C\u002Fli>\n\u003Cli>A clean, unified data model\u003C\u002Fli>\n\u003Cli>Easy way to sell via CL Links\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch4>Want to know more?\u003C\u002Fh4>\n\n\u003Cul>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fcommercelayer.io\u002Fdocs\u002Fdata-model\u002Fsku-lists\">SKU List data model\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fdocs.commercelayer.io\u002Fcore\u002Fapi-reference\u002Fsku_lists\">API Reference for SKU Lists\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fcommercelayer.io\u002Fblog\u002Fsell-everywhere-with-commerce-layer-links\">Sell Anywhere with Commerce Layer Links\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n",[],[446,447,449,451,453,455,457,459,461,463,465,467,469,471,473,475,477],{"attributes":303,"tag":304,"content":305},{"attributes":448,"tag":309,"content":303},{"property":308,"content":305},{"attributes":450,"tag":309,"content":303},{"name":312,"content":305},{"attributes":452,"tag":309,"content":303},{"name":315,"content":316},{"attributes":454,"tag":309,"content":303},{"property":319,"content":316},{"attributes":456,"tag":309,"content":303},{"name":322,"content":316},{"attributes":458,"tag":309,"content":303},{"property":325,"content":326},{"attributes":460,"tag":309,"content":303},{"property":329,"content":330},{"attributes":462,"tag":309,"content":303},{"property":333,"content":334},{"attributes":464,"tag":309,"content":303},{"name":337,"content":326},{"attributes":466,"tag":309,"content":303},{"property":340,"content":341},{"attributes":468,"tag":309,"content":303},{"property":344,"content":345},{"attributes":470,"tag":309,"content":303},{"property":348,"content":349},{"attributes":472,"tag":309,"content":303},{"property":352,"content":353},{"attributes":474,"tag":309,"content":303},{"property":356,"content":280},{"attributes":476,"tag":309,"content":303},{"name":359,"content":360},{"attributes":478,"tag":309,"content":303},{"name":363,"content":364},[480],{"name":285,"picture":481},{"url":287,"alt":288,"title":288,"width":289,"height":289,"format":290,"focalPoint":482,"customData":483},{"x":292,"y":292},{},1791534736159]