wxpay_order_apis_4tp3344.json 194 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973
  1. {
  2. "configuration":{},
  3. "desc":"微信支付云模板apis",
  4. "id":"data-4ZyCZAPC4",
  5. "isNewDataSource":1,
  6. "methods":[
  7. {
  8. "isTitleInValid":false,
  9. "description":"商家转账用户确认模式下,用户申请收款时,商户可通过此接口申请创建转账单\n接口返回的HTTP状态码及错误码,仅代表本次请求的结果,不能代表订单状态。\n接口返回的HTTP状态码为200,且订单状态为ACCEPTED时,可认为发起商家转账成功。\n接口返回的HTTP状态码不为200时,请商户务必不要立即更换商户订单号重试。可根据错误码列表中的描述和接口返回的信息进行处理,并在查询原订单结果为失败或者联系客服确认情况后,再更换商户订单号进行重试。否则会有重复转账的资金风险。\n注:单个商户的接口频率限制为100次/s",
  10. "title":"发起转账",
  11. "type":"http",
  12. "outParams":{
  13. "x-keyPath":"",
  14. "x-id":"gds4il9q",
  15. "title":"value",
  16. "type":"object",
  17. "properties":{
  18. "transfer_bill_no":{
  19. "x-required":false,
  20. "x-keyPath":"transfer_bill_no",
  21. "x-id":"35a73b94",
  22. "format":"",
  23. "description":"【微信转账单号】 微信转账单号,微信商家转账系统返回的唯一标识",
  24. "type":"string",
  25. "x-index":10,
  26. "title":"微信转账单号",
  27. "x-unique":false,
  28. "maxLength":64
  29. },
  30. "create_time":{
  31. "x-required":false,
  32. "x-keyPath":"create_time",
  33. "x-id":"58517f58",
  34. "format":"",
  35. "description":"【单据创建时间】 单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
  36. "type":"string",
  37. "x-index":8,
  38. "title":"单据创建时间",
  39. "x-unique":false
  40. },
  41. "out_bill_no":{
  42. "x-required":false,
  43. "x-keyPath":"out_bill_no",
  44. "x-id":"76eee83c",
  45. "format":"",
  46. "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
  47. "type":"string",
  48. "x-index":12,
  49. "title":"商户单号",
  50. "x-unique":false,
  51. "maxLength":32
  52. },
  53. "state":{
  54. "x-required":false,
  55. "x-keyPath":"state",
  56. "x-id":"a76dab48",
  57. "format":"",
  58. "description":"【单据状态】 商家转账订单状态\n\n可选取值\n\nACCEPTED: 转账已受理\n\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\n\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\n\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\n\nSUCCESS: 转账成功\n\nFAIL: 转账失败\n\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\n\nCANCELLED: 转账撤销完成",
  59. "type":"string",
  60. "x-index":6,
  61. "title":"单据状态",
  62. "x-unique":false
  63. },
  64. "fail_reason":{
  65. "x-required":false,
  66. "x-keyPath":"fail_reason",
  67. "x-id":"45f6f651",
  68. "format":"",
  69. "name":"fail_reason",
  70. "description":"【失败原因】 订单已失败或者已退资金时,会返回订单失败原因",
  71. "isEnum":false,
  72. "type":"string",
  73. "x-index":4,
  74. "title":"失败原因",
  75. "x-unique":false
  76. },
  77. "package_info":{
  78. "x-required":false,
  79. "x-keyPath":"package_info",
  80. "x-id":"8wi185yj",
  81. "format":"",
  82. "name":"package_info",
  83. "description":"【跳转领取页面的package信息】 跳转微信支付收款页的package信息,APP调起用户确认收款或者JSAPI调起用户确认收款 时需要使用的参数。\n\n单据创建后,用户24小时内不领取将过期关闭,建议拉起用户确认收款页面前,先查单据状态:如单据状态为待收款用户确认,可用之前的package信息拉起;单据到终态时需更换单号重新发起转账。",
  84. "type":"string",
  85. "x-index":2,
  86. "title":"跳转领取页面的package信息",
  87. "x-unique":false
  88. }
  89. }
  90. },
  91. "intent":"create",
  92. "uuid":"00963746-82a2-49da-9b87-6ed15c68a6bb",
  93. "isNameInValid":false,
  94. "isShow":true,
  95. "tags":"商家转账(新)",
  96. "inParams":{
  97. "additionalProperties":true,
  98. "type":"object",
  99. "properties":{
  100. "transfer_scene_report_infos":{
  101. "x-required":true,
  102. "x-keyPath":"",
  103. "x-id":"f36b31bd",
  104. "format":"",
  105. "description":"【转账场景报备信息】 各转账场景下需报备的内容,商户需要按照所属转账场景规则传参",
  106. "type":"array",
  107. "x-index":10,
  108. "title":"转账场景报备信息",
  109. "list":[
  110. {
  111. "x-keyPath":"",
  112. "x-id":"e664386b",
  113. "format":"",
  114. "description":"不能超过15个字符,商户所属转账场景下的信息类型,此字段内容为固定值,需严格按照转账场景报备信息字段说明传参。",
  115. "isEnum":false,
  116. "pId":"f36b31bd",
  117. "type":"string",
  118. "x-index":6,
  119. "title":"信息类型",
  120. "x-unique":false,
  121. "x-required":true,
  122. "name":"info_type",
  123. "maxLength":15
  124. },
  125. {
  126. "x-keyPath":"",
  127. "x-id":"99e9e648",
  128. "format":"",
  129. "description":"【信息内容】 不能超过32个字符,商户所属转账场景下的信息内容,商户可按实际业务场景自定义传参,需严格按照转账场景报备信息字段说明传参。",
  130. "isEnum":false,
  131. "pId":"f36b31bd",
  132. "type":"string",
  133. "x-index":4,
  134. "title":"信息内容",
  135. "x-unique":false,
  136. "x-required":true,
  137. "name":"info_content",
  138. "maxLength":32
  139. }
  140. ],
  141. "items":{
  142. "format":"",
  143. "type":"object",
  144. "properties":{
  145. "info_type":{
  146. "x-keyPath":"",
  147. "x-id":"e664386b",
  148. "format":"",
  149. "description":"不能超过15个字符,商户所属转账场景下的信息类型,此字段内容为固定值,需严格按照转账场景报备信息字段说明传参。",
  150. "isEnum":false,
  151. "pId":"f36b31bd",
  152. "type":"string",
  153. "x-index":6,
  154. "title":"信息类型",
  155. "x-unique":false,
  156. "x-required":true,
  157. "name":"info_type",
  158. "maxLength":15
  159. },
  160. "info_content":{
  161. "x-keyPath":"",
  162. "x-id":"99e9e648",
  163. "format":"",
  164. "description":"【信息内容】 不能超过32个字符,商户所属转账场景下的信息内容,商户可按实际业务场景自定义传参,需严格按照转账场景报备信息字段说明传参。",
  165. "isEnum":false,
  166. "pId":"f36b31bd",
  167. "type":"string",
  168. "x-index":4,
  169. "title":"信息内容",
  170. "x-unique":false,
  171. "x-required":true,
  172. "name":"info_content",
  173. "maxLength":32
  174. }
  175. }
  176. },
  177. "x-unique":false
  178. },
  179. "transfer_amount":{
  180. "x-required":true,
  181. "x-keyPath":"",
  182. "x-id":"7cc9725f",
  183. "format":"",
  184. "description":"【转账金额】 转账金额单位为“分”。",
  185. "type":"number",
  186. "x-index":18,
  187. "title":"转账金额",
  188. "x-unique":false
  189. },
  190. "user_name":{
  191. "x-required":false,
  192. "x-keyPath":"",
  193. "x-id":"8ece8e6b",
  194. "format":"",
  195. "description":"【收款用户姓名】 收款方真实姓名。需要加密传入,支持标准RSA算法和国密算法,公钥由微信侧提供。\n转账金额 >= 2,000元时,该笔明细必须填写\n若商户传入收款用户姓名,微信支付会校验收款用户与输入姓名是否一致,并提供电子回单",
  196. "type":"string",
  197. "x-index":20,
  198. "title":"收款用户姓名",
  199. "x-unique":false
  200. },
  201. "openid":{
  202. "x-required":true,
  203. "x-keyPath":"",
  204. "x-id":"eb4475be",
  205. "format":"",
  206. "name":"openid",
  207. "description":"【收款用户OpenID】 用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见参数说明。",
  208. "isEnum":false,
  209. "type":"string",
  210. "x-index":22,
  211. "title":"收款用户OpenID",
  212. "x-unique":false,
  213. "maxLength":64
  214. },
  215. "appid":{
  216. "x-required":true,
  217. "x-keyPath":"",
  218. "x-id":"df7ffc95",
  219. "format":"",
  220. "description":"",
  221. "type":"string",
  222. "x-index":28,
  223. "title":"商户AppID",
  224. "x-unique":false,
  225. "maxLength":32
  226. },
  227. "out_bill_no":{
  228. "x-required":true,
  229. "x-keyPath":"",
  230. "x-id":"f58eaa83",
  231. "format":"",
  232. "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
  233. "type":"string",
  234. "x-index":26,
  235. "title":"商户单号",
  236. "x-unique":false,
  237. "maxLength":32
  238. },
  239. "user_recv_perception":{
  240. "x-required":false,
  241. "x-keyPath":"",
  242. "x-id":"f7ab934c",
  243. "format":"",
  244. "name":"user_recv_perception",
  245. "description":"【用户收款感知】 用户收款时感知到的收款原因将根据转账场景自动展示默认内容。如有其他展示需求,可在本字段传入。各场景展示的默认内容和支持传入的内容,可查看产品文档了解。",
  246. "isEnum":false,
  247. "type":"string",
  248. "x-index":12,
  249. "title":"用户收款感知",
  250. "x-unique":false
  251. },
  252. "notify_url":{
  253. "x-required":false,
  254. "x-keyPath":"",
  255. "x-id":"8c76d488",
  256. "format":"",
  257. "description":"【通知地址】 异步接收微信支付结果通知的回调地址,通知url必须为公网可访问的URL,必须为HTTPS,不能携带参数。",
  258. "type":"string",
  259. "x-index":14,
  260. "title":"通知地址",
  261. "x-unique":false,
  262. "maxLength":256
  263. },
  264. "transfer_remark":{
  265. "x-required":true,
  266. "x-keyPath":"",
  267. "x-id":"46f64cb1",
  268. "format":"",
  269. "name":"transfer_remark",
  270. "description":"【转账备注】 转账备注,用户收款时可见该备注信息,UTF8编码,最多允许32个字符\n\n",
  271. "isEnum":false,
  272. "type":"string",
  273. "x-index":16,
  274. "title":"转账备注",
  275. "x-unique":false,
  276. "maxLength":32
  277. },
  278. "transfer_scene_id":{
  279. "x-required":true,
  280. "x-keyPath":"",
  281. "x-id":"485c4c7a",
  282. "format":"",
  283. "description":"【转账场景ID】 该笔转账使用的转账场景,可前往“商户平台-产品中心-商家转账”中申请。如:1000(现金营销),1006(企业报销)等",
  284. "type":"string",
  285. "x-index":24,
  286. "title":"转账场景ID",
  287. "x-unique":false,
  288. "maxLength":36
  289. }
  290. },
  291. "required":[]
  292. },
  293. "name":"createTransferBills",
  294. "calleeBody":{
  295. "method":"POST",
  296. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  297. "query":{
  298. "values":{
  299. "type":"object",
  300. "value":{},
  301. "key":"a625d27853c39fd4"
  302. }
  303. },
  304. "isUrlInValid":true,
  305. "body":{
  306. "values":{
  307. "type":"string",
  308. "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"out_bill_no\": \"{{params.out_bill_no}}\",\n \"transfer_scene_id\": \"{{params.transfer_scene_id}}\",\n \"openid\": \"{{params.openid}}\",\n \"user_name\": \"{{params.user_name}}\",\n \"transfer_amount\": {{params.transfer_amount}},\n \"transfer_remark\": \"{{params.transfer_remark}}\",\n \"notify_url\": \"{{params.notify_url}}\",\n \"user_recv_perception\": \"{{params.user_recv_perception}}\",\n \"transfer_scene_report_infos\": {{params.transfer_scene_report_infos}}\n}",
  309. "key":"json"
  310. },
  311. "contentType":"json"
  312. },
  313. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills"
  314. },
  315. "isCollapse":true
  316. },
  317. {
  318. "isTitleInValid":false,
  319. "description":"商户通过转账接口发起付款后,在用户确认收款之前可以通过该接口撤销付款。该接口返回成功仅表示撤销请求已受理,系统会异步处理退款等操作,以最终查询单据返回状态为准。",
  320. "title":"撤销转账",
  321. "type":"http",
  322. "outParams":{
  323. "x-keyPath":"",
  324. "x-id":"gds4il9q",
  325. "title":"value",
  326. "type":"object",
  327. "properties":{
  328. "update_time":{
  329. "x-required":false,
  330. "x-keyPath":"update_time",
  331. "x-id":"58517f58",
  332. "format":"",
  333. "name":"update_time",
  334. "description":"【最后一次单据状态变更时间】 按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
  335. "isEnum":false,
  336. "type":"string",
  337. "x-index":8,
  338. "title":"最后一次单据状态变更时间",
  339. "x-unique":false
  340. },
  341. "transfer_bill_no":{
  342. "x-required":false,
  343. "x-keyPath":"transfer_bill_no",
  344. "x-id":"35a73b94",
  345. "format":"",
  346. "description":"【微信转账单号】 微信转账单号,微信商家转账系统返回的唯一标识",
  347. "type":"string",
  348. "x-index":10,
  349. "title":"微信转账单号",
  350. "x-unique":false,
  351. "maxLength":64
  352. },
  353. "out_bill_no":{
  354. "x-required":false,
  355. "x-keyPath":"out_bill_no",
  356. "x-id":"76eee83c",
  357. "format":"",
  358. "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
  359. "type":"string",
  360. "x-index":12,
  361. "title":"商户单号",
  362. "x-unique":false,
  363. "maxLength":32
  364. },
  365. "state":{
  366. "x-required":false,
  367. "x-keyPath":"state",
  368. "x-id":"a76dab48",
  369. "format":"",
  370. "name":"state",
  371. "description":"【单据状态】 CANCELING: 撤销中;CANCELLED:已撤销",
  372. "isEnum":false,
  373. "type":"string",
  374. "x-index":6,
  375. "title":"单据状态",
  376. "x-unique":false
  377. }
  378. }
  379. },
  380. "intent":"create",
  381. "uuid":"428c25d4-0127-431f-af40-1657e4082f84",
  382. "isNameInValid":false,
  383. "isShow":true,
  384. "tags":"商家转账(新)",
  385. "inParams":{
  386. "additionalProperties":true,
  387. "type":"object",
  388. "properties":{},
  389. "required":[]
  390. },
  391. "name":"cancelTransferBill",
  392. "calleeBody":{
  393. "method":"POST",
  394. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  395. "query":{
  396. "values":{
  397. "type":"object",
  398. "value":{},
  399. "key":"a625d27853c39fd4"
  400. }
  401. },
  402. "isUrlInValid":true,
  403. "body":{
  404. "values":{
  405. "type":"string",
  406. "value":"{}",
  407. "key":"json"
  408. },
  409. "contentType":"json"
  410. },
  411. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{{params.out_bill_no}}/cancel"
  412. },
  413. "isCollapse":true
  414. },
  415. {
  416. "isTitleInValid":false,
  417. "description":"商家转账用户确认模式下,根据商户单号查询转账单的详细信息。\n\n注意\nAPI只支持查询最近30天内的转账单,超过30天可以通过资金账单对账确认。\n转账单中涉及金额的字段单位为“分”。\n如果遇到新的错误码,请务必不要换单重试,请联系客服确认转账情况。如果有新的错误码,会更新到此API文档中。\n错误码描述字段message只供人工定位问题时做参考,系统实现时请不要依赖这个字段来做自动化处理。\n接口限频: 单个商户 100 QPS,如果超过频率限制,会报错 FREQUENCY_LIMITED",
  418. "title":"商户单号查询转账单",
  419. "type":"http",
  420. "outParams":{
  421. "x-keyPath":"",
  422. "x-id":"gds4il9q",
  423. "title":"value",
  424. "type":"object",
  425. "properties":{
  426. "update_time":{
  427. "x-required":false,
  428. "x-keyPath":"update_time",
  429. "x-id":"8wi185yj",
  430. "format":"",
  431. "name":"update_time",
  432. "description":"【最后一次状态变更时间】 单据最后更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
  433. "isEnum":false,
  434. "type":"string",
  435. "x-index":2,
  436. "title":"最后一次状态变更时间",
  437. "x-unique":false
  438. },
  439. "transfer_bill_no":{
  440. "x-required":false,
  441. "x-keyPath":"transfer_bill_no",
  442. "x-id":"8e9f488b",
  443. "format":"",
  444. "description":"【商家转账订单号】 商家转账订单的主键,唯一定义此资源的标识\n\n",
  445. "type":"string",
  446. "x-index":24,
  447. "title":"商家转账订单号",
  448. "x-unique":false
  449. },
  450. "create_time":{
  451. "x-required":false,
  452. "x-keyPath":"create_time",
  453. "x-id":"58517f58",
  454. "format":"",
  455. "description":"【单据创建时间】 单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
  456. "type":"string",
  457. "x-index":8,
  458. "title":"单据创建时间",
  459. "x-unique":false
  460. },
  461. "transfer_amount":{
  462. "x-required":false,
  463. "x-keyPath":"transfer_amount",
  464. "x-id":"7b3c5e39",
  465. "format":"",
  466. "description":"【转账金额】 转账金额单位为“分”。",
  467. "type":"number",
  468. "x-index":18,
  469. "title":"转账金额",
  470. "x-unique":false
  471. },
  472. "user_name":{
  473. "x-required":false,
  474. "x-keyPath":"user_name",
  475. "x-id":"35a73b94",
  476. "format":"",
  477. "name":"user_name",
  478. "description":"【收款用户姓名】 收款方真实姓名。支持标准RSA算法和国密算法,公钥由微信侧提供转账金额 >= 2,000元时,该笔明细必须填写若商户传入收款用户姓名,微信支付会校验用户OpenID与姓名是否一致,并提供电子回单",
  479. "isEnum":false,
  480. "type":"string",
  481. "x-index":10,
  482. "title":"收款用户姓名",
  483. "x-unique":false,
  484. "maxLength":64
  485. },
  486. "openid":{
  487. "x-required":false,
  488. "x-keyPath":"openid",
  489. "x-id":"76eee83c",
  490. "format":"",
  491. "name":"openid",
  492. "description":"【收款用户OpenID】 用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见参数说明。",
  493. "isEnum":false,
  494. "type":"string",
  495. "x-index":12,
  496. "title":"收款用户OpenID",
  497. "x-unique":false,
  498. "maxLength":64
  499. },
  500. "appid":{
  501. "x-required":false,
  502. "x-keyPath":"appid",
  503. "x-id":"f3f519b4",
  504. "format":"",
  505. "description":"【商户AppID】 是微信开放平台和微信公众平台为开发者的应用程序(APP、小程序、公众号、企业号corpid即为此AppID)提供的一个唯一标识。此处,可以填写这四种类型中的任意一种APPID,但请确保该appid与商户号有绑定关系。详见:普通商户模式开发必要参数说明。",
  506. "type":"string",
  507. "x-index":22,
  508. "title":"商户AppID",
  509. "x-unique":false
  510. },
  511. "out_bill_no":{
  512. "x-required":false,
  513. "x-keyPath":"out_bill_no",
  514. "x-id":"e18d38d8",
  515. "format":"",
  516. "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
  517. "type":"string",
  518. "x-index":26,
  519. "title":"商户单号",
  520. "x-unique":false,
  521. "maxLength":32
  522. },
  523. "state":{
  524. "x-required":false,
  525. "x-keyPath":"state",
  526. "x-id":"7fc713f9",
  527. "format":"",
  528. "description":"【单据状态】\n\n可选取值\n\nACCEPTED: 转账已受理\n\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\n\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\n\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\n\nSUCCESS: 转账成功\n\nFAIL: 转账失败\n\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\n\nCANCELLED: 转账撤销完成",
  529. "type":"string",
  530. "x-index":20,
  531. "title":"单据状态",
  532. "x-unique":false
  533. },
  534. "fail_reason":{
  535. "x-required":false,
  536. "x-keyPath":"fail_reason",
  537. "x-id":"5ba6bdcf",
  538. "format":"",
  539. "description":"【失败原因】 订单已失败或者已退资金时,会返回订单失败原因\n\n",
  540. "type":"string",
  541. "x-index":14,
  542. "title":"失败原因",
  543. "x-unique":false
  544. },
  545. "mch_id":{
  546. "x-required":false,
  547. "x-keyPath":"mch_id",
  548. "x-id":"29bef237",
  549. "format":"",
  550. "description":"【商户号】 微信支付分配的商户号",
  551. "type":"string",
  552. "x-index":28,
  553. "title":"商户号",
  554. "x-unique":false
  555. },
  556. "transfer_remark":{
  557. "x-required":false,
  558. "x-keyPath":"transfer_remark",
  559. "x-id":"94f6dfdf",
  560. "format":"",
  561. "description":"【转账备注】 单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符\n\n",
  562. "type":"string",
  563. "x-index":16,
  564. "title":"转账备注",
  565. "x-unique":false,
  566. "maxLength":32
  567. }
  568. }
  569. },
  570. "intent":"create",
  571. "uuid":"4cfe011a-bcbe-4dbe-a4ed-6f3e854e5356",
  572. "isNameInValid":false,
  573. "isShow":true,
  574. "tags":"商家转账(新)",
  575. "inParams":{
  576. "additionalProperties":true,
  577. "type":"object",
  578. "properties":{},
  579. "required":[]
  580. },
  581. "name":"getBillByOutBillNo",
  582. "calleeBody":{
  583. "method":"GET",
  584. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  585. "query":{
  586. "values":{
  587. "type":"object",
  588. "value":{},
  589. "key":"a625d27853c39fd4"
  590. }
  591. },
  592. "isUrlInValid":true,
  593. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{{params.out_bill_no}}"
  594. },
  595. "isCollapse":true
  596. },
  597. {
  598. "isTitleInValid":false,
  599. "title":"微信单号查询转账单",
  600. "type":"http",
  601. "outParams":{
  602. "additionalProperties":true,
  603. "type":"object",
  604. "properties":{
  605. "update_time":{
  606. "x-required":false,
  607. "x-keyPath":"",
  608. "x-id":"5f1fea23",
  609. "format":"",
  610. "name":"update_time",
  611. "description":"【最后一次状态变更时间】单据最后更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE。",
  612. "isEnum":false,
  613. "type":"string",
  614. "x-index":2,
  615. "title":"最后一次状态变更时间",
  616. "x-unique":false
  617. },
  618. "transfer_bill_no":{
  619. "x-required":false,
  620. "x-keyPath":"",
  621. "x-id":"4451eb8f",
  622. "format":"",
  623. "name":"transfer_bill_no",
  624. "description":"【商家转账订单号】商家转账订单的主键,唯一定义此资源的标识。",
  625. "isEnum":false,
  626. "type":"string",
  627. "x-index":20,
  628. "title":"商家转账订单号",
  629. "x-unique":false
  630. },
  631. "create_time":{
  632. "x-required":false,
  633. "x-keyPath":"",
  634. "x-id":"f2b9cb3c",
  635. "format":"",
  636. "name":"create_time",
  637. "description":"【单据创建时间】单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE。",
  638. "isEnum":false,
  639. "type":"string",
  640. "x-index":4,
  641. "title":"单据创建时间",
  642. "x-unique":false
  643. },
  644. "transfer_amount":{
  645. "x-required":false,
  646. "x-keyPath":"",
  647. "x-id":"ad7a8267",
  648. "format":"",
  649. "name":"transfer_amount",
  650. "description":"【转账金额】转账金额单位为“分”。",
  651. "isEnum":false,
  652. "type":"number",
  653. "x-index":14,
  654. "title":"转账金额",
  655. "x-unique":false
  656. },
  657. "user_name":{
  658. "x-required":false,
  659. "x-keyPath":"",
  660. "x-id":"be57137d",
  661. "format":"",
  662. "name":"user_name",
  663. "description":"【收款用户姓名】收款方真实姓名。支持标准RSA算法和国密算法,公钥由微信侧提供转账金额 >= 2,000元时,该笔明细必须填写若商户传入收款用户姓名,微信支付会校验用户OpenID与姓名是否一致,并提供电子回单。",
  664. "isEnum":false,
  665. "type":"string",
  666. "x-index":6,
  667. "title":"收款用户姓名",
  668. "x-unique":false
  669. },
  670. "openid":{
  671. "x-required":false,
  672. "x-keyPath":"",
  673. "x-id":"b5787b6e",
  674. "format":"",
  675. "name":"openid",
  676. "description":"用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见https://pay.weixin.qq.com/doc/v3/merchant/4012068676。",
  677. "isEnum":false,
  678. "type":"string",
  679. "x-index":8,
  680. "title":"收款用户OpenID",
  681. "x-unique":false,
  682. "maxLength":64
  683. },
  684. "appid":{
  685. "x-required":false,
  686. "x-keyPath":"",
  687. "x-id":"2ceb1ae7",
  688. "format":"",
  689. "name":"appid",
  690. "description":"【商户AppID】是微信开放平台和微信公众平台为开发者的应用程序(APP、小程序、公众号、企业号corpid即为此AppID)提供的一个唯一标识。此处,可以填写这四种类型中的任意一种APPID,但请确保该appid与商户号有绑定关系。详见:https://pay.weixin.qq.com/doc/v3/merchant/4013070756。",
  691. "isEnum":false,
  692. "type":"string",
  693. "x-index":18,
  694. "title":"商户AppID",
  695. "x-unique":false
  696. },
  697. "out_bill_no":{
  698. "x-required":false,
  699. "x-keyPath":"",
  700. "x-id":"4b96f34a",
  701. "format":"",
  702. "name":"out_bill_no",
  703. "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一。",
  704. "isEnum":false,
  705. "type":"string",
  706. "x-index":22,
  707. "title":"商户单号",
  708. "x-unique":false,
  709. "maxLength":32
  710. },
  711. "state":{
  712. "x-required":false,
  713. "x-keyPath":"",
  714. "x-id":"8efcd522",
  715. "format":"",
  716. "name":"state",
  717. "description":"【单据状态】\nACCEPTED: 转账已受理\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\nSUCCESS: 转账成功\nFAIL: 转账失败\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\nCANCELLED: 转账撤销完成",
  718. "isEnum":false,
  719. "type":"string",
  720. "x-index":16,
  721. "title":"单据状态",
  722. "x-unique":false
  723. },
  724. "fail_reason":{
  725. "x-required":false,
  726. "x-keyPath":"",
  727. "x-id":"ad3c8949",
  728. "format":"",
  729. "name":"fail_reason",
  730. "description":"订单已失败或者已退资金时,会返回订单失败原因,https://pay.weixin.qq.com/doc/v3/merchant/4013774966。",
  731. "isEnum":false,
  732. "type":"string",
  733. "x-index":10,
  734. "title":"失败原因",
  735. "x-unique":false
  736. },
  737. "mch_id":{
  738. "x-required":false,
  739. "x-keyPath":"",
  740. "x-id":"f6b1cc67",
  741. "format":"",
  742. "name":"mch_id",
  743. "description":"【商户号】 微信支付分配的商户号。",
  744. "isEnum":false,
  745. "type":"string",
  746. "x-index":24,
  747. "title":"商户号",
  748. "x-unique":false
  749. },
  750. "transfer_remark":{
  751. "x-required":false,
  752. "x-keyPath":"",
  753. "x-id":"5c68fdc3",
  754. "format":"",
  755. "name":"transfer_remark",
  756. "description":"【转账备注】单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符。",
  757. "isEnum":false,
  758. "type":"string",
  759. "x-index":12,
  760. "title":"转账备注",
  761. "x-unique":false,
  762. "maxLength":32
  763. }
  764. },
  765. "required":[]
  766. },
  767. "intent":"create",
  768. "uuid":"3bbb327e-18fc-4100-a0dc-0a17a2a1ef8a",
  769. "isNameInValid":false,
  770. "isShow":true,
  771. "tags":"商家转账(新)",
  772. "inParams":{
  773. "additionalProperties":true,
  774. "type":"object",
  775. "properties":{},
  776. "required":[]
  777. },
  778. "name":"getBillByTransferBillNo",
  779. "calleeBody":{
  780. "method":"GET",
  781. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  782. "isUrlInValid":true,
  783. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/transfer-bill-no/{{params.transfer_bill_no}}"
  784. },
  785. "isCollapse":true
  786. },
  787. {
  788. "isTitleInValid":false,
  789. "description":"商户可以指定商户转账单号通过该接口申请商家转账用户确认模式转账单据 对应的电子回单。\n微信支付会在校验满足回单申请条件后受理回单的申请,商户后续可以通过电子回单查询接口查询回单处理进度。\n申请回单前,请先确认是否满足回单申请的条件,不满足回单申请条件时,多次重试申请无意义:\n1. 仅支持付款成功的转账单据申请电子回单.\n2. 仅支持传入姓名的转账单据申请电子回单.\n3. 仅支持六个月内的转账单据申请电子回单.\n回单申请完成后的有效期为90天,过期后需要重新申请。最终以查单结果返回为准。",
  790. "title":"商户单号申请电子回单",
  791. "type":"http",
  792. "outParams":{
  793. "additionalProperties":true,
  794. "type":"object",
  795. "properties":{
  796. "create_time":{
  797. "x-required":false,
  798. "x-keyPath":"",
  799. "x-id":"34b4377d",
  800. "format":"",
  801. "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
  802. "type":"string",
  803. "x-index":2,
  804. "title":"申请单创建时间",
  805. "x-unique":false,
  806. "maxLength":32
  807. },
  808. "state":{
  809. "x-required":false,
  810. "x-keyPath":"",
  811. "x-id":"326fac7c",
  812. "format":"",
  813. "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED: 已失败。\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因",
  814. "type":"string",
  815. "x-index":4,
  816. "title":"申请单状态",
  817. "x-unique":false
  818. }
  819. },
  820. "required":[]
  821. },
  822. "intent":"create",
  823. "uuid":"044e4a1e-ca53-4f32-bba1-e61bfc9a52b5",
  824. "isNameInValid":false,
  825. "isShow":true,
  826. "tags":"商家转账(新)",
  827. "inParams":{
  828. "additionalProperties":true,
  829. "type":"object",
  830. "properties":{
  831. "out_bill_no":{
  832. "x-required":true,
  833. "x-keyPath":"",
  834. "x-id":"f779b526",
  835. "format":"",
  836. "name":"out_bill_no",
  837. "description":"【商户转账单号】 商户创建转账单据使用的单号",
  838. "isEnum":false,
  839. "type":"string",
  840. "x-index":2,
  841. "title":"商户转账单号",
  842. "x-unique":false,
  843. "maxLength":32
  844. }
  845. },
  846. "required":[]
  847. },
  848. "name":"createElecsignByOutBillNo",
  849. "calleeBody":{
  850. "method":"POST",
  851. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  852. "isUrlInValid":true,
  853. "body":{
  854. "values":{
  855. "type":"string",
  856. "value":"{\n \"out_bill_no\": \"{{params.out_bill_no}}\"\n}",
  857. "key":"json"
  858. },
  859. "contentType":"json"
  860. },
  861. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no"
  862. },
  863. "isCollapse":true
  864. },
  865. {
  866. "isTitleInValid":false,
  867. "description":"商户可以通过该接口查看回单申请进度\n请务必对比下载的回单文件的摘要值与查询接口返回的摘要值的一致性,确保得到的回单文件的真实性和完整性。\n下载地址的有效期为10分钟,超过10分钟后需要重新通过该接口获取下载地址(不需要重新申请)。",
  868. "title":"商户单号查询电子回单",
  869. "type":"http",
  870. "outParams":{
  871. "additionalProperties":true,
  872. "type":"object",
  873. "properties":{
  874. "update_time":{
  875. "x-required":false,
  876. "x-keyPath":"",
  877. "x-id":"4f57b6bf",
  878. "format":"",
  879. "description":"【申请单更新时间】 申请单最近的更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n",
  880. "type":"string",
  881. "x-index":8,
  882. "title":"申请单更新时间",
  883. "x-unique":false,
  884. "maxLength":32
  885. },
  886. "create_time":{
  887. "x-required":false,
  888. "x-keyPath":"",
  889. "x-id":"9c9bf6da",
  890. "format":"",
  891. "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n",
  892. "type":"string",
  893. "x-index":10,
  894. "title":"申请单创建时间",
  895. "x-unique":false,
  896. "maxLength":32
  897. },
  898. "download_url":{
  899. "x-required":false,
  900. "x-keyPath":"",
  901. "x-id":"67efbd21",
  902. "format":"",
  903. "description":"【回单文件下载地址】 申请单状态为已完成时返回,有效期10分钟,过期后可以重新通过该接口获取;下载地址的域名,路径,参数都可能变化,请不要自行拼接",
  904. "type":"string",
  905. "x-index":2,
  906. "title":"回单文件下载地址",
  907. "x-unique":false,
  908. "maxLength":3000
  909. },
  910. "state":{
  911. "x-required":false,
  912. "x-keyPath":"",
  913. "x-id":"da25d45b",
  914. "format":"",
  915. "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED:已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因\n",
  916. "type":"string",
  917. "x-index":12,
  918. "title":"申请单状态",
  919. "x-unique":false
  920. },
  921. "hash_value":{
  922. "x-required":false,
  923. "x-keyPath":"",
  924. "x-id":"3a132d22",
  925. "format":"",
  926. "description":"【回单文件摘要值】 申请单状态为已完成时返回,请务必将下载的回单文件摘要值与该值进行对比,以保证回单文件的完整性和真实性\n\n",
  927. "type":"string",
  928. "x-index":4,
  929. "title":"回单文件摘要值",
  930. "x-unique":false,
  931. "maxLength":512
  932. },
  933. "hash_type":{
  934. "x-required":false,
  935. "x-keyPath":"",
  936. "x-id":"1877fbb5",
  937. "format":"",
  938. "description":"【回单文件摘要类型】 申请单状态为已完成时返回\nSHA256: SHA256摘要算法\nSM3: 国密SM3摘要算法\n\n",
  939. "type":"string",
  940. "x-index":6,
  941. "title":"回单文件摘要类型",
  942. "x-unique":false
  943. }
  944. },
  945. "required":[]
  946. },
  947. "intent":"create",
  948. "uuid":"e1fa63dd-83f3-446f-b2cf-fa23c2444e4a",
  949. "isNameInValid":false,
  950. "isShow":true,
  951. "tags":"商家转账(新)",
  952. "inParams":{
  953. "additionalProperties":true,
  954. "type":"object",
  955. "properties":{},
  956. "required":[]
  957. },
  958. "name":"getElecsignByOutBillNo",
  959. "calleeBody":{
  960. "method":"GET",
  961. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  962. "isUrlInValid":true,
  963. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no/{{params.out_bill_no}}"
  964. },
  965. "isCollapse":true
  966. },
  967. {
  968. "isTitleInValid":false,
  969. "description":"商户可以指定微信转账单号通过该接口申请商家转账用户确认模式转账单据 对应的电子回单。\n微信支付会在校验满足回单申请条件后受理回单的申请,商户后续可以通过电子回单查询接口查询回单处理进度。\n申请回单前,请先确认是否满足回单申请的条件,不满足回单申请条件时,多次重试申请无意义:\n1. 仅支持付款成功的转账单据申请电子回单.\n2. 仅支持传入姓名的转账单据申请电子回单.\n3. 仅支持六个月内的转账单据申请电子回单.\n回单申请完成后的有效期为90天,过期后需要重新申请。最终以查单结果返回为准。",
  970. "title":"微信单号申请电子回单",
  971. "type":"http",
  972. "outParams":{
  973. "additionalProperties":true,
  974. "type":"object",
  975. "properties":{
  976. "create_time":{
  977. "x-required":false,
  978. "x-keyPath":"",
  979. "x-id":"b153b282",
  980. "format":"",
  981. "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
  982. "type":"string",
  983. "x-index":2,
  984. "title":"申请单创建时间",
  985. "x-unique":false,
  986. "maxLength":32
  987. },
  988. "state":{
  989. "x-required":false,
  990. "x-keyPath":"",
  991. "x-id":"cc2aad22",
  992. "format":"",
  993. "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED: 已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因",
  994. "type":"string",
  995. "x-index":4,
  996. "title":"申请单状态",
  997. "x-unique":false
  998. }
  999. },
  1000. "required":[]
  1001. },
  1002. "intent":"create",
  1003. "uuid":"ae745420-6c33-4fa3-b9a6-9ba127d24d2b",
  1004. "isNameInValid":false,
  1005. "isShow":true,
  1006. "tags":"商家转账(新)",
  1007. "inParams":{
  1008. "additionalProperties":true,
  1009. "type":"object",
  1010. "properties":{
  1011. "transfer_bill_no":{
  1012. "x-required":true,
  1013. "x-keyPath":"",
  1014. "x-id":"8e2df5fe",
  1015. "format":"",
  1016. "description":"【微信转账单号】 转账单据对应的微信支付单号",
  1017. "type":"string",
  1018. "x-index":2,
  1019. "title":"微信转账单号",
  1020. "x-unique":false,
  1021. "maxLength":64
  1022. }
  1023. },
  1024. "required":[]
  1025. },
  1026. "name":"createElecsignByTransferBillNo",
  1027. "calleeBody":{
  1028. "method":"POST",
  1029. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1030. "isUrlInValid":true,
  1031. "body":{
  1032. "values":{
  1033. "type":"string",
  1034. "value":"{\n \"transfer_bill_no\": \"{{params.transfer_bill_no}}\"\n}",
  1035. "key":"json"
  1036. },
  1037. "contentType":"json"
  1038. },
  1039. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/transfer-bill-no"
  1040. },
  1041. "isCollapse":true
  1042. },
  1043. {
  1044. "isTitleInValid":false,
  1045. "description":"商户可以通过该接口查看回单申请进度\n请务必对比下载的回单文件的摘要值与查询接口返回的摘要值的一致性,确保得到的回单文件的真实性和完整性。\n下载地址的有效期为10分钟,超过10分钟后需要重新通过该接口获取下载地址(不需要重新申请)。",
  1046. "title":"微信单号查询电子回单",
  1047. "type":"http",
  1048. "outParams":{
  1049. "additionalProperties":true,
  1050. "type":"object",
  1051. "properties":{
  1052. "update_time":{
  1053. "x-required":false,
  1054. "x-keyPath":"",
  1055. "x-id":"e91b584c",
  1056. "format":"",
  1057. "description":"【申请单更新时间】 申请单最近的更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
  1058. "type":"string",
  1059. "x-index":8,
  1060. "title":"申请单更新时间",
  1061. "x-unique":false,
  1062. "maxLength":32
  1063. },
  1064. "create_time":{
  1065. "x-required":false,
  1066. "x-keyPath":"",
  1067. "x-id":"c315cdcc",
  1068. "format":"",
  1069. "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n",
  1070. "type":"string",
  1071. "x-index":10,
  1072. "title":"申请单创建时间",
  1073. "x-unique":false,
  1074. "maxLength":32
  1075. },
  1076. "download_url":{
  1077. "x-required":false,
  1078. "x-keyPath":"",
  1079. "x-id":"3f7f7be2",
  1080. "format":"",
  1081. "description":"【回单文件下载地址】 申请单状态为已完成时返回,有效期10分钟,过期后可以重新通过该接口获取;下载地址的域名,路径,参数都可能变化,请不要自行拼接",
  1082. "type":"string",
  1083. "x-index":2,
  1084. "title":"回单文件下载地址",
  1085. "x-unique":false,
  1086. "maxLength":3000
  1087. },
  1088. "state":{
  1089. "x-required":false,
  1090. "x-keyPath":"",
  1091. "x-id":"a7fde85d",
  1092. "format":"",
  1093. "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED:已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因",
  1094. "type":"string",
  1095. "x-index":12,
  1096. "title":"申请单状态",
  1097. "x-unique":false
  1098. },
  1099. "hash_value":{
  1100. "x-required":false,
  1101. "x-keyPath":"",
  1102. "x-id":"962e7ea6",
  1103. "format":"",
  1104. "description":"【回单文件摘要值】 申请单状态为已完成时返回,请务必将下载的回单文件摘要值与该值进行对比,以保证回单文件的完整性和真实性\n\n",
  1105. "type":"string",
  1106. "x-index":4,
  1107. "title":"回单文件摘要值",
  1108. "x-unique":false,
  1109. "maxLength":512
  1110. },
  1111. "hash_type":{
  1112. "x-required":false,
  1113. "x-keyPath":"",
  1114. "x-id":"d279df78",
  1115. "format":"",
  1116. "description":"【回单文件摘要类型】 申请单状态为已完成时返回\nSHA256: SHA256摘要算法\nSM3: 国密SM3摘要算法",
  1117. "type":"string",
  1118. "x-index":6,
  1119. "title":"回单文件摘要类型",
  1120. "x-unique":false
  1121. }
  1122. },
  1123. "required":[]
  1124. },
  1125. "intent":"create",
  1126. "uuid":"fc3ec6b8-403c-4e60-9866-83215b5d8a74",
  1127. "isNameInValid":false,
  1128. "isShow":true,
  1129. "tags":"商家转账(新)",
  1130. "inParams":{
  1131. "additionalProperties":true,
  1132. "type":"object",
  1133. "properties":{},
  1134. "required":[]
  1135. },
  1136. "name":"getElecsignByTransferBillNo",
  1137. "calleeBody":{
  1138. "method":"GET",
  1139. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1140. "isUrlInValid":true,
  1141. "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/transfer-bill-no/{{params.transfer_bill_no}}"
  1142. },
  1143. "isCollapse":true
  1144. },
  1145. {
  1146. "isTitleInValid":false,
  1147. "description":"查询转账明细电子回单受理结果接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等。 前置条件:只支持查询最近两年内的转账明细单 URL路径:https://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-receipt-api/query-electronic-receipt.html",
  1148. "title":"查询转账明细电子回单受理结果",
  1149. "type":"http",
  1150. "outParams":{
  1151. "x-keyPath":"",
  1152. "x-id":"k04uqvj7",
  1153. "title":"value",
  1154. "type":"object",
  1155. "properties":{
  1156. "nonce_str":{
  1157. "x-keyPath":"nonce_str",
  1158. "x-id":"ja89o0z8",
  1159. "title":"nonce_str",
  1160. "type":"string"
  1161. },
  1162. "mchid":{
  1163. "x-keyPath":"mchid",
  1164. "x-id":"lkgqayh9",
  1165. "title":"mchid",
  1166. "type":"string"
  1167. },
  1168. "signature":{
  1169. "x-keyPath":"signature",
  1170. "x-id":"oyjnct7n",
  1171. "title":"signature",
  1172. "type":"string"
  1173. },
  1174. "download_url":{
  1175. "x-keyPath":"download_url",
  1176. "x-id":"92m5ayjs",
  1177. "title":"download_url",
  1178. "type":"string"
  1179. },
  1180. "hash_value":{
  1181. "x-keyPath":"hash_value",
  1182. "x-id":"czebjlf7",
  1183. "title":"hash_value",
  1184. "type":"string"
  1185. },
  1186. "serial_no":{
  1187. "x-keyPath":"serial_no",
  1188. "x-id":"daut0bcs",
  1189. "title":"serial_no",
  1190. "type":"string"
  1191. },
  1192. "hash_type":{
  1193. "x-keyPath":"hash_type",
  1194. "x-id":"0me3c2qd",
  1195. "title":"hash_type",
  1196. "type":"string"
  1197. },
  1198. "timestamp":{
  1199. "x-keyPath":"timestamp",
  1200. "x-id":"datg3sgy",
  1201. "title":"timestamp",
  1202. "type":"number"
  1203. }
  1204. }
  1205. },
  1206. "intent":"create",
  1207. "uuid":"b124a146-7abb-4ab5-a8a4-8d2d14523db0",
  1208. "isNameInValid":false,
  1209. "isShow":true,
  1210. "tags":"商家转账到零钱(旧)",
  1211. "inParams":{
  1212. "additionalProperties":true,
  1213. "type":"object",
  1214. "properties":{
  1215. "accept_type":{
  1216. "x-required":true,
  1217. "x-keyPath":"",
  1218. "x-id":"67e77f2",
  1219. "format":"",
  1220. "description":"",
  1221. "type":"string",
  1222. "x-index":6,
  1223. "title":"accept_type",
  1224. "x-unique":false,
  1225. "maxLength":4000
  1226. },
  1227. "out_batch_no":{
  1228. "x-required":false,
  1229. "x-keyPath":"",
  1230. "x-id":"72b33ee",
  1231. "format":"",
  1232. "name":"out_batch_no",
  1233. "description":"",
  1234. "isEnum":false,
  1235. "type":"string",
  1236. "x-index":2,
  1237. "title":"out_batch_no",
  1238. "x-unique":false,
  1239. "maxLength":4000
  1240. },
  1241. "out_detail_no":{
  1242. "x-required":true,
  1243. "x-keyPath":"",
  1244. "x-id":"9512fd6",
  1245. "format":"",
  1246. "description":"",
  1247. "type":"string",
  1248. "x-index":4,
  1249. "title":"out_detail_no",
  1250. "x-unique":false,
  1251. "maxLength":4000
  1252. }
  1253. },
  1254. "required":[]
  1255. },
  1256. "name":"getElectronicReceipts",
  1257. "calleeBody":{
  1258. "method":"GET",
  1259. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1260. "query":{
  1261. "values":{
  1262. "type":"object",
  1263. "value":{
  1264. "accept_type":"{{params.accept_type}}",
  1265. "out_batch_no":"{{params.out_batch_no}}",
  1266. "out_detail_no":"{{params.out_detail_no}}"
  1267. },
  1268. "key":"2734c0a2adfd40"
  1269. }
  1270. },
  1271. "isUrlInValid":true,
  1272. "url":"https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts"
  1273. },
  1274. "isCollapse":true
  1275. },
  1276. {
  1277. "isTitleInValid":false,
  1278. "description":"受理转账明细电子回单接口,商户通过该接口可以申请受理转账明细单电子回单服务。 前置条件:1、发起转账时传入了收款用户姓名,支持申请电子回单;2、只支持受理最近两年内的转账明细单 URL路径:https://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-receipt-api/create-electronic-receipt.html",
  1279. "title":"受理转账明细电子回单",
  1280. "type":"http",
  1281. "outParams":{
  1282. "x-keyPath":"",
  1283. "x-id":"lon2ejr1",
  1284. "title":"value",
  1285. "type":"object",
  1286. "properties":{
  1287. "signature_status":{
  1288. "x-keyPath":"signature_status",
  1289. "x-id":"ssuvbcw6",
  1290. "title":"signature_status",
  1291. "type":"string"
  1292. },
  1293. "accept_type":{
  1294. "x-keyPath":"accept_type",
  1295. "x-id":"s30qy8we",
  1296. "title":"accept_type",
  1297. "type":"string"
  1298. },
  1299. "signature_no":{
  1300. "x-keyPath":"signature_no",
  1301. "x-id":"5cxen6ab",
  1302. "title":"signature_no",
  1303. "type":"string"
  1304. },
  1305. "out_batch_no":{
  1306. "x-keyPath":"out_batch_no",
  1307. "x-id":"fcxxe217",
  1308. "title":"out_batch_no",
  1309. "type":"string"
  1310. },
  1311. "out_detail_no":{
  1312. "x-keyPath":"out_detail_no",
  1313. "x-id":"2dqod4s0",
  1314. "title":"out_detail_no",
  1315. "type":"string"
  1316. }
  1317. }
  1318. },
  1319. "intent":"create",
  1320. "uuid":"b974cbb0-c2d6-41fc-9012-09c3e0a96e9c",
  1321. "isNameInValid":false,
  1322. "isShow":true,
  1323. "tags":"商家转账到零钱(旧)",
  1324. "inParams":{
  1325. "additionalProperties":true,
  1326. "type":"object",
  1327. "properties":{
  1328. "accept_type":{
  1329. "x-required":true,
  1330. "x-keyPath":"",
  1331. "x-id":"9ada415",
  1332. "format":"",
  1333. "description":"",
  1334. "type":"string",
  1335. "x-index":2,
  1336. "title":"accept_type",
  1337. "x-unique":false,
  1338. "maxLength":4000
  1339. },
  1340. "out_batch_no":{
  1341. "x-required":false,
  1342. "x-keyPath":"",
  1343. "x-id":"8642b12",
  1344. "format":"",
  1345. "description":"",
  1346. "type":"string",
  1347. "x-index":4,
  1348. "title":"out_batch_no",
  1349. "x-unique":false,
  1350. "maxLength":4000
  1351. },
  1352. "out_detail_no":{
  1353. "x-required":true,
  1354. "x-keyPath":"",
  1355. "x-id":"7068098",
  1356. "format":"",
  1357. "description":"",
  1358. "type":"string",
  1359. "x-index":6,
  1360. "title":"out_detail_no",
  1361. "x-unique":false,
  1362. "maxLength":4000
  1363. }
  1364. },
  1365. "required":[]
  1366. },
  1367. "name":"electronicReceipts",
  1368. "calleeBody":{
  1369. "method":"POST",
  1370. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1371. "isUrlInValid":true,
  1372. "body":{
  1373. "values":{
  1374. "type":"string",
  1375. "value":"{{params}}",
  1376. "key":"json"
  1377. },
  1378. "contentType":"json"
  1379. },
  1380. "url":"https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts"
  1381. },
  1382. "isCollapse":true
  1383. },
  1384. {
  1385. "isTitleInValid":false,
  1386. "description":"查询转账账单电子回单接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-signature/get-electronic-signature-by-out-no.html",
  1387. "title":"查询转账账单电子回单接口",
  1388. "type":"http",
  1389. "outParams":{
  1390. "x-keyPath":"",
  1391. "x-id":"1qm8l5sj",
  1392. "title":"value",
  1393. "type":"object",
  1394. "properties":{
  1395. "nonce_str":{
  1396. "x-keyPath":"nonce_str",
  1397. "x-id":"4htq38gl",
  1398. "title":"nonce_str",
  1399. "type":"string"
  1400. },
  1401. "mchid":{
  1402. "x-keyPath":"mchid",
  1403. "x-id":"32by2vx8",
  1404. "title":"mchid",
  1405. "type":"string"
  1406. },
  1407. "signature":{
  1408. "x-keyPath":"signature",
  1409. "x-id":"ip410nr0",
  1410. "title":"signature",
  1411. "type":"string"
  1412. },
  1413. "download_url":{
  1414. "x-keyPath":"download_url",
  1415. "x-id":"pbfihrne",
  1416. "title":"download_url",
  1417. "type":"string"
  1418. },
  1419. "hash_value":{
  1420. "x-keyPath":"hash_value",
  1421. "x-id":"19kfupj1",
  1422. "title":"hash_value",
  1423. "type":"string"
  1424. },
  1425. "serial_no":{
  1426. "x-keyPath":"serial_no",
  1427. "x-id":"0rw74962",
  1428. "title":"serial_no",
  1429. "type":"string"
  1430. },
  1431. "hash_type":{
  1432. "x-keyPath":"hash_type",
  1433. "x-id":"cv0ua6x6",
  1434. "title":"hash_type",
  1435. "type":"string"
  1436. },
  1437. "timestamp":{
  1438. "x-keyPath":"timestamp",
  1439. "x-id":"p6oib1sg",
  1440. "title":"timestamp",
  1441. "type":"number"
  1442. }
  1443. }
  1444. },
  1445. "intent":"create",
  1446. "uuid":"b709c8d2-5527-4aa9-8d24-bc4612c59899",
  1447. "isNameInValid":false,
  1448. "isShow":true,
  1449. "tags":"商家转账到零钱(旧)",
  1450. "inParams":{
  1451. "additionalProperties":true,
  1452. "type":"object",
  1453. "properties":{
  1454. "out_batch_no":{
  1455. "x-required":true,
  1456. "x-keyPath":"",
  1457. "x-id":"adc51cc",
  1458. "format":"",
  1459. "description":"",
  1460. "type":"string",
  1461. "x-index":2,
  1462. "title":"out_batch_no",
  1463. "x-unique":false,
  1464. "maxLength":4000
  1465. }
  1466. },
  1467. "required":[]
  1468. },
  1469. "name":"getBillReceipt",
  1470. "calleeBody":{
  1471. "method":"GET",
  1472. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1473. "isUrlInValid":true,
  1474. "url":"https://api.mch.weixin.qq.com/v3/transfer/bill-receipt/{{params.out_batch_no}}"
  1475. },
  1476. "isCollapse":true
  1477. },
  1478. {
  1479. "isTitleInValid":false,
  1480. "description":"转账账单电子回单申请受理接口,商户通过该接口可以申请受理电子回单服务。 前置条件:1、发起转账时传入了收款用户姓名,支持申请电子回单;2、支持受理最近两年内的转账批次单;\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-signature/create-electronic-signature.html",
  1481. "title":"转账账单电子回单申请受理接口",
  1482. "type":"http",
  1483. "outParams":{
  1484. "x-keyPath":"",
  1485. "x-id":"4vvy518f",
  1486. "title":"value",
  1487. "type":"object",
  1488. "properties":{
  1489. "update_time":{
  1490. "x-keyPath":"update_time",
  1491. "x-id":"7vvpdziy",
  1492. "title":"update_time",
  1493. "type":"string"
  1494. },
  1495. "create_time":{
  1496. "x-keyPath":"create_time",
  1497. "x-id":"x1ccomvi",
  1498. "title":"create_time",
  1499. "type":"string"
  1500. },
  1501. "signature_status":{
  1502. "x-keyPath":"signature_status",
  1503. "x-id":"qfjrsdzj",
  1504. "title":"signature_status",
  1505. "type":"string"
  1506. },
  1507. "signature_no":{
  1508. "x-keyPath":"signature_no",
  1509. "x-id":"hejl2jlp",
  1510. "title":"signature_no",
  1511. "type":"string"
  1512. },
  1513. "out_batch_no":{
  1514. "x-keyPath":"out_batch_no",
  1515. "x-id":"gl608k48",
  1516. "title":"out_batch_no",
  1517. "type":"string"
  1518. }
  1519. }
  1520. },
  1521. "intent":"create",
  1522. "uuid":"e665af68-4c20-4e62-bfeb-dfccd38feff8",
  1523. "isNameInValid":false,
  1524. "isShow":true,
  1525. "tags":"商家转账到零钱(旧)",
  1526. "inParams":{
  1527. "additionalProperties":true,
  1528. "type":"object",
  1529. "properties":{
  1530. "out_batch_no":{
  1531. "x-required":true,
  1532. "x-keyPath":"",
  1533. "x-id":"b7d9bb7",
  1534. "format":"",
  1535. "description":"",
  1536. "type":"string",
  1537. "x-index":2,
  1538. "title":"out_batch_no",
  1539. "x-unique":false,
  1540. "maxLength":4000
  1541. }
  1542. },
  1543. "required":[]
  1544. },
  1545. "name":"billReceipt",
  1546. "calleeBody":{
  1547. "method":"POST",
  1548. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1549. "isUrlInValid":true,
  1550. "body":{
  1551. "values":{
  1552. "type":"string",
  1553. "value":"{{params}}",
  1554. "key":"json"
  1555. },
  1556. "contentType":"json"
  1557. },
  1558. "url":"https://api.mch.weixin.qq.com/v3/transfer/bill-receipt"
  1559. },
  1560. "isCollapse":true
  1561. },
  1562. {
  1563. "isTitleInValid":false,
  1564. "description":"商户明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、用户OpenID等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-detail/get-transfer-detail-by-out-no.html",
  1565. "title":"通过商家明细单号查询明细单",
  1566. "type":"http",
  1567. "outParams":{
  1568. "x-keyPath":"",
  1569. "x-id":"g0l9au6o",
  1570. "title":"value",
  1571. "type":"object",
  1572. "properties":{
  1573. "mchid":{
  1574. "x-keyPath":"mchid",
  1575. "x-id":"okgt0xbb",
  1576. "title":"mchid",
  1577. "type":"string"
  1578. },
  1579. "batch_id":{
  1580. "x-keyPath":"batch_id",
  1581. "x-id":"pbxuaj7i",
  1582. "title":"batch_id",
  1583. "type":"string"
  1584. },
  1585. "openid":{
  1586. "x-keyPath":"openid",
  1587. "x-id":"7newtddn",
  1588. "title":"openid",
  1589. "type":"string"
  1590. },
  1591. "user_name":{
  1592. "x-keyPath":"user_name",
  1593. "x-id":"j8cyumnz",
  1594. "title":"user_name",
  1595. "type":"string"
  1596. },
  1597. "detail_status":{
  1598. "x-keyPath":"detail_status",
  1599. "x-id":"7913nzbe",
  1600. "title":"detail_status",
  1601. "type":"string"
  1602. },
  1603. "out_batch_no":{
  1604. "x-keyPath":"out_batch_no",
  1605. "x-id":"spa1v7do",
  1606. "title":"out_batch_no",
  1607. "type":"string"
  1608. },
  1609. "detail_id":{
  1610. "x-keyPath":"detail_id",
  1611. "x-id":"a9prd6t9",
  1612. "title":"detail_id",
  1613. "type":"string"
  1614. },
  1615. "update_time":{
  1616. "x-keyPath":"update_time",
  1617. "x-id":"my5x22vs",
  1618. "title":"update_time",
  1619. "type":"string"
  1620. },
  1621. "transfer_amount":{
  1622. "x-keyPath":"transfer_amount",
  1623. "x-id":"rf1h7ub0",
  1624. "title":"transfer_amount",
  1625. "type":"number"
  1626. },
  1627. "appid":{
  1628. "x-keyPath":"appid",
  1629. "x-id":"8dom1t29",
  1630. "title":"appid",
  1631. "type":"string"
  1632. },
  1633. "out_detail_no":{
  1634. "x-keyPath":"out_detail_no",
  1635. "x-id":"fgo0etzt",
  1636. "title":"out_detail_no",
  1637. "type":"string"
  1638. },
  1639. "initiate_time":{
  1640. "x-keyPath":"initiate_time",
  1641. "x-id":"s7jzsgam",
  1642. "title":"initiate_time",
  1643. "type":"string"
  1644. },
  1645. "fail_reason":{
  1646. "x-required":false,
  1647. "x-keyPath":"fail_reason",
  1648. "x-id":"a8a86b3",
  1649. "format":"",
  1650. "description":"",
  1651. "type":"string",
  1652. "x-index":2,
  1653. "title":"fail_reason",
  1654. "x-unique":false,
  1655. "maxLength":4000
  1656. },
  1657. "transfer_remark":{
  1658. "x-keyPath":"transfer_remark",
  1659. "x-id":"njoyhypc",
  1660. "title":"transfer_remark",
  1661. "type":"string"
  1662. }
  1663. }
  1664. },
  1665. "intent":"create",
  1666. "uuid":"94cdea9c-9504-441e-bbd1-44861e279889",
  1667. "isNameInValid":false,
  1668. "isShow":true,
  1669. "tags":"商家转账到零钱(旧)",
  1670. "inParams":{
  1671. "additionalProperties":true,
  1672. "type":"object",
  1673. "properties":{
  1674. "out_detail_no":{
  1675. "x-required":true,
  1676. "x-keyPath":"",
  1677. "x-id":"b422e3f",
  1678. "format":"",
  1679. "description":"",
  1680. "type":"string",
  1681. "x-index":2,
  1682. "title":"out_detail_no",
  1683. "x-unique":false,
  1684. "maxLength":4000
  1685. },
  1686. "out_batch_no":{
  1687. "x-required":true,
  1688. "x-keyPath":"",
  1689. "x-id":"b85183a",
  1690. "format":"",
  1691. "description":"",
  1692. "type":"string",
  1693. "x-index":4,
  1694. "title":"out_batch_no",
  1695. "x-unique":false,
  1696. "maxLength":4000
  1697. }
  1698. },
  1699. "required":[]
  1700. },
  1701. "name":"getTransferDetailByOutNo",
  1702. "calleeBody":{
  1703. "method":"GET",
  1704. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1705. "isUrlInValid":true,
  1706. "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{{params.out_batch_no}}/details/out-detail-no/{{params.out_detail_no}}"
  1707. },
  1708. "isCollapse":true
  1709. },
  1710. {
  1711. "isTitleInValid":false,
  1712. "description":"明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、用户OpenID等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-detail/get-transfer-detail-by-no.html",
  1713. "title":"通过微信明细单号查询明细单",
  1714. "type":"http",
  1715. "outParams":{
  1716. "x-keyPath":"",
  1717. "x-id":"smxwq5ol",
  1718. "title":"value",
  1719. "type":"object",
  1720. "properties":{
  1721. "mchid":{
  1722. "x-keyPath":"mchid",
  1723. "x-id":"h7np83rv",
  1724. "title":"mchid",
  1725. "type":"string"
  1726. },
  1727. "batch_id":{
  1728. "x-keyPath":"batch_id",
  1729. "x-id":"lmcxdq24",
  1730. "title":"batch_id",
  1731. "type":"string"
  1732. },
  1733. "openid":{
  1734. "x-keyPath":"openid",
  1735. "x-id":"vck93lbc",
  1736. "title":"openid",
  1737. "type":"string"
  1738. },
  1739. "user_name":{
  1740. "x-keyPath":"user_name",
  1741. "x-id":"sp5w432f",
  1742. "title":"user_name",
  1743. "type":"string"
  1744. },
  1745. "detail_status":{
  1746. "x-keyPath":"detail_status",
  1747. "x-id":"72sd20sm",
  1748. "title":"detail_status",
  1749. "type":"string"
  1750. },
  1751. "out_batch_no":{
  1752. "x-keyPath":"out_batch_no",
  1753. "x-id":"nlxsndyv",
  1754. "title":"out_batch_no",
  1755. "type":"string"
  1756. },
  1757. "detail_id":{
  1758. "x-keyPath":"detail_id",
  1759. "x-id":"61osy8r5",
  1760. "title":"detail_id",
  1761. "type":"string"
  1762. },
  1763. "update_time":{
  1764. "x-keyPath":"update_time",
  1765. "x-id":"3r1f3whu",
  1766. "title":"update_time",
  1767. "type":"string"
  1768. },
  1769. "transfer_amount":{
  1770. "x-keyPath":"transfer_amount",
  1771. "x-id":"6w0qxub9",
  1772. "title":"transfer_amount",
  1773. "type":"number"
  1774. },
  1775. "appid":{
  1776. "x-keyPath":"appid",
  1777. "x-id":"7upcnr5l",
  1778. "title":"appid",
  1779. "type":"string"
  1780. },
  1781. "out_detail_no":{
  1782. "x-keyPath":"out_detail_no",
  1783. "x-id":"il1ro4wy",
  1784. "title":"out_detail_no",
  1785. "type":"string"
  1786. },
  1787. "initiate_time":{
  1788. "x-keyPath":"initiate_time",
  1789. "x-id":"edwd70d9",
  1790. "title":"initiate_time",
  1791. "type":"string"
  1792. },
  1793. "fail_reason":{
  1794. "x-required":false,
  1795. "x-keyPath":"fail_reason",
  1796. "x-id":"ac96286",
  1797. "format":"",
  1798. "description":"",
  1799. "type":"string",
  1800. "x-index":2,
  1801. "title":"fail_reason",
  1802. "x-unique":false,
  1803. "maxLength":4000
  1804. },
  1805. "transfer_remark":{
  1806. "x-keyPath":"transfer_remark",
  1807. "x-id":"0eg5p1u7",
  1808. "title":"transfer_remark",
  1809. "type":"string"
  1810. }
  1811. }
  1812. },
  1813. "intent":"create",
  1814. "uuid":"afb7e07d-2f43-4a03-a865-7606b16bdffa",
  1815. "isNameInValid":false,
  1816. "isShow":true,
  1817. "tags":"商家转账到零钱(旧)",
  1818. "inParams":{
  1819. "additionalProperties":true,
  1820. "type":"object",
  1821. "properties":{
  1822. "batch_id":{
  1823. "x-required":true,
  1824. "x-keyPath":"",
  1825. "x-id":"bc9b069",
  1826. "format":"",
  1827. "description":"",
  1828. "type":"string",
  1829. "x-index":2,
  1830. "title":"batch_id",
  1831. "x-unique":false,
  1832. "maxLength":4000
  1833. },
  1834. "detail_id":{
  1835. "x-required":true,
  1836. "x-keyPath":"",
  1837. "x-id":"999cd68",
  1838. "format":"",
  1839. "description":"",
  1840. "type":"string",
  1841. "x-index":4,
  1842. "title":"detail_id",
  1843. "x-unique":false,
  1844. "maxLength":4000
  1845. }
  1846. },
  1847. "required":[]
  1848. },
  1849. "name":"getTransferDetailByNo",
  1850. "calleeBody":{
  1851. "method":"GET",
  1852. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  1853. "isUrlInValid":true,
  1854. "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{{params.batch_id}}/details/detail-id/{{params.detail_id}}"
  1855. },
  1856. "isCollapse":true
  1857. },
  1858. {
  1859. "isTitleInValid":false,
  1860. "description":"商家明细单号查单接口。商户可以通过该接口查询转账批次单以及指定状态的转账明细单。返回消息中包含微信批次单号、批次状态、批次类型、转账总金额、转账总笔数、成功金额、失败金额等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/get-transfer-batch-by-out-no.html",
  1861. "title":"通过商家批次单号查询批次单",
  1862. "type":"http",
  1863. "outParams":{
  1864. "x-keyPath":"",
  1865. "x-id":"tt8nxn1r",
  1866. "title":"value",
  1867. "type":"object",
  1868. "properties":{
  1869. "offset":{
  1870. "x-keyPath":"offset",
  1871. "x-id":"vni7cs5v",
  1872. "title":"offset",
  1873. "type":"number"
  1874. },
  1875. "transfer_detail_list":{
  1876. "x-keyPath":"transfer_detail_list",
  1877. "x-id":"sbkcbnjv",
  1878. "title":"transfer_detail_list",
  1879. "type":"array",
  1880. "items":{
  1881. "x-keyPath":"",
  1882. "x-id":"7lm3ru2y",
  1883. "title":"value",
  1884. "type":"object",
  1885. "properties":{
  1886. "detail_status":{
  1887. "x-keyPath":"$item.detail_status",
  1888. "x-id":"zed3ksld",
  1889. "title":"detail_status",
  1890. "type":"string"
  1891. },
  1892. "out_detail_no":{
  1893. "x-keyPath":"$item.out_detail_no",
  1894. "x-id":"dc77u5w0",
  1895. "title":"out_detail_no",
  1896. "type":"string"
  1897. },
  1898. "detail_id":{
  1899. "x-keyPath":"$item.detail_id",
  1900. "x-id":"8kb5l2g6",
  1901. "title":"detail_id",
  1902. "type":"string"
  1903. }
  1904. }
  1905. }
  1906. },
  1907. "limit":{
  1908. "x-keyPath":"limit",
  1909. "x-id":"je33724s",
  1910. "title":"limit",
  1911. "type":"number"
  1912. },
  1913. "transfer_batch":{
  1914. "x-keyPath":"",
  1915. "x-id":"vimse3se",
  1916. "title":"transfer_batch",
  1917. "type":"object",
  1918. "properties":{
  1919. "mchid":{
  1920. "x-keyPath":"transfer_batch.mchid",
  1921. "x-id":"gyr2ytxm",
  1922. "title":"mchid",
  1923. "type":"string"
  1924. },
  1925. "create_time":{
  1926. "x-keyPath":"transfer_batch.create_time",
  1927. "x-id":"p490sv00",
  1928. "title":"create_time",
  1929. "type":"string"
  1930. },
  1931. "success_amount":{
  1932. "x-keyPath":"transfer_batch.success_amount",
  1933. "x-id":"wb385p3t",
  1934. "title":"success_amount",
  1935. "type":"number"
  1936. },
  1937. "batch_id":{
  1938. "x-keyPath":"transfer_batch.batch_id",
  1939. "x-id":"3by4s5im",
  1940. "title":"batch_id",
  1941. "type":"string"
  1942. },
  1943. "success_num":{
  1944. "x-keyPath":"transfer_batch.success_num",
  1945. "x-id":"zshufuyy",
  1946. "title":"success_num",
  1947. "type":"number"
  1948. },
  1949. "batch_status":{
  1950. "x-keyPath":"transfer_batch.batch_status",
  1951. "x-id":"93wdtze6",
  1952. "title":"batch_status",
  1953. "type":"string"
  1954. },
  1955. "out_batch_no":{
  1956. "x-keyPath":"transfer_batch.out_batch_no",
  1957. "x-id":"iu7e75ki",
  1958. "title":"out_batch_no",
  1959. "type":"string"
  1960. },
  1961. "batch_name":{
  1962. "x-keyPath":"transfer_batch.batch_name",
  1963. "x-id":"vi6dhkcd",
  1964. "title":"batch_name",
  1965. "type":"string"
  1966. },
  1967. "update_time":{
  1968. "x-keyPath":"transfer_batch.update_time",
  1969. "x-id":"wnab9di0",
  1970. "title":"update_time",
  1971. "type":"string"
  1972. },
  1973. "fail_amount":{
  1974. "x-keyPath":"transfer_batch.fail_amount",
  1975. "x-id":"go67l68p",
  1976. "title":"fail_amount",
  1977. "type":"number"
  1978. },
  1979. "total_amount":{
  1980. "x-keyPath":"transfer_batch.total_amount",
  1981. "x-id":"bqj66si3",
  1982. "title":"total_amount",
  1983. "type":"number"
  1984. },
  1985. "appid":{
  1986. "x-keyPath":"transfer_batch.appid",
  1987. "x-id":"3rnhqim6",
  1988. "title":"appid",
  1989. "type":"string"
  1990. },
  1991. "total_num":{
  1992. "x-keyPath":"transfer_batch.total_num",
  1993. "x-id":"oiqtwxw5",
  1994. "title":"total_num",
  1995. "type":"number"
  1996. },
  1997. "batch_remark":{
  1998. "x-keyPath":"transfer_batch.batch_remark",
  1999. "x-id":"y0c9i9xk",
  2000. "title":"batch_remark",
  2001. "type":"string"
  2002. },
  2003. "batch_type":{
  2004. "x-keyPath":"transfer_batch.batch_type",
  2005. "x-id":"yknu39zm",
  2006. "title":"batch_type",
  2007. "type":"string"
  2008. },
  2009. "fail_num":{
  2010. "x-keyPath":"transfer_batch.fail_num",
  2011. "x-id":"sj1ttwvg",
  2012. "title":"fail_num",
  2013. "type":"number"
  2014. },
  2015. "transfer_scene_id":{
  2016. "x-keyPath":"transfer_batch.transfer_scene_id",
  2017. "x-id":"ne1syuzw",
  2018. "title":"transfer_scene_id",
  2019. "type":"string"
  2020. }
  2021. }
  2022. }
  2023. }
  2024. },
  2025. "intent":"create",
  2026. "uuid":"6dcbfcb5-a913-40b4-8eca-c2a9ef06f5e5",
  2027. "isNameInValid":false,
  2028. "isShow":true,
  2029. "tags":"商家转账到零钱(旧)",
  2030. "inParams":{
  2031. "additionalProperties":true,
  2032. "type":"object",
  2033. "properties":{
  2034. "offset":{
  2035. "x-required":false,
  2036. "x-keyPath":"",
  2037. "x-id":"6662a0a",
  2038. "format":"",
  2039. "description":"",
  2040. "type":"number",
  2041. "x-index":6,
  2042. "title":"offset",
  2043. "x-unique":false
  2044. },
  2045. "detail_status":{
  2046. "x-required":false,
  2047. "x-keyPath":"",
  2048. "x-id":"9d42f89",
  2049. "format":"",
  2050. "description":"",
  2051. "type":"string",
  2052. "x-index":10,
  2053. "title":"detail_status",
  2054. "x-unique":false,
  2055. "maxLength":4000
  2056. },
  2057. "limit":{
  2058. "x-required":false,
  2059. "x-keyPath":"",
  2060. "x-id":"64d95ca",
  2061. "format":"",
  2062. "description":"",
  2063. "type":"number",
  2064. "x-index":8,
  2065. "title":"limit",
  2066. "x-unique":false
  2067. },
  2068. "out_batch_no":{
  2069. "x-required":true,
  2070. "x-keyPath":"",
  2071. "x-id":"9253263",
  2072. "format":"",
  2073. "description":"",
  2074. "type":"string",
  2075. "x-index":2,
  2076. "title":"out_batch_no",
  2077. "x-unique":false,
  2078. "maxLength":4000
  2079. },
  2080. "need_query_detail":{
  2081. "x-required":true,
  2082. "x-keyPath":"",
  2083. "x-id":"61a442d",
  2084. "format":"",
  2085. "name":"need_query_detail",
  2086. "description":"",
  2087. "type":"boolean",
  2088. "x-index":4,
  2089. "title":"need_query_detail",
  2090. "x-unique":false
  2091. }
  2092. },
  2093. "required":[]
  2094. },
  2095. "name":"getTransferBatchByOutNo",
  2096. "calleeBody":{
  2097. "method":"GET",
  2098. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  2099. "query":{
  2100. "values":{
  2101. "type":"object",
  2102. "value":{
  2103. "offset":"{{params.offset}}",
  2104. "detail_status":"{{params.detail_status}}",
  2105. "limit":"{{params.limit}}",
  2106. "need_query_detail":"{{params.need_query_detail}}"
  2107. },
  2108. "key":"2aa44492cd7fb8"
  2109. }
  2110. },
  2111. "isUrlInValid":true,
  2112. "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{{params.out_batch_no}}"
  2113. },
  2114. "isCollapse":true
  2115. },
  2116. {
  2117. "isTitleInValid":false,
  2118. "description":"微信批次单号查单接口。商户可以通过该接口查询转账批次单以及指定状态的转账明细单。返回消息中包含微信批次单号、批次状态、批次类型、转账总金额、转账总笔数、成功金额、失败金额等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/get-transfer-batch-by-no.html",
  2119. "title":"通过微信批次单号查询批次单",
  2120. "type":"http",
  2121. "outParams":{
  2122. "x-keyPath":"",
  2123. "x-id":"xylkkujc",
  2124. "title":"value",
  2125. "type":"object",
  2126. "properties":{
  2127. "offset":{
  2128. "x-keyPath":"offset",
  2129. "x-id":"0v1qulys",
  2130. "title":"offset",
  2131. "type":"number"
  2132. },
  2133. "transfer_detail_list":{
  2134. "x-keyPath":"transfer_detail_list",
  2135. "x-id":"91h33kik",
  2136. "title":"transfer_detail_list",
  2137. "type":"array",
  2138. "items":{
  2139. "x-keyPath":"",
  2140. "x-id":"oqplrdhf",
  2141. "title":"value",
  2142. "type":"object",
  2143. "properties":{
  2144. "detail_status":{
  2145. "x-keyPath":"$item.detail_status",
  2146. "x-id":"ip8f62yy",
  2147. "title":"detail_status",
  2148. "type":"string"
  2149. },
  2150. "out_detail_no":{
  2151. "x-keyPath":"$item.out_detail_no",
  2152. "x-id":"0v47bi41",
  2153. "title":"out_detail_no",
  2154. "type":"string"
  2155. },
  2156. "detail_id":{
  2157. "x-keyPath":"$item.detail_id",
  2158. "x-id":"toligoha",
  2159. "title":"detail_id",
  2160. "type":"string"
  2161. }
  2162. }
  2163. }
  2164. },
  2165. "limit":{
  2166. "x-keyPath":"limit",
  2167. "x-id":"d063udym",
  2168. "title":"limit",
  2169. "type":"number"
  2170. },
  2171. "transfer_batch":{
  2172. "x-keyPath":"",
  2173. "x-id":"3yiatnci",
  2174. "title":"transfer_batch",
  2175. "type":"object",
  2176. "properties":{
  2177. "mchid":{
  2178. "x-keyPath":"transfer_batch.mchid",
  2179. "x-id":"a05z9r17",
  2180. "title":"mchid",
  2181. "type":"string"
  2182. },
  2183. "create_time":{
  2184. "x-keyPath":"transfer_batch.create_time",
  2185. "x-id":"1gjmo4yt",
  2186. "title":"create_time",
  2187. "type":"string"
  2188. },
  2189. "success_amount":{
  2190. "x-keyPath":"transfer_batch.success_amount",
  2191. "x-id":"fhz18dvb",
  2192. "title":"success_amount",
  2193. "type":"number"
  2194. },
  2195. "batch_id":{
  2196. "x-keyPath":"transfer_batch.batch_id",
  2197. "x-id":"8omafmul",
  2198. "title":"batch_id",
  2199. "type":"string"
  2200. },
  2201. "success_num":{
  2202. "x-keyPath":"transfer_batch.success_num",
  2203. "x-id":"0kch7k2l",
  2204. "title":"success_num",
  2205. "type":"number"
  2206. },
  2207. "batch_status":{
  2208. "x-keyPath":"transfer_batch.batch_status",
  2209. "x-id":"h15lx1m2",
  2210. "title":"batch_status",
  2211. "type":"string"
  2212. },
  2213. "out_batch_no":{
  2214. "x-keyPath":"transfer_batch.out_batch_no",
  2215. "x-id":"fa85p1mr",
  2216. "title":"out_batch_no",
  2217. "type":"string"
  2218. },
  2219. "batch_name":{
  2220. "x-keyPath":"transfer_batch.batch_name",
  2221. "x-id":"l2992dpz",
  2222. "title":"batch_name",
  2223. "type":"string"
  2224. },
  2225. "update_time":{
  2226. "x-keyPath":"transfer_batch.update_time",
  2227. "x-id":"zmf75mgz",
  2228. "title":"update_time",
  2229. "type":"string"
  2230. },
  2231. "fail_amount":{
  2232. "x-keyPath":"transfer_batch.fail_amount",
  2233. "x-id":"94nunai8",
  2234. "title":"fail_amount",
  2235. "type":"number"
  2236. },
  2237. "total_amount":{
  2238. "x-keyPath":"transfer_batch.total_amount",
  2239. "x-id":"dkz8q6h0",
  2240. "title":"total_amount",
  2241. "type":"number"
  2242. },
  2243. "appid":{
  2244. "x-keyPath":"transfer_batch.appid",
  2245. "x-id":"hdrr6fz7",
  2246. "title":"appid",
  2247. "type":"string"
  2248. },
  2249. "total_num":{
  2250. "x-keyPath":"transfer_batch.total_num",
  2251. "x-id":"1jbuafmc",
  2252. "title":"total_num",
  2253. "type":"number"
  2254. },
  2255. "batch_remark":{
  2256. "x-keyPath":"transfer_batch.batch_remark",
  2257. "x-id":"tz92aukf",
  2258. "title":"batch_remark",
  2259. "type":"string"
  2260. },
  2261. "batch_type":{
  2262. "x-keyPath":"transfer_batch.batch_type",
  2263. "x-id":"go0tswk2",
  2264. "title":"batch_type",
  2265. "type":"string"
  2266. },
  2267. "fail_num":{
  2268. "x-keyPath":"transfer_batch.fail_num",
  2269. "x-id":"55sow1sk",
  2270. "title":"fail_num",
  2271. "type":"number"
  2272. },
  2273. "transfer_scene_id":{
  2274. "x-keyPath":"transfer_batch.transfer_scene_id",
  2275. "x-id":"edfgzd7z",
  2276. "title":"transfer_scene_id",
  2277. "type":"string"
  2278. }
  2279. }
  2280. }
  2281. }
  2282. },
  2283. "intent":"create",
  2284. "uuid":"d1423c16-df9b-4d68-b622-0d450373be42",
  2285. "isNameInValid":false,
  2286. "isShow":true,
  2287. "tags":"商家转账到零钱(旧)",
  2288. "inParams":{
  2289. "additionalProperties":true,
  2290. "type":"object",
  2291. "properties":{
  2292. "offset":{
  2293. "x-required":false,
  2294. "x-keyPath":"",
  2295. "x-id":"81539be",
  2296. "format":"",
  2297. "description":"",
  2298. "type":"number",
  2299. "x-index":4,
  2300. "title":"offset",
  2301. "x-unique":false
  2302. },
  2303. "batch_id":{
  2304. "x-required":true,
  2305. "x-keyPath":"",
  2306. "x-id":"81d19b5",
  2307. "format":"",
  2308. "description":"",
  2309. "type":"string",
  2310. "x-index":10,
  2311. "title":"batch_id",
  2312. "x-unique":false,
  2313. "maxLength":4000
  2314. },
  2315. "detail_status":{
  2316. "x-required":false,
  2317. "x-keyPath":"",
  2318. "x-id":"7bbe951",
  2319. "format":"",
  2320. "description":"",
  2321. "type":"string",
  2322. "x-index":8,
  2323. "title":"detail_status",
  2324. "x-unique":false,
  2325. "maxLength":4000
  2326. },
  2327. "limit":{
  2328. "x-required":false,
  2329. "x-keyPath":"",
  2330. "x-id":"614c5af",
  2331. "format":"",
  2332. "description":"",
  2333. "type":"number",
  2334. "x-index":6,
  2335. "title":"limit",
  2336. "x-unique":false
  2337. },
  2338. "need_query_detail":{
  2339. "x-required":true,
  2340. "x-keyPath":"",
  2341. "x-id":"a6e05c8",
  2342. "format":"",
  2343. "description":"",
  2344. "type":"boolean",
  2345. "x-index":2,
  2346. "title":"need_query_detail",
  2347. "x-unique":false
  2348. }
  2349. },
  2350. "required":[]
  2351. },
  2352. "name":"getTransferBatchByNo",
  2353. "calleeBody":{
  2354. "method":"GET",
  2355. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  2356. "query":{
  2357. "values":{
  2358. "type":"object",
  2359. "value":{
  2360. "offset":"{{params.offset}}",
  2361. "detail_status":"{{params.detail_status}}",
  2362. "limit":"{{params.limit}}",
  2363. "need_query_detail":"{{params.need_query_detail}}"
  2364. },
  2365. "key":"28b0d79004d820"
  2366. }
  2367. },
  2368. "isUrlInValid":true,
  2369. "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{{params.batch_id}}"
  2370. },
  2371. "isCollapse":true
  2372. },
  2373. {
  2374. "isTitleInValid":false,
  2375. "description":"发起商家转账接口。商户可以通过该接口同时向多个用户微信零钱进行转账操作。请求消息中应包含商家批次单号、转账名称、appid、转账总金额、转账总笔数、转账openid、收款用户姓名等信息。注意受理成功将返回批次单号,此时并不代表转账成功,请通过查单接口查询单据的付款状态\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/initiate-batch-transfer.html",
  2376. "title":"发起商家转账",
  2377. "type":"http",
  2378. "outParams":{
  2379. "x-keyPath":"",
  2380. "x-id":"a3sq52ef",
  2381. "title":"value",
  2382. "type":"object",
  2383. "properties":{
  2384. "outBatchNo":{
  2385. "x-keyPath":"outBatchNo",
  2386. "x-id":"ccexf1jz",
  2387. "title":"outBatchNo",
  2388. "type":"string"
  2389. },
  2390. "createTime":{
  2391. "x-keyPath":"createTime",
  2392. "x-id":"jzoiaupd",
  2393. "title":"createTime",
  2394. "type":"string"
  2395. },
  2396. "batchId":{
  2397. "x-keyPath":"batchId",
  2398. "x-id":"0yr0rqcp",
  2399. "title":"batchId",
  2400. "type":"string"
  2401. },
  2402. "batchStatus":{
  2403. "x-keyPath":"batchStatus",
  2404. "x-id":"jz5z13s8",
  2405. "title":"batchStatus",
  2406. "type":"string"
  2407. }
  2408. }
  2409. },
  2410. "intent":"create",
  2411. "uuid":"3c30b490-71c4-48ac-807d-844f4a6d88fc",
  2412. "isNameInValid":false,
  2413. "isShow":true,
  2414. "tags":"商家转账到零钱(旧)",
  2415. "inParams":{
  2416. "additionalProperties":true,
  2417. "type":"object",
  2418. "properties":{
  2419. "batch_name":{
  2420. "x-required":true,
  2421. "x-keyPath":"",
  2422. "x-id":"8868746",
  2423. "format":"",
  2424. "description":"",
  2425. "type":"string",
  2426. "x-index":4,
  2427. "title":"batch_name",
  2428. "x-unique":false,
  2429. "maxLength":4000
  2430. },
  2431. "transfer_detail_list":{
  2432. "x-required":true,
  2433. "x-keyPath":"",
  2434. "x-id":"9f956db",
  2435. "format":"",
  2436. "description":"",
  2437. "type":"array",
  2438. "x-index":12,
  2439. "title":"transfer_detail_list",
  2440. "items":{
  2441. "format":"",
  2442. "type":"object",
  2443. "properties":{
  2444. "transfer_amount":{
  2445. "x-required":true,
  2446. "x-keyPath":"",
  2447. "x-id":"b3c0c24",
  2448. "format":"",
  2449. "name":"transfer_amount",
  2450. "description":"",
  2451. "type":"number",
  2452. "x-index":4,
  2453. "title":"transfer_amount",
  2454. "x-unique":false
  2455. },
  2456. "openid":{
  2457. "x-required":true,
  2458. "x-keyPath":"",
  2459. "x-id":"8771fc0",
  2460. "format":"",
  2461. "name":"openid",
  2462. "description":"",
  2463. "type":"string",
  2464. "x-index":8,
  2465. "title":"openid",
  2466. "x-unique":false,
  2467. "maxLength":4000
  2468. },
  2469. "user_name":{
  2470. "x-keyPath":"",
  2471. "x-id":"8b7b064",
  2472. "format":"",
  2473. "description":"",
  2474. "isEnum":false,
  2475. "pId":"9f956db",
  2476. "type":"string",
  2477. "x-index":10,
  2478. "title":"user_name",
  2479. "x-unique":false,
  2480. "x-required":false,
  2481. "name":"user_name",
  2482. "maxLength":4000
  2483. },
  2484. "out_detail_no":{
  2485. "x-required":true,
  2486. "x-keyPath":"",
  2487. "x-id":"8ea1f98",
  2488. "format":"",
  2489. "name":"out_detail_no",
  2490. "description":"",
  2491. "type":"string",
  2492. "x-index":2,
  2493. "title":"out_detail_no",
  2494. "x-unique":false,
  2495. "maxLength":4000
  2496. },
  2497. "transfer_remark":{
  2498. "x-required":true,
  2499. "x-keyPath":"",
  2500. "x-id":"84aec40",
  2501. "format":"",
  2502. "name":"transfer_remark",
  2503. "description":"",
  2504. "type":"string",
  2505. "x-index":6,
  2506. "title":"transfer_remark",
  2507. "x-unique":false,
  2508. "maxLength":4000
  2509. }
  2510. }
  2511. },
  2512. "x-unique":false
  2513. },
  2514. "total_amount":{
  2515. "x-required":true,
  2516. "x-keyPath":"",
  2517. "x-id":"84ae30d",
  2518. "format":"",
  2519. "description":"",
  2520. "type":"number",
  2521. "x-index":8,
  2522. "title":"total_amount",
  2523. "x-unique":false
  2524. },
  2525. "total_num":{
  2526. "x-required":true,
  2527. "x-keyPath":"",
  2528. "x-id":"abf7b0f",
  2529. "format":"",
  2530. "description":"",
  2531. "type":"number",
  2532. "x-index":10,
  2533. "title":"total_num",
  2534. "x-unique":false
  2535. },
  2536. "out_batch_no":{
  2537. "x-required":true,
  2538. "x-keyPath":"",
  2539. "x-id":"79039ce",
  2540. "format":"",
  2541. "description":"",
  2542. "type":"string",
  2543. "x-index":2,
  2544. "title":"out_batch_no",
  2545. "x-unique":false,
  2546. "maxLength":4000
  2547. },
  2548. "batch_remark":{
  2549. "x-required":true,
  2550. "x-keyPath":"",
  2551. "x-id":"a176a1b",
  2552. "format":"",
  2553. "description":"",
  2554. "type":"string",
  2555. "x-index":6,
  2556. "title":"batch_remark",
  2557. "x-unique":false,
  2558. "maxLength":4000
  2559. },
  2560. "transfer_scene_id":{
  2561. "x-required":false,
  2562. "x-keyPath":"",
  2563. "x-id":"7debfc6",
  2564. "format":"",
  2565. "description":"",
  2566. "type":"string",
  2567. "x-index":14,
  2568. "title":"transfer_scene_id",
  2569. "x-unique":false,
  2570. "maxLength":4000
  2571. }
  2572. },
  2573. "required":[]
  2574. },
  2575. "name":"batches",
  2576. "calleeBody":{
  2577. "method":"POST",
  2578. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  2579. "isUrlInValid":true,
  2580. "body":{
  2581. "values":{
  2582. "type":"string",
  2583. "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"out_batch_no\": \"{{params.out_batch_no}}\",\n \"batch_name\": \"{{params.batch_name}}\",\n \"batch_remark\": \"{{params.batch_remark}}\",\n \"total_amount\": {{params.total_amount}},\n \"total_num\": {{params.total_num}},\n \"transfer_detail_list\": {{params.transfer_detail_list}},\n \"transfer_scene_id\": \"{{params.transfer_scene_id}}\"\n}",
  2584. "key":"json"
  2585. },
  2586. "contentType":"json"
  2587. },
  2588. "url":"https://api.mch.weixin.qq.com/v3/transfer/batches"
  2589. },
  2590. "isCollapse":true
  2591. },
  2592. {
  2593. "isTitleInValid":false,
  2594. "presetParams":{
  2595. "functionName":{
  2596. "x-required":true,
  2597. "x-id":"q1u9kwph",
  2598. "description":"微信支付直连,回调工作流ID或回调地址",
  2599. "title":"回调地址",
  2600. "type":"_wxpaydc_",
  2601. "x-index":1
  2602. }
  2603. },
  2604. "description":"商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易会话标识后再按Native、JSAPI、APP等不同场景生成交易串调起支付。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_1.shtml",
  2605. "type":"http",
  2606. "title":"JSAPI下单",
  2607. "outParams":{
  2608. "x-keyPath":"",
  2609. "x-id":"8p76ze4g",
  2610. "title":"value",
  2611. "type":"object",
  2612. "properties":{
  2613. "timeStamp":{
  2614. "x-keyPath":"timeStamp",
  2615. "x-id":"7cdqortc",
  2616. "title":"timeStamp",
  2617. "type":"string"
  2618. },
  2619. "packageVal":{
  2620. "x-keyPath":"packageVal",
  2621. "x-id":"7bpk4chq",
  2622. "title":"packageVal",
  2623. "type":"string"
  2624. },
  2625. "paySign":{
  2626. "x-keyPath":"paySign",
  2627. "x-id":"na4l8sfr",
  2628. "title":"paySign",
  2629. "type":"string"
  2630. },
  2631. "appId":{
  2632. "x-keyPath":"appId",
  2633. "x-id":"arou9q74",
  2634. "title":"appId",
  2635. "type":"string"
  2636. },
  2637. "signType":{
  2638. "x-keyPath":"signType",
  2639. "x-id":"1kv5p5dh",
  2640. "title":"signType",
  2641. "type":"string"
  2642. },
  2643. "nonceStr":{
  2644. "x-keyPath":"nonceStr",
  2645. "x-id":"24kaz0hd",
  2646. "title":"nonceStr",
  2647. "type":"string"
  2648. }
  2649. }
  2650. },
  2651. "uuid":"48c297df-c619-4b59-9def-7d57182ed992",
  2652. "intent":"create",
  2653. "isNameInValid":false,
  2654. "isShow":true,
  2655. "inParams":{
  2656. "type":"object",
  2657. "properties":{
  2658. "time_expire":{
  2659. "x-required":false,
  2660. "x-id":"657bf0b",
  2661. "name":"time_expire",
  2662. "title":"交易结束时间",
  2663. "type":"string",
  2664. "x-index":3
  2665. },
  2666. "amount":{
  2667. "x-required":true,
  2668. "x-id":"b46b080",
  2669. "name":"amount",
  2670. "title":"订单金额",
  2671. "type":"object",
  2672. "list":[
  2673. {
  2674. "x-required":true,
  2675. "x-id":"7649d48",
  2676. "name":"total",
  2677. "pId":"b46b080",
  2678. "title":"总金额",
  2679. "type":"number"
  2680. },
  2681. {
  2682. "x-required":false,
  2683. "x-id":"79081ee",
  2684. "name":"currency",
  2685. "pId":"b46b080",
  2686. "title":"货币类型",
  2687. "type":"string"
  2688. }
  2689. ],
  2690. "x-index":7,
  2691. "properties":{
  2692. "total":{
  2693. "x-required":true,
  2694. "x-id":"7649d48",
  2695. "name":"total",
  2696. "title":"总金额",
  2697. "type":"number",
  2698. "x-index":1
  2699. },
  2700. "currency":{
  2701. "x-required":false,
  2702. "x-id":"79081ee",
  2703. "name":"currency",
  2704. "title":"货币类型",
  2705. "type":"string",
  2706. "x-index":2
  2707. }
  2708. },
  2709. "required":[
  2710. "total"
  2711. ]
  2712. },
  2713. "out_trade_no":{
  2714. "x-required":true,
  2715. "x-id":"aa37c2a",
  2716. "name":"out_trade_no",
  2717. "title":"商户订单号",
  2718. "type":"string",
  2719. "x-index":2
  2720. },
  2721. "goods_tag":{
  2722. "x-required":false,
  2723. "x-id":"85171f1",
  2724. "name":"goods_tag",
  2725. "title":"订单优惠标记",
  2726. "type":"string",
  2727. "x-index":5
  2728. },
  2729. "settle_info":{
  2730. "x-required":false,
  2731. "x-id":"7f6ce12",
  2732. "name":"settle_info",
  2733. "title":"结算信息",
  2734. "type":"object",
  2735. "list":[
  2736. {
  2737. "x-required":false,
  2738. "x-id":"9fa05bb",
  2739. "name":"profit_sharing",
  2740. "pId":"7f6ce12",
  2741. "title":"是否指定分账",
  2742. "type":"boolean"
  2743. }
  2744. ],
  2745. "x-index":11,
  2746. "properties":{
  2747. "profit_sharing":{
  2748. "x-required":false,
  2749. "x-id":"9fa05bb",
  2750. "name":"profit_sharing",
  2751. "title":"是否指定分账",
  2752. "type":"boolean",
  2753. "x-index":1
  2754. }
  2755. },
  2756. "required":[]
  2757. },
  2758. "description":{
  2759. "x-required":true,
  2760. "x-id":"66816ec",
  2761. "name":"description",
  2762. "title":"商品描述",
  2763. "type":"string",
  2764. "x-index":1
  2765. },
  2766. "attach":{
  2767. "x-required":false,
  2768. "x-id":"a5f5f0b",
  2769. "name":"attach",
  2770. "title":"附加数据",
  2771. "type":"string",
  2772. "x-index":4
  2773. },
  2774. "detail":{
  2775. "x-required":false,
  2776. "x-id":"63d80f9",
  2777. "name":"detail",
  2778. "title":"优惠功能",
  2779. "type":"object",
  2780. "list":[
  2781. {
  2782. "x-required":false,
  2783. "x-id":"907ff77",
  2784. "name":"invoice_id",
  2785. "pId":"63d80f9",
  2786. "title":"商品小票ID",
  2787. "type":"string"
  2788. },
  2789. {
  2790. "x-required":false,
  2791. "x-id":"996221b",
  2792. "name":"goods_detail",
  2793. "pId":"63d80f9",
  2794. "title":"单品列表",
  2795. "type":"array",
  2796. "list":[
  2797. {
  2798. "x-required":false,
  2799. "x-id":"9adcb42",
  2800. "name":"goods_name",
  2801. "pId":"996221b",
  2802. "title":"商品名称",
  2803. "type":"string"
  2804. },
  2805. {
  2806. "x-required":false,
  2807. "x-id":"956ff3f",
  2808. "name":"wechatpay_goods_id",
  2809. "pId":"996221b",
  2810. "title":"微信支付商品编码",
  2811. "type":"string"
  2812. },
  2813. {
  2814. "x-required":true,
  2815. "x-id":"71f9f9b",
  2816. "name":"quantity",
  2817. "pId":"996221b",
  2818. "title":"商品数量",
  2819. "type":"number"
  2820. },
  2821. {
  2822. "x-required":true,
  2823. "x-id":"817d099",
  2824. "name":"merchant_goods_id",
  2825. "pId":"996221b",
  2826. "title":"商户侧商品编码",
  2827. "type":"string"
  2828. },
  2829. {
  2830. "x-required":true,
  2831. "x-id":"a07d0d4",
  2832. "name":"unit_price",
  2833. "pId":"996221b",
  2834. "title":"商品单价",
  2835. "type":"number"
  2836. }
  2837. ],
  2838. "items":{
  2839. "x-required":false,
  2840. "type":"object",
  2841. "properties":{
  2842. "goods_name":{
  2843. "x-required":false,
  2844. "x-id":"9adcb42",
  2845. "name":"goods_name",
  2846. "title":"商品名称",
  2847. "type":"string"
  2848. },
  2849. "wechatpay_goods_id":{
  2850. "x-required":false,
  2851. "x-id":"956ff3f",
  2852. "name":"wechatpay_goods_id",
  2853. "title":"微信支付商品编码",
  2854. "type":"string"
  2855. },
  2856. "quantity":{
  2857. "x-required":true,
  2858. "x-id":"71f9f9b",
  2859. "name":"quantity",
  2860. "title":"商品数量",
  2861. "type":"number"
  2862. },
  2863. "merchant_goods_id":{
  2864. "x-required":true,
  2865. "x-id":"817d099",
  2866. "name":"merchant_goods_id",
  2867. "title":"商户侧商品编码",
  2868. "type":"string"
  2869. },
  2870. "unit_price":{
  2871. "x-required":true,
  2872. "x-id":"a07d0d4",
  2873. "name":"unit_price",
  2874. "title":"商品单价",
  2875. "type":"number"
  2876. }
  2877. },
  2878. "required":[
  2879. "quantity",
  2880. "merchant_goods_id",
  2881. "unit_price"
  2882. ]
  2883. }
  2884. },
  2885. {
  2886. "x-required":false,
  2887. "x-id":"7a897fa",
  2888. "name":"cost_price",
  2889. "pId":"63d80f9",
  2890. "title":"订单原价",
  2891. "type":"number"
  2892. }
  2893. ],
  2894. "x-index":9,
  2895. "properties":{
  2896. "invoice_id":{
  2897. "x-required":false,
  2898. "x-id":"907ff77",
  2899. "name":"invoice_id",
  2900. "title":"商品小票ID",
  2901. "type":"string",
  2902. "x-index":1
  2903. },
  2904. "goods_detail":{
  2905. "x-required":false,
  2906. "x-id":"996221b",
  2907. "name":"goods_detail",
  2908. "title":"单品列表",
  2909. "type":"array",
  2910. "list":[
  2911. {
  2912. "x-required":false,
  2913. "x-id":"9adcb42",
  2914. "name":"goods_name",
  2915. "pId":"996221b",
  2916. "title":"商品名称",
  2917. "type":"string",
  2918. "x-index":1
  2919. },
  2920. {
  2921. "x-required":false,
  2922. "x-id":"956ff3f",
  2923. "name":"wechatpay_goods_id",
  2924. "pId":"996221b",
  2925. "title":"微信支付商品编码",
  2926. "type":"string",
  2927. "x-index":2
  2928. },
  2929. {
  2930. "x-required":true,
  2931. "x-id":"71f9f9b",
  2932. "name":"quantity",
  2933. "pId":"996221b",
  2934. "title":"商品数量",
  2935. "type":"number",
  2936. "x-index":3
  2937. },
  2938. {
  2939. "x-required":true,
  2940. "x-id":"817d099",
  2941. "name":"merchant_goods_id",
  2942. "pId":"996221b",
  2943. "title":"商户侧商品编码",
  2944. "type":"string",
  2945. "x-index":4
  2946. },
  2947. {
  2948. "x-required":true,
  2949. "x-id":"a07d0d4",
  2950. "name":"unit_price",
  2951. "pId":"996221b",
  2952. "title":"商品单价",
  2953. "type":"number",
  2954. "x-index":5
  2955. }
  2956. ],
  2957. "x-index":2,
  2958. "items":{
  2959. "x-required":false,
  2960. "type":"object",
  2961. "properties":{
  2962. "goods_name":{
  2963. "x-required":false,
  2964. "x-id":"9adcb42",
  2965. "name":"goods_name",
  2966. "title":"商品名称",
  2967. "type":"string",
  2968. "x-index":1
  2969. },
  2970. "wechatpay_goods_id":{
  2971. "x-required":false,
  2972. "x-id":"956ff3f",
  2973. "name":"wechatpay_goods_id",
  2974. "title":"微信支付商品编码",
  2975. "type":"string",
  2976. "x-index":2
  2977. },
  2978. "quantity":{
  2979. "x-required":true,
  2980. "x-id":"71f9f9b",
  2981. "name":"quantity",
  2982. "title":"商品数量",
  2983. "type":"number",
  2984. "x-index":3
  2985. },
  2986. "merchant_goods_id":{
  2987. "x-required":true,
  2988. "x-id":"817d099",
  2989. "name":"merchant_goods_id",
  2990. "title":"商户侧商品编码",
  2991. "type":"string",
  2992. "x-index":4
  2993. },
  2994. "unit_price":{
  2995. "x-required":true,
  2996. "x-id":"a07d0d4",
  2997. "name":"unit_price",
  2998. "title":"商品单价",
  2999. "type":"number",
  3000. "x-index":5
  3001. }
  3002. },
  3003. "required":[
  3004. "quantity",
  3005. "merchant_goods_id",
  3006. "unit_price"
  3007. ]
  3008. }
  3009. },
  3010. "cost_price":{
  3011. "x-required":false,
  3012. "x-id":"7a897fa",
  3013. "name":"cost_price",
  3014. "title":"订单原价",
  3015. "type":"number",
  3016. "x-index":3
  3017. }
  3018. },
  3019. "required":[]
  3020. },
  3021. "payer":{
  3022. "x-required":true,
  3023. "x-id":"9295ba9",
  3024. "name":"payer",
  3025. "title":"支付者",
  3026. "type":"object",
  3027. "list":[
  3028. {
  3029. "x-required":true,
  3030. "x-id":"5ffd75a",
  3031. "name":"openid",
  3032. "pId":"9295ba9",
  3033. "title":"用户标识",
  3034. "type":"string"
  3035. }
  3036. ],
  3037. "x-index":8,
  3038. "properties":{
  3039. "openid":{
  3040. "x-required":true,
  3041. "x-id":"5ffd75a",
  3042. "name":"openid",
  3043. "title":"用户标识",
  3044. "type":"string",
  3045. "x-index":1
  3046. }
  3047. },
  3048. "required":[
  3049. "openid"
  3050. ]
  3051. },
  3052. "support_fapiao":{
  3053. "x-required":false,
  3054. "x-id":"961a36e",
  3055. "name":"support_fapiao",
  3056. "title":"电子发票入口开放标识",
  3057. "type":"boolean",
  3058. "x-index":6
  3059. },
  3060. "scene_info":{
  3061. "x-required":false,
  3062. "x-id":"83bbee5",
  3063. "name":"scene_info",
  3064. "title":"场景信息",
  3065. "type":"object",
  3066. "list":[
  3067. {
  3068. "x-required":false,
  3069. "x-id":"9e8b52f",
  3070. "name":"store_info",
  3071. "pId":"83bbee5",
  3072. "title":"商户门店信息",
  3073. "type":"object",
  3074. "list":[
  3075. {
  3076. "x-required":false,
  3077. "x-id":"9683c04",
  3078. "name":"address",
  3079. "pId":"9e8b52f",
  3080. "title":"详细地址",
  3081. "type":"string"
  3082. },
  3083. {
  3084. "x-required":false,
  3085. "x-id":"821a731",
  3086. "name":"area_code",
  3087. "pId":"9e8b52f",
  3088. "title":"地区编码",
  3089. "type":"string"
  3090. },
  3091. {
  3092. "x-required":false,
  3093. "x-id":"96e2bab",
  3094. "name":"name",
  3095. "pId":"9e8b52f",
  3096. "title":"门店名称",
  3097. "type":"string"
  3098. },
  3099. {
  3100. "x-required":true,
  3101. "x-id":"a7bd745",
  3102. "name":"id",
  3103. "pId":"9e8b52f",
  3104. "title":"门店编号",
  3105. "type":"string"
  3106. }
  3107. ],
  3108. "properties":{
  3109. "address":{
  3110. "x-required":false,
  3111. "x-id":"9683c04",
  3112. "name":"address",
  3113. "title":"详细地址",
  3114. "type":"string"
  3115. },
  3116. "area_code":{
  3117. "x-required":false,
  3118. "x-id":"821a731",
  3119. "name":"area_code",
  3120. "title":"地区编码",
  3121. "type":"string"
  3122. },
  3123. "name":{
  3124. "x-required":false,
  3125. "x-id":"96e2bab",
  3126. "name":"name",
  3127. "title":"门店名称",
  3128. "type":"string"
  3129. },
  3130. "id":{
  3131. "x-required":true,
  3132. "x-id":"a7bd745",
  3133. "name":"id",
  3134. "title":"门店编号",
  3135. "type":"string"
  3136. }
  3137. },
  3138. "required":[
  3139. "id"
  3140. ]
  3141. },
  3142. {
  3143. "x-required":false,
  3144. "x-id":"92960b7",
  3145. "name":"device_id",
  3146. "pId":"83bbee5",
  3147. "title":"商户端设备号\t",
  3148. "type":"string"
  3149. },
  3150. {
  3151. "x-required":true,
  3152. "x-id":"67ef580",
  3153. "name":"payer_client_ip",
  3154. "pId":"83bbee5",
  3155. "title":"用户终端IP",
  3156. "type":"string"
  3157. }
  3158. ],
  3159. "x-index":10,
  3160. "properties":{
  3161. "store_info":{
  3162. "x-required":false,
  3163. "x-id":"9e8b52f",
  3164. "name":"store_info",
  3165. "title":"商户门店信息",
  3166. "type":"object",
  3167. "list":[
  3168. {
  3169. "x-required":false,
  3170. "x-id":"9683c04",
  3171. "name":"address",
  3172. "pId":"9e8b52f",
  3173. "title":"详细地址",
  3174. "type":"string"
  3175. },
  3176. {
  3177. "x-required":false,
  3178. "x-id":"821a731",
  3179. "name":"area_code",
  3180. "pId":"9e8b52f",
  3181. "title":"地区编码",
  3182. "type":"string"
  3183. },
  3184. {
  3185. "x-required":false,
  3186. "x-id":"96e2bab",
  3187. "name":"name",
  3188. "pId":"9e8b52f",
  3189. "title":"门店名称",
  3190. "type":"string"
  3191. },
  3192. {
  3193. "x-required":true,
  3194. "x-id":"a7bd745",
  3195. "name":"id",
  3196. "pId":"9e8b52f",
  3197. "title":"门店编号",
  3198. "type":"string"
  3199. }
  3200. ],
  3201. "x-index":1,
  3202. "properties":{
  3203. "address":{
  3204. "x-required":false,
  3205. "x-id":"9683c04",
  3206. "name":"address",
  3207. "title":"详细地址",
  3208. "type":"string",
  3209. "x-index":1
  3210. },
  3211. "area_code":{
  3212. "x-required":false,
  3213. "x-id":"821a731",
  3214. "name":"area_code",
  3215. "title":"地区编码",
  3216. "type":"string",
  3217. "x-index":2
  3218. },
  3219. "name":{
  3220. "x-required":false,
  3221. "x-id":"96e2bab",
  3222. "name":"name",
  3223. "title":"门店名称",
  3224. "type":"string",
  3225. "x-index":3
  3226. },
  3227. "id":{
  3228. "x-required":true,
  3229. "x-id":"a7bd745",
  3230. "name":"id",
  3231. "title":"门店编号",
  3232. "type":"string",
  3233. "x-index":4
  3234. }
  3235. },
  3236. "required":[
  3237. "id"
  3238. ]
  3239. },
  3240. "device_id":{
  3241. "x-required":false,
  3242. "x-id":"92960b7",
  3243. "name":"device_id",
  3244. "title":"商户端设备号\t",
  3245. "type":"string",
  3246. "x-index":2
  3247. },
  3248. "payer_client_ip":{
  3249. "x-required":true,
  3250. "x-id":"67ef580",
  3251. "name":"payer_client_ip",
  3252. "title":"用户终端IP",
  3253. "type":"string",
  3254. "x-index":3
  3255. }
  3256. },
  3257. "required":[
  3258. "payer_client_ip"
  3259. ]
  3260. }
  3261. },
  3262. "required":[
  3263. "appid",
  3264. "mchid",
  3265. "description",
  3266. "out_trade_no",
  3267. "notify_url",
  3268. "amount",
  3269. "payer"
  3270. ]
  3271. },
  3272. "name":"unifiedOrder",
  3273. "calleeBody":{
  3274. "method":"POST",
  3275. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  3276. "isUrlInValid":true,
  3277. "body":{
  3278. "values":{
  3279. "type":"string",
  3280. "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"mchid\": \"{{vars.mchid}}\",\n \"description\": \"{{params.description}}\",\n \"out_trade_no\": \"{{params.out_trade_no}}\",\n \"time_expire\": \"{{params.time_expire}}\",\n \"attach\": \"{{params.attach}}\",\n \"notify_url\": \"{{vars.notifyUrlPay}}\",\n \"goods_tag\": \"{{params.goods_tag}}\",\n \"support_fapiao\": {{params.support_fapiao}},\n \"amount\": {{params.amount}},\n \"payer\": {{params.payer}},\n \"detail\": {{params.detail}},\n \"scene_info\": {{params.scene_info}},\n \"settle_info\": {{params.settle_info}}\n}\n",
  3281. "key":"json"
  3282. },
  3283. "contentType":"json"
  3284. },
  3285. "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi"
  3286. },
  3287. "isCollapse":true
  3288. },
  3289. {
  3290. "isTitleInValid":false,
  3291. "description":"商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询\n注意:\n查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同\n\n\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml",
  3292. "type":"http",
  3293. "title":"查询订单-微信支付订单号查询",
  3294. "outParams":{
  3295. "x-keyPath":"",
  3296. "x-id":"ly213kdx",
  3297. "title":"value",
  3298. "type":"object",
  3299. "properties":{
  3300. "transaction_id":{
  3301. "x-keyPath":"transaction_id",
  3302. "x-id":"jqtopuq0",
  3303. "title":"transaction_id",
  3304. "type":"string"
  3305. },
  3306. "amount":{
  3307. "x-keyPath":"",
  3308. "x-id":"1q76c9cx",
  3309. "title":"amount",
  3310. "type":"object",
  3311. "properties":{
  3312. "payer_total":{
  3313. "x-keyPath":"amount.payer_total",
  3314. "x-id":"ociza2r6",
  3315. "title":"payer_total",
  3316. "type":"number"
  3317. },
  3318. "total":{
  3319. "x-keyPath":"amount.total",
  3320. "x-id":"0uydz8py",
  3321. "title":"total",
  3322. "type":"number"
  3323. },
  3324. "currency":{
  3325. "x-keyPath":"amount.currency",
  3326. "x-id":"5soaq71m",
  3327. "title":"currency",
  3328. "type":"string"
  3329. },
  3330. "payer_currency":{
  3331. "x-keyPath":"amount.payer_currency",
  3332. "x-id":"jx06skvo",
  3333. "title":"payer_currency",
  3334. "type":"string"
  3335. }
  3336. }
  3337. },
  3338. "mchid":{
  3339. "x-keyPath":"mchid",
  3340. "x-id":"tbj66xmh",
  3341. "title":"mchid",
  3342. "type":"string"
  3343. },
  3344. "trade_state":{
  3345. "x-keyPath":"trade_state",
  3346. "x-id":"s4sjjlua",
  3347. "title":"trade_state",
  3348. "type":"string"
  3349. },
  3350. "bank_type":{
  3351. "x-keyPath":"bank_type",
  3352. "x-id":"n1h47pm5",
  3353. "title":"bank_type",
  3354. "type":"string"
  3355. },
  3356. "promotion_detail":{
  3357. "x-keyPath":"promotion_detail",
  3358. "x-id":"djku47ev",
  3359. "title":"promotion_detail",
  3360. "type":"array",
  3361. "items":{
  3362. "x-keyPath":"$item",
  3363. "x-id":"3ggn3n2k",
  3364. "title":"value",
  3365. "type":"string"
  3366. }
  3367. },
  3368. "success_time":{
  3369. "x-keyPath":"success_time",
  3370. "x-id":"4m5b4q4l",
  3371. "title":"success_time",
  3372. "type":"string"
  3373. },
  3374. "payer":{
  3375. "x-keyPath":"",
  3376. "x-id":"pwxw08yv",
  3377. "title":"payer",
  3378. "type":"object",
  3379. "properties":{
  3380. "openid":{
  3381. "x-keyPath":"payer.openid",
  3382. "x-id":"pvjpp0so",
  3383. "title":"openid",
  3384. "type":"string"
  3385. }
  3386. }
  3387. },
  3388. "out_trade_no":{
  3389. "x-keyPath":"out_trade_no",
  3390. "x-id":"paon43ff",
  3391. "title":"out_trade_no",
  3392. "type":"string"
  3393. },
  3394. "appid":{
  3395. "x-keyPath":"appid",
  3396. "x-id":"m1mk6nfd",
  3397. "title":"appid",
  3398. "type":"string"
  3399. },
  3400. "trade_state_desc":{
  3401. "x-keyPath":"trade_state_desc",
  3402. "x-id":"1uxennpf",
  3403. "title":"trade_state_desc",
  3404. "type":"string"
  3405. },
  3406. "trade_type":{
  3407. "x-keyPath":"trade_type",
  3408. "x-id":"1u0lmcxf",
  3409. "title":"trade_type",
  3410. "type":"string"
  3411. },
  3412. "attach":{
  3413. "x-keyPath":"attach",
  3414. "x-id":"z7iurr88",
  3415. "title":"attach",
  3416. "type":"string"
  3417. }
  3418. }
  3419. },
  3420. "uuid":"b6174cbb-9449-49a1-b9bf-f4a44946a692",
  3421. "intent":"create",
  3422. "isNameInValid":false,
  3423. "isShow":true,
  3424. "inParams":{
  3425. "type":"object",
  3426. "properties":{
  3427. "transaction_id":{
  3428. "x-required":true,
  3429. "x-id":"aabcb61",
  3430. "name":"transaction_id",
  3431. "title":"微信支付订单号",
  3432. "type":"string",
  3433. "x-index":1
  3434. }
  3435. },
  3436. "required":[
  3437. "transaction_id"
  3438. ]
  3439. },
  3440. "name":"queryOrderByTransactionId",
  3441. "calleeBody":{
  3442. "method":"GET",
  3443. "query":{
  3444. "values":{
  3445. "type":"object",
  3446. "value":{
  3447. "mchid":"{{vars.mchid}}"
  3448. },
  3449. "key":"25981c9e65b1a0"
  3450. }
  3451. },
  3452. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  3453. "isUrlInValid":true,
  3454. "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/id/{{params.transaction_id}}"
  3455. },
  3456. "isCollapse":true
  3457. },
  3458. {
  3459. "isTitleInValid":false,
  3460. "description":"商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询\n注意:\n查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同\n\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml",
  3461. "type":"http",
  3462. "title":"查询订单-商户订单号查询",
  3463. "outParams":{
  3464. "x-keyPath":"",
  3465. "x-id":"tvx36581",
  3466. "title":"value",
  3467. "type":"object",
  3468. "properties":{
  3469. "transaction_id":{
  3470. "x-keyPath":"transaction_id",
  3471. "x-id":"9pcd7639",
  3472. "title":"transaction_id",
  3473. "type":"string"
  3474. },
  3475. "amount":{
  3476. "x-keyPath":"",
  3477. "x-id":"h5xm19mc",
  3478. "title":"amount",
  3479. "type":"object",
  3480. "properties":{
  3481. "payer_total":{
  3482. "x-keyPath":"amount.payer_total",
  3483. "x-id":"pynkbeve",
  3484. "title":"payer_total",
  3485. "type":"number"
  3486. },
  3487. "total":{
  3488. "x-keyPath":"amount.total",
  3489. "x-id":"y3vhgfwx",
  3490. "title":"total",
  3491. "type":"number"
  3492. },
  3493. "currency":{
  3494. "x-keyPath":"amount.currency",
  3495. "x-id":"gtwhpob2",
  3496. "title":"currency",
  3497. "type":"string"
  3498. },
  3499. "payer_currency":{
  3500. "x-keyPath":"amount.payer_currency",
  3501. "x-id":"56ih5p22",
  3502. "title":"payer_currency",
  3503. "type":"string"
  3504. }
  3505. }
  3506. },
  3507. "mchid":{
  3508. "x-keyPath":"mchid",
  3509. "x-id":"12ungfn5",
  3510. "title":"mchid",
  3511. "type":"string"
  3512. },
  3513. "trade_state":{
  3514. "x-keyPath":"trade_state",
  3515. "x-id":"45t7fkma",
  3516. "title":"trade_state",
  3517. "type":"string"
  3518. },
  3519. "bank_type":{
  3520. "x-keyPath":"bank_type",
  3521. "x-id":"fnn36k98",
  3522. "title":"bank_type",
  3523. "type":"string"
  3524. },
  3525. "promotion_detail":{
  3526. "x-keyPath":"promotion_detail",
  3527. "x-id":"1pzyxb0e",
  3528. "title":"promotion_detail",
  3529. "type":"array",
  3530. "items":{
  3531. "x-keyPath":"$item",
  3532. "x-id":"29m2sbgt",
  3533. "title":"value",
  3534. "type":"string"
  3535. }
  3536. },
  3537. "success_time":{
  3538. "x-keyPath":"success_time",
  3539. "x-id":"zt842oau",
  3540. "title":"success_time",
  3541. "type":"string"
  3542. },
  3543. "payer":{
  3544. "x-keyPath":"",
  3545. "x-id":"uydordz8",
  3546. "title":"payer",
  3547. "type":"object",
  3548. "properties":{
  3549. "openid":{
  3550. "x-keyPath":"payer.openid",
  3551. "x-id":"tvlt8ifx",
  3552. "title":"openid",
  3553. "type":"string"
  3554. }
  3555. }
  3556. },
  3557. "out_trade_no":{
  3558. "x-keyPath":"out_trade_no",
  3559. "x-id":"nio0j6a3",
  3560. "title":"out_trade_no",
  3561. "type":"string"
  3562. },
  3563. "appid":{
  3564. "x-keyPath":"appid",
  3565. "x-id":"mm4711o8",
  3566. "title":"appid",
  3567. "type":"string"
  3568. },
  3569. "trade_state_desc":{
  3570. "x-keyPath":"trade_state_desc",
  3571. "x-id":"5awk2s1n",
  3572. "title":"trade_state_desc",
  3573. "type":"string"
  3574. },
  3575. "trade_type":{
  3576. "x-keyPath":"trade_type",
  3577. "x-id":"w9pxsm9k",
  3578. "title":"trade_type",
  3579. "type":"string"
  3580. },
  3581. "attach":{
  3582. "x-keyPath":"attach",
  3583. "x-id":"w2q6bqpp",
  3584. "title":"attach",
  3585. "type":"string"
  3586. }
  3587. }
  3588. },
  3589. "uuid":"e08c57fb-7497-4fc1-89e7-292595b9cad6",
  3590. "intent":"create",
  3591. "isNameInValid":false,
  3592. "isShow":true,
  3593. "inParams":{
  3594. "type":"object",
  3595. "properties":{
  3596. "out_trade_no":{
  3597. "x-required":true,
  3598. "x-id":"79a65f8",
  3599. "name":"out_trade_no",
  3600. "title":"商户订单号",
  3601. "type":"string",
  3602. "x-index":1
  3603. }
  3604. },
  3605. "required":[
  3606. "out_trade_no"
  3607. ]
  3608. },
  3609. "name":"queryOrderByOutTradeNo",
  3610. "calleeBody":{
  3611. "method":"GET",
  3612. "query":{
  3613. "values":{
  3614. "type":"object",
  3615. "value":{
  3616. "mchid":"{{vars.mchid}}"
  3617. },
  3618. "key":"40097b0954c390"
  3619. }
  3620. },
  3621. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  3622. "isUrlInValid":true,
  3623. "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{{params.out_trade_no}}"
  3624. },
  3625. "isCollapse":true
  3626. },
  3627. {
  3628. "isTitleInValid":false,
  3629. "description":"以下情况需要调用关单接口:\n1、商户订单支付失败需要生成新单号重新发起支付,要对原订单号调用关单,避免重复支付;\n2、系统下单后,用户支付超时,系统退出不再受理,避免用户继续,请调用关单接口。\n注意:\n• 关单没有时间限制,建议在订单生成后间隔几分钟(最短5分钟)再调用关单接口,避免出现订单状态同步不及时导致关单失败。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml",
  3630. "type":"http",
  3631. "title":"关闭订单",
  3632. "outParams":{
  3633. "x-keyPath":"",
  3634. "x-id":"3k66lbyu",
  3635. "title":"value",
  3636. "type":"object",
  3637. "properties":{}
  3638. },
  3639. "uuid":"57e19c96-caf2-4ba9-af5e-4c8b5b4d5301",
  3640. "intent":"create",
  3641. "isNameInValid":false,
  3642. "isShow":true,
  3643. "inParams":{
  3644. "type":"object",
  3645. "properties":{
  3646. "out_trade_no":{
  3647. "x-required":true,
  3648. "x-id":"6f1829f",
  3649. "name":"out_trade_no",
  3650. "title":"商户订单号",
  3651. "type":"string",
  3652. "x-index":1
  3653. }
  3654. },
  3655. "required":[
  3656. "mchid",
  3657. "out_trade_no"
  3658. ]
  3659. },
  3660. "name":"closeOrder",
  3661. "calleeBody":{
  3662. "method":"POST",
  3663. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  3664. "isUrlInValid":true,
  3665. "body":{
  3666. "values":{
  3667. "type":"string",
  3668. "value":"{\n \"mchid\": \"{{vars.mchid}}\"\n}",
  3669. "key":"json"
  3670. },
  3671. "contentType":"json"
  3672. },
  3673. "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{{params.out_trade_no}}/close"
  3674. },
  3675. "isCollapse":true
  3676. },
  3677. {
  3678. "isTitleInValid":false,
  3679. "presetParams":{
  3680. "functionName":{
  3681. "x-required":true,
  3682. "x-id":"q1u9kwpj",
  3683. "description":"微信支付直连,回调工作流ID或回调地址",
  3684. "title":"回调地址",
  3685. "type":"_wxpaydc_",
  3686. "x-index":1
  3687. }
  3688. },
  3689. "description":"当交易发生之后一年内,由于买家或者卖家的原因需要退款时,卖家可以通过退款接口将支付金额退还给买家,微信支付将在收到退款请求并且验证成功之后,将支付款按原路退还至买家账号上。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml",
  3690. "type":"http",
  3691. "title":"申请退款",
  3692. "outParams":{
  3693. "x-keyPath":"",
  3694. "x-id":"fbssu1mu",
  3695. "title":"value",
  3696. "type":"object",
  3697. "properties":{
  3698. "transaction_id":{
  3699. "x-keyPath":"transaction_id",
  3700. "x-id":"eoqmee8c",
  3701. "title":"transaction_id",
  3702. "type":"string"
  3703. },
  3704. "amount":{
  3705. "x-keyPath":"",
  3706. "x-id":"jmg6ck1n",
  3707. "title":"amount",
  3708. "type":"object",
  3709. "properties":{
  3710. "payer_total":{
  3711. "x-keyPath":"amount.payer_total",
  3712. "x-id":"79l14lmw",
  3713. "title":"payer_total",
  3714. "type":"number"
  3715. },
  3716. "settlement_total":{
  3717. "x-keyPath":"amount.settlement_total",
  3718. "x-id":"shn3arae",
  3719. "title":"settlement_total",
  3720. "type":"number"
  3721. },
  3722. "total":{
  3723. "x-keyPath":"amount.total",
  3724. "x-id":"foahk38c",
  3725. "title":"total",
  3726. "type":"number"
  3727. },
  3728. "payer_refund":{
  3729. "x-keyPath":"amount.payer_refund",
  3730. "x-id":"qqr5wny2",
  3731. "title":"payer_refund",
  3732. "type":"number"
  3733. },
  3734. "refund_fee":{
  3735. "x-keyPath":"amount.refund_fee",
  3736. "x-id":"gsmcx6go",
  3737. "title":"refund_fee",
  3738. "type":"number"
  3739. },
  3740. "discount_refund":{
  3741. "x-keyPath":"amount.discount_refund",
  3742. "x-id":"ly1wic3y",
  3743. "title":"discount_refund",
  3744. "type":"number"
  3745. },
  3746. "currency":{
  3747. "x-keyPath":"amount.currency",
  3748. "x-id":"6oswcbax",
  3749. "title":"currency",
  3750. "type":"string"
  3751. },
  3752. "from":{
  3753. "x-keyPath":"amount.from",
  3754. "x-id":"ddup4f1i",
  3755. "title":"from",
  3756. "type":"array",
  3757. "items":{
  3758. "x-keyPath":"$item",
  3759. "x-id":"dw2r6uw7",
  3760. "title":"value",
  3761. "type":"string"
  3762. }
  3763. },
  3764. "settlement_refund":{
  3765. "x-keyPath":"amount.settlement_refund",
  3766. "x-id":"5zqbyj09",
  3767. "title":"settlement_refund",
  3768. "type":"number"
  3769. },
  3770. "refund":{
  3771. "x-keyPath":"amount.refund",
  3772. "x-id":"0l84vwp2",
  3773. "title":"refund",
  3774. "type":"number"
  3775. }
  3776. }
  3777. },
  3778. "out_trade_no":{
  3779. "x-keyPath":"out_trade_no",
  3780. "x-id":"kft7i864",
  3781. "title":"out_trade_no",
  3782. "type":"string"
  3783. },
  3784. "create_time":{
  3785. "x-keyPath":"create_time",
  3786. "x-id":"7n7sti4j",
  3787. "title":"create_time",
  3788. "type":"string"
  3789. },
  3790. "promotion_detail":{
  3791. "x-keyPath":"promotion_detail",
  3792. "x-id":"x9z7s053",
  3793. "title":"promotion_detail",
  3794. "type":"array",
  3795. "items":{
  3796. "x-keyPath":"$item",
  3797. "x-id":"cb67iaqa",
  3798. "title":"value",
  3799. "type":"string"
  3800. }
  3801. },
  3802. "out_refund_no":{
  3803. "x-keyPath":"out_refund_no",
  3804. "x-id":"mrgzgsaw",
  3805. "title":"out_refund_no",
  3806. "type":"string"
  3807. },
  3808. "funds_account":{
  3809. "x-keyPath":"funds_account",
  3810. "x-id":"3o8w3djf",
  3811. "title":"funds_account",
  3812. "type":"string"
  3813. },
  3814. "channel":{
  3815. "x-keyPath":"channel",
  3816. "x-id":"0zzwrkwd",
  3817. "title":"channel",
  3818. "type":"string"
  3819. },
  3820. "success_time":{
  3821. "x-keyPath":"success_time",
  3822. "x-id":"glzze9yv",
  3823. "title":"success_time",
  3824. "type":"string"
  3825. },
  3826. "user_received_account":{
  3827. "x-keyPath":"user_received_account",
  3828. "x-id":"3dnv4brc",
  3829. "title":"user_received_account",
  3830. "type":"string"
  3831. },
  3832. "refund_id":{
  3833. "x-keyPath":"refund_id",
  3834. "x-id":"kdzi35iv",
  3835. "title":"refund_id",
  3836. "type":"string"
  3837. },
  3838. "status":{
  3839. "x-keyPath":"status",
  3840. "x-id":"qwxtrpwt",
  3841. "title":"status",
  3842. "type":"string"
  3843. }
  3844. }
  3845. },
  3846. "uuid":"e9051e29-da70-4330-aaef-2ebb139454fc",
  3847. "intent":"create",
  3848. "isNameInValid":false,
  3849. "isShow":true,
  3850. "inParams":{
  3851. "type":"object",
  3852. "properties":{
  3853. "transaction_id":{
  3854. "x-required":false,
  3855. "x-id":"a593a0d",
  3856. "name":"transaction_id",
  3857. "title":"微信支付订单号",
  3858. "type":"string",
  3859. "x-index":1
  3860. },
  3861. "reason":{
  3862. "x-required":false,
  3863. "x-id":"9365274",
  3864. "name":"reason",
  3865. "title":"退款原因",
  3866. "type":"string",
  3867. "x-index":4
  3868. },
  3869. "amount":{
  3870. "x-required":true,
  3871. "x-id":"7a805a8",
  3872. "name":"amount",
  3873. "title":"金额信息",
  3874. "type":"object",
  3875. "list":[
  3876. {
  3877. "x-required":true,
  3878. "x-keyPath":"",
  3879. "x-id":"65ea3b9",
  3880. "format":"",
  3881. "name":"currency",
  3882. "description":"符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。\n示例值:CNY",
  3883. "pId":"7a805a8",
  3884. "type":"string",
  3885. "x-index":2,
  3886. "title":"退款币种",
  3887. "x-unique":false,
  3888. "maxLength":4000
  3889. },
  3890. {
  3891. "x-required":true,
  3892. "x-id":"ae4ef43",
  3893. "name":"refund",
  3894. "pId":"7a805a8",
  3895. "title":"退款金额",
  3896. "type":"number"
  3897. },
  3898. {
  3899. "x-required":false,
  3900. "x-id":"bcdf06f",
  3901. "name":"from",
  3902. "pId":"7a805a8",
  3903. "title":"退款出资账户及金额",
  3904. "type":"array",
  3905. "list":[
  3906. {
  3907. "x-required":true,
  3908. "x-id":"87724ba",
  3909. "name":"account",
  3910. "pId":"bcdf06f",
  3911. "title":"出资账户类型",
  3912. "type":"string"
  3913. },
  3914. {
  3915. "x-required":true,
  3916. "x-id":"a41f529",
  3917. "name":"amount",
  3918. "pId":"bcdf06f",
  3919. "title":"出资金额",
  3920. "type":"number"
  3921. }
  3922. ],
  3923. "items":{
  3924. "x-required":false,
  3925. "type":"object",
  3926. "properties":{
  3927. "amount":{
  3928. "x-required":true,
  3929. "x-id":"a41f529",
  3930. "name":"amount",
  3931. "title":"出资金额",
  3932. "type":"number"
  3933. },
  3934. "account":{
  3935. "x-required":true,
  3936. "x-id":"87724ba",
  3937. "name":"account",
  3938. "title":"出资账户类型",
  3939. "type":"string"
  3940. }
  3941. },
  3942. "required":[
  3943. "account",
  3944. "amount"
  3945. ]
  3946. }
  3947. },
  3948. {
  3949. "x-required":true,
  3950. "x-id":"682593a",
  3951. "name":"total",
  3952. "pId":"7a805a8",
  3953. "title":"原订单金额",
  3954. "type":"number"
  3955. }
  3956. ],
  3957. "x-index":6,
  3958. "properties":{
  3959. "total":{
  3960. "x-required":true,
  3961. "x-id":"682593a",
  3962. "name":"total",
  3963. "title":"原订单金额",
  3964. "type":"number",
  3965. "x-index":5
  3966. },
  3967. "from":{
  3968. "x-required":false,
  3969. "x-id":"bcdf06f",
  3970. "name":"from",
  3971. "title":"退款出资账户及金额",
  3972. "type":"array",
  3973. "list":[
  3974. {
  3975. "x-required":true,
  3976. "x-id":"87724ba",
  3977. "name":"account",
  3978. "pId":"bcdf06f",
  3979. "title":"出资账户类型",
  3980. "type":"string",
  3981. "x-index":1
  3982. },
  3983. {
  3984. "x-required":true,
  3985. "x-id":"a41f529",
  3986. "name":"amount",
  3987. "pId":"bcdf06f",
  3988. "title":"出资金额",
  3989. "type":"number",
  3990. "x-index":2
  3991. }
  3992. ],
  3993. "x-index":4,
  3994. "items":{
  3995. "x-required":false,
  3996. "type":"object",
  3997. "properties":{
  3998. "amount":{
  3999. "x-required":true,
  4000. "x-id":"a41f529",
  4001. "name":"amount",
  4002. "title":"出资金额",
  4003. "type":"number",
  4004. "x-index":2
  4005. },
  4006. "account":{
  4007. "x-required":true,
  4008. "x-id":"87724ba",
  4009. "name":"account",
  4010. "title":"出资账户类型",
  4011. "type":"string",
  4012. "x-index":1
  4013. }
  4014. },
  4015. "required":[
  4016. "account",
  4017. "amount"
  4018. ]
  4019. }
  4020. },
  4021. "currency":{
  4022. "x-required":true,
  4023. "x-keyPath":"",
  4024. "x-id":"65ea3b9",
  4025. "format":"",
  4026. "name":"currency",
  4027. "description":"符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。\n示例值:CNY",
  4028. "type":"string",
  4029. "x-index":2,
  4030. "title":"退款币种",
  4031. "x-unique":false,
  4032. "maxLength":4000
  4033. },
  4034. "refund":{
  4035. "x-required":true,
  4036. "x-id":"ae4ef43",
  4037. "name":"refund",
  4038. "title":"退款金额",
  4039. "type":"number",
  4040. "x-index":3
  4041. }
  4042. },
  4043. "required":[
  4044. "refund",
  4045. "total"
  4046. ]
  4047. },
  4048. "out_trade_no":{
  4049. "x-required":false,
  4050. "x-id":"a8ec754",
  4051. "name":"out_trade_no",
  4052. "title":"商户订单号",
  4053. "type":"string",
  4054. "x-index":2
  4055. },
  4056. "out_refund_no":{
  4057. "x-required":true,
  4058. "x-id":"7a58a9a",
  4059. "name":"out_refund_no",
  4060. "title":"商户退款单号",
  4061. "type":"string",
  4062. "x-index":3
  4063. },
  4064. "funds_account":{
  4065. "x-required":false,
  4066. "x-id":"917d277",
  4067. "name":"funds_account",
  4068. "title":"退款资金来源",
  4069. "type":"string",
  4070. "x-index":5
  4071. },
  4072. "goods_detail":{
  4073. "x-required":false,
  4074. "x-id":"9e076fb",
  4075. "name":"goods_detail",
  4076. "title":"退款商品",
  4077. "type":"array",
  4078. "list":[
  4079. {
  4080. "x-required":false,
  4081. "x-id":"a0602c9",
  4082. "name":"goods_name",
  4083. "pId":"9e076fb",
  4084. "title":"商品名称",
  4085. "type":"string",
  4086. "x-index":1
  4087. },
  4088. {
  4089. "x-required":false,
  4090. "x-id":"78dfc51",
  4091. "name":"wechatpay_goods_id",
  4092. "pId":"9e076fb",
  4093. "title":"微信支付商品编码",
  4094. "type":"string",
  4095. "x-index":2
  4096. },
  4097. {
  4098. "x-required":true,
  4099. "x-id":"6e24aef",
  4100. "name":"merchant_goods_id",
  4101. "pId":"9e076fb",
  4102. "title":"商户侧商品编码",
  4103. "type":"string",
  4104. "x-index":3
  4105. },
  4106. {
  4107. "x-required":true,
  4108. "x-id":"ab0bced",
  4109. "name":"refund_amount",
  4110. "pId":"9e076fb",
  4111. "title":"商品退款金额",
  4112. "type":"number",
  4113. "x-index":4
  4114. },
  4115. {
  4116. "x-required":true,
  4117. "x-id":"a0affba",
  4118. "name":"unit_price",
  4119. "pId":"9e076fb",
  4120. "title":"商品单价",
  4121. "type":"number",
  4122. "x-index":5
  4123. },
  4124. {
  4125. "x-required":true,
  4126. "x-id":"afcca20",
  4127. "name":"refund_quantity",
  4128. "pId":"9e076fb",
  4129. "title":"商品退货数量",
  4130. "type":"number",
  4131. "x-index":6
  4132. }
  4133. ],
  4134. "x-index":7,
  4135. "items":{
  4136. "x-required":false,
  4137. "type":"object",
  4138. "properties":{
  4139. "goods_name":{
  4140. "x-required":false,
  4141. "x-id":"a0602c9",
  4142. "name":"goods_name",
  4143. "title":"商品名称",
  4144. "type":"string",
  4145. "x-index":1
  4146. },
  4147. "wechatpay_goods_id":{
  4148. "x-required":false,
  4149. "x-id":"78dfc51",
  4150. "name":"wechatpay_goods_id",
  4151. "title":"微信支付商品编码",
  4152. "type":"string",
  4153. "x-index":2
  4154. },
  4155. "merchant_goods_id":{
  4156. "x-required":true,
  4157. "x-id":"6e24aef",
  4158. "name":"merchant_goods_id",
  4159. "title":"商户侧商品编码",
  4160. "type":"string",
  4161. "x-index":3
  4162. },
  4163. "refund_amount":{
  4164. "x-required":true,
  4165. "x-id":"ab0bced",
  4166. "name":"refund_amount",
  4167. "title":"商品退款金额",
  4168. "type":"number",
  4169. "x-index":4
  4170. },
  4171. "unit_price":{
  4172. "x-required":true,
  4173. "x-id":"a0affba",
  4174. "name":"unit_price",
  4175. "title":"商品单价",
  4176. "type":"number",
  4177. "x-index":5
  4178. },
  4179. "refund_quantity":{
  4180. "x-required":true,
  4181. "x-id":"afcca20",
  4182. "name":"refund_quantity",
  4183. "title":"商品退货数量",
  4184. "type":"number",
  4185. "x-index":6
  4186. }
  4187. },
  4188. "required":[
  4189. "merchant_goods_id",
  4190. "refund_amount",
  4191. "unit_price",
  4192. "refund_quantity"
  4193. ]
  4194. }
  4195. }
  4196. },
  4197. "required":[
  4198. "out_refund_no",
  4199. "amount",
  4200. "currency"
  4201. ]
  4202. },
  4203. "name":"refund",
  4204. "calleeBody":{
  4205. "method":"POST",
  4206. "query":{
  4207. "values":{
  4208. "type":"object",
  4209. "value":{},
  4210. "key":"2387be55782182"
  4211. }
  4212. },
  4213. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  4214. "isUrlInValid":true,
  4215. "body":{
  4216. "values":{
  4217. "type":"string",
  4218. "value":"{\n \"transaction_id\": \"{{params.transaction_id}}\",\n \"out_trade_no\": \"{{params.out_trade_no}}\",\n \"out_refund_no\": \"{{params.out_refund_no}}\",\n \"reason\": \"{{params.reason}}\",\n \"notify_url\": \"{{vars.notifyUrlRefunds}}\",\n \"funds_account\": \"{{params.funds_account}}\",\n \"amount\": {{params.amount}},\n \"currency\": \"{{params.currency}}\",\n \"goods_detail\": {{params.goods_detail}}\n}",
  4219. "key":"json"
  4220. },
  4221. "contentType":"json"
  4222. },
  4223. "url":"https://api.mch.weixin.qq.com/v3/refund/domestic/refunds"
  4224. },
  4225. "isCollapse":true
  4226. },
  4227. {
  4228. "isTitleInValid":false,
  4229. "description":"提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,建议在提交退款申请后1分钟发起查询退款状态,一般来说零钱支付的退款5分钟内到账,银行卡支付的退款1-3个工作日到账。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml",
  4230. "type":"http",
  4231. "title":"查询单笔退款",
  4232. "outParams":{
  4233. "x-keyPath":"",
  4234. "x-id":"mx7ko99g",
  4235. "title":"value",
  4236. "type":"object",
  4237. "properties":{
  4238. "transaction_id":{
  4239. "x-keyPath":"transaction_id",
  4240. "x-id":"ha9p3id8",
  4241. "title":"transaction_id",
  4242. "type":"string"
  4243. },
  4244. "amount":{
  4245. "x-keyPath":"",
  4246. "x-id":"f2pvechl",
  4247. "title":"amount",
  4248. "type":"object",
  4249. "properties":{
  4250. "payer_total":{
  4251. "x-keyPath":"amount.payer_total",
  4252. "x-id":"73s7baat",
  4253. "title":"payer_total",
  4254. "type":"number"
  4255. },
  4256. "settlement_total":{
  4257. "x-keyPath":"amount.settlement_total",
  4258. "x-id":"kybrs4b6",
  4259. "title":"settlement_total",
  4260. "type":"number"
  4261. },
  4262. "total":{
  4263. "x-keyPath":"amount.total",
  4264. "x-id":"fomnagov",
  4265. "title":"total",
  4266. "type":"number"
  4267. },
  4268. "payer_refund":{
  4269. "x-keyPath":"amount.payer_refund",
  4270. "x-id":"2qk18udx",
  4271. "title":"payer_refund",
  4272. "type":"number"
  4273. },
  4274. "refund_fee":{
  4275. "x-keyPath":"amount.refund_fee",
  4276. "x-id":"bo3liaaq",
  4277. "title":"refund_fee",
  4278. "type":"number"
  4279. },
  4280. "discount_refund":{
  4281. "x-keyPath":"amount.discount_refund",
  4282. "x-id":"2vst6zt3",
  4283. "title":"discount_refund",
  4284. "type":"number"
  4285. },
  4286. "currency":{
  4287. "x-keyPath":"amount.currency",
  4288. "x-id":"t91hs0kb",
  4289. "title":"currency",
  4290. "type":"string"
  4291. },
  4292. "from":{
  4293. "x-keyPath":"amount.from",
  4294. "x-id":"bcagbpoj",
  4295. "title":"from",
  4296. "type":"array",
  4297. "items":{
  4298. "x-keyPath":"$item",
  4299. "x-id":"v9qhe6kf",
  4300. "title":"value",
  4301. "type":"string"
  4302. }
  4303. },
  4304. "settlement_refund":{
  4305. "x-keyPath":"amount.settlement_refund",
  4306. "x-id":"d8fze7ry",
  4307. "title":"settlement_refund",
  4308. "type":"number"
  4309. },
  4310. "refund":{
  4311. "x-keyPath":"amount.refund",
  4312. "x-id":"te627uve",
  4313. "title":"refund",
  4314. "type":"number"
  4315. }
  4316. }
  4317. },
  4318. "out_trade_no":{
  4319. "x-keyPath":"out_trade_no",
  4320. "x-id":"hryj19fr",
  4321. "title":"out_trade_no",
  4322. "type":"string"
  4323. },
  4324. "create_time":{
  4325. "x-keyPath":"create_time",
  4326. "x-id":"pi8v8w8c",
  4327. "title":"create_time",
  4328. "type":"string"
  4329. },
  4330. "promotion_detail":{
  4331. "x-keyPath":"promotion_detail",
  4332. "x-id":"fdbojfv1",
  4333. "title":"promotion_detail",
  4334. "type":"array",
  4335. "items":{
  4336. "x-keyPath":"$item",
  4337. "x-id":"e31qihr0",
  4338. "title":"value",
  4339. "type":"string"
  4340. }
  4341. },
  4342. "out_refund_no":{
  4343. "x-keyPath":"out_refund_no",
  4344. "x-id":"zp4lp60b",
  4345. "title":"out_refund_no",
  4346. "type":"string"
  4347. },
  4348. "funds_account":{
  4349. "x-keyPath":"funds_account",
  4350. "x-id":"kq1kx6to",
  4351. "title":"funds_account",
  4352. "type":"string"
  4353. },
  4354. "channel":{
  4355. "x-keyPath":"channel",
  4356. "x-id":"uggwa6ae",
  4357. "title":"channel",
  4358. "type":"string"
  4359. },
  4360. "success_time":{
  4361. "x-keyPath":"success_time",
  4362. "x-id":"wm8ykfha",
  4363. "title":"success_time",
  4364. "type":"string"
  4365. },
  4366. "user_received_account":{
  4367. "x-keyPath":"user_received_account",
  4368. "x-id":"tykejz29",
  4369. "title":"user_received_account",
  4370. "type":"string"
  4371. },
  4372. "refund_id":{
  4373. "x-keyPath":"refund_id",
  4374. "x-id":"e72t4hc5",
  4375. "title":"refund_id",
  4376. "type":"string"
  4377. },
  4378. "status":{
  4379. "x-keyPath":"status",
  4380. "x-id":"01jj6z0g",
  4381. "title":"status",
  4382. "type":"string"
  4383. }
  4384. }
  4385. },
  4386. "uuid":"1a7eec48-545a-459c-8609-bac1ad3ad229",
  4387. "intent":"create",
  4388. "isNameInValid":false,
  4389. "isShow":true,
  4390. "inParams":{
  4391. "type":"object",
  4392. "properties":{
  4393. "out_refund_no":{
  4394. "x-required":true,
  4395. "x-id":"7e4ae6e",
  4396. "name":"out_refund_no",
  4397. "title":"商户退款单号",
  4398. "type":"string",
  4399. "x-index":1
  4400. }
  4401. },
  4402. "required":[
  4403. "out_refund_no"
  4404. ]
  4405. },
  4406. "name":"queryRefund",
  4407. "calleeBody":{
  4408. "method":"GET",
  4409. "query":{
  4410. "values":{
  4411. "type":"object",
  4412. "value":{},
  4413. "key":"26a87b206815ca"
  4414. }
  4415. },
  4416. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  4417. "isUrlInValid":true,
  4418. "url":"https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{{params.out_refund_no}}"
  4419. },
  4420. "isCollapse":true
  4421. },
  4422. {
  4423. "isTitleInValid":false,
  4424. "description":"微信支付按天提供交易账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含交易相关的金额、时间、营销等信息,供商户核对订单、退款、银行到账等情况。\n注意:\n• 微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账单中,跟原支付单订单号一致;\n\n• 对账单中涉及金额的字段单位为“元”;\n\n• 对账单接口只能下载三个月以内的账单。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml",
  4425. "type":"http",
  4426. "title":"申请交易账单",
  4427. "outParams":{
  4428. "x-keyPath":"",
  4429. "x-id":"ltxic790",
  4430. "title":"value",
  4431. "type":"object",
  4432. "properties":{
  4433. "nonce_str":{
  4434. "x-keyPath":"nonce_str",
  4435. "x-id":"mgzlawyh",
  4436. "title":"nonce_str",
  4437. "type":"string"
  4438. },
  4439. "mchid":{
  4440. "x-keyPath":"mchid",
  4441. "x-id":"zrhdcfut",
  4442. "title":"mchid",
  4443. "type":"string"
  4444. },
  4445. "signature":{
  4446. "x-keyPath":"signature",
  4447. "x-id":"izwqs9su",
  4448. "title":"signature",
  4449. "type":"string"
  4450. },
  4451. "download_url":{
  4452. "x-keyPath":"download_url",
  4453. "x-id":"zngfffvw",
  4454. "title":"download_url",
  4455. "type":"string"
  4456. },
  4457. "hash_value":{
  4458. "x-keyPath":"hash_value",
  4459. "x-id":"tqq08jpk",
  4460. "title":"hash_value",
  4461. "type":"string"
  4462. },
  4463. "serial_no":{
  4464. "x-keyPath":"serial_no",
  4465. "x-id":"3df84rx5",
  4466. "title":"serial_no",
  4467. "type":"string"
  4468. },
  4469. "hash_type":{
  4470. "x-keyPath":"hash_type",
  4471. "x-id":"syc9mk1y",
  4472. "title":"hash_type",
  4473. "type":"string"
  4474. },
  4475. "timestamp":{
  4476. "x-keyPath":"timestamp",
  4477. "x-id":"34cq6u2c",
  4478. "title":"timestamp",
  4479. "type":"number"
  4480. }
  4481. }
  4482. },
  4483. "uuid":"e71613ad-f78d-4422-aa6a-7d7f531b58c5",
  4484. "intent":"create",
  4485. "isNameInValid":false,
  4486. "isShow":true,
  4487. "inParams":{
  4488. "type":"object",
  4489. "properties":{
  4490. "bill_date":{
  4491. "x-required":true,
  4492. "x-keyPath":"",
  4493. "x-id":"9e5ea1d",
  4494. "name":"bill_date",
  4495. "format":"",
  4496. "isEnum":false,
  4497. "description":"",
  4498. "title":"账单日期",
  4499. "type":"string",
  4500. "x-index":4,
  4501. "x-unique":false,
  4502. "maxLength":4000
  4503. },
  4504. "bill_type":{
  4505. "x-required":false,
  4506. "x-id":"a097c83",
  4507. "name":"bill_type",
  4508. "title":"账单类型",
  4509. "type":"string",
  4510. "x-index":5
  4511. },
  4512. "tar_type":{
  4513. "x-required":false,
  4514. "x-keyPath":"",
  4515. "x-id":"7421a85",
  4516. "format":"",
  4517. "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单",
  4518. "type":"string",
  4519. "x-index":2,
  4520. "title":"压缩类型",
  4521. "x-unique":false,
  4522. "maxLength":4000
  4523. }
  4524. },
  4525. "required":[]
  4526. },
  4527. "name":"tradebill",
  4528. "calleeBody":{
  4529. "method":"GET",
  4530. "query":{
  4531. "values":{
  4532. "type":"object",
  4533. "value":{
  4534. "bill_date":"{{params.bill_date}}",
  4535. "bill_type":"{{params.bill_type}}",
  4536. "tar_type":"{{params.tar_type}}"
  4537. },
  4538. "key":"2e99d86c1aa0de"
  4539. }
  4540. },
  4541. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  4542. "isUrlInValid":true,
  4543. "url":"https://api.mch.weixin.qq.com/v3/bill/tradebill"
  4544. },
  4545. "isCollapse":true
  4546. },
  4547. {
  4548. "isTitleInValid":false,
  4549. "description":"微信支付按天提供微信支付账户的资金流水账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含该账户资金操作相关的业务单号、收支金额、记账时间等信息,供商户进行核对。\n注意:\n• 资金账单中的数据反映的是商户微信支付账户资金变动情况;\n\n• 对账单中涉及金额的字段单位为“元”。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml",
  4550. "type":"http",
  4551. "title":"申请资金账单",
  4552. "outParams":{
  4553. "x-keyPath":"",
  4554. "x-id":"u6z5317f",
  4555. "title":"value",
  4556. "type":"object",
  4557. "properties":{
  4558. "nonce_str":{
  4559. "x-keyPath":"nonce_str",
  4560. "x-id":"0bbpknx3",
  4561. "title":"nonce_str",
  4562. "type":"string"
  4563. },
  4564. "mchid":{
  4565. "x-keyPath":"mchid",
  4566. "x-id":"k8lnw0ia",
  4567. "title":"mchid",
  4568. "type":"string"
  4569. },
  4570. "signature":{
  4571. "x-keyPath":"signature",
  4572. "x-id":"8yeu0now",
  4573. "title":"signature",
  4574. "type":"string"
  4575. },
  4576. "download_url":{
  4577. "x-keyPath":"download_url",
  4578. "x-id":"fmn0eeox",
  4579. "title":"download_url",
  4580. "type":"string"
  4581. },
  4582. "hash_value":{
  4583. "x-keyPath":"hash_value",
  4584. "x-id":"xc9s7wfe",
  4585. "title":"hash_value",
  4586. "type":"string"
  4587. },
  4588. "serial_no":{
  4589. "x-keyPath":"serial_no",
  4590. "x-id":"ok5cf3zo",
  4591. "title":"serial_no",
  4592. "type":"string"
  4593. },
  4594. "hash_type":{
  4595. "x-keyPath":"hash_type",
  4596. "x-id":"kbdzgfyd",
  4597. "title":"hash_type",
  4598. "type":"string"
  4599. },
  4600. "timestamp":{
  4601. "x-keyPath":"timestamp",
  4602. "x-id":"zf539is8",
  4603. "title":"timestamp",
  4604. "type":"number"
  4605. }
  4606. }
  4607. },
  4608. "uuid":"a5d6db4c-d945-4059-a3af-f10877d60d46",
  4609. "intent":"create",
  4610. "isNameInValid":false,
  4611. "isShow":true,
  4612. "inParams":{
  4613. "type":"object",
  4614. "properties":{
  4615. "account_type":{
  4616. "x-required":false,
  4617. "x-id":"8d4a0d2",
  4618. "name":"account_type",
  4619. "title":"资金账户类型",
  4620. "type":"string",
  4621. "x-index":4
  4622. },
  4623. "bill_date":{
  4624. "x-required":true,
  4625. "x-id":"b78cf72",
  4626. "name":"bill_date",
  4627. "title":"账单日期",
  4628. "type":"string",
  4629. "x-index":3
  4630. },
  4631. "tar_type":{
  4632. "x-required":false,
  4633. "x-keyPath":"",
  4634. "x-id":"9dc21c4",
  4635. "format":"",
  4636. "name":"tar_type",
  4637. "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单\n示例值:GZIP",
  4638. "isEnum":false,
  4639. "type":"string",
  4640. "x-index":2,
  4641. "title":"压缩类型",
  4642. "x-unique":false,
  4643. "maxLength":4000
  4644. }
  4645. },
  4646. "required":[
  4647. "bill_date"
  4648. ]
  4649. },
  4650. "name":"fundflowbill",
  4651. "calleeBody":{
  4652. "method":"GET",
  4653. "query":{
  4654. "values":{
  4655. "type":"object",
  4656. "value":{
  4657. "account_type":"{{params.account_type}}",
  4658. "bill_date":"{{params.bill_date}}",
  4659. "tar_type":"{{params.tar_type}}"
  4660. },
  4661. "key":"42f87755978d74"
  4662. }
  4663. },
  4664. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  4665. "isUrlInValid":true,
  4666. "url":"https://api.mch.weixin.qq.com/v3/bill/fundflowbill"
  4667. },
  4668. "isCollapse":true
  4669. },
  4670. {
  4671. "isTitleInValid":false,
  4672. "description":"微信订单支付成功后,商户发起分账请求,将结算后的资金分到分账接收方",
  4673. "title":"请求分账",
  4674. "type":"http",
  4675. "outParams":{
  4676. "x-keyPath":"",
  4677. "x-id":"7nuxq09h",
  4678. "title":"value",
  4679. "type":"object",
  4680. "properties":{
  4681. "orderId":{
  4682. "x-keyPath":"orderId",
  4683. "x-id":"nbfhicq9",
  4684. "title":"orderId",
  4685. "type":"string"
  4686. },
  4687. "receivers":{
  4688. "x-keyPath":"receivers",
  4689. "x-id":"6vj5yand",
  4690. "title":"receivers",
  4691. "type":"array",
  4692. "items":{
  4693. "x-keyPath":"",
  4694. "x-id":"s8lb1ys7",
  4695. "title":"value",
  4696. "type":"object",
  4697. "properties":{
  4698. "result":{
  4699. "x-keyPath":"$item.result",
  4700. "x-id":"g69m0wbj",
  4701. "title":"result",
  4702. "type":"string"
  4703. },
  4704. "amount":{
  4705. "x-keyPath":"$item.amount",
  4706. "x-id":"vpih1wr4",
  4707. "title":"amount",
  4708. "type":"number"
  4709. },
  4710. "finishTime":{
  4711. "x-keyPath":"$item.finishTime",
  4712. "x-id":"jo3vvqex",
  4713. "title":"finishTime",
  4714. "type":"string"
  4715. },
  4716. "createTime":{
  4717. "x-keyPath":"$item.createTime",
  4718. "x-id":"yle5jrf9",
  4719. "title":"createTime",
  4720. "type":"string"
  4721. },
  4722. "description":{
  4723. "x-keyPath":"$item.description",
  4724. "x-id":"1h9n5mp1",
  4725. "title":"description",
  4726. "type":"string"
  4727. },
  4728. "detailId":{
  4729. "x-keyPath":"$item.detailId",
  4730. "x-id":"hoih3z2h",
  4731. "title":"detailId",
  4732. "type":"string"
  4733. },
  4734. "failReason":{
  4735. "x-required":false,
  4736. "x-keyPath":"$item.failReason",
  4737. "x-id":"9621572",
  4738. "format":"",
  4739. "name":"failReason",
  4740. "description":"",
  4741. "type":"string",
  4742. "x-index":2,
  4743. "title":"failReason",
  4744. "x-unique":false,
  4745. "maxLength":4000
  4746. },
  4747. "type":{
  4748. "x-keyPath":"$item.type",
  4749. "x-id":"8z5ofbui",
  4750. "title":"type",
  4751. "type":"string"
  4752. },
  4753. "account":{
  4754. "x-keyPath":"$item.account",
  4755. "x-id":"s4g5tvbj",
  4756. "title":"account",
  4757. "type":"string"
  4758. }
  4759. }
  4760. }
  4761. },
  4762. "state":{
  4763. "x-keyPath":"state",
  4764. "x-id":"vfx6lct8",
  4765. "title":"state",
  4766. "type":"string"
  4767. },
  4768. "outOrderNo":{
  4769. "x-keyPath":"outOrderNo",
  4770. "x-id":"ug5t8oe3",
  4771. "title":"outOrderNo",
  4772. "type":"string"
  4773. },
  4774. "transactionId":{
  4775. "x-keyPath":"transactionId",
  4776. "x-id":"x4nvxno6",
  4777. "title":"transactionId",
  4778. "type":"string"
  4779. }
  4780. }
  4781. },
  4782. "intent":"create",
  4783. "uuid":"a5664445-4f8a-458f-be84-5edc3eddf2af",
  4784. "isNameInValid":false,
  4785. "isShow":true,
  4786. "inParams":{
  4787. "additionalProperties":true,
  4788. "type":"object",
  4789. "properties":{
  4790. "transaction_id":{
  4791. "x-required":true,
  4792. "x-keyPath":"",
  4793. "x-id":"631300b",
  4794. "format":"",
  4795. "description":"微信支付订单号\n示例值:4208450740201411110007820472",
  4796. "type":"string",
  4797. "x-index":2,
  4798. "title":"微信订单号",
  4799. "x-unique":false,
  4800. "maxLength":4000
  4801. },
  4802. "unfreeze_unsplit":{
  4803. "x-required":true,
  4804. "x-keyPath":"",
  4805. "x-id":"8097e89",
  4806. "format":"",
  4807. "description":"1、如果为true,该笔订单剩余未分账的金额会解冻回分账方商户;\n2、如果为false,该笔订单剩余未分账的金额不会解冻回分账方商户,可以对该笔订单再次进行分账。",
  4808. "type":"boolean",
  4809. "x-index":8,
  4810. "title":"是否解冻剩余未分资金",
  4811. "x-unique":false
  4812. },
  4813. "receivers":{
  4814. "x-required":true,
  4815. "x-keyPath":"",
  4816. "x-id":"7a7a5ad",
  4817. "format":"",
  4818. "description":"分账接收方列表,可以设置出资商户作为分账接受方,最多可有50个分账接收方",
  4819. "type":"array",
  4820. "x-index":6,
  4821. "title":"分账接收方列表",
  4822. "items":{
  4823. "format":"",
  4824. "type":"object",
  4825. "properties":{
  4826. "amount":{
  4827. "x-required":true,
  4828. "x-keyPath":"",
  4829. "x-id":"657694b",
  4830. "format":"",
  4831. "name":"amount",
  4832. "description":"分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额\n示例值:888",
  4833. "type":"number",
  4834. "x-index":6,
  4835. "title":"分账金额",
  4836. "x-unique":false
  4837. },
  4838. "name":{
  4839. "x-required":false,
  4840. "x-keyPath":"",
  4841. "x-id":"67c5a8f",
  4842. "format":"",
  4843. "name":"name",
  4844. "description":"可选项,在接收方类型为个人的时可选填,若有值,会检查与 name 是否实名匹配,不匹配会拒绝分账请求\n1、分账接收方类型是PERSONAL_OPENID,是个人姓名的密文(选传,传则校验) 此字段的加密方法详见:敏感信息加密说明\n2、使用微信支付平台证书中的公钥\n3、使用RSAES-OAEP算法进行加密\n4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号\n示例值:hu89ohu89ohu89o",
  4845. "type":"string",
  4846. "x-index":4,
  4847. "title":"分账个人接收方姓名",
  4848. "x-unique":false,
  4849. "maxLength":4000
  4850. },
  4851. "description":{
  4852. "x-required":true,
  4853. "x-keyPath":"",
  4854. "x-id":"b330ec8",
  4855. "format":"",
  4856. "name":"description",
  4857. "description":"分账的原因描述,分账账单中需要体现\n示例值:分给商户A",
  4858. "type":"string",
  4859. "x-index":8,
  4860. "title":"分账描述",
  4861. "x-unique":false,
  4862. "maxLength":4000
  4863. },
  4864. "type":{
  4865. "x-required":true,
  4866. "x-keyPath":"",
  4867. "x-id":"9e9d0c9",
  4868. "format":"",
  4869. "name":"type",
  4870. "description":"分账接收方账号:\n1、类型是MERCHANT_ID时,是商户号(mch_id或者sub_mch_id)\n2、类型是PERSONAL_OPENID时,是个人openid",
  4871. "type":"string",
  4872. "x-index":2,
  4873. "title":"分账接收方类型",
  4874. "x-unique":false,
  4875. "maxLength":4000
  4876. },
  4877. "account":{
  4878. "x-required":true,
  4879. "x-keyPath":"",
  4880. "x-id":"a6ff677",
  4881. "format":"",
  4882. "name":"account",
  4883. "description":"分账接收方账号:\n1、类型是MERCHANT_ID时,是商户号(mch_id或者sub_mch_id)\n2、类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852",
  4884. "type":"string",
  4885. "x-index":10,
  4886. "title":"分账接收方账号",
  4887. "x-unique":false,
  4888. "maxLength":4000
  4889. }
  4890. }
  4891. },
  4892. "x-unique":false
  4893. },
  4894. "out_order_no":{
  4895. "x-required":true,
  4896. "x-keyPath":"",
  4897. "x-id":"9f7cc74",
  4898. "format":"",
  4899. "description":"商户系统内部的分账单号,在商户系统内部唯一,同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@\n示例值:P20150806125346",
  4900. "type":"string",
  4901. "x-index":4,
  4902. "title":"商户分账单号",
  4903. "x-unique":false,
  4904. "maxLength":4000
  4905. }
  4906. },
  4907. "required":[]
  4908. },
  4909. "name":"profitsharing_orders",
  4910. "calleeBody":{
  4911. "method":"POST",
  4912. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  4913. "isUrlInValid":true,
  4914. "body":{
  4915. "values":{
  4916. "type":"string",
  4917. "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"transaction_id\": \"{{params.transaction_id}}\",\n \"out_order_no\": \"{{params.out_order_no}}\",\n \"receivers\": {{params.receivers}},\n \"unfreeze_unsplit\": {{params.unfreeze_unsplit}}\n}",
  4918. "key":"json"
  4919. },
  4920. "contentType":"json"
  4921. },
  4922. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders"
  4923. },
  4924. "isCollapse":true
  4925. },
  4926. {
  4927. "isTitleInValid":false,
  4928. "description":"发起分账请求后,可调用此接口查询分账结果",
  4929. "title":"查询分账结果",
  4930. "type":"http",
  4931. "outParams":{
  4932. "x-keyPath":"",
  4933. "x-id":"ni2255xj",
  4934. "title":"value",
  4935. "type":"object",
  4936. "properties":{
  4937. "transaction_id":{
  4938. "x-keyPath":"transaction_id",
  4939. "x-id":"e9wrymd9",
  4940. "title":"transaction_id",
  4941. "type":"string"
  4942. },
  4943. "receivers":{
  4944. "x-keyPath":"receivers",
  4945. "x-id":"uhmcyz36",
  4946. "title":"receivers",
  4947. "type":"array",
  4948. "items":{
  4949. "x-keyPath":"",
  4950. "x-id":"gngr8moq",
  4951. "title":"value",
  4952. "type":"object",
  4953. "properties":{
  4954. "result":{
  4955. "x-keyPath":"$item.result",
  4956. "x-id":"n2v0avbf",
  4957. "title":"result",
  4958. "type":"string"
  4959. },
  4960. "amount":{
  4961. "x-keyPath":"$item.amount",
  4962. "x-id":"4xef3loz",
  4963. "title":"amount",
  4964. "type":"number"
  4965. },
  4966. "create_time":{
  4967. "x-keyPath":"$item.create_time",
  4968. "x-id":"6q3elwi6",
  4969. "title":"create_time",
  4970. "type":"string"
  4971. },
  4972. "description":{
  4973. "x-keyPath":"$item.description",
  4974. "x-id":"j4242aim",
  4975. "title":"description",
  4976. "type":"string"
  4977. },
  4978. "detail_id":{
  4979. "x-keyPath":"$item.detail_id",
  4980. "x-id":"evglumbd",
  4981. "title":"detail_id",
  4982. "type":"string"
  4983. },
  4984. "type":{
  4985. "x-keyPath":"$item.type",
  4986. "x-id":"gjqg4geb",
  4987. "title":"type",
  4988. "type":"string"
  4989. },
  4990. "fail_reason":{
  4991. "x-required":false,
  4992. "x-keyPath":"$item. fail_reason",
  4993. "x-id":"6606d43",
  4994. "format":"",
  4995. "name":"fail_reason",
  4996. "description":"分账失败原因,当分账结果result为CLOSED(已关闭)时,返回该字段\n枚举值:\n1、ACCOUNT_ABNORMAL:分账接收账户异常\n2、NO_RELATION:分账关系已解除\n3、RECEIVER_HIGH_RISK:高风险接收方\n4、RECEIVER_REAL_NAME_NOT_VERIFIED:接收方未实名\n5、NO_AUTH:分账权限已解除\n6、RECEIVER_RECEIPT_LIMIT:超出用户月收款限额\n7、PAYER_ACCOUNT_ABNORMAL:分出方账户异常\n8、INVALID_REQUEST: 描述参数设置失败\n示例值:ACCOUNT_ABNORMAL",
  4997. "type":"string",
  4998. "x-index":2,
  4999. "title":"fail_reason",
  5000. "x-unique":false,
  5001. "maxLength":4000
  5002. },
  5003. "account":{
  5004. "x-keyPath":"$item.account",
  5005. "x-id":"lpw6f5vl",
  5006. "title":"account",
  5007. "type":"string"
  5008. },
  5009. "finish_time":{
  5010. "x-keyPath":"$item.finish_time",
  5011. "x-id":"fvwr3n2h",
  5012. "title":"finish_time",
  5013. "type":"string"
  5014. }
  5015. }
  5016. }
  5017. },
  5018. "out_order_no":{
  5019. "x-keyPath":"out_order_no",
  5020. "x-id":"vsw9qfq5",
  5021. "title":"out_order_no",
  5022. "type":"string"
  5023. },
  5024. "state":{
  5025. "x-keyPath":"state",
  5026. "x-id":"cbdn951i",
  5027. "title":"state",
  5028. "type":"string"
  5029. },
  5030. "order_id":{
  5031. "x-keyPath":"order_id",
  5032. "x-id":"cmez7tzj",
  5033. "title":"order_id",
  5034. "type":"string"
  5035. }
  5036. }
  5037. },
  5038. "intent":"create",
  5039. "uuid":"a38cbc80-33e6-451e-a62f-e650914e249c",
  5040. "isNameInValid":false,
  5041. "isShow":true,
  5042. "inParams":{
  5043. "additionalProperties":true,
  5044. "type":"object",
  5045. "properties":{
  5046. "transaction_id":{
  5047. "x-required":true,
  5048. "x-keyPath":"",
  5049. "x-id":"b5eeeee",
  5050. "format":"",
  5051. "description":"微信支付订单号\n示例值:4208450740201411110007820472",
  5052. "type":"string",
  5053. "x-index":2,
  5054. "title":"微信订单号",
  5055. "x-unique":false,
  5056. "maxLength":4000
  5057. },
  5058. "out_order_no":{
  5059. "x-required":true,
  5060. "x-keyPath":"",
  5061. "x-id":"6ee57c7",
  5062. "format":"",
  5063. "description":"询分账结果,输入申请分账时的商户分账单号; 查询分账完结执行的结果,输入发起分账完结时的商户分账单号。\n示例值:P20150806125346",
  5064. "type":"string",
  5065. "x-index":4,
  5066. "title":"商户分账单号",
  5067. "x-unique":false,
  5068. "maxLength":4000
  5069. }
  5070. },
  5071. "required":[]
  5072. },
  5073. "name":"queryProfitsharingByOutTradeNo",
  5074. "calleeBody":{
  5075. "method":"GET",
  5076. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5077. "query":{
  5078. "values":{
  5079. "type":"object",
  5080. "value":{
  5081. "transaction_id":"{{params.transaction_id}}"
  5082. },
  5083. "key":"381e52c55a906a"
  5084. }
  5085. },
  5086. "isUrlInValid":true,
  5087. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders/{{params.out_order_no}}"
  5088. },
  5089. "isCollapse":true
  5090. },
  5091. {
  5092. "inParams":{
  5093. "additionalProperties":true,
  5094. "type":"object",
  5095. "properties":{
  5096. "amount":{
  5097. "x-required":true,
  5098. "x-keyPath":"",
  5099. "x-id":"7d9baf3",
  5100. "format":"",
  5101. "description":"要从分账接收方回退的金额,单位为分,只能为整数,不能超过原始分账单分出给该接收方的金额\n示例值:10",
  5102. "type":"number",
  5103. "x-index":10,
  5104. "title":"回退金额",
  5105. "x-unique":false
  5106. },
  5107. "out_order_no":{
  5108. "x-required":false,
  5109. "x-keyPath":"",
  5110. "x-id":"9a395e8",
  5111. "format":"",
  5112. "description":"原发起分账请求时使用的商户系统内部的分账单号。微信分账单号与商户分账单号二选一填写\n示例值:P20150806125346",
  5113. "type":"string",
  5114. "x-index":4,
  5115. "title":"商户分账单号",
  5116. "x-unique":false,
  5117. "maxLength":4000
  5118. },
  5119. "out_return_no":{
  5120. "x-required":true,
  5121. "x-keyPath":"",
  5122. "x-id":"bc13703",
  5123. "format":"",
  5124. "description":"此回退单号是商户在自己后台生成的一个新的回退单号,在商户后台唯一\n示例值:R20190516001",
  5125. "type":"string",
  5126. "x-index":6,
  5127. "title":"商户回退单号",
  5128. "x-unique":false,
  5129. "maxLength":4000
  5130. },
  5131. "description":{
  5132. "x-required":true,
  5133. "x-keyPath":"",
  5134. "x-id":"6ecc33a",
  5135. "format":"",
  5136. "description":"账回退的原因描述\n示例值:用户退款",
  5137. "type":"string",
  5138. "x-index":12,
  5139. "title":"回退描述",
  5140. "x-unique":false,
  5141. "maxLength":4000
  5142. },
  5143. "return_mchid":{
  5144. "x-required":true,
  5145. "x-keyPath":"",
  5146. "x-id":"6f0485b",
  5147. "format":"",
  5148. "description":"分账接口中的分账接收方商户号\n示例值:86693852",
  5149. "type":"string",
  5150. "x-index":8,
  5151. "title":"回退商户号",
  5152. "x-unique":false,
  5153. "maxLength":4000
  5154. },
  5155. "order_id":{
  5156. "x-required":false,
  5157. "x-keyPath":"",
  5158. "x-id":"8f099a3",
  5159. "format":"",
  5160. "description":"微信分账单号,微信支付系统返回的唯一标识。\n示例值:3008450740201411110007820472",
  5161. "type":"string",
  5162. "x-index":2,
  5163. "title":"微信分账单号",
  5164. "x-unique":false,
  5165. "maxLength":4000
  5166. }
  5167. },
  5168. "required":[]
  5169. },
  5170. "isTitleInValid":false,
  5171. "name":"profitsharingReturnOrders",
  5172. "title":"请求分账回退",
  5173. "type":"http",
  5174. "outParams":{
  5175. "x-keyPath":"",
  5176. "x-id":"ql2w3xcg",
  5177. "title":"value",
  5178. "type":"object",
  5179. "properties":{
  5180. "result":{
  5181. "x-keyPath":"result",
  5182. "x-id":"4b773zmv",
  5183. "title":"result",
  5184. "type":"string"
  5185. },
  5186. "amount":{
  5187. "x-keyPath":"amount",
  5188. "x-id":"3jjmv3g3",
  5189. "title":"amount",
  5190. "type":"number"
  5191. },
  5192. "create_time":{
  5193. "x-keyPath":"create_time",
  5194. "x-id":"pusm93l4",
  5195. "title":"create_time",
  5196. "type":"string"
  5197. },
  5198. "description":{
  5199. "x-keyPath":"description",
  5200. "x-id":"63v7w206",
  5201. "title":"description",
  5202. "type":"string"
  5203. },
  5204. "out_order_no":{
  5205. "x-keyPath":"out_order_no",
  5206. "x-id":"fgeaw1s5",
  5207. "title":"out_order_no",
  5208. "type":"string"
  5209. },
  5210. "out_return_no":{
  5211. "x-keyPath":"out_return_no",
  5212. "x-id":"g3fvtrwm",
  5213. "title":"out_return_no",
  5214. "type":"string"
  5215. },
  5216. "return_id":{
  5217. "x-keyPath":"return_id",
  5218. "x-id":"7xbkw6ho",
  5219. "title":"return_id",
  5220. "type":"string"
  5221. },
  5222. "return_mchid":{
  5223. "x-keyPath":"return_mchid",
  5224. "x-id":"a4qmcntk",
  5225. "title":"return_mchid",
  5226. "type":"string"
  5227. },
  5228. "fail_reason":{
  5229. "x-required":false,
  5230. "x-keyPath":"fail_reason",
  5231. "x-id":"b0bd2c3",
  5232. "format":"",
  5233. "description":"",
  5234. "type":"string",
  5235. "x-index":2,
  5236. "title":"fail_reason",
  5237. "x-unique":false,
  5238. "maxLength":4000
  5239. },
  5240. "order_id":{
  5241. "x-keyPath":"order_id",
  5242. "x-id":"57d7y2w8",
  5243. "title":"order_id",
  5244. "type":"string"
  5245. },
  5246. "finish_time":{
  5247. "x-keyPath":"finish_time",
  5248. "x-id":"v3qdhdew",
  5249. "title":"finish_time",
  5250. "type":"string"
  5251. }
  5252. }
  5253. },
  5254. "intent":"create",
  5255. "calleeBody":{
  5256. "method":"POST",
  5257. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5258. "isUrlInValid":true,
  5259. "body":{
  5260. "values":{
  5261. "type":"string",
  5262. "value":"{{params}}",
  5263. "key":"json"
  5264. },
  5265. "contentType":"json"
  5266. },
  5267. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/return-orders"
  5268. },
  5269. "isCollapse":true,
  5270. "uuid":"aef7ff46-24e4-4e5c-b44a-c031369cf9ff",
  5271. "isNameInValid":false,
  5272. "isShow":true
  5273. },
  5274. {
  5275. "inParams":{
  5276. "additionalProperties":true,
  5277. "type":"object",
  5278. "properties":{
  5279. "out_return_no":{
  5280. "x-required":true,
  5281. "x-keyPath":"",
  5282. "x-id":"7d9659b",
  5283. "format":"",
  5284. "description":"调用回退接口提供的商户系统内部的回退单号\n示例值:R20190516001",
  5285. "type":"string",
  5286. "x-index":2,
  5287. "title":"商户回退单号",
  5288. "x-unique":false,
  5289. "maxLength":4000
  5290. },
  5291. "out_order_no":{
  5292. "x-required":true,
  5293. "x-keyPath":"",
  5294. "x-id":"8dd4021",
  5295. "format":"",
  5296. "description":"原发起分账请求时使用的商户系统内部的分账单号\n示例值:P20190806125346",
  5297. "type":"string",
  5298. "x-index":4,
  5299. "title":"商户分账单号",
  5300. "x-unique":false,
  5301. "maxLength":4000
  5302. }
  5303. },
  5304. "required":[]
  5305. },
  5306. "isTitleInValid":false,
  5307. "name":"queryProfitsharingReturnOrders",
  5308. "title":"查询分账回退结果",
  5309. "type":"http",
  5310. "outParams":{
  5311. "x-keyPath":"",
  5312. "x-id":"h2rtn2ml",
  5313. "title":"value",
  5314. "type":"object",
  5315. "properties":{
  5316. "result":{
  5317. "x-keyPath":"result",
  5318. "x-id":"e5q0ju9e",
  5319. "title":"result",
  5320. "type":"string"
  5321. },
  5322. "amount":{
  5323. "x-keyPath":"amount",
  5324. "x-id":"bnc6mcez",
  5325. "title":"amount",
  5326. "type":"number"
  5327. },
  5328. "create_time":{
  5329. "x-keyPath":"create_time",
  5330. "x-id":"3er62ix9",
  5331. "title":"create_time",
  5332. "type":"string"
  5333. },
  5334. "description":{
  5335. "x-keyPath":"description",
  5336. "x-id":"asrm9yrp",
  5337. "title":"description",
  5338. "type":"string"
  5339. },
  5340. "out_order_no":{
  5341. "x-keyPath":"out_order_no",
  5342. "x-id":"hboeonyy",
  5343. "title":"out_order_no",
  5344. "type":"string"
  5345. },
  5346. "out_return_no":{
  5347. "x-keyPath":"out_return_no",
  5348. "x-id":"c245mvs1",
  5349. "title":"out_return_no",
  5350. "type":"string"
  5351. },
  5352. "return_id":{
  5353. "x-keyPath":"return_id",
  5354. "x-id":"9s0xneta",
  5355. "title":"return_id",
  5356. "type":"string"
  5357. },
  5358. "return_mchid":{
  5359. "x-keyPath":"return_mchid",
  5360. "x-id":"omf722ym",
  5361. "title":"return_mchid",
  5362. "type":"string"
  5363. },
  5364. "fail_reason":{
  5365. "x-required":false,
  5366. "x-keyPath":"fail_reason",
  5367. "x-id":"8eab02f",
  5368. "format":"",
  5369. "description":"",
  5370. "type":"string",
  5371. "x-index":2,
  5372. "title":"fail_reason",
  5373. "x-unique":false,
  5374. "maxLength":4000
  5375. },
  5376. "order_id":{
  5377. "x-keyPath":"order_id",
  5378. "x-id":"six3i353",
  5379. "title":"order_id",
  5380. "type":"string"
  5381. },
  5382. "finish_time":{
  5383. "x-keyPath":"finish_time",
  5384. "x-id":"gulc35u6",
  5385. "title":"finish_time",
  5386. "type":"string"
  5387. }
  5388. }
  5389. },
  5390. "intent":"create",
  5391. "calleeBody":{
  5392. "method":"GET",
  5393. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5394. "query":{
  5395. "values":{
  5396. "type":"object",
  5397. "value":{
  5398. "out_order_no":"{{params.out_order_no}}"
  5399. },
  5400. "key":"2a524acaf4b354"
  5401. }
  5402. },
  5403. "isUrlInValid":true,
  5404. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/return-orders/{{params.out_return_no}}"
  5405. },
  5406. "isCollapse":true,
  5407. "uuid":"cdcd5b10-29c8-431a-aba2-d9bd906b3088",
  5408. "isNameInValid":false,
  5409. "isShow":true
  5410. },
  5411. {
  5412. "isTitleInValid":false,
  5413. "description":"不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给本商户",
  5414. "title":"解冻剩余资金",
  5415. "type":"http",
  5416. "outParams":{
  5417. "x-keyPath":"",
  5418. "x-id":"y70o8tsx",
  5419. "title":"value",
  5420. "type":"object",
  5421. "properties":{
  5422. "transaction_id":{
  5423. "x-keyPath":"transaction_id",
  5424. "x-id":"9kuzi4i2",
  5425. "title":"transaction_id",
  5426. "type":"string"
  5427. },
  5428. "receivers":{
  5429. "x-keyPath":"receivers",
  5430. "x-id":"io3b5r6q",
  5431. "title":"receivers",
  5432. "type":"array",
  5433. "items":{
  5434. "x-keyPath":"",
  5435. "x-id":"y4xreuje",
  5436. "title":"value",
  5437. "type":"object",
  5438. "properties":{
  5439. "result":{
  5440. "x-keyPath":"$item.result",
  5441. "x-id":"3ewfc0db",
  5442. "title":"result",
  5443. "type":"string"
  5444. },
  5445. "amount":{
  5446. "x-keyPath":"$item.amount",
  5447. "x-id":"6yss66sb",
  5448. "title":"amount",
  5449. "type":"number"
  5450. },
  5451. "create_time":{
  5452. "x-keyPath":"$item.create_time",
  5453. "x-id":"un7tzpr4",
  5454. "title":"create_time",
  5455. "type":"string"
  5456. },
  5457. "description":{
  5458. "x-keyPath":"$item.description",
  5459. "x-id":"lk6tgsmc",
  5460. "title":"description",
  5461. "type":"string"
  5462. },
  5463. "detail_id":{
  5464. "x-keyPath":"$item.detail_id",
  5465. "x-id":"rlz1mfji",
  5466. "title":"detail_id",
  5467. "type":"string"
  5468. },
  5469. "type":{
  5470. "x-keyPath":"$item.type",
  5471. "x-id":"vowr8wu6",
  5472. "title":"type",
  5473. "type":"string"
  5474. },
  5475. "fail_reason":{
  5476. "x-required":false,
  5477. "x-keyPath":"$item.fail_reason",
  5478. "x-id":"65250a4",
  5479. "format":"",
  5480. "name":"fail_reason",
  5481. "description":"分账失败原因,当分账结果result为CLOSED(已关闭)时,返回该字段\n枚举值:\n1、ACCOUNT_ABNORMAL : 分账接收账户异常\n2、NO_RELATION : 分账关系已解除\n3、RECEIVER_HIGH_RISK : 高风险接收方\n4、RECEIVER_REAL_NAME_NOT_VERIFIED : 接收方未实名\n5、NO_AUTH : 分账权限已解除\n6、RECEIVER_RECEIPT_LIMIT : 接收方已达收款限额\n示例值:ACCOUNT_ABNORMAL",
  5482. "type":"string",
  5483. "x-index":2,
  5484. "title":"fail_reason",
  5485. "x-unique":false,
  5486. "maxLength":4000
  5487. },
  5488. "account":{
  5489. "x-keyPath":"$item.account",
  5490. "x-id":"dbojnt0g",
  5491. "title":"account",
  5492. "type":"string"
  5493. },
  5494. "finish_time":{
  5495. "x-keyPath":"$item.finish_time",
  5496. "x-id":"dg3oln9r",
  5497. "title":"finish_time",
  5498. "type":"string"
  5499. }
  5500. }
  5501. }
  5502. },
  5503. "out_order_no":{
  5504. "x-keyPath":"out_order_no",
  5505. "x-id":"jo24hxw7",
  5506. "title":"out_order_no",
  5507. "type":"string"
  5508. },
  5509. "state":{
  5510. "x-keyPath":"state",
  5511. "x-id":"virf5jyq",
  5512. "title":"state",
  5513. "type":"string"
  5514. },
  5515. "order_id":{
  5516. "x-keyPath":"order_id",
  5517. "x-id":"djv1qc0f",
  5518. "title":"order_id",
  5519. "type":"string"
  5520. }
  5521. }
  5522. },
  5523. "intent":"create",
  5524. "uuid":"8a079b26-a9f2-427d-9ffc-457c5d11cd9b",
  5525. "isNameInValid":false,
  5526. "isShow":true,
  5527. "inParams":{
  5528. "additionalProperties":true,
  5529. "type":"object",
  5530. "properties":{
  5531. "transaction_id":{
  5532. "x-required":true,
  5533. "x-keyPath":"",
  5534. "x-id":"8c96058",
  5535. "format":"",
  5536. "description":"微信支付订单号\n示例值:4208450740201411110007820472",
  5537. "type":"string",
  5538. "x-index":2,
  5539. "title":"微信订单号",
  5540. "x-unique":false,
  5541. "maxLength":4000
  5542. },
  5543. "out_order_no":{
  5544. "x-required":true,
  5545. "x-keyPath":"",
  5546. "x-id":"ab8babd",
  5547. "format":"",
  5548. "description":"商户系统内部的分账单号,在商户系统内部唯一,同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@\n示例值:P20150806125346",
  5549. "type":"string",
  5550. "x-index":4,
  5551. "title":"商户分账单号",
  5552. "x-unique":false,
  5553. "maxLength":4000
  5554. },
  5555. "description":{
  5556. "x-required":true,
  5557. "x-keyPath":"",
  5558. "x-id":"841a802",
  5559. "format":"",
  5560. "description":"账的原因描述,分账账单中需要体现\n示例值:解冻全部剩余资金",
  5561. "type":"string",
  5562. "x-index":6,
  5563. "title":"分账描述",
  5564. "x-unique":false,
  5565. "maxLength":4000
  5566. }
  5567. },
  5568. "required":[]
  5569. },
  5570. "name":"profitsharingOrdersUnfreeze",
  5571. "calleeBody":{
  5572. "method":"POST",
  5573. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5574. "isUrlInValid":true,
  5575. "body":{
  5576. "values":{
  5577. "type":"string",
  5578. "value":"{{params}}",
  5579. "key":"json"
  5580. },
  5581. "contentType":"json"
  5582. },
  5583. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders/unfreeze"
  5584. },
  5585. "isCollapse":true
  5586. },
  5587. {
  5588. "isTitleInValid":false,
  5589. "description":"可调用此接口查询订单剩余待分金额",
  5590. "title":"查询剩余待分金额",
  5591. "type":"http",
  5592. "outParams":{
  5593. "x-keyPath":"",
  5594. "x-id":"dm3x5xxp",
  5595. "title":"value",
  5596. "type":"object",
  5597. "properties":{
  5598. "transaction_id":{
  5599. "x-keyPath":"transaction_id",
  5600. "x-id":"u0lxkt0k",
  5601. "title":"transaction_id",
  5602. "type":"string"
  5603. },
  5604. "unsplit_amount":{
  5605. "x-keyPath":"unsplit_amount",
  5606. "x-id":"ys1pelif",
  5607. "title":"unsplit_amount",
  5608. "type":"number"
  5609. }
  5610. }
  5611. },
  5612. "intent":"create",
  5613. "uuid":"c7a11760-bb58-484e-b8ef-6382ca8ff2ac",
  5614. "isNameInValid":false,
  5615. "isShow":true,
  5616. "inParams":{
  5617. "additionalProperties":true,
  5618. "type":"object",
  5619. "properties":{
  5620. "transaction_id":{
  5621. "x-required":true,
  5622. "x-keyPath":"",
  5623. "x-id":"84236c2",
  5624. "format":"",
  5625. "description":"微信支付订单号\n示例值:4208450740201411110007820472",
  5626. "type":"string",
  5627. "x-index":2,
  5628. "title":"微信订单号",
  5629. "x-unique":false,
  5630. "maxLength":4000
  5631. }
  5632. },
  5633. "required":[]
  5634. },
  5635. "name":"queryProfitsharingTransactions",
  5636. "calleeBody":{
  5637. "method":"GET",
  5638. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5639. "isUrlInValid":true,
  5640. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/transactions/{{params.transaction_id}}/amounts"
  5641. },
  5642. "isCollapse":true
  5643. },
  5644. {
  5645. "isTitleInValid":false,
  5646. "description":"商户发起添加分账接收方请求,建立分账接收方列表。后续可通过发起分账请求,将分账方商户结算后的资金,分到该分账接收方",
  5647. "title":"添加分账接收方",
  5648. "type":"http",
  5649. "outParams":{
  5650. "x-keyPath":"",
  5651. "x-id":"imzpclsr",
  5652. "title":"value",
  5653. "type":"object",
  5654. "properties":{
  5655. "relationType":{
  5656. "x-keyPath":"relationType",
  5657. "x-id":"9vd2kb61",
  5658. "title":"relationType",
  5659. "type":"string"
  5660. },
  5661. "customRelation":{
  5662. "x-keyPath":"customRelation",
  5663. "x-id":"eg2eivqc",
  5664. "title":"customRelation",
  5665. "type":"string"
  5666. },
  5667. "name":{
  5668. "x-keyPath":"name",
  5669. "x-id":"nyoeic03",
  5670. "title":"name",
  5671. "type":"string"
  5672. },
  5673. "type":{
  5674. "x-keyPath":"type",
  5675. "x-id":"qozqljxd",
  5676. "title":"type",
  5677. "type":"string"
  5678. },
  5679. "account":{
  5680. "x-keyPath":"account",
  5681. "x-id":"i3yhwjwn",
  5682. "title":"account",
  5683. "type":"string"
  5684. }
  5685. }
  5686. },
  5687. "intent":"create",
  5688. "uuid":"f9c969e6-49ec-4d5a-9750-1bc5a2cb6bc0",
  5689. "isNameInValid":false,
  5690. "isShow":true,
  5691. "inParams":{
  5692. "additionalProperties":true,
  5693. "type":"object",
  5694. "properties":{
  5695. "custom_relation":{
  5696. "x-required":false,
  5697. "x-keyPath":"",
  5698. "x-id":"ba1f2d6",
  5699. "format":"",
  5700. "description":"子商户与接收方具体的关系,本字段最多10个字。\n当字段relation_type的值为CUSTOM时,本字段必填;\n当字段relation_type的值不为CUSTOM时,本字段无需填写。\n示例值:代理商",
  5701. "type":"string",
  5702. "x-index":10,
  5703. "title":"自定义的分账关系",
  5704. "x-unique":false,
  5705. "maxLength":4000
  5706. },
  5707. "name":{
  5708. "x-required":false,
  5709. "x-keyPath":"",
  5710. "x-id":"a5d0917",
  5711. "format":"",
  5712. "description":"分账接收方类型是MERCHANT_ID时,是商户全称(必传),当商户是小微商户或个体户时,是开户人姓名 分账接收方类型是PERSONAL_OPENID时,是个人姓名(选传,传则校验)\n1、此字段需要加密,加密方法详见:敏感信息加密说明\n2、使用微信支付平台证书中的公钥:获取平台证书\n3、使用RSAES-OAEP算法进行加密\n4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号\n示例值:hu89ohu89ohu89o",
  5713. "type":"string",
  5714. "x-index":6,
  5715. "title":"分账个人接收方姓名",
  5716. "x-unique":false,
  5717. "maxLength":4000
  5718. },
  5719. "relation_type":{
  5720. "x-required":true,
  5721. "x-keyPath":"",
  5722. "x-id":"ae9c816",
  5723. "format":"",
  5724. "description":"子商户与接收方的关系。 本字段值为枚举:\nSTORE:门店\nSTAFF:员工\nSTORE_OWNER:店主\nPARTNER:合作伙伴\nHEADQUARTER:总部\nBRAND:品牌方\nDISTRIBUTOR:分销商\nUSER:用户\nSUPPLIER: 供应商\nCUSTOM:自定义\n示例值:STORE",
  5725. "type":"string",
  5726. "x-index":8,
  5727. "title":"与分账方的关系类型",
  5728. "x-unique":false,
  5729. "maxLength":4000
  5730. },
  5731. "type":{
  5732. "x-required":true,
  5733. "x-keyPath":"",
  5734. "x-id":"ac42331",
  5735. "format":"",
  5736. "description":"枚举值:\nMERCHANT_ID:商户ID\nPERSONAL_OPENID:个人openid(由父商户APPID转换得到)\n示例值:MERCHANT_ID",
  5737. "type":"string",
  5738. "x-index":2,
  5739. "title":"分账接收方类型",
  5740. "x-unique":false,
  5741. "maxLength":4000
  5742. },
  5743. "account":{
  5744. "x-required":true,
  5745. "x-keyPath":"",
  5746. "x-id":"93a24e3",
  5747. "format":"",
  5748. "description":"型是MERCHANT_ID时,是商户号\n类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852",
  5749. "type":"string",
  5750. "x-index":4,
  5751. "title":"分账接收方账号",
  5752. "x-unique":false,
  5753. "maxLength":4000
  5754. }
  5755. },
  5756. "required":[]
  5757. },
  5758. "name":"addProfitsharingReceivers",
  5759. "calleeBody":{
  5760. "method":"POST",
  5761. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5762. "isUrlInValid":true,
  5763. "body":{
  5764. "values":{
  5765. "type":"string",
  5766. "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"type\": \"{{params.type}}\",\n \"account\": \"{{params.account}}\",\n \"name\": \"{{params.name}}\",\n \"relation_type\": \"{{params.relation_type}}\",\n \"custom_relation\": \"{{params.custom_relation}}\"\n}",
  5767. "key":"json"
  5768. },
  5769. "contentType":"json"
  5770. },
  5771. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/receivers/add"
  5772. },
  5773. "isCollapse":true
  5774. },
  5775. {
  5776. "isTitleInValid":false,
  5777. "description":"商户发起删除分账接收方请求。删除后,不支持将分账方商户结算后的资金,分到该分账接收方",
  5778. "title":"删除分账接收方",
  5779. "type":"http",
  5780. "outParams":{
  5781. "x-keyPath":"",
  5782. "x-id":"fzplnriq",
  5783. "title":"value",
  5784. "type":"object",
  5785. "properties":{
  5786. "type":{
  5787. "x-keyPath":"type",
  5788. "x-id":"4oqiu65w",
  5789. "title":"type",
  5790. "type":"string"
  5791. },
  5792. "account":{
  5793. "x-keyPath":"account",
  5794. "x-id":"pp0xx0dx",
  5795. "title":"account",
  5796. "type":"string"
  5797. }
  5798. }
  5799. },
  5800. "intent":"create",
  5801. "uuid":"5b426592-2957-4f24-9f5f-2f405b101761",
  5802. "isNameInValid":false,
  5803. "isShow":true,
  5804. "inParams":{
  5805. "additionalProperties":true,
  5806. "type":"object",
  5807. "properties":{
  5808. "type":{
  5809. "x-required":true,
  5810. "x-keyPath":"",
  5811. "x-id":"a25cf4c",
  5812. "format":"",
  5813. "description":"枚举值:\nMERCHANT_ID:商户ID\nPERSONAL_OPENID:个人openid(由父商户APPID转换得到)\n示例值:MERCHANT_ID",
  5814. "type":"string",
  5815. "x-index":2,
  5816. "title":"分账接收方类型",
  5817. "x-unique":false,
  5818. "maxLength":4000
  5819. },
  5820. "account":{
  5821. "x-required":true,
  5822. "x-keyPath":"",
  5823. "x-id":"6c79749",
  5824. "format":"",
  5825. "description":"类型是MERCHANT_ID时,是商户号\n类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852",
  5826. "type":"string",
  5827. "x-index":4,
  5828. "title":"分账接收方账号",
  5829. "x-unique":false,
  5830. "maxLength":4000
  5831. }
  5832. },
  5833. "required":[]
  5834. },
  5835. "name":"deleteProfitsharingReceivers",
  5836. "calleeBody":{
  5837. "method":"POST",
  5838. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5839. "isUrlInValid":true,
  5840. "body":{
  5841. "values":{
  5842. "type":"string",
  5843. "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"type\": \"{{params.type}}\",\n \"account\": \"{{params.account}}\"\n}",
  5844. "key":"json"
  5845. },
  5846. "contentType":"json"
  5847. },
  5848. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/receivers/delete"
  5849. },
  5850. "isCollapse":true
  5851. },
  5852. {
  5853. "inParams":{
  5854. "additionalProperties":true,
  5855. "type":"object",
  5856. "properties":{
  5857. "bill_date":{
  5858. "x-required":true,
  5859. "x-keyPath":"",
  5860. "x-id":"abc1036",
  5861. "format":"",
  5862. "description":"格式yyyy-MM-DD\n仅支持三个月内的账单下载申请。\n示例值:2019-06-11",
  5863. "type":"string",
  5864. "x-index":2,
  5865. "title":"账单日期\t",
  5866. "x-unique":false,
  5867. "maxLength":4000
  5868. },
  5869. "tar_type":{
  5870. "x-required":false,
  5871. "x-keyPath":"",
  5872. "x-id":"9465226",
  5873. "format":"",
  5874. "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单\n示例值:GZIP",
  5875. "type":"string",
  5876. "x-index":4,
  5877. "title":"压缩类型",
  5878. "x-unique":false,
  5879. "maxLength":4000
  5880. }
  5881. },
  5882. "required":[]
  5883. },
  5884. "isTitleInValid":false,
  5885. "name":"queryProfitsharingBills",
  5886. "title":"申请分账账单",
  5887. "type":"http",
  5888. "outParams":{
  5889. "x-keyPath":"",
  5890. "x-id":"gds4il9q",
  5891. "title":"value",
  5892. "type":"object",
  5893. "properties":{
  5894. "nonce_str":{
  5895. "x-keyPath":"nonce_str",
  5896. "x-id":"gjwt1vkh",
  5897. "title":"nonce_str",
  5898. "type":"string"
  5899. },
  5900. "mchid":{
  5901. "x-keyPath":"mchid",
  5902. "x-id":"qp4nuvuz",
  5903. "title":"mchid",
  5904. "type":"string"
  5905. },
  5906. "signature":{
  5907. "x-keyPath":"signature",
  5908. "x-id":"eefl56ug",
  5909. "title":"signature",
  5910. "type":"string"
  5911. },
  5912. "download_url":{
  5913. "x-keyPath":"download_url",
  5914. "x-id":"e1p8qpdg",
  5915. "title":"download_url",
  5916. "type":"string"
  5917. },
  5918. "hash_value":{
  5919. "x-keyPath":"hash_value",
  5920. "x-id":"dy9mgifw",
  5921. "title":"hash_value",
  5922. "type":"string"
  5923. },
  5924. "serial_no":{
  5925. "x-keyPath":"serial_no",
  5926. "x-id":"lb16ifcm",
  5927. "title":"serial_no",
  5928. "type":"string"
  5929. },
  5930. "hash_type":{
  5931. "x-keyPath":"hash_type",
  5932. "x-id":"471qrv9l",
  5933. "title":"hash_type",
  5934. "type":"string"
  5935. },
  5936. "timestamp":{
  5937. "x-keyPath":"timestamp",
  5938. "x-id":"8wi185yj",
  5939. "title":"timestamp",
  5940. "type":"number"
  5941. }
  5942. }
  5943. },
  5944. "intent":"create",
  5945. "calleeBody":{
  5946. "method":"GET",
  5947. "callee":"/**\n* 使用 npm 包 node-fetch 发送http请求, 详细使用文档可以参考\n* https://github.com/node-fetch/node-fetch\n*/\nconst fetch = require('node-fetch');\n\nmodule.exports = async function (params, context) {\n // 这里是方法入参\n console.log(params);\n\n/**\n * 可以在这里编写业务逻辑,例如:\n * 1. 使用 node-fetch 通过 HTTP 方式请求外部数据,并对获取的数据进行加工;\n * 2. 使用 context.database API 来直接操作云开发云数据库;\n * 3. 使用 context.callModel 来操作其他数据模型数据;\n * 4. 使用 context.callConnector 来使用API;\n * 5. 使用 context.app.callFunction 来调用同环境的云开发云函数;\n */\n const response = await fetch(`https://reqres.in/api/users?page=${params.page}&per_page=${params.per_page}`);\n const result = await response.json();\n\n // 这里返回数据,和出参结构映射\n return result;\n};",
  5948. "query":{
  5949. "values":{
  5950. "type":"object",
  5951. "value":{
  5952. "bill_date":"{{params.bill_date}}",
  5953. "tar_type":"{{params.tar_type}}"
  5954. },
  5955. "key":"372a546fc30bfa"
  5956. }
  5957. },
  5958. "isUrlInValid":true,
  5959. "url":"https://api.mch.weixin.qq.com/v3/profitsharing/bills"
  5960. },
  5961. "isCollapse":true,
  5962. "uuid":"6c7d08e5-14f7-4710-9460-c15b9d6838ac",
  5963. "isNameInValid":false,
  5964. "isShow":true
  5965. }
  5966. ],
  5967. "name":"wxpay_order_apis_4tp3344",
  5968. "pkgId":"honghgaier-5guiffgcf17a2eea",
  5969. "templateCode":"weixinpaydc",
  5970. "title":"wxpay-微信支付APIs",
  5971. "type":"cloud-integration",
  5972. "version":"1.0"
  5973. }