[{"data":1,"prerenderedAt":441,"buildId":442},["ShallowReactive",2],{"docs-\u002Freference\u002Ferrors":3,"docs-nav":365},{"id":4,"title":5,"body":6,"description":357,"extension":358,"meta":359,"navigation":360,"path":361,"seo":362,"stem":363,"__hash__":364},"docs\u002F4.reference\u002F2.errors.md","Errors",{"type":7,"value":8,"toc":354},"minimark",[9,13,63,341,350],[10,11,5],"h1",{"id":12},"errors",[14,15,20],"pre",{"className":16,"code":17,"language":18,"meta":19,"style":19},"language-json shiki shiki-themes github-light","{ \"error\": { \"code\": \"wrong_origin\", \"message\": \"Calls for this business must come from shop.example.com, not evil.example.com.\" } }\n","json","",[21,22,23],"code",{"__ignoreMap":19},[24,25,28,32,36,39,42,45,49,52,55,57,60],"span",{"class":26,"line":27},"line",1,[24,29,31],{"class":30},"sgsFI","{ ",[24,33,35],{"class":34},"sYu0t","\"error\"",[24,37,38],{"class":30},": { ",[24,40,41],{"class":34},"\"code\"",[24,43,44],{"class":30},": ",[24,46,48],{"class":47},"sYBdl","\"wrong_origin\"",[24,50,51],{"class":30},", ",[24,53,54],{"class":34},"\"message\"",[24,56,44],{"class":30},[24,58,59],{"class":47},"\"Calls for this business must come from shop.example.com, not evil.example.com.\"",[24,61,62],{"class":30}," } }\n",[64,65,66,83],"table",{},[67,68,69],"thead",{},[70,71,72,76,80],"tr",{},[73,74,75],"th",{},"HTTP",[73,77,78],{},[21,79,21],{},[73,81,82],{},"Meaning",[84,85,86,100,117,133,145,157,169,181,193,209,221,234,256,268,281,309,325],"tbody",{},[70,87,88,92,97],{},[89,90,91],"td",{},"401",[89,93,94],{},[21,95,96],{},"invalid_key",[89,98,99],{},"The key is missing, wrong, expired or revoked.",[70,101,102,105,110],{},[89,103,104],{},"403",[89,106,107],{},[21,108,109],{},"invalid_business",[89,111,112,113,116],{},"No ",[21,114,115],{},"QwikiPay-Business"," header, or that business isn't yours.",[70,118,119,121,126],{},[89,120,104],{},[89,122,123],{},[21,124,125],{},"business_id_mode_mismatch",[89,127,128,129,132],{},"A ",[21,130,131],{},"qp_biz_live_"," ID sent with test keys, or the other way round.",[70,134,135,137,142],{},[89,136,104],{},[89,138,139],{},[21,140,141],{},"business_not_ready",[89,143,144],{},"Confirm the business's domain first.",[70,146,147,149,154],{},[89,148,104],{},[89,150,151],{},[21,152,153],{},"business_not_live",[89,155,156],{},"The business isn't approved for live payments yet.",[70,158,159,161,166],{},[89,160,104],{},[89,162,163],{},[21,164,165],{},"wrong_origin",[89,167,168],{},"The call came from a page that isn't on the business's domain.",[70,170,171,173,178],{},[89,172,104],{},[89,174,175],{},[21,176,177],{},"origin_required",[89,179,180],{},"Public keys only work from a web page.",[70,182,183,185,190],{},[89,184,104],{},[89,186,187],{},[21,188,189],{},"secret_key_in_browser",[89,191,192],{},"A secret key was sent from a browser. Roll it.",[70,194,195,197,206],{},[89,196,104],{},[89,198,199,202,203],{},[21,200,201],{},"secret_key_required"," \u002F ",[21,204,205],{},"public_key_required",[89,207,208],{},"Wrong kind of key for this call.",[70,210,211,213,218],{},[89,212,104],{},[89,214,215],{},[21,216,217],{},"ip_not_allowed",[89,219,220],{},"Your live key's IP allowlist doesn't include this server.",[70,222,223,226,231],{},[89,224,225],{},"404",[89,227,228],{},[21,229,230],{},"not_found",[89,232,233],{},"No such charge or payment for this business.",[70,235,236,239,247],{},[89,237,238],{},"409",[89,240,241,51,244],{},[21,242,243],{},"reference_used",[21,245,246],{},"idempotency_conflict",[89,248,249,250,255],{},"See ",[251,252,254],"a",{"href":253},"\u002Freference\u002Fidempotency","Idempotency",".",[70,257,258,260,265],{},[89,259,238],{},[89,261,262],{},[21,263,264],{},"not_awaiting_authorization",[89,266,267],{},"The charge isn't waiting for a PIN or code.",[70,269,270,273,278],{},[89,271,272],{},"413",[89,274,275],{},[21,276,277],{},"too_large",[89,279,280],{},"The body is over 32 KB.",[70,282,283,286,306],{},[89,284,285],{},"422",[89,287,288,51,291,51,294,51,297,51,300,51,303],{},[21,289,290],{},"invalid_request",[21,292,293],{},"invalid_amount",[21,295,296],{},"invalid_currency",[21,298,299],{},"invalid_redirect_url",[21,301,302],{},"invalid_card",[21,304,305],{},"invalid_network",[89,307,308],{},"Fix the field the message names.",[70,310,311,314,322],{},[89,312,313],{},"429",[89,315,316,51,319],{},[21,317,318],{},"rate_limited",[21,320,321],{},"blocked",[89,323,324],{},"Slow down, or too many wrong keys from your address.",[70,326,327,330,338],{},[89,328,329],{},"502, 503",[89,331,332,51,335],{},[21,333,334],{},"processor_unavailable",[21,336,337],{},"payments_unavailable",[89,339,340],{},"Try again shortly. Nothing was charged twice.",[342,343,344,345,349],"p",{},"Every refused call is listed in ",[346,347,348],"strong",{},"Developers → Recent API calls"," with its reason.",[351,352,353],"style",{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}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);}",{"title":19,"searchDepth":355,"depth":355,"links":356},2,[],"Every error has a code you can act on.","md",{},true,"\u002Freference\u002Ferrors",{"title":5,"description":357},"4.reference\u002F2.errors","WMd2q4tMeVNVwGE2tUAE1S_bPgCC3whvyeCJ51WA-GI",[366,370,392,417,429],{"title":367,"path":368,"stem":369},"QwikiPay API","\u002F","0.index",{"title":371,"path":372,"stem":373,"children":374,"page":391},"Getting Started","\u002Fgetting-started","1.getting-started",[375,379,383,387],{"title":376,"path":377,"stem":378},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F1.quickstart",{"title":380,"path":381,"stem":382},"Test and live mode","\u002Fgetting-started\u002Ftest-and-live-mode","1.getting-started\u002F2.test-and-live-mode",{"title":384,"path":385,"stem":386},"Authentication","\u002Fgetting-started\u002Fauthentication","1.getting-started\u002F3.authentication",{"title":388,"path":389,"stem":390},"Businesses","\u002Fgetting-started\u002Fbusinesses","1.getting-started\u002F4.businesses",false,{"title":393,"path":394,"stem":395,"children":396,"page":391},"Payments","\u002Fpayments","2.payments",[397,401,405,409,413],{"title":398,"path":399,"stem":400},"Drop-in checkout","\u002Fpayments\u002Fdrop-in","2.payments\u002F1.drop-in",{"title":402,"path":403,"stem":404},"Hosted checkout","\u002Fpayments\u002Fhosted-checkout","2.payments\u002F2.hosted-checkout",{"title":406,"path":407,"stem":408},"Direct charges","\u002Fpayments\u002Fdirect-charges","2.payments\u002F3.direct-charges",{"title":410,"path":411,"stem":412},"Confirm a payment","\u002Fpayments\u002Fconfirm-a-payment","2.payments\u002F4.confirm-a-payment",{"title":414,"path":415,"stem":416},"Disputes","\u002Fpayments\u002Fdisputes","2.payments\u002F5.disputes",{"title":418,"path":419,"stem":420,"children":421,"page":391},"Webhooks","\u002Fwebhooks","3.webhooks",[422,425],{"title":418,"path":423,"stem":424},"\u002Fwebhooks\u002Foverview","3.webhooks\u002F1.overview",{"title":426,"path":427,"stem":428},"Verify signatures","\u002Fwebhooks\u002Fverify-signatures","3.webhooks\u002F2.verify-signatures",{"title":430,"path":431,"stem":432,"children":433,"page":391},"Reference","\u002Freference","4.reference",[434,436,437],{"title":254,"path":253,"stem":435},"4.reference\u002F1.idempotency",{"title":5,"path":361,"stem":363},{"title":438,"path":439,"stem":440},"Countries and payment methods","\u002Freference\u002Fcountries","4.reference\u002F3.countries",1796429326150,"f8f2bc0b-2f84-41e1-84f7-47b53c87c561"]