wxpay_order_apis_4tp3344.json 195 KB

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