[{"data":1,"prerenderedAt":759},["ShallowReactive",2],{"navigation_docs":3,"-store-management-dashboard-settings-headless":233,"-store-management-dashboard-settings-headless-surround":754},[4,26,224],{"title":5,"path":6,"stem":7,"children":8,"page":25},"Getting Started","\u002Fgetting-started","01.getting-started",[9,13,17,21],{"title":10,"path":11,"stem":12},"What is Orderain?","\u002Fgetting-started\u002Fwhat-is-orderain","01.getting-started\u002F01.what-is-orderain",{"title":14,"path":15,"stem":16},"From a Theme","\u002Fgetting-started\u002Ffrom-a-theme","01.getting-started\u002F02.from-a-theme",{"title":18,"path":19,"stem":20},"With AI (Buddy)","\u002Fgetting-started\u002Fbuilding-your-store-with-buddy","01.getting-started\u002F03.building-your-store-with-buddy",{"title":22,"path":23,"stem":24},"Orderain MCP","\u002Fgetting-started\u002Forderain-mcp","01.getting-started\u002F04.orderain-mcp",false,{"title":27,"path":28,"stem":29,"children":30,"page":25},"Store Management","\u002Fstore-management","02.store-management",[31,101],{"title":32,"path":33,"stem":34,"children":35,"page":25},"Builder","\u002Fstore-management\u002Fbuilder","02.store-management\u002F01.builder",[36,40,44,48,52,56,60,64,93,97],{"title":37,"path":38,"stem":39},"Overview","\u002Fstore-management\u002Fbuilder\u002Fthe-store-builder","02.store-management\u002F01.builder\u002F01.the-store-builder",{"title":41,"path":42,"stem":43},"Pages","\u002Fstore-management\u002Fbuilder\u002Fpages","02.store-management\u002F01.builder\u002F02.pages",{"title":45,"path":46,"stem":47},"Layers","\u002Fstore-management\u002Fbuilder\u002Flayers","02.store-management\u002F01.builder\u002F03.layers",{"title":49,"path":50,"stem":51},"Layouts","\u002Fstore-management\u002Fbuilder\u002Flayouts","02.store-management\u002F01.builder\u002F04.layouts",{"title":53,"path":54,"stem":55},"Blocks","\u002Fstore-management\u002Fbuilder\u002Fblocks","02.store-management\u002F01.builder\u002F05.blocks",{"title":57,"path":58,"stem":59},"Element Properties","\u002Fstore-management\u002Fbuilder\u002Felement-properties","02.store-management\u002F01.builder\u002F06.element-properties",{"title":61,"path":62,"stem":63},"Version History","\u002Fstore-management\u002Fbuilder\u002Fversion-history","02.store-management\u002F01.builder\u002F07.version-history",{"title":65,"path":66,"stem":67,"children":68,"page":25},"Builder Settings","\u002Fstore-management\u002Fbuilder\u002Fbuilder-settings","02.store-management\u002F01.builder\u002F08.builder-settings",[69,73,77,81,85,89],{"title":70,"path":71,"stem":72},"Themes","\u002Fstore-management\u002Fbuilder\u002Fbuilder-settings\u002Fthemes","02.store-management\u002F01.builder\u002F08.builder-settings\u002F01.themes",{"title":74,"path":75,"stem":76},"General","\u002Fstore-management\u002Fbuilder\u002Fbuilder-settings\u002Fgeneral","02.store-management\u002F01.builder\u002F08.builder-settings\u002F02.general",{"title":78,"path":79,"stem":80},"SEO","\u002Fstore-management\u002Fbuilder\u002Fbuilder-settings\u002Fseo","02.store-management\u002F01.builder\u002F08.builder-settings\u002F03.seo",{"title":82,"path":83,"stem":84},"Cache Management","\u002Fstore-management\u002Fbuilder\u002Fbuilder-settings\u002Fcache-management","02.store-management\u002F01.builder\u002F08.builder-settings\u002F04.cache-management",{"title":86,"path":87,"stem":88},"CSS Update","\u002Fstore-management\u002Fbuilder\u002Fbuilder-settings\u002Fcss-update","02.store-management\u002F01.builder\u002F08.builder-settings\u002F05.css-update",{"title":90,"path":91,"stem":92},"AI","\u002Fstore-management\u002Fbuilder\u002Fbuilder-settings\u002Fai","02.store-management\u002F01.builder\u002F08.builder-settings\u002F06.ai",{"title":94,"path":95,"stem":96},"AI Buddy","\u002Fstore-management\u002Fbuilder\u002Fai-buddy","02.store-management\u002F01.builder\u002F09.ai-buddy",{"title":98,"path":99,"stem":100},"Preview & Publish","\u002Fstore-management\u002Fbuilder\u002Fpreview-and-publish","02.store-management\u002F01.builder\u002F10.preview-and-publish",{"title":102,"path":103,"stem":104,"children":105,"page":25},"Dashboard","\u002Fstore-management\u002Fdashboard","02.store-management\u002F02.dashboard",[106,109,122,151,155,168,172,176,180],{"title":37,"path":107,"stem":108},"\u002Fstore-management\u002Fdashboard\u002Foverview","02.store-management\u002F02.dashboard\u002F01.overview",{"title":110,"path":111,"stem":112,"children":113,"page":25},"Orders","\u002Fstore-management\u002Fdashboard\u002Forders","02.store-management\u002F02.dashboard\u002F02.orders",[114,118],{"title":115,"path":116,"stem":117},"All Orders","\u002Fstore-management\u002Fdashboard\u002Forders\u002Fall-orders","02.store-management\u002F02.dashboard\u002F02.orders\u002F01.all-orders",{"title":119,"path":120,"stem":121},"Abandoned Orders","\u002Fstore-management\u002Fdashboard\u002Forders\u002Fabandoned-orders","02.store-management\u002F02.dashboard\u002F02.orders\u002F02.abandoned-orders",{"title":123,"path":124,"stem":125,"children":126,"page":25},"Products","\u002Fstore-management\u002Fdashboard\u002Fproducts","02.store-management\u002F02.dashboard\u002F03.products",[127,131,135,139,143,147],{"title":128,"path":129,"stem":130},"All Products","\u002Fstore-management\u002Fdashboard\u002Fproducts\u002Fall-products","02.store-management\u002F02.dashboard\u002F03.products\u002F01.all-products",{"title":132,"path":133,"stem":134},"Add a Product","\u002Fstore-management\u002Fdashboard\u002Fproducts\u002Fadd-product","02.store-management\u002F02.dashboard\u002F03.products\u002F02.add-product",{"title":136,"path":137,"stem":138},"Categories","\u002Fstore-management\u002Fdashboard\u002Fproducts\u002Fcategories","02.store-management\u002F02.dashboard\u002F03.products\u002F03.categories",{"title":140,"path":141,"stem":142},"Inventory","\u002Fstore-management\u002Fdashboard\u002Fproducts\u002Finventory","02.store-management\u002F02.dashboard\u002F03.products\u002F04.inventory",{"title":144,"path":145,"stem":146},"Reviews","\u002Fstore-management\u002Fdashboard\u002Fproducts\u002Freviews","02.store-management\u002F02.dashboard\u002F03.products\u002F05.reviews",{"title":148,"path":149,"stem":150},"Catalogue","\u002Fstore-management\u002Fdashboard\u002Fproducts\u002Fcatalogue","02.store-management\u002F02.dashboard\u002F03.products\u002F06.catalogue",{"title":152,"path":153,"stem":154},"Customers","\u002Fstore-management\u002Fdashboard\u002Fcustomers","02.store-management\u002F02.dashboard\u002F04.customers",{"title":156,"path":157,"stem":158,"children":159,"page":25},"Analytics","\u002Fstore-management\u002Fdashboard\u002Fanalytics","02.store-management\u002F02.dashboard\u002F05.analytics",[160,164],{"title":161,"path":162,"stem":163},"Sales","\u002Fstore-management\u002Fdashboard\u002Fanalytics\u002Fsales","02.store-management\u002F02.dashboard\u002F05.analytics\u002F01.sales",{"title":165,"path":166,"stem":167},"Traffic","\u002Fstore-management\u002Fdashboard\u002Fanalytics\u002Ftraffic","02.store-management\u002F02.dashboard\u002F05.analytics\u002F02.traffic",{"title":169,"path":170,"stem":171},"Coupons","\u002Fstore-management\u002Fdashboard\u002Fcoupons","02.store-management\u002F02.dashboard\u002F06.coupons",{"title":173,"path":174,"stem":175},"Plugins","\u002Fstore-management\u002Fdashboard\u002Fplugins","02.store-management\u002F02.dashboard\u002F07.plugins",{"title":177,"path":178,"stem":179},"Staff Management","\u002Fstore-management\u002Fdashboard\u002Fstaff-management","02.store-management\u002F02.dashboard\u002F08.staff-management",{"title":181,"path":182,"stem":183,"children":184,"page":25},"Settings","\u002Fstore-management\u002Fdashboard\u002Fsettings","02.store-management\u002F02.dashboard\u002F09.settings",[185,188,192,196,200,204,208,212,216,220],{"title":74,"path":186,"stem":187},"\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fgeneral","02.store-management\u002F02.dashboard\u002F09.settings\u002F01.general",{"title":189,"path":190,"stem":191},"Subscription","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fsubscription","02.store-management\u002F02.dashboard\u002F09.settings\u002F02.subscription",{"title":193,"path":194,"stem":195},"Domain","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fdomain","02.store-management\u002F02.dashboard\u002F09.settings\u002F03.domain",{"title":197,"path":198,"stem":199},"Payment","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fpayment","02.store-management\u002F02.dashboard\u002F09.settings\u002F04.payment",{"title":201,"path":202,"stem":203},"Additional Charges","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fadditional-charges","02.store-management\u002F02.dashboard\u002F09.settings\u002F05.additional-charges",{"title":205,"path":206,"stem":207},"Taxes","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Ftaxes","02.store-management\u002F02.dashboard\u002F09.settings\u002F06.taxes",{"title":209,"path":210,"stem":211},"Notifications","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fnotifications","02.store-management\u002F02.dashboard\u002F09.settings\u002F07.notifications",{"title":213,"path":214,"stem":215},"Warehouses","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fwarehouses","02.store-management\u002F02.dashboard\u002F09.settings\u002F08.warehouses",{"title":217,"path":218,"stem":219},"Shipping Rate","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fshipping-rate","02.store-management\u002F02.dashboard\u002F09.settings\u002F09.shipping-rate",{"title":221,"path":222,"stem":223},"Headless","\u002Fstore-management\u002Fdashboard\u002Fsettings\u002Fheadless","02.store-management\u002F02.dashboard\u002F09.settings\u002F10.headless",{"title":225,"path":226,"stem":227,"children":228,"page":25},"Account Settings","\u002Faccount-settings","03.account-settings",[229],{"title":230,"path":231,"stem":232},"Orderain Magic","\u002Faccount-settings\u002Forderain-magic","03.account-settings\u002F01.orderain-magic",{"id":234,"title":221,"body":235,"description":747,"extension":748,"links":749,"meta":750,"navigation":751,"path":222,"seo":752,"stem":223,"__hash__":753},"docs\u002F02.store-management\u002F02.dashboard\u002F09.settings\u002F10.headless.md",{"type":236,"value":237,"toc":729},"minimark",[238,260,263,291,295,300,316,323,356,360,371,380,383,431,436,475,482,513,523,531,535,549,552,556,584,590,600,610,616,620,680,694,705,709,718],[239,240,241,242,245,246,248,249,251,252,255,256,259],"p",{},"The ",[243,244,221],"strong",{}," tab is where you connect your shop to the outside world through\nOrderain's API. Open ",[243,247,181],{}," from the dashboard sidebar and select the\n",[243,250,221],{}," tab to ",[243,253,254],{},"configure allowed origins"," and ",[243,257,258],{},"manage API tokens",".",[239,261,262],{},"It's useful for two kinds of people:",[264,265,266,281],"ul",{},[267,268,269,272,273,276,277,280],"li",{},[243,270,271],{},"Merchants."," Connect an AI assistant like ",[243,274,275],{},"Claude, ChatGPT, or Cursor"," to your\nshop with the ",[243,278,279],{},"MCP server",", so you can manage products, orders, and even your\nstore's design using plain language — no code required.",[267,282,283,286,287,290],{},[243,284,285],{},"Developers."," Build a ",[243,288,289],{},"custom storefront"," on top of Orderain instead of the\nbuilt-in one, powered by your shop's data through the API.",[292,293,294],"note",{},"If you only use the standard Orderain storefront and don't want to connect any\noutside app or AI assistant, you don't need to change anything here.",[296,297,299],"h2",{"id":298},"allowed-origins","Allowed Origins",[301,302,304,305,304,311],"figure",{"style":303},"margin:1rem 0;","\n  ",[306,307],"img",{"src":308,"alt":309,"style":310},"\u002Fimages\u002Fheadless\u002Fallowed-origins.png","The Allowed Origins section with the origin input, Add button, and Save Origins","display:block;width:100%;max-width:860px;height:auto;margin-inline:auto;border-radius:12px;",[312,313,315],"figcaption",{"style":314},"text-align:center;margin-top:0.25rem;font-size:0.875rem;color:var(--ui-text-muted);","Allowed Origins — add up to 3 trusted origins, then Save Origins.",[239,317,318,319,322],{},"Add up to ",[243,320,321],{},"3 allowed origins"," for your shop. These origins are the only ones\nallowed to make API requests to your shop.",[264,324,325,342,349],{},[267,326,327,328,332,333,336,337,341],{},"Enter an origin (for example ",[329,330,331],"code",{},"https:\u002F\u002Fexample.com",") and click ",[243,334,335],{},"Add",". A counter\nshows how many you've added (for example ",[338,339,340],"em",{},"1\u002F3 origins added",").",[267,343,344,345,348],{},"Remove an origin with the ",[243,346,347],{},"×"," next to it.",[267,350,351,352,355],{},"Click ",[243,353,354],{},"Save Origins"," to apply your changes.",[296,357,359],{"id":358},"api-tokens","API Tokens",[239,361,362,363,370],{},"Create and manage API tokens to access your shop data programmatically. The\n",[364,365,369],"a",{"href":366,"rel":367},"https:\u002F\u002Fapi.orderain.com\u002Fdocs\u002Findex.html#tag\u002Fcart",[368],"nofollow","View Documentation"," link opens\nthe full API reference.",[301,372,304,373,304,377],{"style":303},[306,374],{"src":375,"alt":376,"style":310},"\u002Fimages\u002Fheadless\u002Fapi-tokens-list.png","The API Tokens list with Active and Revoked tokens, their scopes, origins, and Revoke buttons",[312,378,379],{"style":314},"The API Tokens list — each token's status, scopes, origin, and Revoke action.",[239,381,382],{},"Each token in the list shows:",[264,384,385,398,404,425],{},[267,386,387,390,391,394,395,259],{},[243,388,389],{},"Name"," and a status badge — ",[243,392,393],{},"Active"," or ",[243,396,397],{},"Revoked",[267,399,400,403],{},[243,401,402],{},"Created \u002F Expires."," The token's date and time.",[267,405,406,409,410,413,414,417,418,421,422,259],{},[243,407,408],{},"Scopes."," The permissions granted, such as ",[329,411,412],{},"read_access",", ",[329,415,416],{},"write_access",",\n",[329,419,420],{},"delete_access",", or ",[329,423,424],{},"page_access",[267,426,427,430],{},[243,428,429],{},"Origins."," The origin the token is tied to.",[432,433,435],"h3",{"id":434},"creating-a-token","Creating a token",[239,437,351,438,441,442,445,446,449,450,413,453,421,456,459,460,463,464,467,468,471,472,259],{},[243,439,440],{},"+ Create New Token"," to open the ",[243,443,444],{},"Create API Token"," dialog. Give the token\na clear, professional ",[243,447,448],{},"Token Name"," that says what it's for (for example\n",[338,451,452],{},"Production Storefront",[338,454,455],{},"Claude Assistant",[338,457,458],{},"Analytics Integration","), add an\n",[243,461,462],{},"Allowed Origin"," (your real domain, such as ",[329,465,466],{},"https:\u002F\u002Fyourstore.com","), and tick the\n",[243,469,470],{},"Permissions"," it needs (Read, Write, Delete, or Page Editing). Then click ",[243,473,474],{},"Create\nToken",[239,476,477,478,481],{},"When it's created, a ",[243,479,480],{},"Token Created Successfully"," dialog appears showing:",[264,483,484,493,501,506],{},[267,485,486,489,490,259],{},[243,487,488],{},"The full token."," Copy it now — ",[338,491,492],{},"you won't be able to see it again",[267,494,495,255,498,259],{},[243,496,497],{},"Token ID",[243,499,500],{},"Shop ID",[267,502,503],{},[243,504,505],{},"Allowed Origins.",[267,507,508,509,512],{},"A ready-made ",[243,510,511],{},"MCP connection URL"," for Claude \u002F ChatGPT \u002F Cursor (see below).",[239,514,515,516,519,520,259],{},"Use the ",[243,517,518],{},"copy"," icon to copy each value, then click ",[243,521,522],{},"I've Saved My Token",[524,525,526,527,530],"warning",{},"The full token is shown ",[243,528,529],{},"only once",", at creation. Copy and store it securely\nstraight away — if you lose it you'll need to create a new one.",[432,532,534],{"id":533},"revoking-a-token","Revoking a token",[239,536,351,537,540,541,544,545,548],{},[243,538,539],{},"Revoke"," on an active token to disable it immediately. A revoked token\n",[243,542,543],{},"can no longer be used"," — any AI assistant or app connected with it stops working\nand ",[243,546,547],{},"can't read or change your shop"," anymore. Revoked tokens stay listed for\nreference but can't be reactivated; create a new token if you need access again.",[524,550,551],{},"Treat API tokens like passwords — anyone with a valid token and an allowed origin\ncan access your shop data within the token's scopes. Revoke any token that is no\nlonger needed or may have been exposed.",[296,553,555],{"id":554},"connect-to-ai-assistants-mcp","Connect to AI assistants (MCP)",[239,557,558,559,561,562,565,566,569,570,573,574,577,578,394,581,259],{},"Orderain provides an ",[243,560,279],{}," so you can ",[243,563,564],{},"manage your shop from Claude,\nChatGPT, or Cursor using natural language"," — for example ",[338,567,568],{},"\"list my shop products\"","\nor ",[338,571,572],{},"\"show my recent orders\"",". You can also ",[243,575,576],{},"change your store's design"," through\nthe AI assistant, for example ",[338,579,580],{},"\"redesign my homepage hero section\"",[338,582,583],{},"\"update the\nfooter links\"",[239,585,241,586,589],{},[243,587,588],{},"MCP Server URL"," is:",[591,592,598],"pre",{"className":593,"code":595,"language":596,"meta":597},[594],"language-text","https:\u002F\u002Fmcp.orderain.com\u002Fmcp\n","text","",[329,599,595],{"__ignoreMap":597},[239,601,602,603,606,607,609],{},"You also need an ",[243,604,605],{},"API token"," to authenticate the connection. The easiest way is to\ncopy the ready-made URL from the ",[243,608,480],{}," dialog (or build it\nyourself), which already includes your token:",[591,611,614],{"className":612,"code":613,"language":596,"meta":597},[594],"https:\u002F\u002Fmcp.orderain.com\u002Fmcp?token=YOUR_TOKEN\n",[329,615,613],{"__ignoreMap":597},[432,617,619],{"id":618},"connecting-claude","Connecting Claude",[621,622,623,627,633,637,642,646,659,663,669,673],"steps",{},[432,624,626],{"id":625},"open-connector-settings","Open connector settings",[239,628,629,630,259],{},"In Claude, go to ",[243,631,632],{},"Settings → Connectors",[432,634,636],{"id":635},"add-a-custom-connector","Add a custom connector",[239,638,351,639,259],{},[243,640,641],{},"Add custom connector",[432,643,645],{"id":644},"set-the-name-and-url","Set the name and URL",[239,647,648,649,651,652,655,656,259],{},"Set the ",[243,650,389],{}," to ",[329,653,654],{},"Orderain"," and paste the MCP URL (with your token in it) as the\n",[243,657,658],{},"URL",[432,660,662],{"id":661},"finish","Finish",[239,664,665,666,668],{},"Leave the OAuth fields empty and click ",[243,667,335],{},". The Orderain tools appear in a new\nchat.",[432,670,672],{"id":671},"try-it","Try it",[239,674,675,676,394,678,259],{},"Ask something like ",[338,677,568],{},[338,679,572],{},[292,681,682,683,255,686,689,690,693],{},"The steps for ",[243,684,685],{},"ChatGPT",[243,687,688],{},"Cursor"," are on the same ",[243,691,692],{},"Connect to AI assistants","\npanel — switch tabs to see setup for each app. They all use the same MCP URL and\ntoken.",[524,695,696,697,700,701,704],{},"Your token grants ",[243,698,699],{},"full access to your shop"," with its permissions. Only share the\nconnection with tools and people you trust, and ",[243,702,703],{},"revoke"," the token if it's exposed\n— once revoked, it can no longer be used from Claude or any other AI assistant.",[296,706,708],{"id":707},"api-documentation","API documentation",[239,710,711,712,717],{},"For endpoints, authentication, and code samples, see the full\n",[364,713,716],{"href":714,"rel":715},"https:\u002F\u002Fheadless.orderain.com\u002Fdocs\u002Findex.html#description\u002Fintroduction",[368],"Orderain Headless API documentation",".\nThe reference covers regions, product categories, products, inventory, shipping,\ntaxes, cart, customers, orders, shop tags, and shop warehouse, and includes client\nlibraries for Shell, Ruby, Node.js, PHP, and Python.",[292,719,720,721,724,725,728],{},"API requests are authenticated with a ",[243,722,723],{},"Bearer Token"," (one of your API tokens) and\nmust come from an ",[243,726,727],{},"allowed origin",". Set both up above before making requests.",{"title":597,"searchDepth":730,"depth":730,"links":731},2,[732,733,738,746],{"id":298,"depth":730,"text":299},{"id":358,"depth":730,"text":359,"children":734},[735,737],{"id":434,"depth":736,"text":435},3,{"id":533,"depth":736,"text":534},{"id":554,"depth":730,"text":555,"children":739},[740,741,742,743,744,745],{"id":618,"depth":736,"text":619},{"id":625,"depth":736,"text":626},{"id":635,"depth":736,"text":636},{"id":644,"depth":736,"text":645},{"id":661,"depth":736,"text":662},{"id":671,"depth":736,"text":672},{"id":707,"depth":730,"text":708},"Configure allowed origins and manage API tokens, connect Claude, ChatGPT, or Cursor to your shop with MCP, or build a custom storefront, from the Headless settings tab.","md",null,{},true,{"title":221,"description":747},"XNrmUtv8OW8mKjkBbKCQsYgTwe5kNA88KIQaykr0QmQ",[755,757],{"title":217,"path":218,"stem":219,"description":756,"children":-1},"Set up shipping zones and rules so customers are charged the right delivery cost at checkout, from the Shipping Rate settings tab.",{"title":230,"path":231,"stem":232,"description":758,"children":-1},"Manage your AI usage, track credit consumption, and buy more AI credits when your balance runs low, from the Orderain Magic page in Account Settings.",1786462028106]