[{"data":1,"prerenderedAt":1908},["ShallowReactive",2],{"api-nav":3,"api-spec:index":362,"api-spec:op:pay-applications-from-wallet":677,"api-permissions-guide":1187,"api-reference-doc:pay-applications-from-wallet":1188},[4,28,57,104,124,328,342],{"id":5,"title":6,"links":7,"groups":27},"start","Start here",[8,11,15,18,21,24],{"title":9,"to":10},"Overview","\u002Fapi",{"title":12,"to":13,"status":14},"Quickstart","\u002Fapi\u002Fquickstart","available",{"title":16,"to":17,"status":14},"Environments","\u002Fapi\u002Fenvironments",{"title":19,"to":20,"status":14},"Authentication","\u002Fapi\u002Fauthentication",{"title":22,"to":23,"status":14},"Organizations","\u002Fapi\u002Forganizations",{"title":25,"to":26,"status":14},"Permissions","\u002Fapi\u002Fpermissions",[],{"id":29,"title":30,"links":31,"groups":56},"concepts","Concepts",[32,35,38,41,44,47,50,53],{"title":33,"to":34,"status":14},"Requests and responses","\u002Fapi\u002Frequests-and-responses",{"title":36,"to":37,"status":14},"Identifiers","\u002Fapi\u002Fidentifiers",{"title":39,"to":40,"status":14},"Pagination","\u002Fapi\u002Fpagination",{"title":42,"to":43},"Errors","\u002Fapi\u002Ferrors",{"title":45,"to":46,"status":14},"Rate limits","\u002Fapi\u002Frate-limits",{"title":48,"to":49,"status":14},"Retries","\u002Fapi\u002Fretries-and-idempotency",{"title":51,"to":52,"status":14},"Security","\u002Fapi\u002Fsecurity",{"title":54,"to":55,"status":14},"Versioning","\u002Fapi\u002Fversioning",[],{"id":58,"title":59,"links":60,"groups":103},"resources","Guides",[61,64,67,70,73,76,79,82,85,88,91,94,97,100],{"title":62,"to":63,"status":14},"Students","\u002Fapi\u002Fguides\u002Fstudents",{"title":65,"to":66,"status":14},"Bulk registration","\u002Fapi\u002Fguides\u002Fbulk-registration",{"title":68,"to":69,"status":14},"Passwords","\u002Fapi\u002Fguides\u002Fpasswords",{"title":71,"to":72,"status":14},"Supervisors","\u002Fapi\u002Fguides\u002Fsupervisors",{"title":74,"to":75,"status":14},"Reference data","\u002Fapi\u002Fguides\u002Freference-data",{"title":77,"to":78,"status":14},"API account","\u002Fapi\u002Fguides\u002Fapi-account",{"title":80,"to":81,"status":14},"Sign-in links","\u002Fapi\u002Fguides\u002Fsign-in-links",{"title":83,"to":84,"status":14},"Exams","\u002Fapi\u002Fguides\u002Fexams",{"title":86,"to":87,"status":14},"Applications","\u002Fapi\u002Fguides\u002Fapplications",{"title":89,"to":90,"status":14},"Settling payments","\u002Fapi\u002Fguides\u002Fsettling-payments",{"title":92,"to":93,"status":14},"Wallet","\u002Fapi\u002Fguides\u002Fwallet",{"title":95,"to":96,"status":14},"Group challenges","\u002Fapi\u002Fguides\u002Fgroup-challenges",{"title":98,"to":99,"status":14},"Certificates and reports","\u002Fapi\u002Fguides\u002Fcertificates-and-reports",{"title":101,"to":102,"status":14},"Build your own client","\u002Fapi\u002Fclients\u002Fbuild-your-own",[],{"id":105,"title":106,"links":107,"groups":123},"tutorials","Tutorials",[108,111,114,117,120],{"title":109,"to":110,"status":14},"Register and apply","\u002Fapi\u002Ftutorials\u002Fregister-and-apply",{"title":112,"to":113,"status":14},"Send a student to the olympiad's site","\u002Fapi\u002Ftutorials\u002Fsend-student-to-panel",{"title":115,"to":116,"status":14},"Change an application","\u002Fapi\u002Ftutorials\u002Fchange-an-application",{"title":118,"to":119,"status":14},"Collect results","\u002Fapi\u002Ftutorials\u002Fcollect-results",{"title":121,"to":122,"status":14},"Token handling","\u002Fapi\u002Ftutorials\u002Ftoken-handling",[],{"id":125,"title":126,"links":127,"groups":134},"reference","Reference",[128,131],{"title":129,"to":130},"All endpoints","\u002Fapi\u002Freference",{"title":132,"to":133},"Sandbox console","\u002Fapi\u002Fconsole",[135,144,154,163,187,227,233,251,282,298],{"tag":136,"slug":137,"links":138},"Health","health",[139],{"title":140,"to":141,"method":142,"deprecated":143},"Check that the API is up","\u002Fapi\u002Freference\u002Fget-health","GET",false,{"tag":77,"slug":145,"links":146},"api-account",[147,151],{"title":148,"to":149,"method":150,"deprecated":143},"Revoke the token you send, before it expires","\u002Fapi\u002Freference\u002Frevoke-token","POST",{"title":152,"to":153,"method":142,"deprecated":143},"Fetch the API account your token belongs to","\u002Fapi\u002Freference\u002Fget-current-api-account",{"tag":92,"slug":155,"links":156},"wallet",[157,160],{"title":158,"to":159,"method":142,"deprecated":143},"Read your wallet: credits granted, spent and remaining","\u002Fapi\u002Freference\u002Fget-wallet",{"title":161,"to":162,"method":142,"deprecated":143},"List your wallet history","\u002Fapi\u002Freference\u002Flist-wallet-entries",{"tag":74,"slug":164,"links":165},"reference-data",[166,169,172,175,178,181,184],{"title":167,"to":168,"method":142,"deprecated":143},"List the countries a student can be registered in","\u002Fapi\u002Freference\u002Flist-countries",{"title":170,"to":171,"method":142,"deprecated":143},"Fetch one country by its id","\u002Fapi\u002Freference\u002Fget-country",{"title":173,"to":174,"method":142,"deprecated":143},"List the subdivisions (states) of a country","\u002Fapi\u002Freference\u002Flist-country-subdivisions",{"title":176,"to":177,"method":142,"deprecated":143},"List the grades a student can be registered with","\u002Fapi\u002Freference\u002Flist-grades",{"title":179,"to":180,"method":142,"deprecated":143},"Fetch one grade by its id","\u002Fapi\u002Freference\u002Fget-grade",{"title":182,"to":183,"method":142,"deprecated":143},"List the organizations and their ids","\u002Fapi\u002Freference\u002Flist-organizations",{"title":185,"to":186,"method":142,"deprecated":143},"Fetch one organization by its id","\u002Fapi\u002Freference\u002Fget-organization",{"tag":62,"slug":188,"links":189},"students",[190,193,196,199,202,205,208,212,215,218,221,224],{"title":191,"to":192,"method":142,"deprecated":143},"List your students","\u002Fapi\u002Freference\u002Flist-students",{"title":194,"to":195,"method":150,"deprecated":143},"Register a student","\u002Fapi\u002Freference\u002Fregister-student",{"title":197,"to":198,"method":150,"deprecated":143},"Check a registration without registering the student","\u002Fapi\u002Freference\u002Fcheck-student-registration",{"title":200,"to":201,"method":150,"deprecated":143},"Register many students at once","\u002Fapi\u002Freference\u002Fcreate-student-import",{"title":203,"to":204,"method":142,"deprecated":143},"Follow a batch of students you sent","\u002Fapi\u002Freference\u002Fget-student-import",{"title":206,"to":207,"method":142,"deprecated":143},"Fetch one of your students","\u002Fapi\u002Freference\u002Fget-student",{"title":209,"to":210,"method":211,"deprecated":143},"Update one of your students","\u002Fapi\u002Freference\u002Fupdate-student","PUT",{"title":213,"to":214,"method":211,"deprecated":143},"Set the sign-in password of one of your students","\u002Fapi\u002Freference\u002Fset-student-password",{"title":216,"to":217,"method":142,"deprecated":143},"List your students who can use this organization","\u002Fapi\u002Freference\u002Flist-org-students",{"title":219,"to":220,"method":142,"deprecated":143},"Fetch one of your students, if they can use this organization","\u002Fapi\u002Freference\u002Fget-org-student",{"title":222,"to":223,"method":211,"deprecated":143},"Update one of your students and give them access to this organization","\u002Fapi\u002Freference\u002Fupdate-org-student",{"title":225,"to":226,"method":211,"deprecated":143},"Link one of your students to a supervisor on this organization","\u002Fapi\u002Freference\u002Flink-student-supervisor",{"tag":80,"slug":228,"links":229},"sign-in-links",[230],{"title":231,"to":232,"method":150,"deprecated":143},"Create a single-use sign-in link for one of your students","\u002Fapi\u002Freference\u002Fcreate-signin-link",{"tag":83,"slug":234,"links":235},"exams",[236,239,242,245,248],{"title":237,"to":238,"method":142,"deprecated":143},"List the exams open for applications","\u002Fapi\u002Freference\u002Flist-exams",{"title":240,"to":241,"method":142,"deprecated":143},"List an organization’s exam categories","\u002Fapi\u002Freference\u002Flist-exam-categories",{"title":243,"to":244,"method":142,"deprecated":143},"Fetch one exam category","\u002Fapi\u002Freference\u002Fget-exam-category",{"title":246,"to":247,"method":142,"deprecated":143},"List the exams one of your students can apply to","\u002Fapi\u002Freference\u002Flist-available-exams",{"title":249,"to":250,"method":142,"deprecated":143},"Fetch one exam that is open for applications","\u002Fapi\u002Freference\u002Fget-exam",{"tag":86,"slug":252,"links":253},"applications",[254,257,260,263,266,269,272,275,279],{"title":255,"to":256,"method":142,"deprecated":143},"List your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-applications",{"title":258,"to":259,"method":150,"deprecated":143},"Enter one of your students for an exam","\u002Fapi\u002Freference\u002Fcreate-application",{"title":261,"to":262,"method":142,"deprecated":143},"List your students’ applications for one exam","\u002Fapi\u002Freference\u002Flist-exam-applications",{"title":264,"to":265,"method":142,"deprecated":143},"List one of your students’ applications in this organization","\u002Fapi\u002Freference\u002Flist-student-applications",{"title":267,"to":268,"method":150,"deprecated":143},"Pay several applications from your wallet","\u002Fapi\u002Freference\u002Fpay-applications-from-wallet",{"title":270,"to":271,"method":142,"deprecated":143},"Fetch one of your students’ applications","\u002Fapi\u002Freference\u002Fget-application",{"title":273,"to":274,"method":211,"deprecated":143},"Move one of your students’ applications to another exam","\u002Fapi\u002Freference\u002Fmove-application",{"title":276,"to":277,"method":278,"deprecated":143},"Withdraw one of your students from an exam","\u002Fapi\u002Freference\u002Fdelete-application","DELETE",{"title":280,"to":281,"method":150,"deprecated":143},"Pay one application from your wallet","\u002Fapi\u002Freference\u002Fpay-application-from-wallet",{"tag":283,"slug":284,"links":285},"Documents","documents",[286,289,292,295],{"title":287,"to":288,"method":142,"deprecated":143},"Download a certificate file","\u002Fapi\u002Freference\u002Fdownload-certificate",{"title":290,"to":291,"method":142,"deprecated":143},"List one of your students’ released certificates","\u002Fapi\u002Freference\u002Flist-student-certificates",{"title":293,"to":294,"method":142,"deprecated":143},"Download a result report file","\u002Fapi\u002Freference\u002Fdownload-report",{"title":296,"to":297,"method":142,"deprecated":143},"List one of your students’ released result reports","\u002Fapi\u002Freference\u002Flist-student-reports",{"tag":95,"slug":299,"links":300},"group-challenges",[301,304,307,310,313,316,319,322,325],{"title":302,"to":303,"method":142,"deprecated":143},"List the group challenges an organization runs","\u002Fapi\u002Freference\u002Flist-group-challenges",{"title":305,"to":306,"method":142,"deprecated":143},"Fetch one group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge",{"title":308,"to":309,"method":142,"deprecated":143},"List the groups your students are in for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-groups",{"title":311,"to":312,"method":142,"deprecated":143},"Fetch one group, with its steps and files","\u002Fapi\u002Freference\u002Fget-group-challenge-group",{"title":314,"to":315,"method":142,"deprecated":143},"List what has happened in one group","\u002Fapi\u002Freference\u002Flist-group-challenge-activity",{"title":317,"to":318,"method":150,"deprecated":143},"Send a group’s finished work for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-work",{"title":320,"to":321,"method":150,"deprecated":143},"Submit one step of a group for one of your students","\u002Fapi\u002Freference\u002Fsubmit-group-challenge-step",{"title":323,"to":324,"method":142,"deprecated":143},"List your students’ eligibility and groups for a group challenge","\u002Fapi\u002Freference\u002Flist-group-challenge-students",{"title":326,"to":327,"method":142,"deprecated":143},"Fetch one of your students’ eligibility and group for a group challenge","\u002Fapi\u002Freference\u002Fget-group-challenge-student",{"id":329,"title":330,"links":331,"groups":341},"agents","AI agents",[332,335,338],{"title":333,"to":334},"AI connections","\u002Fapi\u002Fmcp",{"title":336,"to":337},"What it can do","\u002Fapi\u002Fmcp\u002Ftools",{"title":339,"to":340},"Agent skills","\u002Fapi\u002Fskills",[],{"id":343,"title":344,"links":345,"groups":361},"help","Help",[346,349,352,355,358],{"title":347,"to":348,"status":14},"Glossary","\u002Fapi\u002Fglossary",{"title":350,"to":351,"status":14},"FAQ","\u002Fapi\u002Ffaq",{"title":353,"to":354,"status":14},"Troubleshooting","\u002Fapi\u002Ftroubleshooting",{"title":356,"to":357,"status":14},"Support","\u002Fapi\u002Fsupport",{"title":359,"to":360},"Changelog","\u002Fapi\u002Fchangelog",[],{"title":363,"version":364,"description":365,"baseUrl":366,"groups":367},"Main Team API","1.7.1","Register your students, enter them for exams, follow their applications, download their certificates and reports, and sign them in to an olympiad’s site.\n\nEvery operation except the health check needs a bearer token: a JWT you sign yourself with HS256 and your account’s `apiSecret`. Put your `apiKey` in both the `kid` header and the `sub` claim, and set `iat` and `exp` at most 3600 seconds apart. Every authentication failure answers the same `401 unauthorized`.","https:\u002F\u002Fapi.main-team.org",[368,379,394,408,449,514,522,552,602,627],{"tag":136,"slug":137,"description":369,"guide":17,"operations":370},"Whether the API is up. No token needed, so it is the first call to make against an environment.",[371],{"operationId":372,"slug":373,"method":142,"path":374,"tag":136,"summary":140,"deprecated":143,"public":375,"permission":376,"scope":377,"order":378},"getHealth","get-health","\u002Fv1\u002Fhealth",true,null,"public",1,{"tag":77,"slug":145,"description":380,"guide":78,"operations":381},"The account your token belongs to, and revoking a token before it expires.",[382,389],{"operationId":383,"slug":384,"method":150,"path":385,"tag":77,"summary":148,"deprecated":143,"public":143,"permission":386,"scope":387,"order":388},"revokeToken","revoke-token","\u002Fv1\u002Fapi-account\u002Frevoke-token","api\u002F*:$org:$ID","flat",2,{"operationId":390,"slug":391,"method":142,"path":392,"tag":77,"summary":152,"deprecated":143,"public":143,"permission":386,"scope":387,"order":393},"getCurrentApiAccount","get-current-api-account","\u002Fv1\u002Fapi-account\u002Fvalidate-me",3,{"tag":92,"slug":155,"description":395,"guide":93,"operations":396},"The credits Main Team gave you, for each olympiad, and the history of every credit added and spent. One credit pays one priced application; the payment operations are under Applications.",[397,403],{"operationId":398,"slug":399,"method":142,"path":400,"tag":92,"summary":158,"deprecated":143,"public":143,"permission":401,"scope":387,"order":402},"getWallet","get-wallet","\u002Fv1\u002Fwallet","wallet\u002Fread:$org:$ID",4,{"operationId":404,"slug":405,"method":142,"path":406,"tag":92,"summary":161,"deprecated":143,"public":143,"permission":401,"scope":387,"order":407},"listWalletEntries","list-wallet-entries","\u002Fv1\u002Fwallet\u002Fentries",5,{"tag":74,"slug":164,"description":409,"guide":75,"operations":410},"Countries, grades and organizations. A student’s `country` and `grade` take these `_id`s, and so does every `:organizationId` in a path.",[411,417,422,427,433,438,444],{"operationId":412,"slug":413,"method":142,"path":414,"tag":74,"summary":167,"deprecated":143,"public":143,"permission":415,"scope":387,"order":416},"listCountries","list-countries","\u002Fv1\u002Fcountry","country\u002Fread:$org:$ID",6,{"operationId":418,"slug":419,"method":142,"path":420,"tag":74,"summary":170,"deprecated":143,"public":143,"permission":415,"scope":387,"order":421},"getCountry","get-country","\u002Fv1\u002Fcountry\u002F{id}",7,{"operationId":423,"slug":424,"method":142,"path":425,"tag":74,"summary":173,"deprecated":143,"public":143,"permission":415,"scope":387,"order":426},"listCountrySubdivisions","list-country-subdivisions","\u002Fv1\u002Fcountry\u002F{id}\u002Fsubdivision",8,{"operationId":428,"slug":429,"method":142,"path":430,"tag":74,"summary":176,"deprecated":143,"public":143,"permission":431,"scope":387,"order":432},"listGrades","list-grades","\u002Fv1\u002Fgrade","grade\u002Fread:$org:$ID",9,{"operationId":434,"slug":435,"method":142,"path":436,"tag":74,"summary":179,"deprecated":143,"public":143,"permission":431,"scope":387,"order":437},"getGrade","get-grade","\u002Fv1\u002Fgrade\u002F{id}",10,{"operationId":439,"slug":440,"method":142,"path":441,"tag":74,"summary":182,"deprecated":143,"public":143,"permission":442,"scope":387,"order":443},"listOrganizations","list-organizations","\u002Fv1\u002Forganization","organization\u002Fread:$org:$ID",11,{"operationId":445,"slug":446,"method":142,"path":447,"tag":74,"summary":185,"deprecated":143,"public":143,"permission":442,"scope":387,"order":448},"getOrganization","get-organization","\u002Fv1\u002Forganization\u002F{id}",12,{"tag":62,"slug":188,"description":450,"guide":63,"operations":451},"Registering your students, reading and updating them, setting a password, and what each organization holds for them. You only ever see the students your account registered.",[452,458,463,468,473,478,483,488,494,500,505,509],{"operationId":453,"slug":454,"method":142,"path":455,"tag":62,"summary":191,"deprecated":143,"public":143,"permission":456,"scope":387,"order":457},"listStudents","list-students","\u002Fv1\u002Fstudent","student\u002Fread:$org:$ID",13,{"operationId":459,"slug":460,"method":150,"path":455,"tag":62,"summary":194,"deprecated":143,"public":143,"permission":461,"scope":387,"order":462},"registerStudent","register-student","student\u002Fcreate:$org:$ID",14,{"operationId":464,"slug":465,"method":150,"path":466,"tag":62,"summary":197,"deprecated":143,"public":143,"permission":461,"scope":387,"order":467},"checkStudentRegistration","check-student-registration","\u002Fv1\u002Fstudent\u002Fcheck",15,{"operationId":469,"slug":470,"method":150,"path":471,"tag":62,"summary":200,"deprecated":143,"public":143,"permission":461,"scope":387,"order":472},"createStudentImport","create-student-import","\u002Fv1\u002Fstudent\u002Fimport",16,{"operationId":474,"slug":475,"method":142,"path":476,"tag":62,"summary":203,"deprecated":143,"public":143,"permission":461,"scope":387,"order":477},"getStudentImport","get-student-import","\u002Fv1\u002Fstudent\u002Fimport\u002F{importId}",17,{"operationId":479,"slug":480,"method":142,"path":481,"tag":62,"summary":206,"deprecated":143,"public":143,"permission":456,"scope":387,"order":482},"getStudent","get-student","\u002Fv1\u002Fstudent\u002F{studentId}",18,{"operationId":484,"slug":485,"method":211,"path":481,"tag":62,"summary":209,"deprecated":143,"public":143,"permission":486,"scope":387,"order":487},"updateStudent","update-student","student\u002Fupdate:$org:$ID",19,{"operationId":489,"slug":490,"method":211,"path":491,"tag":62,"summary":213,"deprecated":143,"public":143,"permission":492,"scope":387,"order":493},"setStudentPassword","set-student-password","\u002Fv1\u002Fstudent\u002F{studentId}\u002Fpassword","auth\u002Fsignin:$org:$ID",20,{"operationId":495,"slug":496,"method":142,"path":497,"tag":62,"summary":216,"deprecated":143,"public":143,"permission":456,"scope":498,"order":499},"listOrgStudents","list-org-students","\u002Fv1\u002F{organizationId}\u002Fstudent","organization",21,{"operationId":501,"slug":502,"method":142,"path":503,"tag":62,"summary":219,"deprecated":143,"public":143,"permission":456,"scope":498,"order":504},"getOrgStudent","get-org-student","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}",22,{"operationId":506,"slug":507,"method":211,"path":503,"tag":62,"summary":222,"deprecated":143,"public":143,"permission":486,"scope":498,"order":508},"updateOrgStudent","update-org-student",23,{"operationId":510,"slug":511,"method":211,"path":512,"tag":62,"summary":225,"deprecated":143,"public":143,"permission":486,"scope":498,"order":513},"linkStudentSupervisor","link-student-supervisor","\u002Fv1\u002F{organizationId}\u002Fstudent\u002F{studentId}\u002Fsupervisor",24,{"tag":80,"slug":228,"description":515,"guide":81,"operations":516},"Links that sign one of your students into an olympiad’s site. Each works once and expires two minutes after it is issued.",[517],{"operationId":518,"slug":519,"method":150,"path":520,"tag":80,"summary":231,"deprecated":143,"public":143,"permission":492,"scope":498,"order":521},"createSigninLink","create-signin-link","\u002Fv1\u002F{organizationId}\u002Fauth\u002Fsignin",25,{"tag":83,"slug":234,"description":523,"guide":84,"operations":524},"The exam categories and exams an organization runs, and the ones one of your students can apply to.",[525,531,537,542,547],{"operationId":526,"slug":527,"method":142,"path":528,"tag":83,"summary":237,"deprecated":143,"public":143,"permission":529,"scope":498,"order":530},"listExams","list-exams","\u002Fv1\u002F{organizationId}\u002Fexam","exam\u002Fread:$org:$ID",26,{"operationId":532,"slug":533,"method":142,"path":534,"tag":83,"summary":240,"deprecated":143,"public":143,"permission":535,"scope":498,"order":536},"listExamCategories","list-exam-categories","\u002Fv1\u002F{organizationId}\u002Fexam-category","exam-category\u002Fread:$org:$ID",27,{"operationId":538,"slug":539,"method":142,"path":540,"tag":83,"summary":243,"deprecated":143,"public":143,"permission":535,"scope":498,"order":541},"getExamCategory","get-exam-category","\u002Fv1\u002F{organizationId}\u002Fexam-category\u002F{categoryId}",28,{"operationId":543,"slug":544,"method":142,"path":545,"tag":83,"summary":246,"deprecated":143,"public":143,"permission":529,"scope":498,"order":546},"listAvailableExams","list-available-exams","\u002Fv1\u002F{organizationId}\u002Fexam\u002Favailable\u002F{studentId}",29,{"operationId":548,"slug":549,"method":142,"path":550,"tag":83,"summary":249,"deprecated":143,"public":143,"permission":529,"scope":498,"order":551},"getExam","get-exam","\u002Fv1\u002F{organizationId}\u002Fexam\u002F{examId}",30,{"tag":86,"slug":252,"description":553,"guide":87,"operations":554},"Entering your students for exams: creating, reading, moving and deleting their applications, and paying them from your wallet.",[555,561,566,571,576,582,587,592,597],{"operationId":556,"slug":557,"method":142,"path":558,"tag":86,"summary":255,"deprecated":143,"public":143,"permission":559,"scope":498,"order":560},"listApplications","list-applications","\u002Fv1\u002F{organizationId}\u002Fapplication","application\u002Fread:$org:$ID",31,{"operationId":562,"slug":563,"method":150,"path":558,"tag":86,"summary":258,"deprecated":143,"public":143,"permission":564,"scope":498,"order":565},"createApplication","create-application","application\u002Fcreate:$org:$ID",32,{"operationId":567,"slug":568,"method":142,"path":569,"tag":86,"summary":261,"deprecated":143,"public":143,"permission":559,"scope":498,"order":570},"listExamApplications","list-exam-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fexam-applications\u002F{examId}",33,{"operationId":572,"slug":573,"method":142,"path":574,"tag":86,"summary":264,"deprecated":143,"public":143,"permission":559,"scope":498,"order":575},"listStudentApplications","list-student-applications","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fstudent-applications\u002F{studentId}",34,{"operationId":577,"slug":578,"method":150,"path":579,"tag":86,"summary":267,"deprecated":143,"public":143,"permission":580,"scope":498,"order":581},"payApplicationsFromWallet","pay-applications-from-wallet","\u002Fv1\u002F{organizationId}\u002Fapplication\u002Fwallet-pay","application\u002Fpay:$org:$ID",35,{"operationId":583,"slug":584,"method":142,"path":585,"tag":86,"summary":270,"deprecated":143,"public":143,"permission":559,"scope":498,"order":586},"getApplication","get-application","\u002Fv1\u002F{organizationId}\u002Fapplication\u002F{applicationId}",36,{"operationId":588,"slug":589,"method":211,"path":585,"tag":86,"summary":273,"deprecated":143,"public":143,"permission":590,"scope":498,"order":591},"moveApplication","move-application","application\u002Fupdate:$org:$ID",37,{"operationId":593,"slug":594,"method":278,"path":585,"tag":86,"summary":276,"deprecated":143,"public":143,"permission":595,"scope":498,"order":596},"deleteApplication","delete-application","application\u002Fdelete:$org:$ID",38,{"operationId":598,"slug":599,"method":150,"path":600,"tag":86,"summary":280,"deprecated":143,"public":143,"permission":580,"scope":498,"order":601},"payApplicationFromWallet","pay-application-from-wallet","\u002Fv1\u002F{organizationId}\u002Fapplication\u002F{applicationId}\u002Fwallet-pay",39,{"tag":283,"slug":284,"description":603,"guide":99,"operations":604},"Your students’ certificates and reports: listing them and downloading the files.",[605,611,616,622],{"operationId":606,"slug":607,"method":142,"path":608,"tag":283,"summary":287,"deprecated":143,"public":143,"permission":609,"scope":498,"order":610},"downloadCertificate","download-certificate","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002Fdownload\u002F{certificateId}","certificate\u002Fread:$org:$ID",40,{"operationId":612,"slug":613,"method":142,"path":614,"tag":283,"summary":290,"deprecated":143,"public":143,"permission":609,"scope":498,"order":615},"listStudentCertificates","list-student-certificates","\u002Fv1\u002F{organizationId}\u002Fcertificate\u002F{userId}",41,{"operationId":617,"slug":618,"method":142,"path":619,"tag":283,"summary":293,"deprecated":143,"public":143,"permission":620,"scope":498,"order":621},"downloadReport","download-report","\u002Fv1\u002F{organizationId}\u002Freport\u002Fdownload\u002F{reportId}","report\u002Fread:$org:$ID",42,{"operationId":623,"slug":624,"method":142,"path":625,"tag":283,"summary":296,"deprecated":143,"public":143,"permission":620,"scope":498,"order":626},"listStudentReports","list-student-reports","\u002Fv1\u002F{organizationId}\u002Freport\u002F{userId}",43,{"tag":95,"slug":299,"description":628,"guide":96,"operations":629},"Online group challenges your students take part in: the challenges, which of your students can join, the groups they are in, each step and its files, what happened in a group, and submitting on your student’s behalf.",[630,636,641,646,651,656,662,667,672],{"operationId":631,"slug":632,"method":142,"path":633,"tag":95,"summary":302,"deprecated":143,"public":143,"permission":634,"scope":498,"order":635},"listGroupChallenges","list-group-challenges","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge","group-challenge\u002Fread:$org:$ID",44,{"operationId":637,"slug":638,"method":142,"path":639,"tag":95,"summary":305,"deprecated":143,"public":143,"permission":634,"scope":498,"order":640},"getGroupChallenge","get-group-challenge","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}",45,{"operationId":642,"slug":643,"method":142,"path":644,"tag":95,"summary":308,"deprecated":143,"public":143,"permission":634,"scope":498,"order":645},"listGroupChallengeGroups","list-group-challenge-groups","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup",46,{"operationId":647,"slug":648,"method":142,"path":649,"tag":95,"summary":311,"deprecated":143,"public":143,"permission":634,"scope":498,"order":650},"getGroupChallengeGroup","get-group-challenge-group","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}",47,{"operationId":652,"slug":653,"method":142,"path":654,"tag":95,"summary":314,"deprecated":143,"public":143,"permission":634,"scope":498,"order":655},"listGroupChallengeActivity","list-group-challenge-activity","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Factivity",48,{"operationId":657,"slug":658,"method":150,"path":659,"tag":95,"summary":317,"deprecated":143,"public":143,"permission":660,"scope":498,"order":661},"submitGroupChallengeWork","submit-group-challenge-work","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Ffinal-submit","group-challenge\u002Fsubmit:$org:$ID",49,{"operationId":663,"slug":664,"method":150,"path":665,"tag":95,"summary":320,"deprecated":143,"public":143,"permission":660,"scope":498,"order":666},"submitGroupChallengeStep","submit-group-challenge-step","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fgroup\u002F{groupId}\u002Fstep\u002F{stepId}\u002Fsubmit",50,{"operationId":668,"slug":669,"method":142,"path":670,"tag":95,"summary":323,"deprecated":143,"public":143,"permission":634,"scope":498,"order":671},"listGroupChallengeStudents","list-group-challenge-students","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent",51,{"operationId":673,"slug":674,"method":142,"path":675,"tag":95,"summary":326,"deprecated":143,"public":143,"permission":634,"scope":498,"order":676},"getGroupChallengeStudent","get-group-challenge-student","\u002Fv1\u002F{organizationId}\u002Fgroup-challenge\u002F{challengeId}\u002Fstudent\u002F{studentId}",52,{"operationId":577,"slug":578,"method":150,"path":579,"tag":86,"summary":267,"deprecated":143,"public":143,"permission":580,"scope":498,"order":581,"description":678,"permissions":679,"errors":680,"guide":376,"parameters":760,"requestBody":768,"responses":784,"successStatus":1185,"kind":1186,"paginated":143,"baseUrl":366,"tagDescription":553,"sandbox":375},"Pays the pending payments of up to 100 applications of your students in this organization from your wallet, one credit each, all or nothing, under one `reference` and one invoice number.\n\n**Per application.** A free exam never takes a credit (`charged: false`, `reason: free`). A payment this wallet already paid, or one settled another way, comes back `charged: false`, `reason: already_paid`, so a repeat is safe. A pending payment is paid at its amount, or the coding bundle price when that is lower, the student’s applications taken in the order you send them.\n\n**All or nothing.** An id that is not an application of your students (unknown and another account’s look the same) fails the whole call with `404` and the ids in `error.details.applicationIds`. A canceled payment, a card payment still open, or too few credits fails it too, and nothing is paid.\n\nNeeds an enabled wallet, which Main Team opens only after an agreement and on your request (otherwise `403` `wallet_not_enabled`), and the `application\u002Fpay` permission on this organization. At most 30 requests per minute.",[580],[681,685,689,694,699,704,710,720,724,728,732,736,741,746,750,754],{"code":682,"status":683,"when":684},"bad_request",400,"The body is not valid JSON, breaks a field’s rules, or has a field this operation does not accept (\"property \u003Cname> should not exist\").",{"code":686,"status":687,"when":688},"unauthorized",401,"The token is missing or malformed, is not signed with your account’s `apiSecret`, breaks the `iat` and `exp` rules, has expired or been revoked, or its account is not active. All of these answer the same.",{"code":690,"message":691,"status":692,"when":693},"forbidden","Insufficient role permissions",403,"The token is valid, but no role on your account allows `application\u002Fpay` on the organization in the path, or a role denies it.",{"code":690,"details":695,"message":697,"status":692,"when":698},{"reason":696},"wallet_not_enabled","No wallet is enabled for your account. Ask your Main Team contact to open one.","Your account has no wallet, or it is closed (a wallet is opened only by Main Team, after an agreement and on your request: ask your Main Team contact or info@main-team.org). Asked for by `walletPay: true` even when no credit would be taken. `error.details.reason` is `wallet_not_enabled`.",{"code":700,"message":701,"status":702,"when":703},"not_found","Organization not found!",404,"`organizationId` is not the `_id` of an organization.",{"code":700,"details":705,"message":708,"status":702,"when":709},{"applicationIds":706},[707],"6650a1b2c3d4e5f6a7b8c9e5","Application not found!","An id matches no application of yours; `error.details.applicationIds` lists them.",{"code":711,"details":712,"status":718,"when":719},"conflict",{"organizations":713,"reason":717},[714],{"available":378,"needed":393,"organization":715,"organizationId":716,"short":388},"stem","64b7f0c2a1d3e4f5a6b7c8d9","insufficient_credits",409,"The wallet holds fewer credits than the call needs. Nothing was paid or written. `error.details.reason` is `insufficient_credits`, and `error.details.organizations` lists `organizationId`, `organization`, `needed`, `available` and `short`.",{"code":711,"details":721,"status":718,"when":723},{"reason":722},"already_paid","The payment was settled another way (a bank transfer, a card), so there is nothing to take. `error.details.reason` is `already_paid`.",{"code":711,"details":725,"status":718,"when":727},{"reason":726},"payment_canceled","The payment is canceled. `error.details.reason` is `payment_canceled`.",{"code":711,"details":729,"status":718,"when":731},{"reason":730},"payment_in_progress","The student has a card payment open for this application (opened in the last 25 hours). `error.details.reason` is `payment_in_progress`; try again once it has finished or expired.",{"code":711,"details":733,"status":718,"when":735},{"reason":734},"payment_changed","The payment changed while it was being paid and the call could not settle it after retrying. Nothing was taken. `error.details.reason` is `payment_changed`; read the application and try again.",{"code":737,"message":738,"status":739,"when":740},"payload_too_large","request entity too large",413,"The body is larger than 100 kB.",{"code":742,"message":743,"status":744,"when":745},"unsupported_media_type","unsupported charset \"ISO-8859-1\"",415,"The body declares a charset that is not a UTF one (send UTF-8), or a `Content-Encoding` other than gzip, deflate or br.",{"code":747,"status":748,"when":749},"too_many_requests",429,"Your account has made more than 30 requests to this operation in the current minute. Wait the seconds in `Retry-After` before sending again. This operation has a budget of its own, lower than the 100 per 60 seconds every other operation gets.",{"code":751,"status":752,"when":753},"internal_error",500,"Something failed on our side. Retry later, and quote `request_id` if it goes on.",{"code":755,"details":756,"status":758,"when":759},"service_unavailable",{"reason":757},"wallet_unavailable",503,"The wallet is not available in this environment yet. Nothing was paid or written. `error.details.reason` is `wallet_unavailable`.",[761],{"description":762,"example":716,"in":763,"name":764,"required":375,"schema":765},"The organization’s `_id`: 24 hexadecimal digits, as `listOrganizations` (`GET \u002Fv1\u002Forganization`) lists it.","path","organizationId",{"pattern":766,"type":767},"^[0-9a-f]{24}$","string",{"content":769,"required":375},{"application\u002Fjson":770},{"schema":771},{"x-ref":772,"description":773,"properties":774,"required":781,"type":783},"#\u002Fcomponents\u002Fschemas\u002FPayApplicationsFromWalletRequest","The body of `payApplicationsFromWallet`: the applications to pay, 1 to 100, all in this organization.",{"applicationIds":775},{"description":776,"example":777,"items":778,"maxItems":779,"minItems":378,"type":780},"The applications’ `_id`s, 24 hexadecimal digits each, from `createApplication` or the application lists. No duplicates.",[707],{"type":767},100,"array",[782],"applicationIds","object",{"200":785,"400":930,"401":972,"403":994,"404":1019,"409":1044,"413":1069,"415":1090,"429":1111,"500":1137,"503":1159},{"content":786,"description":918,"headers":919},{"application\u002Fjson":787},{"examples":788,"schema":812},{"nothingTaken":789,"success":804},{"summary":790,"value":791},"Every application was free or already paid.",{"data":792,"message":803,"success":375},{"charged":393,"invoiceNo":793,"items":794,"reference":801,"wallet":802},"2425-10042",[795],{"amount":796,"applicationId":707,"charged":375,"currency":797,"entryId":798,"paymentId":799,"reason":800,"reference":801},5000,"EUR","6650a1b2c3d4e5f6a7b8c9f2","6650a1b2c3d4e5f6a7b8c9e6","free","stx-19a2c3d4e5f6a7b8c9",{"granted":666,"organization":715,"remaining":615,"spent":432},"Nothing was taken from the wallet.",{"summary":805,"value":806},"Success",{"data":807,"message":811,"success":375},{"charged":393,"invoiceNo":793,"items":808,"reference":801,"wallet":810},[809],{"amount":796,"applicationId":707,"charged":375,"currency":797,"entryId":798,"paymentId":799,"reason":800,"reference":801},{"granted":666,"organization":715,"remaining":615,"spent":432},"Applications paid from wallet.",{"allOf":813},[814,851],{"x-ref":815,"description":816,"properties":817,"required":848,"type":783},"#\u002Fcomponents\u002Fschemas\u002FSuccessEnvelope","How every successful JSON response is wrapped. `data` is the result, and each operation declares its shape; list operations add `pagination`. `GET \u002Fv1\u002Fapi-account\u002Fvalidate-me` is the one operation that answers without this envelope.",{"success":818,"message":822,"pagination":825},{"description":819,"enum":820,"example":375,"type":821},"Always `true` on a success.",[375],"boolean",{"description":823,"example":824,"type":767},"A sentence saying what happened, written for a person. Branch on the status and on `data`, not on this.","Request completed successfully.",{"allOf":826,"description":847},[827],{"x-ref":828,"description":829,"properties":830,"required":842,"type":783},"#\u002Fcomponents\u002Fschemas\u002FPaginationMeta","Where one page sits in the whole list.",{"page":831,"limit":834,"total":836,"totalPages":840},{"description":832,"example":378,"minimum":378,"type":833},"The page returned, counting from 1.","number",{"description":835,"example":493,"maximum":779,"minimum":378,"type":833},"Items per page: the `limit` you sent, 20 if you sent none, and never more than 100.",{"description":837,"example":838,"minimum":839,"type":833},"Items across every page.",57,0,{"description":841,"example":393,"minimum":839,"type":833},"Pages at this `limit`: `total \u002F limit`, rounded up.",[843,844,845,846],"page","limit","total","totalPages","On list operations only.",[849,850],"success","message",{"properties":852,"required":916,"type":783},{"message":853,"data":854},{"example":811,"type":767},{"x-ref":855,"description":856,"properties":857,"required":914,"type":783},"#\u002Fcomponents\u002Fschemas\u002FPayApplicationsResponse","The answer of `payApplicationsFromWallet`.",{"reference":858,"invoiceNo":860,"charged":862,"items":864,"wallet":895},{"description":859,"example":801,"type":767},"The one reference every payment of this call carries. Absent when nothing was charged.",{"description":861,"example":793,"type":767},"The one invoice number of this call. Absent when nothing was charged.",{"description":863,"example":393,"type":833},"How many credits this call took.",{"description":865,"items":866,"type":780},"One entry per application, in the order you sent them.",{"x-ref":867,"description":868,"properties":869,"required":889,"type":783},"#\u002Fcomponents\u002Fschemas\u002FPayApplicationsItemResponse","One application of a bulk wallet payment.",{"applicationId":870,"paymentId":872,"charged":874,"reason":876,"amount":879,"currency":881,"reference":885,"entryId":887},{"description":871,"example":707,"type":767},"The application.",{"description":873,"example":799,"type":767},"Its payment.",{"description":875,"example":375,"type":821},"`true` when a credit was taken by this call. `false` when there was nothing to take: see `reason`.",{"description":877,"enum":878,"example":800,"type":767},"Why nothing was taken, only when `charged` is `false`. `free`: the exam costs nothing, and a free exam never uses a credit. `already_paid`: this wallet already paid it, in an earlier call; `reference` and `entryId` are that payment’s.",[800,722],{"description":880,"example":796,"type":833},"The amount the payment was settled at, in cents: the exam’s price, or the coding bundle price when it is lower. `0` for a free exam.",{"description":882,"enum":883,"example":797,"type":767},"The currency of `amount`: `USD` for neo, `EUR` otherwise.",[797,884],"USD",{"description":886,"example":801,"type":767},"The transaction code of the payment (`stx-...`), the same `reference` the application reads show on a settled payment.",{"description":888,"example":798,"type":767},"The `_id` of the wallet entry (`listWalletEntries`).",[890,891,892,893,894],"applicationId","paymentId","charged","amount","currency",{"allOf":896,"description":913},[897],{"x-ref":898,"description":899,"properties":900,"required":909,"type":783},"#\u002Fcomponents\u002Fschemas\u002FWalletBalanceViewResponse","One organization’s balance after a wallet payment.",{"organization":901,"granted":903,"spent":905,"remaining":907},{"description":902,"example":715,"type":767},"The organization’s slug.",{"description":904,"example":666,"type":833},"Credits granted to you in total.",{"description":906,"example":432,"type":833},"Credits spent in total.",{"description":908,"example":615,"type":833},"`granted` minus `spent`.",[498,910,911,912],"granted","spent","remaining","The organization’s balance after the call.",[892,915,155],"items",[917],"data","Success: `message` is \"Applications paid from wallet.\".\n\nOr `message` is \"Nothing was taken from the wallet.\": Every application was free or already paid.",{"X-RateLimit-Limit":920,"X-RateLimit-Remaining":924,"X-RateLimit-Reset":927},{"description":921,"schema":922},"Requests your account may make to this operation per window (30 per 60 seconds).",{"type":923},"integer",{"description":925,"schema":926},"Requests left in the current window.",{"type":923},{"description":928,"schema":929},"Seconds until the current window ends.",{"type":923},{"content":931,"description":971},{"application\u002Fjson":932},{"examples":933,"schema":940},{"bad_request":934},{"summary":682,"value":935},{"error":936},{"code":682,"documentation_url":937,"message":938,"request_id":939},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#bad_request","The request was malformed or contained invalid parameters.","0b5c6d0e-8f7a-4b1c-9d2e-3f4a5b6c7d8e",{"x-ref":941,"description":942,"properties":943,"required":969,"type":783},"#\u002Fcomponents\u002Fschemas\u002FErrorEnvelope","How every error response is wrapped.",{"error":944},{"x-ref":945,"description":946,"properties":947,"required":965,"type":783},"#\u002Fcomponents\u002Fschemas\u002FErrorDetail","What went wrong.",{"code":948,"message":954,"documentation_url":957,"request_id":961,"details":963},{"description":949,"enum":950,"example":700,"type":767},"A stable machine code: branch on this. Each one is explained at `documentation_url`.",[951,682,952,686,690,700,711,737,742,953,747,751,755],"invalid_email","subdivision_required","unprocessable_entity",{"description":955,"example":956,"type":767},"Written for a person, and may change: never branch on it.","Not found!",{"description":958,"example":959,"format":960,"type":767},"Where this code is explained.","https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#not_found","uri",{"description":962,"example":939,"type":767},"This request’s id, also sent as the `X-Request-Id` response header: the one you sent, when it was acceptable, or else one the API made. Quote it when you report a problem.",{"additionalProperties":375,"description":964,"type":783},"Present only where an operation says so, and then with the shape that operation documents — the rows it could not accept, say. Treat it as absent everywhere else, and ignore a `details` you do not recognise.",[966,850,967,968],"code","documentation_url","request_id",[970],"error","`bad_request`: The body is not valid JSON, breaks a field’s rules, or has a field this operation does not accept (\"property \u003Cname> should not exist\").",{"content":973,"description":993},{"application\u002Fjson":974},{"examples":975,"schema":981},{"unauthorized":976},{"summary":686,"value":977},{"error":978},{"code":686,"documentation_url":979,"message":980,"request_id":939},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unauthorized","Authentication is required or the provided credentials are invalid.",{"x-ref":941,"description":942,"properties":982,"required":992,"type":783},{"error":983},{"x-ref":945,"description":946,"properties":984,"required":991,"type":783},{"code":985,"message":987,"documentation_url":988,"request_id":989,"details":990},{"description":949,"enum":986,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"`unauthorized`: The token is missing or malformed, is not signed with your account’s `apiSecret`, breaks the `iat` and `exp` rules, has expired or been revoked, or its account is not active. All of these answer the same.",{"content":995,"description":1018},{"application\u002Fjson":996},{"examples":997,"schema":1006},{"forbidden":998,"forbidden_2":1002},{"summary":693,"value":999},{"error":1000},{"code":690,"documentation_url":1001,"message":691,"request_id":939},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#forbidden",{"summary":698,"value":1003},{"error":1004},{"code":690,"details":1005,"documentation_url":1001,"message":697,"request_id":939},{"reason":696},{"x-ref":941,"description":942,"properties":1007,"required":1017,"type":783},{"error":1008},{"x-ref":945,"description":946,"properties":1009,"required":1016,"type":783},{"code":1010,"message":1012,"documentation_url":1013,"request_id":1014,"details":1015},{"description":949,"enum":1011,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"- `forbidden`: The token is valid, but no role on your account allows `application\u002Fpay` on the organization in the path, or a role denies it.\n- `forbidden`: Your account has no wallet, or it is closed (a wallet is opened only by Main Team, after an agreement and on your request: ask your Main Team contact or info@main-team.org). Asked for by `walletPay: true` even when no credit would be taken. `error.details.reason` is `wallet_not_enabled`.",{"content":1020,"description":1043},{"application\u002Fjson":1021},{"examples":1022,"schema":1031},{"not_found":1023,"not_found_2":1026},{"summary":703,"value":1024},{"error":1025},{"code":700,"documentation_url":959,"message":701,"request_id":939},{"summary":709,"value":1027},{"error":1028},{"code":700,"details":1029,"documentation_url":959,"message":708,"request_id":939},{"applicationIds":1030},[707],{"x-ref":941,"description":942,"properties":1032,"required":1042,"type":783},{"error":1033},{"x-ref":945,"description":946,"properties":1034,"required":1041,"type":783},{"code":1035,"message":1037,"documentation_url":1038,"request_id":1039,"details":1040},{"description":949,"enum":1036,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"- `not_found`: `organizationId` is not the `_id` of an organization.\n- `not_found`: An id matches no application of yours; `error.details.applicationIds` lists them.",{"content":1045,"description":1068},{"application\u002Fjson":1046},{"examples":1047,"schema":1056},{"conflict":1048},{"summary":711,"value":1049},{"error":1050},{"code":711,"details":1051,"documentation_url":1054,"message":1055,"request_id":939},{"organizations":1052,"reason":717},[1053],{"available":378,"needed":393,"organization":715,"organizationId":716,"short":388},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#conflict","The request conflicts with the current state of the resource.",{"x-ref":941,"description":942,"properties":1057,"required":1067,"type":783},{"error":1058},{"x-ref":945,"description":946,"properties":1059,"required":1066,"type":783},{"code":1060,"message":1062,"documentation_url":1063,"request_id":1064,"details":1065},{"description":949,"enum":1061,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"- `conflict`: The wallet holds fewer credits than the call needs. Nothing was paid or written. `error.details.reason` is `insufficient_credits`, and `error.details.organizations` lists `organizationId`, `organization`, `needed`, `available` and `short`.\n- `conflict`: The payment was settled another way (a bank transfer, a card), so there is nothing to take. `error.details.reason` is `already_paid`.\n- `conflict`: The payment is canceled. `error.details.reason` is `payment_canceled`.\n- `conflict`: The student has a card payment open for this application (opened in the last 25 hours). `error.details.reason` is `payment_in_progress`; try again once it has finished or expired.\n- `conflict`: The payment changed while it was being paid and the call could not settle it after retrying. Nothing was taken. `error.details.reason` is `payment_changed`; read the application and try again.",{"content":1070,"description":1089},{"application\u002Fjson":1071},{"examples":1072,"schema":1077},{"payload_too_large":1073},{"summary":737,"value":1074},{"error":1075},{"code":737,"documentation_url":1076,"message":738,"request_id":939},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#payload_too_large",{"x-ref":941,"description":942,"properties":1078,"required":1088,"type":783},{"error":1079},{"x-ref":945,"description":946,"properties":1080,"required":1087,"type":783},{"code":1081,"message":1083,"documentation_url":1084,"request_id":1085,"details":1086},{"description":949,"enum":1082,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"`payload_too_large`: The body is larger than 100 kB.",{"content":1091,"description":1110},{"application\u002Fjson":1092},{"examples":1093,"schema":1098},{"unsupported_media_type":1094},{"summary":742,"value":1095},{"error":1096},{"code":742,"documentation_url":1097,"message":743,"request_id":939},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#unsupported_media_type",{"x-ref":941,"description":942,"properties":1099,"required":1109,"type":783},{"error":1100},{"x-ref":945,"description":946,"properties":1101,"required":1108,"type":783},{"code":1102,"message":1104,"documentation_url":1105,"request_id":1106,"details":1107},{"description":949,"enum":1103,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"`unsupported_media_type`: The body declares a charset that is not a UTF one (send UTF-8), or a `Content-Encoding` other than gzip, deflate or br.",{"content":1112,"description":1132,"headers":1133},{"application\u002Fjson":1113},{"examples":1114,"schema":1120},{"too_many_requests":1115},{"summary":747,"value":1116},{"error":1117},{"code":747,"documentation_url":1118,"message":1119,"request_id":939},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#too_many_requests","Too many requests to this operation. Wait the number of seconds in Retry-After, then try again.",{"x-ref":941,"description":942,"properties":1121,"required":1131,"type":783},{"error":1122},{"x-ref":945,"description":946,"properties":1123,"required":1130,"type":783},{"code":1124,"message":1126,"documentation_url":1127,"request_id":1128,"details":1129},{"description":949,"enum":1125,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"`too_many_requests`: Your account has made more than 30 requests to this operation in the current minute. Wait the seconds in `Retry-After` before sending again. This operation has a budget of its own, lower than the 100 per 60 seconds every other operation gets.",{"Retry-After":1134},{"description":1135,"schema":1136},"Seconds to wait before sending again; a request sent sooner is refused too.",{"type":923},{"content":1138,"description":1158},{"application\u002Fjson":1139},{"examples":1140,"schema":1146},{"internal_error":1141},{"summary":751,"value":1142},{"error":1143},{"code":751,"documentation_url":1144,"message":1145,"request_id":939},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#internal_error","An unexpected error occurred.",{"x-ref":941,"description":942,"properties":1147,"required":1157,"type":783},{"error":1148},{"x-ref":945,"description":946,"properties":1149,"required":1156,"type":783},{"code":1150,"message":1152,"documentation_url":1153,"request_id":1154,"details":1155},{"description":949,"enum":1151,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"`internal_error`: Something failed on our side. Retry later, and quote `request_id` if it goes on.",{"content":1160,"description":1181,"headers":1182},{"application\u002Fjson":1161},{"examples":1162,"schema":1169},{"service_unavailable":1163},{"summary":755,"value":1164},{"error":1165},{"code":755,"details":1166,"documentation_url":1167,"message":1168,"request_id":939},{"reason":757},"https:\u002F\u002Fhub.main-team.org\u002Fapi\u002Ferrors#service_unavailable","Not ready.",{"x-ref":941,"description":942,"properties":1170,"required":1180,"type":783},{"error":1171},{"x-ref":945,"description":946,"properties":1172,"required":1179,"type":783},{"code":1173,"message":1175,"documentation_url":1176,"request_id":1177,"details":1178},{"description":949,"enum":1174,"example":700,"type":767},[951,682,952,686,690,700,711,737,742,953,747,751,755],{"description":955,"example":956,"type":767},{"description":958,"example":959,"format":960,"type":767},{"description":962,"example":939,"type":767},{"additionalProperties":375,"description":964,"type":783},[966,850,967,968],[970],"`service_unavailable`: The wallet is not available in this environment yet. Nothing was paid or written. `error.details.reason` is `wallet_unavailable`.",{"Retry-After":1183},{"description":1135,"schema":1184},{"type":923},"200","envelope",{"path":26},{"id":1189,"title":267,"apiPath":579,"body":1190,"deprecated":143,"description":1901,"extension":1902,"meta":1903,"method":150,"navigation":375,"operationId":577,"order":1904,"path":268,"permission":580,"public":143,"seo":1905,"stem":1906,"summary":267,"tag":86,"__hash__":1907},"apiReference\u002Fapi\u002Freference\u002Fpay-applications-from-wallet.md",{"type":1191,"value":1192,"toc":1899},"minimark",[1193,1895],[1194,1195,1196,1307,1562],"api-code-group",{},[1197,1198,1204],"pre",{"className":1199,"code":1200,"filename":1201,"language":1202,"meta":1203,"style":1203},"language-bash shiki shiki-themes github-light-high-contrast github-dark-high-contrast","# $TOKEN: a short-lived token you minted with your API key and secret\ncurl -sS -X POST 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002Fwallet-pay' \\\n  -H \"Authorization: Bearer $TOKEN\" \\\n  -H 'Content-Type: application\u002Fjson' \\\n  --data-binary @- \u003C\u003C'JSON'\n{\n  \"applicationIds\": [\n    \"6650a1b2c3d4e5f6a7b8c9e5\"\n  ]\n}\nJSON\n","curl","bash","",[966,1205,1206,1214,1237,1254,1263,1277,1282,1287,1292,1297,1302],{"__ignoreMap":1203},[1207,1208,1210],"span",{"class":1209,"line":378},"line",[1207,1211,1213],{"class":1212},"sLBg1","# $TOKEN: a short-lived token you minted with your API key and secret\n",[1207,1215,1216,1219,1223,1226,1230,1233],{"class":1209,"line":388},[1207,1217,1201],{"class":1218},"soyes",[1207,1220,1222],{"class":1221},"s-5SL"," -sS",[1207,1224,1225],{"class":1221}," -X",[1207,1227,1229],{"class":1228},"sT6z2"," POST",[1207,1231,1232],{"class":1228}," 'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002Fwallet-pay'",[1207,1234,1236],{"class":1235},"sHUrx"," \\\n",[1207,1238,1239,1242,1245,1249,1252],{"class":1209,"line":393},[1207,1240,1241],{"class":1221},"  -H",[1207,1243,1244],{"class":1228}," \"Authorization: Bearer ",[1207,1246,1248],{"class":1247},"suds8","$TOKEN",[1207,1250,1251],{"class":1228},"\"",[1207,1253,1236],{"class":1235},[1207,1255,1256,1258,1261],{"class":1209,"line":402},[1207,1257,1241],{"class":1221},[1207,1259,1260],{"class":1228}," 'Content-Type: application\u002Fjson'",[1207,1262,1236],{"class":1235},[1207,1264,1265,1268,1271,1274],{"class":1209,"line":407},[1207,1266,1267],{"class":1221},"  --data-binary",[1207,1269,1270],{"class":1228}," @-",[1207,1272,1273],{"class":1235}," \u003C\u003C",[1207,1275,1276],{"class":1247},"'JSON'\n",[1207,1278,1279],{"class":1209,"line":416},[1207,1280,1281],{"class":1228},"{\n",[1207,1283,1284],{"class":1209,"line":421},[1207,1285,1286],{"class":1228},"  \"applicationIds\": [\n",[1207,1288,1289],{"class":1209,"line":426},[1207,1290,1291],{"class":1228},"    \"6650a1b2c3d4e5f6a7b8c9e5\"\n",[1207,1293,1294],{"class":1209,"line":432},[1207,1295,1296],{"class":1228},"  ]\n",[1207,1298,1299],{"class":1209,"line":437},[1207,1300,1301],{"class":1228},"}\n",[1207,1303,1304],{"class":1209,"line":443},[1207,1305,1306],{"class":1247},"JSON\n",[1197,1308,1313],{"className":1309,"code":1310,"filename":1311,"language":1312,"meta":1203,"style":1203},"language-js shiki shiki-themes github-light-high-contrast github-dark-high-contrast","const token = process.env.TOKEN; \u002F\u002F a short-lived token you minted with your API key and secret\n\nconst res = await fetch('https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002Fwallet-pay', {\n  method: 'POST',\n  headers: {\n    Authorization: `Bearer ${token}`,\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    \"applicationIds\": [\n      \"6650a1b2c3d4e5f6a7b8c9e5\"\n    ]\n  }),\n});\nconst body = await res.json();\nif (!res.ok) throw new Error(`${res.status} ${body.error.code}: ${body.error.message}`);\nconsole.log(body.data);\n","Node.js","js",[966,1314,1315,1338,1343,1368,1379,1384,1400,1413,1418,1435,1443,1448,1453,1458,1463,1483,1551],{"__ignoreMap":1203},[1207,1316,1317,1320,1323,1326,1329,1332,1335],{"class":1209,"line":378},[1207,1318,1319],{"class":1235},"const",[1207,1321,1322],{"class":1221}," token",[1207,1324,1325],{"class":1235}," =",[1207,1327,1328],{"class":1247}," process.env.",[1207,1330,1331],{"class":1221},"TOKEN",[1207,1333,1334],{"class":1247},"; ",[1207,1336,1337],{"class":1212},"\u002F\u002F a short-lived token you minted with your API key and secret\n",[1207,1339,1340],{"class":1209,"line":388},[1207,1341,1342],{"emptyLinePlaceholder":375},"\n",[1207,1344,1345,1347,1350,1352,1355,1359,1362,1365],{"class":1209,"line":393},[1207,1346,1319],{"class":1235},[1207,1348,1349],{"class":1221}," res",[1207,1351,1325],{"class":1235},[1207,1353,1354],{"class":1235}," await",[1207,1356,1358],{"class":1357},"sKwhi"," fetch",[1207,1360,1361],{"class":1247},"(",[1207,1363,1364],{"class":1228},"'https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002Fwallet-pay'",[1207,1366,1367],{"class":1247},", {\n",[1207,1369,1370,1373,1376],{"class":1209,"line":402},[1207,1371,1372],{"class":1247},"  method: ",[1207,1374,1375],{"class":1228},"'POST'",[1207,1377,1378],{"class":1247},",\n",[1207,1380,1381],{"class":1209,"line":407},[1207,1382,1383],{"class":1247},"  headers: {\n",[1207,1385,1386,1389,1392,1395,1398],{"class":1209,"line":416},[1207,1387,1388],{"class":1247},"    Authorization: ",[1207,1390,1391],{"class":1228},"`Bearer ${",[1207,1393,1394],{"class":1247},"token",[1207,1396,1397],{"class":1228},"}`",[1207,1399,1378],{"class":1247},[1207,1401,1402,1405,1408,1411],{"class":1209,"line":421},[1207,1403,1404],{"class":1228},"    'Content-Type'",[1207,1406,1407],{"class":1247},": ",[1207,1409,1410],{"class":1228},"'application\u002Fjson'",[1207,1412,1378],{"class":1247},[1207,1414,1415],{"class":1209,"line":426},[1207,1416,1417],{"class":1247},"  },\n",[1207,1419,1420,1423,1426,1429,1432],{"class":1209,"line":432},[1207,1421,1422],{"class":1247},"  body: ",[1207,1424,1425],{"class":1221},"JSON",[1207,1427,1428],{"class":1247},".",[1207,1430,1431],{"class":1357},"stringify",[1207,1433,1434],{"class":1247},"({\n",[1207,1436,1437,1440],{"class":1209,"line":437},[1207,1438,1439],{"class":1228},"    \"applicationIds\"",[1207,1441,1442],{"class":1247},": [\n",[1207,1444,1445],{"class":1209,"line":443},[1207,1446,1447],{"class":1228},"      \"6650a1b2c3d4e5f6a7b8c9e5\"\n",[1207,1449,1450],{"class":1209,"line":448},[1207,1451,1452],{"class":1247},"    ]\n",[1207,1454,1455],{"class":1209,"line":457},[1207,1456,1457],{"class":1247},"  }),\n",[1207,1459,1460],{"class":1209,"line":462},[1207,1461,1462],{"class":1247},"});\n",[1207,1464,1465,1467,1470,1472,1474,1477,1480],{"class":1209,"line":467},[1207,1466,1319],{"class":1235},[1207,1468,1469],{"class":1221}," body",[1207,1471,1325],{"class":1235},[1207,1473,1354],{"class":1235},[1207,1475,1476],{"class":1247}," res.",[1207,1478,1479],{"class":1357},"json",[1207,1481,1482],{"class":1247},"();\n",[1207,1484,1485,1488,1491,1494,1497,1500,1503,1506,1508,1511,1514,1516,1519,1522,1525,1527,1529,1531,1533,1536,1538,1540,1542,1544,1546,1548],{"class":1209,"line":472},[1207,1486,1487],{"class":1235},"if",[1207,1489,1490],{"class":1247}," (",[1207,1492,1493],{"class":1235},"!",[1207,1495,1496],{"class":1247},"res.ok) ",[1207,1498,1499],{"class":1235},"throw",[1207,1501,1502],{"class":1235}," new",[1207,1504,1505],{"class":1357}," Error",[1207,1507,1361],{"class":1247},[1207,1509,1510],{"class":1228},"`${",[1207,1512,1513],{"class":1247},"res",[1207,1515,1428],{"class":1228},[1207,1517,1518],{"class":1247},"status",[1207,1520,1521],{"class":1228},"} ${",[1207,1523,1524],{"class":1247},"body",[1207,1526,1428],{"class":1228},[1207,1528,970],{"class":1247},[1207,1530,1428],{"class":1228},[1207,1532,966],{"class":1247},[1207,1534,1535],{"class":1228},"}: ${",[1207,1537,1524],{"class":1247},[1207,1539,1428],{"class":1228},[1207,1541,970],{"class":1247},[1207,1543,1428],{"class":1228},[1207,1545,850],{"class":1247},[1207,1547,1397],{"class":1228},[1207,1549,1550],{"class":1247},");\n",[1207,1552,1553,1556,1559],{"class":1209,"line":477},[1207,1554,1555],{"class":1247},"console.",[1207,1557,1558],{"class":1357},"log",[1207,1560,1561],{"class":1247},"(body.data);\n",[1197,1563,1568],{"className":1564,"code":1565,"filename":1566,"language":1567,"meta":1203,"style":1203},"language-php shiki shiki-themes github-light-high-contrast github-dark-high-contrast","\u003C?php\n$token = getenv('TOKEN'); \u002F\u002F a short-lived token you minted with your API key and secret\n\n$ch = curl_init('https:\u002F\u002Fapi.main-team.org\u002Fv1\u002F\u003CorganizationId>\u002Fapplication\u002Fwallet-pay');\ncurl_setopt_array($ch, [\n    CURLOPT_CUSTOMREQUEST => 'POST',\n    CURLOPT_HTTPHEADER => [\n        'Authorization: Bearer ' . $token,\n        'Content-Type: application\u002Fjson',\n    ],\n    CURLOPT_POSTFIELDS => json_encode([\n        'applicationIds' => [\n            '6650a1b2c3d4e5f6a7b8c9e5',\n        ],\n    ]),\n    CURLOPT_RETURNTRANSFER => true,\n]);\n$response = curl_exec($ch);\nif ($response === false) {\n    throw new RuntimeException(curl_error($ch));\n}\n$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);\n$body = json_decode($response, true);\nif ($status >= 400) {\n    $error = $body['error'];\n    throw new RuntimeException(\"$status {$error['code']}: {$error['message']}\");\n}\nprint_r($body['data']);\n","PHP","php",[966,1569,1570,1578,1599,1603,1619,1627,1640,1650,1661,1668,1673,1686,1695,1702,1707,1712,1724,1729,1742,1758,1776,1780,1798,1816,1831,1847,1878,1882],{"__ignoreMap":1203},[1207,1571,1572,1575],{"class":1209,"line":378},[1207,1573,1574],{"class":1235},"\u003C?",[1207,1576,1577],{"class":1221},"php\n",[1207,1579,1580,1583,1586,1589,1591,1594,1597],{"class":1209,"line":388},[1207,1581,1582],{"class":1247},"$token ",[1207,1584,1585],{"class":1235},"=",[1207,1587,1588],{"class":1221}," getenv",[1207,1590,1361],{"class":1247},[1207,1592,1593],{"class":1228},"'TOKEN'",[1207,1595,1596],{"class":1247},"); ",[1207,1598,1337],{"class":1212},[1207,1600,1601],{"class":1209,"line":393},[1207,1602,1342],{"emptyLinePlaceholder":375},[1207,1604,1605,1608,1610,1613,1615,1617],{"class":1209,"line":402},[1207,1606,1607],{"class":1247},"$ch ",[1207,1609,1585],{"class":1235},[1207,1611,1612],{"class":1221}," curl_init",[1207,1614,1361],{"class":1247},[1207,1616,1364],{"class":1228},[1207,1618,1550],{"class":1247},[1207,1620,1621,1624],{"class":1209,"line":407},[1207,1622,1623],{"class":1221},"curl_setopt_array",[1207,1625,1626],{"class":1247},"($ch, [\n",[1207,1628,1629,1632,1635,1638],{"class":1209,"line":416},[1207,1630,1631],{"class":1221},"    CURLOPT_CUSTOMREQUEST",[1207,1633,1634],{"class":1235}," =>",[1207,1636,1637],{"class":1228}," 'POST'",[1207,1639,1378],{"class":1247},[1207,1641,1642,1645,1647],{"class":1209,"line":421},[1207,1643,1644],{"class":1221},"    CURLOPT_HTTPHEADER",[1207,1646,1634],{"class":1235},[1207,1648,1649],{"class":1247}," [\n",[1207,1651,1652,1655,1658],{"class":1209,"line":426},[1207,1653,1654],{"class":1228},"        'Authorization: Bearer '",[1207,1656,1657],{"class":1235}," .",[1207,1659,1660],{"class":1247}," $token,\n",[1207,1662,1663,1666],{"class":1209,"line":432},[1207,1664,1665],{"class":1228},"        'Content-Type: application\u002Fjson'",[1207,1667,1378],{"class":1247},[1207,1669,1670],{"class":1209,"line":437},[1207,1671,1672],{"class":1247},"    ],\n",[1207,1674,1675,1678,1680,1683],{"class":1209,"line":443},[1207,1676,1677],{"class":1221},"    CURLOPT_POSTFIELDS",[1207,1679,1634],{"class":1235},[1207,1681,1682],{"class":1221}," json_encode",[1207,1684,1685],{"class":1247},"([\n",[1207,1687,1688,1691,1693],{"class":1209,"line":448},[1207,1689,1690],{"class":1228},"        'applicationIds'",[1207,1692,1634],{"class":1235},[1207,1694,1649],{"class":1247},[1207,1696,1697,1700],{"class":1209,"line":457},[1207,1698,1699],{"class":1228},"            '6650a1b2c3d4e5f6a7b8c9e5'",[1207,1701,1378],{"class":1247},[1207,1703,1704],{"class":1209,"line":462},[1207,1705,1706],{"class":1247},"        ],\n",[1207,1708,1709],{"class":1209,"line":467},[1207,1710,1711],{"class":1247},"    ]),\n",[1207,1713,1714,1717,1719,1722],{"class":1209,"line":472},[1207,1715,1716],{"class":1221},"    CURLOPT_RETURNTRANSFER",[1207,1718,1634],{"class":1235},[1207,1720,1721],{"class":1221}," true",[1207,1723,1378],{"class":1247},[1207,1725,1726],{"class":1209,"line":477},[1207,1727,1728],{"class":1247},"]);\n",[1207,1730,1731,1734,1736,1739],{"class":1209,"line":482},[1207,1732,1733],{"class":1247},"$response ",[1207,1735,1585],{"class":1235},[1207,1737,1738],{"class":1221}," curl_exec",[1207,1740,1741],{"class":1247},"($ch);\n",[1207,1743,1744,1746,1749,1752,1755],{"class":1209,"line":487},[1207,1745,1487],{"class":1235},[1207,1747,1748],{"class":1247}," ($response ",[1207,1750,1751],{"class":1235},"===",[1207,1753,1754],{"class":1221}," false",[1207,1756,1757],{"class":1247},") {\n",[1207,1759,1760,1763,1765,1768,1770,1773],{"class":1209,"line":493},[1207,1761,1762],{"class":1235},"    throw",[1207,1764,1502],{"class":1235},[1207,1766,1767],{"class":1221}," RuntimeException",[1207,1769,1361],{"class":1247},[1207,1771,1772],{"class":1221},"curl_error",[1207,1774,1775],{"class":1247},"($ch));\n",[1207,1777,1778],{"class":1209,"line":499},[1207,1779,1301],{"class":1247},[1207,1781,1782,1785,1787,1790,1793,1796],{"class":1209,"line":504},[1207,1783,1784],{"class":1247},"$status ",[1207,1786,1585],{"class":1235},[1207,1788,1789],{"class":1221}," curl_getinfo",[1207,1791,1792],{"class":1247},"($ch, ",[1207,1794,1795],{"class":1221},"CURLINFO_RESPONSE_CODE",[1207,1797,1550],{"class":1247},[1207,1799,1800,1803,1805,1808,1811,1814],{"class":1209,"line":508},[1207,1801,1802],{"class":1247},"$body ",[1207,1804,1585],{"class":1235},[1207,1806,1807],{"class":1221}," json_decode",[1207,1809,1810],{"class":1247},"($response, ",[1207,1812,1813],{"class":1221},"true",[1207,1815,1550],{"class":1247},[1207,1817,1818,1820,1823,1826,1829],{"class":1209,"line":513},[1207,1819,1487],{"class":1235},[1207,1821,1822],{"class":1247}," ($status ",[1207,1824,1825],{"class":1235},">=",[1207,1827,1828],{"class":1221}," 400",[1207,1830,1757],{"class":1247},[1207,1832,1833,1836,1838,1841,1844],{"class":1209,"line":521},[1207,1834,1835],{"class":1247},"    $error ",[1207,1837,1585],{"class":1235},[1207,1839,1840],{"class":1247}," $body[",[1207,1842,1843],{"class":1228},"'error'",[1207,1845,1846],{"class":1247},"];\n",[1207,1848,1849,1851,1853,1855,1857,1859,1862,1865,1868,1871,1873,1876],{"class":1209,"line":530},[1207,1850,1762],{"class":1235},[1207,1852,1502],{"class":1235},[1207,1854,1767],{"class":1221},[1207,1856,1361],{"class":1247},[1207,1858,1251],{"class":1228},[1207,1860,1861],{"class":1247},"$status",[1207,1863,1864],{"class":1228}," {",[1207,1866,1867],{"class":1247},"$error",[1207,1869,1870],{"class":1228},"['code']}: {",[1207,1872,1867],{"class":1247},[1207,1874,1875],{"class":1228},"['message']}\"",[1207,1877,1550],{"class":1247},[1207,1879,1880],{"class":1209,"line":536},[1207,1881,1301],{"class":1247},[1207,1883,1884,1887,1890,1893],{"class":1209,"line":541},[1207,1885,1886],{"class":1221},"print_r",[1207,1888,1889],{"class":1247},"($body[",[1207,1891,1892],{"class":1228},"'data'",[1207,1894,1728],{"class":1247},[1896,1897,1898],"style",{},"html pre.shiki code .sLBg1, html code.shiki .sLBg1{--shiki-default:#66707B;--shiki-dark:#BDC4CC}html pre.shiki code .soyes, html code.shiki .soyes{--shiki-default:#702C00;--shiki-dark:#FFB757}html pre.shiki code .s-5SL, html code.shiki .s-5SL{--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .sT6z2, html code.shiki .sT6z2{--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .sHUrx, html code.shiki .sHUrx{--shiki-default:#A0111F;--shiki-dark:#FF9492}html pre.shiki code .suds8, html code.shiki .suds8{--shiki-default:#0E1116;--shiki-dark:#F0F3F6}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 .sKwhi, html code.shiki .sKwhi{--shiki-default:#622CBC;--shiki-dark:#DBB7FF}",{"title":1203,"searchDepth":388,"depth":393,"links":1900},[],"Pays the pending payments of up to 100 applications of your students in this organization from your wallet, one credit each, all or nothing, under one referenc…","md",{},"35",{"title":267,"description":1901},"api\u002Freference\u002Fpay-applications-from-wallet","uxLMGto3lSuXUqSI1oIy1En-E2vBJ5x1SZTfMKDlNRM",1795776468491]