[{"data":1,"prerenderedAt":516},["ShallowReactive",2],{"navigation_docs":3,"-api-fetch-order-pdf":55,"-api-fetch-order-pdf-surround":511},[4,30],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":14,"path":15,"stem":16},"Authentication","\u002Fgetting-started\u002Fauthentication","1.getting-started\u002F2.authentication",{"title":18,"path":19,"stem":20},"Concepts","\u002Fgetting-started\u002Fconcepts","1.getting-started\u002F3.concepts",{"title":22,"path":23,"stem":24},"Order keys","\u002Fgetting-started\u002Forder-keys","1.getting-started\u002F4.order-keys",{"title":26,"path":27,"stem":28},"Errors and retries","\u002Fgetting-started\u002Ferrors-and-retries","1.getting-started\u002F5.errors-and-retries",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"API","\u002Fapi","2.api",[35,39,43,47,51],{"title":36,"path":37,"stem":38},"Create order","\u002Fapi\u002Fcreate-order","2.api\u002F1.create-order",{"title":40,"path":41,"stem":42},"Fetch printers","\u002Fapi\u002Ffetch-printers","2.api\u002F2.fetch-printers",{"title":44,"path":45,"stem":46},"Print orders","\u002Fapi\u002Fprint-orders","2.api\u002F3.print-orders",{"title":48,"path":49,"stem":50},"Fetch order PDF","\u002Fapi\u002Ffetch-order-pdf","2.api\u002F4.fetch-order-pdf",{"title":52,"path":53,"stem":54},"Links","\u002Fapi\u002Flinks","2.api\u002F5.links",{"id":56,"title":48,"body":57,"description":504,"extension":505,"links":506,"meta":507,"navigation":508,"path":49,"seo":509,"stem":50,"__hash__":510},"docs\u002F2.api\u002F4.fetch-order-pdf.md",{"type":58,"value":59,"toc":497},"minimark",[60,64,68,85,90,106,110,146,161,165,212,216,219,284,287,335,338,386,390,393,413,416,493],[61,62,48],"h1",{"id":63},"fetch-order-pdf",[65,66,67],"p",{},"Download the rendered PDF for an order so your WMS, OMS, or print pipeline can send it to an existing printer queue.",[69,70,75],"pre",{"className":71,"code":72,"language":73,"meta":74,"style":74},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","GET https:\u002F\u002Fapp.yuzu.so\u002Fapi\u002Forders\u002F{orderIdOrKey}\u002Fpdf\n","http","",[76,77,78],"code",{"__ignoreMap":74},[79,80,83],"span",{"class":81,"line":82},"line",1,[79,84,72],{},[86,87,89],"h2",{"id":88},"headers","Headers",[69,91,93],{"className":71,"code":92,"language":73,"meta":74,"style":74},"X-API-Key: YOUR_API_KEY\nAccept: application\u002Fpdf\n",[76,94,95,100],{"__ignoreMap":74},[79,96,97],{"class":81,"line":82},[79,98,99],{},"X-API-Key: YOUR_API_KEY\n",[79,101,103],{"class":81,"line":102},2,[79,104,105],{},"Accept: application\u002Fpdf\n",[86,107,109],{"id":108},"path-parameters","Path parameters",[111,112,113,129],"table",{},[114,115,116],"thead",{},[117,118,119,123,126],"tr",{},[120,121,122],"th",{},"Parameter",[120,124,125],{},"Type",[120,127,128],{},"Description",[130,131,132],"tbody",{},[117,133,134,140,143],{},[135,136,137],"td",{},[76,138,139],{},"orderIdOrKey",[135,141,142],{},"string",[135,144,145],{},"Yuzu order UUID or valid order key. URL-encode order keys when using them in the path.",[65,147,148,149,152,153,156,157,160],{},"Order keys are built as ",[76,150,151],{},"{source}-{sourceId}",". For app-ingested orders, such as Shopify orders, ",[76,154,155],{},"source"," is the installed app ID, not the app type or slug. See ",[158,159,22],"a",{"href":23},".",[86,162,164],{"id":163},"query-parameters","Query parameters",[111,166,167,177],{},[114,168,169],{},[117,170,171,173,175],{},[120,172,122],{},[120,174,125],{},[120,176,128],{},[130,178,179,191],{},[117,180,181,186,188],{},[135,182,183],{},[76,184,185],{},"documentId",[135,187,142],{},[135,189,190],{},"Optional. Fetch a specific order document PDF.",[117,192,193,198,201],{},[135,194,195],{},[76,196,197],{},"all",[135,199,200],{},"boolean",[135,202,203,204,207,208,211],{},"Optional. Set to ",[76,205,206],{},"true"," or ",[76,209,210],{},"1"," to merge all downloadable documents for the order into one PDF.",[86,213,215],{"id":214},"example","Example",[65,217,218],{},"Fetch by Yuzu order ID:",[69,220,224],{"className":221,"code":222,"language":223,"meta":74,"style":74},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl 'https:\u002F\u002Fapp.yuzu.so\u002Fapi\u002Forders\u002Fa2cb2c3d-4e5f-6g7h-8i9j-123a45c67890\u002Fpdf' \\\n  --header 'X-API-Key: YOUR_API_KEY' \\\n  --header 'Accept: application\u002Fpdf' \\\n  --output order.pdf\n","bash",[76,225,226,247,261,275],{"__ignoreMap":74},[79,227,228,232,236,240,243],{"class":81,"line":82},[79,229,231],{"class":230},"sBMFI","curl",[79,233,235],{"class":234},"sMK4o"," '",[79,237,239],{"class":238},"sfazB","https:\u002F\u002Fapp.yuzu.so\u002Fapi\u002Forders\u002Fa2cb2c3d-4e5f-6g7h-8i9j-123a45c67890\u002Fpdf",[79,241,242],{"class":234},"'",[79,244,246],{"class":245},"sTEyZ"," \\\n",[79,248,249,252,254,257,259],{"class":81,"line":102},[79,250,251],{"class":238},"  --header",[79,253,235],{"class":234},[79,255,256],{"class":238},"X-API-Key: YOUR_API_KEY",[79,258,242],{"class":234},[79,260,246],{"class":245},[79,262,264,266,268,271,273],{"class":81,"line":263},3,[79,265,251],{"class":238},[79,267,235],{"class":234},[79,269,270],{"class":238},"Accept: application\u002Fpdf",[79,272,242],{"class":234},[79,274,246],{"class":245},[79,276,278,281],{"class":81,"line":277},4,[79,279,280],{"class":238},"  --output",[79,282,283],{"class":238}," order.pdf\n",[65,285,286],{},"Fetch by app-ingested order key:",[69,288,290],{"className":221,"code":289,"language":223,"meta":74,"style":74},"curl 'https:\u002F\u002Fapp.yuzu.so\u002Fapi\u002Forders\u002Fa2cb2c3d-4e5f-6g7h-8i9j-0k1l2m3n4o5p-1234567890\u002Fpdf' \\\n  --header 'X-API-Key: YOUR_API_KEY' \\\n  --header 'Accept: application\u002Fpdf' \\\n  --output order.pdf\n",[76,291,292,305,317,329],{"__ignoreMap":74},[79,293,294,296,298,301,303],{"class":81,"line":82},[79,295,231],{"class":230},[79,297,235],{"class":234},[79,299,300],{"class":238},"https:\u002F\u002Fapp.yuzu.so\u002Fapi\u002Forders\u002Fa2cb2c3d-4e5f-6g7h-8i9j-0k1l2m3n4o5p-1234567890\u002Fpdf",[79,302,242],{"class":234},[79,304,246],{"class":245},[79,306,307,309,311,313,315],{"class":81,"line":102},[79,308,251],{"class":238},[79,310,235],{"class":234},[79,312,256],{"class":238},[79,314,242],{"class":234},[79,316,246],{"class":245},[79,318,319,321,323,325,327],{"class":81,"line":263},[79,320,251],{"class":238},[79,322,235],{"class":234},[79,324,270],{"class":238},[79,326,242],{"class":234},[79,328,246],{"class":245},[79,330,331,333],{"class":81,"line":277},[79,332,280],{"class":238},[79,334,283],{"class":238},[65,336,337],{},"Fetch and merge all downloadable documents for an order:",[69,339,341],{"className":221,"code":340,"language":223,"meta":74,"style":74},"curl 'https:\u002F\u002Fapp.yuzu.so\u002Fapi\u002Forders\u002Fa2cb2c3d-4e5f-6g7h-8i9j-123a45c67890\u002Fpdf?all=true' \\\n  --header 'X-API-Key: YOUR_API_KEY' \\\n  --header 'Accept: application\u002Fpdf' \\\n  --output order.pdf\n",[76,342,343,356,368,380],{"__ignoreMap":74},[79,344,345,347,349,352,354],{"class":81,"line":82},[79,346,231],{"class":230},[79,348,235],{"class":234},[79,350,351],{"class":238},"https:\u002F\u002Fapp.yuzu.so\u002Fapi\u002Forders\u002Fa2cb2c3d-4e5f-6g7h-8i9j-123a45c67890\u002Fpdf?all=true",[79,353,242],{"class":234},[79,355,246],{"class":245},[79,357,358,360,362,364,366],{"class":81,"line":102},[79,359,251],{"class":238},[79,361,235],{"class":234},[79,363,256],{"class":238},[79,365,242],{"class":234},[79,367,246],{"class":245},[79,369,370,372,374,376,378],{"class":81,"line":263},[79,371,251],{"class":238},[79,373,235],{"class":234},[79,375,270],{"class":238},[79,377,242],{"class":234},[79,379,246],{"class":245},[79,381,382,384],{"class":81,"line":277},[79,383,280],{"class":238},[79,385,283],{"class":238},[86,387,389],{"id":388},"response","Response",[65,391,392],{},"Successful requests return the PDF bytes directly.",[69,394,396],{"className":71,"code":395,"language":73,"meta":74,"style":74},"HTTP\u002F1.1 200 OK\nContent-Type: application\u002Fpdf\nContent-Disposition: inline; filename=\"order-a2cb2c3d-4e5f-6g7h-8i9j-123a45c67890.pdf\"\n",[76,397,398,403,408],{"__ignoreMap":74},[79,399,400],{"class":81,"line":82},[79,401,402],{},"HTTP\u002F1.1 200 OK\n",[79,404,405],{"class":81,"line":102},[79,406,407],{},"Content-Type: application\u002Fpdf\n",[79,409,410],{"class":81,"line":263},[79,411,412],{},"Content-Disposition: inline; filename=\"order-a2cb2c3d-4e5f-6g7h-8i9j-123a45c67890.pdf\"\n",[65,414,415],{},"Common status codes:",[111,417,418,428],{},[114,419,420],{},[117,421,422,425],{},[120,423,424],{},"Status",[120,426,427],{},"Meaning",[130,429,430,443,453,463,473,483],{},[117,431,432,437],{},[135,433,434],{},[76,435,436],{},"200",[135,438,439,440,160],{},"PDF returned as ",[76,441,442],{},"application\u002Fpdf",[117,444,445,450],{},[135,446,447],{},[76,448,449],{},"400",[135,451,452],{},"Invalid query parameter.",[117,454,455,460],{},[135,456,457],{},[76,458,459],{},"401",[135,461,462],{},"Missing, malformed, or invalid API key.",[117,464,465,470],{},[135,466,467],{},[76,468,469],{},"404",[135,471,472],{},"No matching order or downloadable document was found.",[117,474,475,480],{},[135,476,477],{},[76,478,479],{},"502",[135,481,482],{},"The order exists, but Yuzu could not fetch the rendered PDF from the render service. Retry once, then contact support if it persists.",[117,484,485,490],{},[135,486,487],{},[76,488,489],{},"5xx",[135,491,492],{},"Temporary service issue, or the order key could not be resolved. Verify the order ID or key and retry with backoff.",[494,495,496],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":74,"searchDepth":102,"depth":102,"links":498},[499,500,501,502,503],{"id":88,"depth":102,"text":89},{"id":108,"depth":102,"text":109},{"id":163,"depth":102,"text":164},{"id":214,"depth":102,"text":215},{"id":388,"depth":102,"text":389},"Download the rendered PDF for a Yuzu order.","md",null,{},true,{"title":48,"description":504},"Z0plst1DRIPBmf-z9IHDj-KIhJvcjG84MplZihS7NsU",[512,514],{"title":44,"path":45,"stem":46,"description":513,"children":-1},"Send Yuzu orders to print.",{"title":52,"path":53,"stem":54,"description":515,"children":-1},"Match orders across sources before Yuzu merges them.",1780070562371]