12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984 |
- {
- "configuration":{
- "vars":{
- "type":"object",
- "value":{
- "notifyUrlRefunds":"https://honghgaier-5guiffgcf17a2eea.ap-shanghai.tcbautomation.cn/Automation/WxpayCallback/DirectCallback/100043696453/jswxzfdtktz_b769392/trigger_g8dwmpcye",
- "mchid":"1725987896",
- "appid":"wx1ee76fb4846f8901",
- "notifyUrlPay":"https://honghgaier-5guiffgcf17a2eea.ap-shanghai.tcbautomation.cn/Automation/WxpayCallback/DirectCallback/100043696453/jswxzfdzftz_b6d640b/trigger_nx4ecfy7k"
- },
- "key":"gnd0zvd7q9"
- }
- },
- "desc":"微信支付云模板apis",
- "id":"data-4ZyCZAPC4",
- "isNewDataSource":1,
- "methods":[
- {
- "isTitleInValid":false,
- "description":"商家转账用户确认模式下,用户申请收款时,商户可通过此接口申请创建转账单\n接口返回的HTTP状态码及错误码,仅代表本次请求的结果,不能代表订单状态。\n接口返回的HTTP状态码为200,且订单状态为ACCEPTED时,可认为发起商家转账成功。\n接口返回的HTTP状态码不为200时,请商户务必不要立即更换商户订单号重试。可根据错误码列表中的描述和接口返回的信息进行处理,并在查询原订单结果为失败或者联系客服确认情况后,再更换商户订单号进行重试。否则会有重复转账的资金风险。\n注:单个商户的接口频率限制为100次/s",
- "title":"发起转账",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"gds4il9q",
- "title":"value",
- "type":"object",
- "properties":{
- "transfer_bill_no":{
- "x-required":false,
- "x-keyPath":"transfer_bill_no",
- "x-id":"35a73b94",
- "format":"",
- "description":"【微信转账单号】 微信转账单号,微信商家转账系统返回的唯一标识",
- "type":"string",
- "x-index":10,
- "title":"微信转账单号",
- "x-unique":false,
- "maxLength":64
- },
- "create_time":{
- "x-required":false,
- "x-keyPath":"create_time",
- "x-id":"58517f58",
- "format":"",
- "description":"【单据创建时间】 单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
- "type":"string",
- "x-index":8,
- "title":"单据创建时间",
- "x-unique":false
- },
- "out_bill_no":{
- "x-required":false,
- "x-keyPath":"out_bill_no",
- "x-id":"76eee83c",
- "format":"",
- "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
- "type":"string",
- "x-index":12,
- "title":"商户单号",
- "x-unique":false,
- "maxLength":32
- },
- "state":{
- "x-required":false,
- "x-keyPath":"state",
- "x-id":"a76dab48",
- "format":"",
- "description":"【单据状态】 商家转账订单状态\n\n可选取值\n\nACCEPTED: 转账已受理\n\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\n\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\n\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\n\nSUCCESS: 转账成功\n\nFAIL: 转账失败\n\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\n\nCANCELLED: 转账撤销完成",
- "type":"string",
- "x-index":6,
- "title":"单据状态",
- "x-unique":false
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"fail_reason",
- "x-id":"45f6f651",
- "format":"",
- "name":"fail_reason",
- "description":"【失败原因】 订单已失败或者已退资金时,会返回订单失败原因",
- "isEnum":false,
- "type":"string",
- "x-index":4,
- "title":"失败原因",
- "x-unique":false
- },
- "package_info":{
- "x-required":false,
- "x-keyPath":"package_info",
- "x-id":"8wi185yj",
- "format":"",
- "name":"package_info",
- "description":"【跳转领取页面的package信息】 跳转微信支付收款页的package信息,APP调起用户确认收款或者JSAPI调起用户确认收款 时需要使用的参数。\n\n单据创建后,用户24小时内不领取将过期关闭,建议拉起用户确认收款页面前,先查单据状态:如单据状态为待收款用户确认,可用之前的package信息拉起;单据到终态时需更换单号重新发起转账。",
- "type":"string",
- "x-index":2,
- "title":"跳转领取页面的package信息",
- "x-unique":false
- }
- }
- },
- "intent":"create",
- "uuid":"00963746-82a2-49da-9b87-6ed15c68a6bb",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "transfer_scene_report_infos":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"f36b31bd",
- "format":"",
- "description":"【转账场景报备信息】 各转账场景下需报备的内容,商户需要按照所属转账场景规则传参",
- "type":"array",
- "x-index":10,
- "title":"转账场景报备信息",
- "list":[
- {
- "x-keyPath":"",
- "x-id":"e664386b",
- "format":"",
- "description":"不能超过15个字符,商户所属转账场景下的信息类型,此字段内容为固定值,需严格按照转账场景报备信息字段说明传参。",
- "isEnum":false,
- "pId":"f36b31bd",
- "type":"string",
- "x-index":6,
- "title":"信息类型",
- "x-unique":false,
- "x-required":true,
- "name":"info_type",
- "maxLength":15
- },
- {
- "x-keyPath":"",
- "x-id":"99e9e648",
- "format":"",
- "description":"【信息内容】 不能超过32个字符,商户所属转账场景下的信息内容,商户可按实际业务场景自定义传参,需严格按照转账场景报备信息字段说明传参。",
- "isEnum":false,
- "pId":"f36b31bd",
- "type":"string",
- "x-index":4,
- "title":"信息内容",
- "x-unique":false,
- "x-required":true,
- "name":"info_content",
- "maxLength":32
- }
- ],
- "items":{
- "format":"",
- "type":"object",
- "properties":{
- "info_type":{
- "x-keyPath":"",
- "x-id":"e664386b",
- "format":"",
- "description":"不能超过15个字符,商户所属转账场景下的信息类型,此字段内容为固定值,需严格按照转账场景报备信息字段说明传参。",
- "isEnum":false,
- "pId":"f36b31bd",
- "type":"string",
- "x-index":6,
- "title":"信息类型",
- "x-unique":false,
- "x-required":true,
- "name":"info_type",
- "maxLength":15
- },
- "info_content":{
- "x-keyPath":"",
- "x-id":"99e9e648",
- "format":"",
- "description":"【信息内容】 不能超过32个字符,商户所属转账场景下的信息内容,商户可按实际业务场景自定义传参,需严格按照转账场景报备信息字段说明传参。",
- "isEnum":false,
- "pId":"f36b31bd",
- "type":"string",
- "x-index":4,
- "title":"信息内容",
- "x-unique":false,
- "x-required":true,
- "name":"info_content",
- "maxLength":32
- }
- }
- },
- "x-unique":false
- },
- "transfer_amount":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"7cc9725f",
- "format":"",
- "description":"【转账金额】 转账金额单位为“分”。",
- "type":"number",
- "x-index":18,
- "title":"转账金额",
- "x-unique":false
- },
- "user_name":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"8ece8e6b",
- "format":"",
- "description":"【收款用户姓名】 收款方真实姓名。需要加密传入,支持标准RSA算法和国密算法,公钥由微信侧提供。\n转账金额 >= 2,000元时,该笔明细必须填写\n若商户传入收款用户姓名,微信支付会校验收款用户与输入姓名是否一致,并提供电子回单",
- "type":"string",
- "x-index":20,
- "title":"收款用户姓名",
- "x-unique":false
- },
- "openid":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"eb4475be",
- "format":"",
- "name":"openid",
- "description":"【收款用户OpenID】 用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见参数说明。",
- "isEnum":false,
- "type":"string",
- "x-index":22,
- "title":"收款用户OpenID",
- "x-unique":false,
- "maxLength":64
- },
- "appid":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"df7ffc95",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":28,
- "title":"商户AppID",
- "x-unique":false,
- "maxLength":32
- },
- "out_bill_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"f58eaa83",
- "format":"",
- "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
- "type":"string",
- "x-index":26,
- "title":"商户单号",
- "x-unique":false,
- "maxLength":32
- },
- "user_recv_perception":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"f7ab934c",
- "format":"",
- "name":"user_recv_perception",
- "description":"【用户收款感知】 用户收款时感知到的收款原因将根据转账场景自动展示默认内容。如有其他展示需求,可在本字段传入。各场景展示的默认内容和支持传入的内容,可查看产品文档了解。",
- "isEnum":false,
- "type":"string",
- "x-index":12,
- "title":"用户收款感知",
- "x-unique":false
- },
- "notify_url":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"8c76d488",
- "format":"",
- "description":"【通知地址】 异步接收微信支付结果通知的回调地址,通知url必须为公网可访问的URL,必须为HTTPS,不能携带参数。",
- "type":"string",
- "x-index":14,
- "title":"通知地址",
- "x-unique":false,
- "maxLength":256
- },
- "transfer_remark":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"46f64cb1",
- "format":"",
- "name":"transfer_remark",
- "description":"【转账备注】 转账备注,用户收款时可见该备注信息,UTF8编码,最多允许32个字符\n\n",
- "isEnum":false,
- "type":"string",
- "x-index":16,
- "title":"转账备注",
- "x-unique":false,
- "maxLength":32
- },
- "transfer_scene_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"485c4c7a",
- "format":"",
- "description":"【转账场景ID】 该笔转账使用的转账场景,可前往“商户平台-产品中心-商家转账”中申请。如:1000(现金营销),1006(企业报销)等",
- "type":"string",
- "x-index":24,
- "title":"转账场景ID",
- "x-unique":false,
- "maxLength":36
- }
- },
- "required":[]
- },
- "name":"createTransferBills",
- "calleeBody":{
- "method":"POST",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{},
- "key":"a625d27853c39fd4"
- }
- },
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "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}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户通过转账接口发起付款后,在用户确认收款之前可以通过该接口撤销付款。该接口返回成功仅表示撤销请求已受理,系统会异步处理退款等操作,以最终查询单据返回状态为准。",
- "title":"撤销转账",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"gds4il9q",
- "title":"value",
- "type":"object",
- "properties":{
- "update_time":{
- "x-required":false,
- "x-keyPath":"update_time",
- "x-id":"58517f58",
- "format":"",
- "name":"update_time",
- "description":"【最后一次单据状态变更时间】 按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
- "isEnum":false,
- "type":"string",
- "x-index":8,
- "title":"最后一次单据状态变更时间",
- "x-unique":false
- },
- "transfer_bill_no":{
- "x-required":false,
- "x-keyPath":"transfer_bill_no",
- "x-id":"35a73b94",
- "format":"",
- "description":"【微信转账单号】 微信转账单号,微信商家转账系统返回的唯一标识",
- "type":"string",
- "x-index":10,
- "title":"微信转账单号",
- "x-unique":false,
- "maxLength":64
- },
- "out_bill_no":{
- "x-required":false,
- "x-keyPath":"out_bill_no",
- "x-id":"76eee83c",
- "format":"",
- "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
- "type":"string",
- "x-index":12,
- "title":"商户单号",
- "x-unique":false,
- "maxLength":32
- },
- "state":{
- "x-required":false,
- "x-keyPath":"state",
- "x-id":"a76dab48",
- "format":"",
- "name":"state",
- "description":"【单据状态】 CANCELING: 撤销中;CANCELLED:已撤销",
- "isEnum":false,
- "type":"string",
- "x-index":6,
- "title":"单据状态",
- "x-unique":false
- }
- }
- },
- "intent":"create",
- "uuid":"428c25d4-0127-431f-af40-1657e4082f84",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{},
- "required":[]
- },
- "name":"cancelTransferBill",
- "calleeBody":{
- "method":"POST",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{},
- "key":"a625d27853c39fd4"
- }
- },
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{{params.out_bill_no}}/cancel"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商家转账用户确认模式下,根据商户单号查询转账单的详细信息。\n\n注意\nAPI只支持查询最近30天内的转账单,超过30天可以通过资金账单对账确认。\n转账单中涉及金额的字段单位为“分”。\n如果遇到新的错误码,请务必不要换单重试,请联系客服确认转账情况。如果有新的错误码,会更新到此API文档中。\n错误码描述字段message只供人工定位问题时做参考,系统实现时请不要依赖这个字段来做自动化处理。\n接口限频: 单个商户 100 QPS,如果超过频率限制,会报错 FREQUENCY_LIMITED",
- "title":"商户单号查询转账单",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"gds4il9q",
- "title":"value",
- "type":"object",
- "properties":{
- "update_time":{
- "x-required":false,
- "x-keyPath":"update_time",
- "x-id":"8wi185yj",
- "format":"",
- "name":"update_time",
- "description":"【最后一次状态变更时间】 单据最后更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
- "isEnum":false,
- "type":"string",
- "x-index":2,
- "title":"最后一次状态变更时间",
- "x-unique":false
- },
- "transfer_bill_no":{
- "x-required":false,
- "x-keyPath":"transfer_bill_no",
- "x-id":"8e9f488b",
- "format":"",
- "description":"【商家转账订单号】 商家转账订单的主键,唯一定义此资源的标识\n\n",
- "type":"string",
- "x-index":24,
- "title":"商家转账订单号",
- "x-unique":false
- },
- "create_time":{
- "x-required":false,
- "x-keyPath":"create_time",
- "x-id":"58517f58",
- "format":"",
- "description":"【单据创建时间】 单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
- "type":"string",
- "x-index":8,
- "title":"单据创建时间",
- "x-unique":false
- },
- "transfer_amount":{
- "x-required":false,
- "x-keyPath":"transfer_amount",
- "x-id":"7b3c5e39",
- "format":"",
- "description":"【转账金额】 转账金额单位为“分”。",
- "type":"number",
- "x-index":18,
- "title":"转账金额",
- "x-unique":false
- },
- "user_name":{
- "x-required":false,
- "x-keyPath":"user_name",
- "x-id":"35a73b94",
- "format":"",
- "name":"user_name",
- "description":"【收款用户姓名】 收款方真实姓名。支持标准RSA算法和国密算法,公钥由微信侧提供转账金额 >= 2,000元时,该笔明细必须填写若商户传入收款用户姓名,微信支付会校验用户OpenID与姓名是否一致,并提供电子回单",
- "isEnum":false,
- "type":"string",
- "x-index":10,
- "title":"收款用户姓名",
- "x-unique":false,
- "maxLength":64
- },
- "openid":{
- "x-required":false,
- "x-keyPath":"openid",
- "x-id":"76eee83c",
- "format":"",
- "name":"openid",
- "description":"【收款用户OpenID】 用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见参数说明。",
- "isEnum":false,
- "type":"string",
- "x-index":12,
- "title":"收款用户OpenID",
- "x-unique":false,
- "maxLength":64
- },
- "appid":{
- "x-required":false,
- "x-keyPath":"appid",
- "x-id":"f3f519b4",
- "format":"",
- "description":"【商户AppID】 是微信开放平台和微信公众平台为开发者的应用程序(APP、小程序、公众号、企业号corpid即为此AppID)提供的一个唯一标识。此处,可以填写这四种类型中的任意一种APPID,但请确保该appid与商户号有绑定关系。详见:普通商户模式开发必要参数说明。",
- "type":"string",
- "x-index":22,
- "title":"商户AppID",
- "x-unique":false
- },
- "out_bill_no":{
- "x-required":false,
- "x-keyPath":"out_bill_no",
- "x-id":"e18d38d8",
- "format":"",
- "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一\n\n",
- "type":"string",
- "x-index":26,
- "title":"商户单号",
- "x-unique":false,
- "maxLength":32
- },
- "state":{
- "x-required":false,
- "x-keyPath":"state",
- "x-id":"7fc713f9",
- "format":"",
- "description":"【单据状态】\n\n可选取值\n\nACCEPTED: 转账已受理\n\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\n\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\n\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\n\nSUCCESS: 转账成功\n\nFAIL: 转账失败\n\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\n\nCANCELLED: 转账撤销完成",
- "type":"string",
- "x-index":20,
- "title":"单据状态",
- "x-unique":false
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"fail_reason",
- "x-id":"5ba6bdcf",
- "format":"",
- "description":"【失败原因】 订单已失败或者已退资金时,会返回订单失败原因\n\n",
- "type":"string",
- "x-index":14,
- "title":"失败原因",
- "x-unique":false
- },
- "mch_id":{
- "x-required":false,
- "x-keyPath":"mch_id",
- "x-id":"29bef237",
- "format":"",
- "description":"【商户号】 微信支付分配的商户号",
- "type":"string",
- "x-index":28,
- "title":"商户号",
- "x-unique":false
- },
- "transfer_remark":{
- "x-required":false,
- "x-keyPath":"transfer_remark",
- "x-id":"94f6dfdf",
- "format":"",
- "description":"【转账备注】 单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符\n\n",
- "type":"string",
- "x-index":16,
- "title":"转账备注",
- "x-unique":false,
- "maxLength":32
- }
- }
- },
- "intent":"create",
- "uuid":"4cfe011a-bcbe-4dbe-a4ed-6f3e854e5356",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{},
- "required":[]
- },
- "name":"getBillByOutBillNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{},
- "key":"a625d27853c39fd4"
- }
- },
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{{params.out_bill_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "title":"微信单号查询转账单",
- "type":"http",
- "outParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "update_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"5f1fea23",
- "format":"",
- "name":"update_time",
- "description":"【最后一次状态变更时间】单据最后更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE。",
- "isEnum":false,
- "type":"string",
- "x-index":2,
- "title":"最后一次状态变更时间",
- "x-unique":false
- },
- "transfer_bill_no":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"4451eb8f",
- "format":"",
- "name":"transfer_bill_no",
- "description":"【商家转账订单号】商家转账订单的主键,唯一定义此资源的标识。",
- "isEnum":false,
- "type":"string",
- "x-index":20,
- "title":"商家转账订单号",
- "x-unique":false
- },
- "create_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"f2b9cb3c",
- "format":"",
- "name":"create_time",
- "description":"【单据创建时间】单据受理成功时返回,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE。",
- "isEnum":false,
- "type":"string",
- "x-index":4,
- "title":"单据创建时间",
- "x-unique":false
- },
- "transfer_amount":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"ad7a8267",
- "format":"",
- "name":"transfer_amount",
- "description":"【转账金额】转账金额单位为“分”。",
- "isEnum":false,
- "type":"number",
- "x-index":14,
- "title":"转账金额",
- "x-unique":false
- },
- "user_name":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"be57137d",
- "format":"",
- "name":"user_name",
- "description":"【收款用户姓名】收款方真实姓名。支持标准RSA算法和国密算法,公钥由微信侧提供转账金额 >= 2,000元时,该笔明细必须填写若商户传入收款用户姓名,微信支付会校验用户OpenID与姓名是否一致,并提供电子回单。",
- "isEnum":false,
- "type":"string",
- "x-index":6,
- "title":"收款用户姓名",
- "x-unique":false
- },
- "openid":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"b5787b6e",
- "format":"",
- "name":"openid",
- "description":"用户在商户appid下的唯一标识。发起转账前需获取到用户的OpenID,获取方式详见https://pay.weixin.qq.com/doc/v3/merchant/4012068676。",
- "isEnum":false,
- "type":"string",
- "x-index":8,
- "title":"收款用户OpenID",
- "x-unique":false,
- "maxLength":64
- },
- "appid":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"2ceb1ae7",
- "format":"",
- "name":"appid",
- "description":"【商户AppID】是微信开放平台和微信公众平台为开发者的应用程序(APP、小程序、公众号、企业号corpid即为此AppID)提供的一个唯一标识。此处,可以填写这四种类型中的任意一种APPID,但请确保该appid与商户号有绑定关系。详见:https://pay.weixin.qq.com/doc/v3/merchant/4013070756。",
- "isEnum":false,
- "type":"string",
- "x-index":18,
- "title":"商户AppID",
- "x-unique":false
- },
- "out_bill_no":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"4b96f34a",
- "format":"",
- "name":"out_bill_no",
- "description":"【商户单号】 商户系统内部的商家单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一。",
- "isEnum":false,
- "type":"string",
- "x-index":22,
- "title":"商户单号",
- "x-unique":false,
- "maxLength":32
- },
- "state":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"8efcd522",
- "format":"",
- "name":"state",
- "description":"【单据状态】\nACCEPTED: 转账已受理\nPROCESSING: 转账锁定资金中。如果一直停留在该状态,建议检查账户余额是否足够,如余额不足,可充值后再原单重试。\nWAIT_USER_CONFIRM: 待收款用户确认,可拉起微信收款确认页面进行收款确认\nTRANSFERING: 转账中,可拉起微信收款确认页面再次重试确认收款\nSUCCESS: 转账成功\nFAIL: 转账失败\nCANCELING: 商户撤销请求受理成功,该笔转账正在撤销中\nCANCELLED: 转账撤销完成",
- "isEnum":false,
- "type":"string",
- "x-index":16,
- "title":"单据状态",
- "x-unique":false
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"ad3c8949",
- "format":"",
- "name":"fail_reason",
- "description":"订单已失败或者已退资金时,会返回订单失败原因,https://pay.weixin.qq.com/doc/v3/merchant/4013774966。",
- "isEnum":false,
- "type":"string",
- "x-index":10,
- "title":"失败原因",
- "x-unique":false
- },
- "mch_id":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"f6b1cc67",
- "format":"",
- "name":"mch_id",
- "description":"【商户号】 微信支付分配的商户号。",
- "isEnum":false,
- "type":"string",
- "x-index":24,
- "title":"商户号",
- "x-unique":false
- },
- "transfer_remark":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"5c68fdc3",
- "format":"",
- "name":"transfer_remark",
- "description":"【转账备注】单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符。",
- "isEnum":false,
- "type":"string",
- "x-index":12,
- "title":"转账备注",
- "x-unique":false,
- "maxLength":32
- }
- },
- "required":[]
- },
- "intent":"create",
- "uuid":"3bbb327e-18fc-4100-a0dc-0a17a2a1ef8a",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{},
- "required":[]
- },
- "name":"getBillByTransferBillNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills/transfer-bill-no/{{params.transfer_bill_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户可以指定商户转账单号通过该接口申请商家转账用户确认模式转账单据 对应的电子回单。\n微信支付会在校验满足回单申请条件后受理回单的申请,商户后续可以通过电子回单查询接口查询回单处理进度。\n申请回单前,请先确认是否满足回单申请的条件,不满足回单申请条件时,多次重试申请无意义:\n1. 仅支持付款成功的转账单据申请电子回单.\n2. 仅支持传入姓名的转账单据申请电子回单.\n3. 仅支持六个月内的转账单据申请电子回单.\n回单申请完成后的有效期为90天,过期后需要重新申请。最终以查单结果返回为准。",
- "title":"商户单号申请电子回单",
- "type":"http",
- "outParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "create_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"34b4377d",
- "format":"",
- "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
- "type":"string",
- "x-index":2,
- "title":"申请单创建时间",
- "x-unique":false,
- "maxLength":32
- },
- "state":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"326fac7c",
- "format":"",
- "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED: 已失败。\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因",
- "type":"string",
- "x-index":4,
- "title":"申请单状态",
- "x-unique":false
- }
- },
- "required":[]
- },
- "intent":"create",
- "uuid":"044e4a1e-ca53-4f32-bba1-e61bfc9a52b5",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "out_bill_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"f779b526",
- "format":"",
- "name":"out_bill_no",
- "description":"【商户转账单号】 商户创建转账单据使用的单号",
- "isEnum":false,
- "type":"string",
- "x-index":2,
- "title":"商户转账单号",
- "x-unique":false,
- "maxLength":32
- }
- },
- "required":[]
- },
- "name":"createElecsignByOutBillNo",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{\n \"out_bill_no\": \"{{params.out_bill_no}}\"\n}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户可以通过该接口查看回单申请进度\n请务必对比下载的回单文件的摘要值与查询接口返回的摘要值的一致性,确保得到的回单文件的真实性和完整性。\n下载地址的有效期为10分钟,超过10分钟后需要重新通过该接口获取下载地址(不需要重新申请)。",
- "title":"商户单号查询电子回单",
- "type":"http",
- "outParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "update_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"4f57b6bf",
- "format":"",
- "description":"【申请单更新时间】 申请单最近的更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n",
- "type":"string",
- "x-index":8,
- "title":"申请单更新时间",
- "x-unique":false,
- "maxLength":32
- },
- "create_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"9c9bf6da",
- "format":"",
- "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n",
- "type":"string",
- "x-index":10,
- "title":"申请单创建时间",
- "x-unique":false,
- "maxLength":32
- },
- "download_url":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"67efbd21",
- "format":"",
- "description":"【回单文件下载地址】 申请单状态为已完成时返回,有效期10分钟,过期后可以重新通过该接口获取;下载地址的域名,路径,参数都可能变化,请不要自行拼接",
- "type":"string",
- "x-index":2,
- "title":"回单文件下载地址",
- "x-unique":false,
- "maxLength":3000
- },
- "state":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"da25d45b",
- "format":"",
- "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED:已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因\n",
- "type":"string",
- "x-index":12,
- "title":"申请单状态",
- "x-unique":false
- },
- "hash_value":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"3a132d22",
- "format":"",
- "description":"【回单文件摘要值】 申请单状态为已完成时返回,请务必将下载的回单文件摘要值与该值进行对比,以保证回单文件的完整性和真实性\n\n",
- "type":"string",
- "x-index":4,
- "title":"回单文件摘要值",
- "x-unique":false,
- "maxLength":512
- },
- "hash_type":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"1877fbb5",
- "format":"",
- "description":"【回单文件摘要类型】 申请单状态为已完成时返回\nSHA256: SHA256摘要算法\nSM3: 国密SM3摘要算法\n\n",
- "type":"string",
- "x-index":6,
- "title":"回单文件摘要类型",
- "x-unique":false
- }
- },
- "required":[]
- },
- "intent":"create",
- "uuid":"e1fa63dd-83f3-446f-b2cf-fa23c2444e4a",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{},
- "required":[]
- },
- "name":"getElecsignByOutBillNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/out-bill-no/{{params.out_bill_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户可以指定微信转账单号通过该接口申请商家转账用户确认模式转账单据 对应的电子回单。\n微信支付会在校验满足回单申请条件后受理回单的申请,商户后续可以通过电子回单查询接口查询回单处理进度。\n申请回单前,请先确认是否满足回单申请的条件,不满足回单申请条件时,多次重试申请无意义:\n1. 仅支持付款成功的转账单据申请电子回单.\n2. 仅支持传入姓名的转账单据申请电子回单.\n3. 仅支持六个月内的转账单据申请电子回单.\n回单申请完成后的有效期为90天,过期后需要重新申请。最终以查单结果返回为准。",
- "title":"微信单号申请电子回单",
- "type":"http",
- "outParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "create_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"b153b282",
- "format":"",
- "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
- "type":"string",
- "x-index":2,
- "title":"申请单创建时间",
- "x-unique":false,
- "maxLength":32
- },
- "state":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"cc2aad22",
- "format":"",
- "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED: 已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因",
- "type":"string",
- "x-index":4,
- "title":"申请单状态",
- "x-unique":false
- }
- },
- "required":[]
- },
- "intent":"create",
- "uuid":"ae745420-6c33-4fa3-b9a6-9ba127d24d2b",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "transfer_bill_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"8e2df5fe",
- "format":"",
- "description":"【微信转账单号】 转账单据对应的微信支付单号",
- "type":"string",
- "x-index":2,
- "title":"微信转账单号",
- "x-unique":false,
- "maxLength":64
- }
- },
- "required":[]
- },
- "name":"createElecsignByTransferBillNo",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{\n \"transfer_bill_no\": \"{{params.transfer_bill_no}}\"\n}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/transfer-bill-no"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户可以通过该接口查看回单申请进度\n请务必对比下载的回单文件的摘要值与查询接口返回的摘要值的一致性,确保得到的回单文件的真实性和完整性。\n下载地址的有效期为10分钟,超过10分钟后需要重新通过该接口获取下载地址(不需要重新申请)。",
- "title":"微信单号查询电子回单",
- "type":"http",
- "outParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "update_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"e91b584c",
- "format":"",
- "description":"【申请单更新时间】 申请单最近的更新时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE",
- "type":"string",
- "x-index":8,
- "title":"申请单更新时间",
- "x-unique":false,
- "maxLength":32
- },
- "create_time":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"c315cdcc",
- "format":"",
- "description":"【申请单创建时间】 申请单的创建时间,按照使用rfc3339所定义的格式,格式为yyyy-MM-DDThh:mm:ss+TIMEZONE\n\n",
- "type":"string",
- "x-index":10,
- "title":"申请单创建时间",
- "x-unique":false,
- "maxLength":32
- },
- "download_url":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"3f7f7be2",
- "format":"",
- "description":"【回单文件下载地址】 申请单状态为已完成时返回,有效期10分钟,过期后可以重新通过该接口获取;下载地址的域名,路径,参数都可能变化,请不要自行拼接",
- "type":"string",
- "x-index":2,
- "title":"回单文件下载地址",
- "x-unique":false,
- "maxLength":3000
- },
- "state":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"a7fde85d",
- "format":"",
- "description":"【申请单状态】 GENERATING:生成中,FINISHED: 已完成,FAILED:已失败\nGENERATING: 表示当前电子回单已受理成功并在处理中\nFINISHED: 表示当前电子回单已处理完成\nFAILED: 表示当前电子回单生成失败,失败原因字段会返回具体的失败原因",
- "type":"string",
- "x-index":12,
- "title":"申请单状态",
- "x-unique":false
- },
- "hash_value":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"962e7ea6",
- "format":"",
- "description":"【回单文件摘要值】 申请单状态为已完成时返回,请务必将下载的回单文件摘要值与该值进行对比,以保证回单文件的完整性和真实性\n\n",
- "type":"string",
- "x-index":4,
- "title":"回单文件摘要值",
- "x-unique":false,
- "maxLength":512
- },
- "hash_type":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"d279df78",
- "format":"",
- "description":"【回单文件摘要类型】 申请单状态为已完成时返回\nSHA256: SHA256摘要算法\nSM3: 国密SM3摘要算法",
- "type":"string",
- "x-index":6,
- "title":"回单文件摘要类型",
- "x-unique":false
- }
- },
- "required":[]
- },
- "intent":"create",
- "uuid":"fc3ec6b8-403c-4e60-9866-83215b5d8a74",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账(新)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{},
- "required":[]
- },
- "name":"getElecsignByTransferBillNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/elecsign/transfer-bill-no/{{params.transfer_bill_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"查询转账明细电子回单受理结果接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等。 前置条件:只支持查询最近两年内的转账明细单 URL路径:https://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-receipt-api/query-electronic-receipt.html",
- "title":"查询转账明细电子回单受理结果",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"k04uqvj7",
- "title":"value",
- "type":"object",
- "properties":{
- "nonce_str":{
- "x-keyPath":"nonce_str",
- "x-id":"ja89o0z8",
- "title":"nonce_str",
- "type":"string"
- },
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"lkgqayh9",
- "title":"mchid",
- "type":"string"
- },
- "signature":{
- "x-keyPath":"signature",
- "x-id":"oyjnct7n",
- "title":"signature",
- "type":"string"
- },
- "download_url":{
- "x-keyPath":"download_url",
- "x-id":"92m5ayjs",
- "title":"download_url",
- "type":"string"
- },
- "hash_value":{
- "x-keyPath":"hash_value",
- "x-id":"czebjlf7",
- "title":"hash_value",
- "type":"string"
- },
- "serial_no":{
- "x-keyPath":"serial_no",
- "x-id":"daut0bcs",
- "title":"serial_no",
- "type":"string"
- },
- "hash_type":{
- "x-keyPath":"hash_type",
- "x-id":"0me3c2qd",
- "title":"hash_type",
- "type":"string"
- },
- "timestamp":{
- "x-keyPath":"timestamp",
- "x-id":"datg3sgy",
- "title":"timestamp",
- "type":"number"
- }
- }
- },
- "intent":"create",
- "uuid":"b124a146-7abb-4ab5-a8a4-8d2d14523db0",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "accept_type":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"67e77f2",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":6,
- "title":"accept_type",
- "x-unique":false,
- "maxLength":4000
- },
- "out_batch_no":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"72b33ee",
- "format":"",
- "name":"out_batch_no",
- "description":"",
- "isEnum":false,
- "type":"string",
- "x-index":2,
- "title":"out_batch_no",
- "x-unique":false,
- "maxLength":4000
- },
- "out_detail_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"9512fd6",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":4,
- "title":"out_detail_no",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"getElectronicReceipts",
- "calleeBody":{
- "method":"GET",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "accept_type":"{{params.accept_type}}",
- "out_batch_no":"{{params.out_batch_no}}",
- "out_detail_no":"{{params.out_detail_no}}"
- },
- "key":"2734c0a2adfd40"
- }
- },
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"受理转账明细电子回单接口,商户通过该接口可以申请受理转账明细单电子回单服务。 前置条件:1、发起转账时传入了收款用户姓名,支持申请电子回单;2、只支持受理最近两年内的转账明细单 URL路径:https://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-receipt-api/create-electronic-receipt.html",
- "title":"受理转账明细电子回单",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"lon2ejr1",
- "title":"value",
- "type":"object",
- "properties":{
- "signature_status":{
- "x-keyPath":"signature_status",
- "x-id":"ssuvbcw6",
- "title":"signature_status",
- "type":"string"
- },
- "accept_type":{
- "x-keyPath":"accept_type",
- "x-id":"s30qy8we",
- "title":"accept_type",
- "type":"string"
- },
- "signature_no":{
- "x-keyPath":"signature_no",
- "x-id":"5cxen6ab",
- "title":"signature_no",
- "type":"string"
- },
- "out_batch_no":{
- "x-keyPath":"out_batch_no",
- "x-id":"fcxxe217",
- "title":"out_batch_no",
- "type":"string"
- },
- "out_detail_no":{
- "x-keyPath":"out_detail_no",
- "x-id":"2dqod4s0",
- "title":"out_detail_no",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"b974cbb0-c2d6-41fc-9012-09c3e0a96e9c",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "accept_type":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"9ada415",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"accept_type",
- "x-unique":false,
- "maxLength":4000
- },
- "out_batch_no":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"8642b12",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":4,
- "title":"out_batch_no",
- "x-unique":false,
- "maxLength":4000
- },
- "out_detail_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"7068098",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":6,
- "title":"out_detail_no",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"electronicReceipts",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{{params}}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/transfer-detail/electronic-receipts"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"查询转账账单电子回单接口,商户通过该接口可以查询电子回单受理进度信息,包括电子回单据信息,电子回单文件的hash值,电子回单文件的下载地址等\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-signature/get-electronic-signature-by-out-no.html",
- "title":"查询转账账单电子回单接口",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"1qm8l5sj",
- "title":"value",
- "type":"object",
- "properties":{
- "nonce_str":{
- "x-keyPath":"nonce_str",
- "x-id":"4htq38gl",
- "title":"nonce_str",
- "type":"string"
- },
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"32by2vx8",
- "title":"mchid",
- "type":"string"
- },
- "signature":{
- "x-keyPath":"signature",
- "x-id":"ip410nr0",
- "title":"signature",
- "type":"string"
- },
- "download_url":{
- "x-keyPath":"download_url",
- "x-id":"pbfihrne",
- "title":"download_url",
- "type":"string"
- },
- "hash_value":{
- "x-keyPath":"hash_value",
- "x-id":"19kfupj1",
- "title":"hash_value",
- "type":"string"
- },
- "serial_no":{
- "x-keyPath":"serial_no",
- "x-id":"0rw74962",
- "title":"serial_no",
- "type":"string"
- },
- "hash_type":{
- "x-keyPath":"hash_type",
- "x-id":"cv0ua6x6",
- "title":"hash_type",
- "type":"string"
- },
- "timestamp":{
- "x-keyPath":"timestamp",
- "x-id":"p6oib1sg",
- "title":"timestamp",
- "type":"number"
- }
- }
- },
- "intent":"create",
- "uuid":"b709c8d2-5527-4aa9-8d24-bc4612c59899",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "out_batch_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"adc51cc",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"out_batch_no",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"getBillReceipt",
- "calleeBody":{
- "method":"GET",
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/transfer/bill-receipt/{{params.out_batch_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"转账账单电子回单申请受理接口,商户通过该接口可以申请受理电子回单服务。 前置条件:1、发起转账时传入了收款用户姓名,支持申请电子回单;2、支持受理最近两年内的转账批次单;\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/electronic-signature/create-electronic-signature.html",
- "title":"转账账单电子回单申请受理接口",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"4vvy518f",
- "title":"value",
- "type":"object",
- "properties":{
- "update_time":{
- "x-keyPath":"update_time",
- "x-id":"7vvpdziy",
- "title":"update_time",
- "type":"string"
- },
- "create_time":{
- "x-keyPath":"create_time",
- "x-id":"x1ccomvi",
- "title":"create_time",
- "type":"string"
- },
- "signature_status":{
- "x-keyPath":"signature_status",
- "x-id":"qfjrsdzj",
- "title":"signature_status",
- "type":"string"
- },
- "signature_no":{
- "x-keyPath":"signature_no",
- "x-id":"hejl2jlp",
- "title":"signature_no",
- "type":"string"
- },
- "out_batch_no":{
- "x-keyPath":"out_batch_no",
- "x-id":"gl608k48",
- "title":"out_batch_no",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"e665af68-4c20-4e62-bfeb-dfccd38feff8",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "out_batch_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"b7d9bb7",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"out_batch_no",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"billReceipt",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{{params}}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/transfer/bill-receipt"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、用户OpenID等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-detail/get-transfer-detail-by-out-no.html",
- "title":"通过商家明细单号查询明细单",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"g0l9au6o",
- "title":"value",
- "type":"object",
- "properties":{
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"okgt0xbb",
- "title":"mchid",
- "type":"string"
- },
- "batch_id":{
- "x-keyPath":"batch_id",
- "x-id":"pbxuaj7i",
- "title":"batch_id",
- "type":"string"
- },
- "openid":{
- "x-keyPath":"openid",
- "x-id":"7newtddn",
- "title":"openid",
- "type":"string"
- },
- "user_name":{
- "x-keyPath":"user_name",
- "x-id":"j8cyumnz",
- "title":"user_name",
- "type":"string"
- },
- "detail_status":{
- "x-keyPath":"detail_status",
- "x-id":"7913nzbe",
- "title":"detail_status",
- "type":"string"
- },
- "out_batch_no":{
- "x-keyPath":"out_batch_no",
- "x-id":"spa1v7do",
- "title":"out_batch_no",
- "type":"string"
- },
- "detail_id":{
- "x-keyPath":"detail_id",
- "x-id":"a9prd6t9",
- "title":"detail_id",
- "type":"string"
- },
- "update_time":{
- "x-keyPath":"update_time",
- "x-id":"my5x22vs",
- "title":"update_time",
- "type":"string"
- },
- "transfer_amount":{
- "x-keyPath":"transfer_amount",
- "x-id":"rf1h7ub0",
- "title":"transfer_amount",
- "type":"number"
- },
- "appid":{
- "x-keyPath":"appid",
- "x-id":"8dom1t29",
- "title":"appid",
- "type":"string"
- },
- "out_detail_no":{
- "x-keyPath":"out_detail_no",
- "x-id":"fgo0etzt",
- "title":"out_detail_no",
- "type":"string"
- },
- "initiate_time":{
- "x-keyPath":"initiate_time",
- "x-id":"s7jzsgam",
- "title":"initiate_time",
- "type":"string"
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"fail_reason",
- "x-id":"a8a86b3",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"fail_reason",
- "x-unique":false,
- "maxLength":4000
- },
- "transfer_remark":{
- "x-keyPath":"transfer_remark",
- "x-id":"njoyhypc",
- "title":"transfer_remark",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"94cdea9c-9504-441e-bbd1-44861e279889",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "out_detail_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"b422e3f",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"out_detail_no",
- "x-unique":false,
- "maxLength":4000
- },
- "out_batch_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"b85183a",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":4,
- "title":"out_batch_no",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"getTransferDetailByOutNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "isUrlInValid":true,
- "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}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"明细单号查单接口。商户可以通过该接口查询单笔转账明细单。返回消息中包含微信明细单号、明细状态、转账金额、失败原因、收款用户姓名、用户OpenID等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-detail/get-transfer-detail-by-no.html",
- "title":"通过微信明细单号查询明细单",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"smxwq5ol",
- "title":"value",
- "type":"object",
- "properties":{
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"h7np83rv",
- "title":"mchid",
- "type":"string"
- },
- "batch_id":{
- "x-keyPath":"batch_id",
- "x-id":"lmcxdq24",
- "title":"batch_id",
- "type":"string"
- },
- "openid":{
- "x-keyPath":"openid",
- "x-id":"vck93lbc",
- "title":"openid",
- "type":"string"
- },
- "user_name":{
- "x-keyPath":"user_name",
- "x-id":"sp5w432f",
- "title":"user_name",
- "type":"string"
- },
- "detail_status":{
- "x-keyPath":"detail_status",
- "x-id":"72sd20sm",
- "title":"detail_status",
- "type":"string"
- },
- "out_batch_no":{
- "x-keyPath":"out_batch_no",
- "x-id":"nlxsndyv",
- "title":"out_batch_no",
- "type":"string"
- },
- "detail_id":{
- "x-keyPath":"detail_id",
- "x-id":"61osy8r5",
- "title":"detail_id",
- "type":"string"
- },
- "update_time":{
- "x-keyPath":"update_time",
- "x-id":"3r1f3whu",
- "title":"update_time",
- "type":"string"
- },
- "transfer_amount":{
- "x-keyPath":"transfer_amount",
- "x-id":"6w0qxub9",
- "title":"transfer_amount",
- "type":"number"
- },
- "appid":{
- "x-keyPath":"appid",
- "x-id":"7upcnr5l",
- "title":"appid",
- "type":"string"
- },
- "out_detail_no":{
- "x-keyPath":"out_detail_no",
- "x-id":"il1ro4wy",
- "title":"out_detail_no",
- "type":"string"
- },
- "initiate_time":{
- "x-keyPath":"initiate_time",
- "x-id":"edwd70d9",
- "title":"initiate_time",
- "type":"string"
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"fail_reason",
- "x-id":"ac96286",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"fail_reason",
- "x-unique":false,
- "maxLength":4000
- },
- "transfer_remark":{
- "x-keyPath":"transfer_remark",
- "x-id":"0eg5p1u7",
- "title":"transfer_remark",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"afb7e07d-2f43-4a03-a865-7606b16bdffa",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "batch_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"bc9b069",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"batch_id",
- "x-unique":false,
- "maxLength":4000
- },
- "detail_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"999cd68",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":4,
- "title":"detail_id",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"getTransferDetailByNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{{params.batch_id}}/details/detail-id/{{params.detail_id}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商家明细单号查单接口。商户可以通过该接口查询转账批次单以及指定状态的转账明细单。返回消息中包含微信批次单号、批次状态、批次类型、转账总金额、转账总笔数、成功金额、失败金额等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/get-transfer-batch-by-out-no.html",
- "title":"通过商家批次单号查询批次单",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"tt8nxn1r",
- "title":"value",
- "type":"object",
- "properties":{
- "offset":{
- "x-keyPath":"offset",
- "x-id":"vni7cs5v",
- "title":"offset",
- "type":"number"
- },
- "transfer_detail_list":{
- "x-keyPath":"transfer_detail_list",
- "x-id":"sbkcbnjv",
- "title":"transfer_detail_list",
- "type":"array",
- "items":{
- "x-keyPath":"",
- "x-id":"7lm3ru2y",
- "title":"value",
- "type":"object",
- "properties":{
- "detail_status":{
- "x-keyPath":"$item.detail_status",
- "x-id":"zed3ksld",
- "title":"detail_status",
- "type":"string"
- },
- "out_detail_no":{
- "x-keyPath":"$item.out_detail_no",
- "x-id":"dc77u5w0",
- "title":"out_detail_no",
- "type":"string"
- },
- "detail_id":{
- "x-keyPath":"$item.detail_id",
- "x-id":"8kb5l2g6",
- "title":"detail_id",
- "type":"string"
- }
- }
- }
- },
- "limit":{
- "x-keyPath":"limit",
- "x-id":"je33724s",
- "title":"limit",
- "type":"number"
- },
- "transfer_batch":{
- "x-keyPath":"",
- "x-id":"vimse3se",
- "title":"transfer_batch",
- "type":"object",
- "properties":{
- "mchid":{
- "x-keyPath":"transfer_batch.mchid",
- "x-id":"gyr2ytxm",
- "title":"mchid",
- "type":"string"
- },
- "create_time":{
- "x-keyPath":"transfer_batch.create_time",
- "x-id":"p490sv00",
- "title":"create_time",
- "type":"string"
- },
- "success_amount":{
- "x-keyPath":"transfer_batch.success_amount",
- "x-id":"wb385p3t",
- "title":"success_amount",
- "type":"number"
- },
- "batch_id":{
- "x-keyPath":"transfer_batch.batch_id",
- "x-id":"3by4s5im",
- "title":"batch_id",
- "type":"string"
- },
- "success_num":{
- "x-keyPath":"transfer_batch.success_num",
- "x-id":"zshufuyy",
- "title":"success_num",
- "type":"number"
- },
- "batch_status":{
- "x-keyPath":"transfer_batch.batch_status",
- "x-id":"93wdtze6",
- "title":"batch_status",
- "type":"string"
- },
- "out_batch_no":{
- "x-keyPath":"transfer_batch.out_batch_no",
- "x-id":"iu7e75ki",
- "title":"out_batch_no",
- "type":"string"
- },
- "batch_name":{
- "x-keyPath":"transfer_batch.batch_name",
- "x-id":"vi6dhkcd",
- "title":"batch_name",
- "type":"string"
- },
- "update_time":{
- "x-keyPath":"transfer_batch.update_time",
- "x-id":"wnab9di0",
- "title":"update_time",
- "type":"string"
- },
- "fail_amount":{
- "x-keyPath":"transfer_batch.fail_amount",
- "x-id":"go67l68p",
- "title":"fail_amount",
- "type":"number"
- },
- "total_amount":{
- "x-keyPath":"transfer_batch.total_amount",
- "x-id":"bqj66si3",
- "title":"total_amount",
- "type":"number"
- },
- "appid":{
- "x-keyPath":"transfer_batch.appid",
- "x-id":"3rnhqim6",
- "title":"appid",
- "type":"string"
- },
- "total_num":{
- "x-keyPath":"transfer_batch.total_num",
- "x-id":"oiqtwxw5",
- "title":"total_num",
- "type":"number"
- },
- "batch_remark":{
- "x-keyPath":"transfer_batch.batch_remark",
- "x-id":"y0c9i9xk",
- "title":"batch_remark",
- "type":"string"
- },
- "batch_type":{
- "x-keyPath":"transfer_batch.batch_type",
- "x-id":"yknu39zm",
- "title":"batch_type",
- "type":"string"
- },
- "fail_num":{
- "x-keyPath":"transfer_batch.fail_num",
- "x-id":"sj1ttwvg",
- "title":"fail_num",
- "type":"number"
- },
- "transfer_scene_id":{
- "x-keyPath":"transfer_batch.transfer_scene_id",
- "x-id":"ne1syuzw",
- "title":"transfer_scene_id",
- "type":"string"
- }
- }
- }
- }
- },
- "intent":"create",
- "uuid":"6dcbfcb5-a913-40b4-8eca-c2a9ef06f5e5",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "offset":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"6662a0a",
- "format":"",
- "description":"",
- "type":"number",
- "x-index":6,
- "title":"offset",
- "x-unique":false
- },
- "detail_status":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"9d42f89",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":10,
- "title":"detail_status",
- "x-unique":false,
- "maxLength":4000
- },
- "limit":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"64d95ca",
- "format":"",
- "description":"",
- "type":"number",
- "x-index":8,
- "title":"limit",
- "x-unique":false
- },
- "out_batch_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"9253263",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"out_batch_no",
- "x-unique":false,
- "maxLength":4000
- },
- "need_query_detail":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"61a442d",
- "format":"",
- "name":"need_query_detail",
- "description":"",
- "type":"boolean",
- "x-index":4,
- "title":"need_query_detail",
- "x-unique":false
- }
- },
- "required":[]
- },
- "name":"getTransferBatchByOutNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "offset":"{{params.offset}}",
- "detail_status":"{{params.detail_status}}",
- "limit":"{{params.limit}}",
- "need_query_detail":"{{params.need_query_detail}}"
- },
- "key":"2aa44492cd7fb8"
- }
- },
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/out-batch-no/{{params.out_batch_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"微信批次单号查单接口。商户可以通过该接口查询转账批次单以及指定状态的转账明细单。返回消息中包含微信批次单号、批次状态、批次类型、转账总金额、转账总笔数、成功金额、失败金额等信息。\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/get-transfer-batch-by-no.html",
- "title":"通过微信批次单号查询批次单",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"xylkkujc",
- "title":"value",
- "type":"object",
- "properties":{
- "offset":{
- "x-keyPath":"offset",
- "x-id":"0v1qulys",
- "title":"offset",
- "type":"number"
- },
- "transfer_detail_list":{
- "x-keyPath":"transfer_detail_list",
- "x-id":"91h33kik",
- "title":"transfer_detail_list",
- "type":"array",
- "items":{
- "x-keyPath":"",
- "x-id":"oqplrdhf",
- "title":"value",
- "type":"object",
- "properties":{
- "detail_status":{
- "x-keyPath":"$item.detail_status",
- "x-id":"ip8f62yy",
- "title":"detail_status",
- "type":"string"
- },
- "out_detail_no":{
- "x-keyPath":"$item.out_detail_no",
- "x-id":"0v47bi41",
- "title":"out_detail_no",
- "type":"string"
- },
- "detail_id":{
- "x-keyPath":"$item.detail_id",
- "x-id":"toligoha",
- "title":"detail_id",
- "type":"string"
- }
- }
- }
- },
- "limit":{
- "x-keyPath":"limit",
- "x-id":"d063udym",
- "title":"limit",
- "type":"number"
- },
- "transfer_batch":{
- "x-keyPath":"",
- "x-id":"3yiatnci",
- "title":"transfer_batch",
- "type":"object",
- "properties":{
- "mchid":{
- "x-keyPath":"transfer_batch.mchid",
- "x-id":"a05z9r17",
- "title":"mchid",
- "type":"string"
- },
- "create_time":{
- "x-keyPath":"transfer_batch.create_time",
- "x-id":"1gjmo4yt",
- "title":"create_time",
- "type":"string"
- },
- "success_amount":{
- "x-keyPath":"transfer_batch.success_amount",
- "x-id":"fhz18dvb",
- "title":"success_amount",
- "type":"number"
- },
- "batch_id":{
- "x-keyPath":"transfer_batch.batch_id",
- "x-id":"8omafmul",
- "title":"batch_id",
- "type":"string"
- },
- "success_num":{
- "x-keyPath":"transfer_batch.success_num",
- "x-id":"0kch7k2l",
- "title":"success_num",
- "type":"number"
- },
- "batch_status":{
- "x-keyPath":"transfer_batch.batch_status",
- "x-id":"h15lx1m2",
- "title":"batch_status",
- "type":"string"
- },
- "out_batch_no":{
- "x-keyPath":"transfer_batch.out_batch_no",
- "x-id":"fa85p1mr",
- "title":"out_batch_no",
- "type":"string"
- },
- "batch_name":{
- "x-keyPath":"transfer_batch.batch_name",
- "x-id":"l2992dpz",
- "title":"batch_name",
- "type":"string"
- },
- "update_time":{
- "x-keyPath":"transfer_batch.update_time",
- "x-id":"zmf75mgz",
- "title":"update_time",
- "type":"string"
- },
- "fail_amount":{
- "x-keyPath":"transfer_batch.fail_amount",
- "x-id":"94nunai8",
- "title":"fail_amount",
- "type":"number"
- },
- "total_amount":{
- "x-keyPath":"transfer_batch.total_amount",
- "x-id":"dkz8q6h0",
- "title":"total_amount",
- "type":"number"
- },
- "appid":{
- "x-keyPath":"transfer_batch.appid",
- "x-id":"hdrr6fz7",
- "title":"appid",
- "type":"string"
- },
- "total_num":{
- "x-keyPath":"transfer_batch.total_num",
- "x-id":"1jbuafmc",
- "title":"total_num",
- "type":"number"
- },
- "batch_remark":{
- "x-keyPath":"transfer_batch.batch_remark",
- "x-id":"tz92aukf",
- "title":"batch_remark",
- "type":"string"
- },
- "batch_type":{
- "x-keyPath":"transfer_batch.batch_type",
- "x-id":"go0tswk2",
- "title":"batch_type",
- "type":"string"
- },
- "fail_num":{
- "x-keyPath":"transfer_batch.fail_num",
- "x-id":"55sow1sk",
- "title":"fail_num",
- "type":"number"
- },
- "transfer_scene_id":{
- "x-keyPath":"transfer_batch.transfer_scene_id",
- "x-id":"edfgzd7z",
- "title":"transfer_scene_id",
- "type":"string"
- }
- }
- }
- }
- },
- "intent":"create",
- "uuid":"d1423c16-df9b-4d68-b622-0d450373be42",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "offset":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"81539be",
- "format":"",
- "description":"",
- "type":"number",
- "x-index":4,
- "title":"offset",
- "x-unique":false
- },
- "batch_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"81d19b5",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":10,
- "title":"batch_id",
- "x-unique":false,
- "maxLength":4000
- },
- "detail_status":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"7bbe951",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":8,
- "title":"detail_status",
- "x-unique":false,
- "maxLength":4000
- },
- "limit":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"614c5af",
- "format":"",
- "description":"",
- "type":"number",
- "x-index":6,
- "title":"limit",
- "x-unique":false
- },
- "need_query_detail":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"a6e05c8",
- "format":"",
- "description":"",
- "type":"boolean",
- "x-index":2,
- "title":"need_query_detail",
- "x-unique":false
- }
- },
- "required":[]
- },
- "name":"getTransferBatchByNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "offset":"{{params.offset}}",
- "detail_status":"{{params.detail_status}}",
- "limit":"{{params.limit}}",
- "need_query_detail":"{{params.need_query_detail}}"
- },
- "key":"28b0d79004d820"
- }
- },
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/transfer/batches/batch-id/{{params.batch_id}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"发起商家转账接口。商户可以通过该接口同时向多个用户微信零钱进行转账操作。请求消息中应包含商家批次单号、转账名称、appid、转账总金额、转账总笔数、转账openid、收款用户姓名等信息。注意受理成功将返回批次单号,此时并不代表转账成功,请通过查单接口查询单据的付款状态\nhttps://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch/initiate-batch-transfer.html",
- "title":"发起商家转账",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"a3sq52ef",
- "title":"value",
- "type":"object",
- "properties":{
- "outBatchNo":{
- "x-keyPath":"outBatchNo",
- "x-id":"ccexf1jz",
- "title":"outBatchNo",
- "type":"string"
- },
- "createTime":{
- "x-keyPath":"createTime",
- "x-id":"jzoiaupd",
- "title":"createTime",
- "type":"string"
- },
- "batchId":{
- "x-keyPath":"batchId",
- "x-id":"0yr0rqcp",
- "title":"batchId",
- "type":"string"
- },
- "batchStatus":{
- "x-keyPath":"batchStatus",
- "x-id":"jz5z13s8",
- "title":"batchStatus",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"3c30b490-71c4-48ac-807d-844f4a6d88fc",
- "isNameInValid":false,
- "isShow":true,
- "tags":"商家转账到零钱(旧)",
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "batch_name":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"8868746",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":4,
- "title":"batch_name",
- "x-unique":false,
- "maxLength":4000
- },
- "transfer_detail_list":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"9f956db",
- "format":"",
- "description":"",
- "type":"array",
- "x-index":12,
- "title":"transfer_detail_list",
- "items":{
- "format":"",
- "type":"object",
- "properties":{
- "transfer_amount":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"b3c0c24",
- "format":"",
- "name":"transfer_amount",
- "description":"",
- "type":"number",
- "x-index":4,
- "title":"transfer_amount",
- "x-unique":false
- },
- "openid":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"8771fc0",
- "format":"",
- "name":"openid",
- "description":"",
- "type":"string",
- "x-index":8,
- "title":"openid",
- "x-unique":false,
- "maxLength":4000
- },
- "user_name":{
- "x-keyPath":"",
- "x-id":"8b7b064",
- "format":"",
- "description":"",
- "isEnum":false,
- "pId":"9f956db",
- "type":"string",
- "x-index":10,
- "title":"user_name",
- "x-unique":false,
- "x-required":false,
- "name":"user_name",
- "maxLength":4000
- },
- "out_detail_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"8ea1f98",
- "format":"",
- "name":"out_detail_no",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"out_detail_no",
- "x-unique":false,
- "maxLength":4000
- },
- "transfer_remark":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"84aec40",
- "format":"",
- "name":"transfer_remark",
- "description":"",
- "type":"string",
- "x-index":6,
- "title":"transfer_remark",
- "x-unique":false,
- "maxLength":4000
- }
- }
- },
- "x-unique":false
- },
- "total_amount":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"84ae30d",
- "format":"",
- "description":"",
- "type":"number",
- "x-index":8,
- "title":"total_amount",
- "x-unique":false
- },
- "total_num":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"abf7b0f",
- "format":"",
- "description":"",
- "type":"number",
- "x-index":10,
- "title":"total_num",
- "x-unique":false
- },
- "out_batch_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"79039ce",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"out_batch_no",
- "x-unique":false,
- "maxLength":4000
- },
- "batch_remark":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"a176a1b",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":6,
- "title":"batch_remark",
- "x-unique":false,
- "maxLength":4000
- },
- "transfer_scene_id":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"7debfc6",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":14,
- "title":"transfer_scene_id",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"batches",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "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}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/transfer/batches"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "presetParams":{
- "functionName":{
- "x-required":true,
- "x-id":"q1u9kwph",
- "description":"微信支付直连,回调工作流ID或回调地址",
- "title":"回调地址",
- "type":"_wxpaydc_",
- "x-index":1
- }
- },
- "description":"商户系统先调用该接口在微信支付服务后台生成预支付交易单,返回正确的预支付交易会话标识后再按Native、JSAPI、APP等不同场景生成交易串调起支付。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_1.shtml",
- "type":"http",
- "title":"JSAPI下单",
- "outParams":{
- "x-keyPath":"",
- "x-id":"8p76ze4g",
- "title":"value",
- "type":"object",
- "properties":{
- "timeStamp":{
- "x-keyPath":"timeStamp",
- "x-id":"7cdqortc",
- "title":"timeStamp",
- "type":"string"
- },
- "packageVal":{
- "x-keyPath":"packageVal",
- "x-id":"7bpk4chq",
- "title":"packageVal",
- "type":"string"
- },
- "paySign":{
- "x-keyPath":"paySign",
- "x-id":"na4l8sfr",
- "title":"paySign",
- "type":"string"
- },
- "appId":{
- "x-keyPath":"appId",
- "x-id":"arou9q74",
- "title":"appId",
- "type":"string"
- },
- "signType":{
- "x-keyPath":"signType",
- "x-id":"1kv5p5dh",
- "title":"signType",
- "type":"string"
- },
- "nonceStr":{
- "x-keyPath":"nonceStr",
- "x-id":"24kaz0hd",
- "title":"nonceStr",
- "type":"string"
- }
- }
- },
- "uuid":"48c297df-c619-4b59-9def-7d57182ed992",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "time_expire":{
- "x-required":false,
- "x-id":"657bf0b",
- "name":"time_expire",
- "title":"交易结束时间",
- "type":"string",
- "x-index":3
- },
- "amount":{
- "x-required":true,
- "x-id":"b46b080",
- "name":"amount",
- "title":"订单金额",
- "type":"object",
- "list":[
- {
- "x-required":true,
- "x-id":"7649d48",
- "name":"total",
- "pId":"b46b080",
- "title":"总金额",
- "type":"number"
- },
- {
- "x-required":false,
- "x-id":"79081ee",
- "name":"currency",
- "pId":"b46b080",
- "title":"货币类型",
- "type":"string"
- }
- ],
- "x-index":7,
- "properties":{
- "total":{
- "x-required":true,
- "x-id":"7649d48",
- "name":"total",
- "title":"总金额",
- "type":"number",
- "x-index":1
- },
- "currency":{
- "x-required":false,
- "x-id":"79081ee",
- "name":"currency",
- "title":"货币类型",
- "type":"string",
- "x-index":2
- }
- },
- "required":[
- "total"
- ]
- },
- "out_trade_no":{
- "x-required":true,
- "x-id":"aa37c2a",
- "name":"out_trade_no",
- "title":"商户订单号",
- "type":"string",
- "x-index":2
- },
- "goods_tag":{
- "x-required":false,
- "x-id":"85171f1",
- "name":"goods_tag",
- "title":"订单优惠标记",
- "type":"string",
- "x-index":5
- },
- "settle_info":{
- "x-required":false,
- "x-id":"7f6ce12",
- "name":"settle_info",
- "title":"结算信息",
- "type":"object",
- "list":[
- {
- "x-required":false,
- "x-id":"9fa05bb",
- "name":"profit_sharing",
- "pId":"7f6ce12",
- "title":"是否指定分账",
- "type":"boolean"
- }
- ],
- "x-index":11,
- "properties":{
- "profit_sharing":{
- "x-required":false,
- "x-id":"9fa05bb",
- "name":"profit_sharing",
- "title":"是否指定分账",
- "type":"boolean",
- "x-index":1
- }
- },
- "required":[]
- },
- "description":{
- "x-required":true,
- "x-id":"66816ec",
- "name":"description",
- "title":"商品描述",
- "type":"string",
- "x-index":1
- },
- "attach":{
- "x-required":false,
- "x-id":"a5f5f0b",
- "name":"attach",
- "title":"附加数据",
- "type":"string",
- "x-index":4
- },
- "detail":{
- "x-required":false,
- "x-id":"63d80f9",
- "name":"detail",
- "title":"优惠功能",
- "type":"object",
- "list":[
- {
- "x-required":false,
- "x-id":"907ff77",
- "name":"invoice_id",
- "pId":"63d80f9",
- "title":"商品小票ID",
- "type":"string"
- },
- {
- "x-required":false,
- "x-id":"996221b",
- "name":"goods_detail",
- "pId":"63d80f9",
- "title":"单品列表",
- "type":"array",
- "list":[
- {
- "x-required":false,
- "x-id":"9adcb42",
- "name":"goods_name",
- "pId":"996221b",
- "title":"商品名称",
- "type":"string"
- },
- {
- "x-required":false,
- "x-id":"956ff3f",
- "name":"wechatpay_goods_id",
- "pId":"996221b",
- "title":"微信支付商品编码",
- "type":"string"
- },
- {
- "x-required":true,
- "x-id":"71f9f9b",
- "name":"quantity",
- "pId":"996221b",
- "title":"商品数量",
- "type":"number"
- },
- {
- "x-required":true,
- "x-id":"817d099",
- "name":"merchant_goods_id",
- "pId":"996221b",
- "title":"商户侧商品编码",
- "type":"string"
- },
- {
- "x-required":true,
- "x-id":"a07d0d4",
- "name":"unit_price",
- "pId":"996221b",
- "title":"商品单价",
- "type":"number"
- }
- ],
- "items":{
- "x-required":false,
- "type":"object",
- "properties":{
- "goods_name":{
- "x-required":false,
- "x-id":"9adcb42",
- "name":"goods_name",
- "title":"商品名称",
- "type":"string"
- },
- "wechatpay_goods_id":{
- "x-required":false,
- "x-id":"956ff3f",
- "name":"wechatpay_goods_id",
- "title":"微信支付商品编码",
- "type":"string"
- },
- "quantity":{
- "x-required":true,
- "x-id":"71f9f9b",
- "name":"quantity",
- "title":"商品数量",
- "type":"number"
- },
- "merchant_goods_id":{
- "x-required":true,
- "x-id":"817d099",
- "name":"merchant_goods_id",
- "title":"商户侧商品编码",
- "type":"string"
- },
- "unit_price":{
- "x-required":true,
- "x-id":"a07d0d4",
- "name":"unit_price",
- "title":"商品单价",
- "type":"number"
- }
- },
- "required":[
- "quantity",
- "merchant_goods_id",
- "unit_price"
- ]
- }
- },
- {
- "x-required":false,
- "x-id":"7a897fa",
- "name":"cost_price",
- "pId":"63d80f9",
- "title":"订单原价",
- "type":"number"
- }
- ],
- "x-index":9,
- "properties":{
- "invoice_id":{
- "x-required":false,
- "x-id":"907ff77",
- "name":"invoice_id",
- "title":"商品小票ID",
- "type":"string",
- "x-index":1
- },
- "goods_detail":{
- "x-required":false,
- "x-id":"996221b",
- "name":"goods_detail",
- "title":"单品列表",
- "type":"array",
- "list":[
- {
- "x-required":false,
- "x-id":"9adcb42",
- "name":"goods_name",
- "pId":"996221b",
- "title":"商品名称",
- "type":"string",
- "x-index":1
- },
- {
- "x-required":false,
- "x-id":"956ff3f",
- "name":"wechatpay_goods_id",
- "pId":"996221b",
- "title":"微信支付商品编码",
- "type":"string",
- "x-index":2
- },
- {
- "x-required":true,
- "x-id":"71f9f9b",
- "name":"quantity",
- "pId":"996221b",
- "title":"商品数量",
- "type":"number",
- "x-index":3
- },
- {
- "x-required":true,
- "x-id":"817d099",
- "name":"merchant_goods_id",
- "pId":"996221b",
- "title":"商户侧商品编码",
- "type":"string",
- "x-index":4
- },
- {
- "x-required":true,
- "x-id":"a07d0d4",
- "name":"unit_price",
- "pId":"996221b",
- "title":"商品单价",
- "type":"number",
- "x-index":5
- }
- ],
- "x-index":2,
- "items":{
- "x-required":false,
- "type":"object",
- "properties":{
- "goods_name":{
- "x-required":false,
- "x-id":"9adcb42",
- "name":"goods_name",
- "title":"商品名称",
- "type":"string",
- "x-index":1
- },
- "wechatpay_goods_id":{
- "x-required":false,
- "x-id":"956ff3f",
- "name":"wechatpay_goods_id",
- "title":"微信支付商品编码",
- "type":"string",
- "x-index":2
- },
- "quantity":{
- "x-required":true,
- "x-id":"71f9f9b",
- "name":"quantity",
- "title":"商品数量",
- "type":"number",
- "x-index":3
- },
- "merchant_goods_id":{
- "x-required":true,
- "x-id":"817d099",
- "name":"merchant_goods_id",
- "title":"商户侧商品编码",
- "type":"string",
- "x-index":4
- },
- "unit_price":{
- "x-required":true,
- "x-id":"a07d0d4",
- "name":"unit_price",
- "title":"商品单价",
- "type":"number",
- "x-index":5
- }
- },
- "required":[
- "quantity",
- "merchant_goods_id",
- "unit_price"
- ]
- }
- },
- "cost_price":{
- "x-required":false,
- "x-id":"7a897fa",
- "name":"cost_price",
- "title":"订单原价",
- "type":"number",
- "x-index":3
- }
- },
- "required":[]
- },
- "payer":{
- "x-required":true,
- "x-id":"9295ba9",
- "name":"payer",
- "title":"支付者",
- "type":"object",
- "list":[
- {
- "x-required":true,
- "x-id":"5ffd75a",
- "name":"openid",
- "pId":"9295ba9",
- "title":"用户标识",
- "type":"string"
- }
- ],
- "x-index":8,
- "properties":{
- "openid":{
- "x-required":true,
- "x-id":"5ffd75a",
- "name":"openid",
- "title":"用户标识",
- "type":"string",
- "x-index":1
- }
- },
- "required":[
- "openid"
- ]
- },
- "support_fapiao":{
- "x-required":false,
- "x-id":"961a36e",
- "name":"support_fapiao",
- "title":"电子发票入口开放标识",
- "type":"boolean",
- "x-index":6
- },
- "scene_info":{
- "x-required":false,
- "x-id":"83bbee5",
- "name":"scene_info",
- "title":"场景信息",
- "type":"object",
- "list":[
- {
- "x-required":false,
- "x-id":"9e8b52f",
- "name":"store_info",
- "pId":"83bbee5",
- "title":"商户门店信息",
- "type":"object",
- "list":[
- {
- "x-required":false,
- "x-id":"9683c04",
- "name":"address",
- "pId":"9e8b52f",
- "title":"详细地址",
- "type":"string"
- },
- {
- "x-required":false,
- "x-id":"821a731",
- "name":"area_code",
- "pId":"9e8b52f",
- "title":"地区编码",
- "type":"string"
- },
- {
- "x-required":false,
- "x-id":"96e2bab",
- "name":"name",
- "pId":"9e8b52f",
- "title":"门店名称",
- "type":"string"
- },
- {
- "x-required":true,
- "x-id":"a7bd745",
- "name":"id",
- "pId":"9e8b52f",
- "title":"门店编号",
- "type":"string"
- }
- ],
- "properties":{
- "address":{
- "x-required":false,
- "x-id":"9683c04",
- "name":"address",
- "title":"详细地址",
- "type":"string"
- },
- "area_code":{
- "x-required":false,
- "x-id":"821a731",
- "name":"area_code",
- "title":"地区编码",
- "type":"string"
- },
- "name":{
- "x-required":false,
- "x-id":"96e2bab",
- "name":"name",
- "title":"门店名称",
- "type":"string"
- },
- "id":{
- "x-required":true,
- "x-id":"a7bd745",
- "name":"id",
- "title":"门店编号",
- "type":"string"
- }
- },
- "required":[
- "id"
- ]
- },
- {
- "x-required":false,
- "x-id":"92960b7",
- "name":"device_id",
- "pId":"83bbee5",
- "title":"商户端设备号\t",
- "type":"string"
- },
- {
- "x-required":true,
- "x-id":"67ef580",
- "name":"payer_client_ip",
- "pId":"83bbee5",
- "title":"用户终端IP",
- "type":"string"
- }
- ],
- "x-index":10,
- "properties":{
- "store_info":{
- "x-required":false,
- "x-id":"9e8b52f",
- "name":"store_info",
- "title":"商户门店信息",
- "type":"object",
- "list":[
- {
- "x-required":false,
- "x-id":"9683c04",
- "name":"address",
- "pId":"9e8b52f",
- "title":"详细地址",
- "type":"string"
- },
- {
- "x-required":false,
- "x-id":"821a731",
- "name":"area_code",
- "pId":"9e8b52f",
- "title":"地区编码",
- "type":"string"
- },
- {
- "x-required":false,
- "x-id":"96e2bab",
- "name":"name",
- "pId":"9e8b52f",
- "title":"门店名称",
- "type":"string"
- },
- {
- "x-required":true,
- "x-id":"a7bd745",
- "name":"id",
- "pId":"9e8b52f",
- "title":"门店编号",
- "type":"string"
- }
- ],
- "x-index":1,
- "properties":{
- "address":{
- "x-required":false,
- "x-id":"9683c04",
- "name":"address",
- "title":"详细地址",
- "type":"string",
- "x-index":1
- },
- "area_code":{
- "x-required":false,
- "x-id":"821a731",
- "name":"area_code",
- "title":"地区编码",
- "type":"string",
- "x-index":2
- },
- "name":{
- "x-required":false,
- "x-id":"96e2bab",
- "name":"name",
- "title":"门店名称",
- "type":"string",
- "x-index":3
- },
- "id":{
- "x-required":true,
- "x-id":"a7bd745",
- "name":"id",
- "title":"门店编号",
- "type":"string",
- "x-index":4
- }
- },
- "required":[
- "id"
- ]
- },
- "device_id":{
- "x-required":false,
- "x-id":"92960b7",
- "name":"device_id",
- "title":"商户端设备号\t",
- "type":"string",
- "x-index":2
- },
- "payer_client_ip":{
- "x-required":true,
- "x-id":"67ef580",
- "name":"payer_client_ip",
- "title":"用户终端IP",
- "type":"string",
- "x-index":3
- }
- },
- "required":[
- "payer_client_ip"
- ]
- }
- },
- "required":[
- "appid",
- "mchid",
- "description",
- "out_trade_no",
- "notify_url",
- "amount",
- "payer"
- ]
- },
- "name":"unifiedOrder",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "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",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询\n注意:\n查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同\n\n\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml",
- "type":"http",
- "title":"查询订单-微信支付订单号查询",
- "outParams":{
- "x-keyPath":"",
- "x-id":"ly213kdx",
- "title":"value",
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-keyPath":"transaction_id",
- "x-id":"jqtopuq0",
- "title":"transaction_id",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"",
- "x-id":"1q76c9cx",
- "title":"amount",
- "type":"object",
- "properties":{
- "payer_total":{
- "x-keyPath":"amount.payer_total",
- "x-id":"ociza2r6",
- "title":"payer_total",
- "type":"number"
- },
- "total":{
- "x-keyPath":"amount.total",
- "x-id":"0uydz8py",
- "title":"total",
- "type":"number"
- },
- "currency":{
- "x-keyPath":"amount.currency",
- "x-id":"5soaq71m",
- "title":"currency",
- "type":"string"
- },
- "payer_currency":{
- "x-keyPath":"amount.payer_currency",
- "x-id":"jx06skvo",
- "title":"payer_currency",
- "type":"string"
- }
- }
- },
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"tbj66xmh",
- "title":"mchid",
- "type":"string"
- },
- "trade_state":{
- "x-keyPath":"trade_state",
- "x-id":"s4sjjlua",
- "title":"trade_state",
- "type":"string"
- },
- "bank_type":{
- "x-keyPath":"bank_type",
- "x-id":"n1h47pm5",
- "title":"bank_type",
- "type":"string"
- },
- "promotion_detail":{
- "x-keyPath":"promotion_detail",
- "x-id":"djku47ev",
- "title":"promotion_detail",
- "type":"array",
- "items":{
- "x-keyPath":"$item",
- "x-id":"3ggn3n2k",
- "title":"value",
- "type":"string"
- }
- },
- "success_time":{
- "x-keyPath":"success_time",
- "x-id":"4m5b4q4l",
- "title":"success_time",
- "type":"string"
- },
- "payer":{
- "x-keyPath":"",
- "x-id":"pwxw08yv",
- "title":"payer",
- "type":"object",
- "properties":{
- "openid":{
- "x-keyPath":"payer.openid",
- "x-id":"pvjpp0so",
- "title":"openid",
- "type":"string"
- }
- }
- },
- "out_trade_no":{
- "x-keyPath":"out_trade_no",
- "x-id":"paon43ff",
- "title":"out_trade_no",
- "type":"string"
- },
- "appid":{
- "x-keyPath":"appid",
- "x-id":"m1mk6nfd",
- "title":"appid",
- "type":"string"
- },
- "trade_state_desc":{
- "x-keyPath":"trade_state_desc",
- "x-id":"1uxennpf",
- "title":"trade_state_desc",
- "type":"string"
- },
- "trade_type":{
- "x-keyPath":"trade_type",
- "x-id":"1u0lmcxf",
- "title":"trade_type",
- "type":"string"
- },
- "attach":{
- "x-keyPath":"attach",
- "x-id":"z7iurr88",
- "title":"attach",
- "type":"string"
- }
- }
- },
- "uuid":"b6174cbb-9449-49a1-b9bf-f4a44946a692",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-required":true,
- "x-id":"aabcb61",
- "name":"transaction_id",
- "title":"微信支付订单号",
- "type":"string",
- "x-index":1
- }
- },
- "required":[
- "transaction_id"
- ]
- },
- "name":"queryOrderByTransactionId",
- "calleeBody":{
- "method":"GET",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "mchid":"{{vars.mchid}}"
- },
- "key":"25981c9e65b1a0"
- }
- },
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/id/{{params.transaction_id}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户可以通过查询订单接口主动查询订单状态,完成下一步的业务逻辑。查询订单状态可通过微信支付订单号或商户订单号两种方式查询\n注意:\n查询订单可通过微信支付订单号和商户订单号两种方式查询,两种查询方式返回结果相同\n\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_2.shtml",
- "type":"http",
- "title":"查询订单-商户订单号查询",
- "outParams":{
- "x-keyPath":"",
- "x-id":"tvx36581",
- "title":"value",
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-keyPath":"transaction_id",
- "x-id":"9pcd7639",
- "title":"transaction_id",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"",
- "x-id":"h5xm19mc",
- "title":"amount",
- "type":"object",
- "properties":{
- "payer_total":{
- "x-keyPath":"amount.payer_total",
- "x-id":"pynkbeve",
- "title":"payer_total",
- "type":"number"
- },
- "total":{
- "x-keyPath":"amount.total",
- "x-id":"y3vhgfwx",
- "title":"total",
- "type":"number"
- },
- "currency":{
- "x-keyPath":"amount.currency",
- "x-id":"gtwhpob2",
- "title":"currency",
- "type":"string"
- },
- "payer_currency":{
- "x-keyPath":"amount.payer_currency",
- "x-id":"56ih5p22",
- "title":"payer_currency",
- "type":"string"
- }
- }
- },
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"12ungfn5",
- "title":"mchid",
- "type":"string"
- },
- "trade_state":{
- "x-keyPath":"trade_state",
- "x-id":"45t7fkma",
- "title":"trade_state",
- "type":"string"
- },
- "bank_type":{
- "x-keyPath":"bank_type",
- "x-id":"fnn36k98",
- "title":"bank_type",
- "type":"string"
- },
- "promotion_detail":{
- "x-keyPath":"promotion_detail",
- "x-id":"1pzyxb0e",
- "title":"promotion_detail",
- "type":"array",
- "items":{
- "x-keyPath":"$item",
- "x-id":"29m2sbgt",
- "title":"value",
- "type":"string"
- }
- },
- "success_time":{
- "x-keyPath":"success_time",
- "x-id":"zt842oau",
- "title":"success_time",
- "type":"string"
- },
- "payer":{
- "x-keyPath":"",
- "x-id":"uydordz8",
- "title":"payer",
- "type":"object",
- "properties":{
- "openid":{
- "x-keyPath":"payer.openid",
- "x-id":"tvlt8ifx",
- "title":"openid",
- "type":"string"
- }
- }
- },
- "out_trade_no":{
- "x-keyPath":"out_trade_no",
- "x-id":"nio0j6a3",
- "title":"out_trade_no",
- "type":"string"
- },
- "appid":{
- "x-keyPath":"appid",
- "x-id":"mm4711o8",
- "title":"appid",
- "type":"string"
- },
- "trade_state_desc":{
- "x-keyPath":"trade_state_desc",
- "x-id":"5awk2s1n",
- "title":"trade_state_desc",
- "type":"string"
- },
- "trade_type":{
- "x-keyPath":"trade_type",
- "x-id":"w9pxsm9k",
- "title":"trade_type",
- "type":"string"
- },
- "attach":{
- "x-keyPath":"attach",
- "x-id":"w2q6bqpp",
- "title":"attach",
- "type":"string"
- }
- }
- },
- "uuid":"e08c57fb-7497-4fc1-89e7-292595b9cad6",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "out_trade_no":{
- "x-required":true,
- "x-id":"79a65f8",
- "name":"out_trade_no",
- "title":"商户订单号",
- "type":"string",
- "x-index":1
- }
- },
- "required":[
- "out_trade_no"
- ]
- },
- "name":"queryOrderByOutTradeNo",
- "calleeBody":{
- "method":"GET",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "mchid":"{{vars.mchid}}"
- },
- "key":"40097b0954c390"
- }
- },
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{{params.out_trade_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"以下情况需要调用关单接口:\n1、商户订单支付失败需要生成新单号重新发起支付,要对原订单号调用关单,避免重复支付;\n2、系统下单后,用户支付超时,系统退出不再受理,避免用户继续,请调用关单接口。\n注意:\n• 关单没有时间限制,建议在订单生成后间隔几分钟(最短5分钟)再调用关单接口,避免出现订单状态同步不及时导致关单失败。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_3.shtml",
- "type":"http",
- "title":"关闭订单",
- "outParams":{
- "x-keyPath":"",
- "x-id":"3k66lbyu",
- "title":"value",
- "type":"object",
- "properties":{}
- },
- "uuid":"57e19c96-caf2-4ba9-af5e-4c8b5b4d5301",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "out_trade_no":{
- "x-required":true,
- "x-id":"6f1829f",
- "name":"out_trade_no",
- "title":"商户订单号",
- "type":"string",
- "x-index":1
- }
- },
- "required":[
- "mchid",
- "out_trade_no"
- ]
- },
- "name":"closeOrder",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{\n \"mchid\": \"{{vars.mchid}}\"\n}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{{params.out_trade_no}}/close"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "presetParams":{
- "functionName":{
- "x-required":true,
- "x-id":"q1u9kwpj",
- "description":"微信支付直连,回调工作流ID或回调地址",
- "title":"回调地址",
- "type":"_wxpaydc_",
- "x-index":1
- }
- },
- "description":"当交易发生之后一年内,由于买家或者卖家的原因需要退款时,卖家可以通过退款接口将支付金额退还给买家,微信支付将在收到退款请求并且验证成功之后,将支付款按原路退还至买家账号上。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_9.shtml",
- "type":"http",
- "title":"申请退款",
- "outParams":{
- "x-keyPath":"",
- "x-id":"fbssu1mu",
- "title":"value",
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-keyPath":"transaction_id",
- "x-id":"eoqmee8c",
- "title":"transaction_id",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"",
- "x-id":"jmg6ck1n",
- "title":"amount",
- "type":"object",
- "properties":{
- "payer_total":{
- "x-keyPath":"amount.payer_total",
- "x-id":"79l14lmw",
- "title":"payer_total",
- "type":"number"
- },
- "settlement_total":{
- "x-keyPath":"amount.settlement_total",
- "x-id":"shn3arae",
- "title":"settlement_total",
- "type":"number"
- },
- "total":{
- "x-keyPath":"amount.total",
- "x-id":"foahk38c",
- "title":"total",
- "type":"number"
- },
- "payer_refund":{
- "x-keyPath":"amount.payer_refund",
- "x-id":"qqr5wny2",
- "title":"payer_refund",
- "type":"number"
- },
- "refund_fee":{
- "x-keyPath":"amount.refund_fee",
- "x-id":"gsmcx6go",
- "title":"refund_fee",
- "type":"number"
- },
- "discount_refund":{
- "x-keyPath":"amount.discount_refund",
- "x-id":"ly1wic3y",
- "title":"discount_refund",
- "type":"number"
- },
- "currency":{
- "x-keyPath":"amount.currency",
- "x-id":"6oswcbax",
- "title":"currency",
- "type":"string"
- },
- "from":{
- "x-keyPath":"amount.from",
- "x-id":"ddup4f1i",
- "title":"from",
- "type":"array",
- "items":{
- "x-keyPath":"$item",
- "x-id":"dw2r6uw7",
- "title":"value",
- "type":"string"
- }
- },
- "settlement_refund":{
- "x-keyPath":"amount.settlement_refund",
- "x-id":"5zqbyj09",
- "title":"settlement_refund",
- "type":"number"
- },
- "refund":{
- "x-keyPath":"amount.refund",
- "x-id":"0l84vwp2",
- "title":"refund",
- "type":"number"
- }
- }
- },
- "out_trade_no":{
- "x-keyPath":"out_trade_no",
- "x-id":"kft7i864",
- "title":"out_trade_no",
- "type":"string"
- },
- "create_time":{
- "x-keyPath":"create_time",
- "x-id":"7n7sti4j",
- "title":"create_time",
- "type":"string"
- },
- "promotion_detail":{
- "x-keyPath":"promotion_detail",
- "x-id":"x9z7s053",
- "title":"promotion_detail",
- "type":"array",
- "items":{
- "x-keyPath":"$item",
- "x-id":"cb67iaqa",
- "title":"value",
- "type":"string"
- }
- },
- "out_refund_no":{
- "x-keyPath":"out_refund_no",
- "x-id":"mrgzgsaw",
- "title":"out_refund_no",
- "type":"string"
- },
- "funds_account":{
- "x-keyPath":"funds_account",
- "x-id":"3o8w3djf",
- "title":"funds_account",
- "type":"string"
- },
- "channel":{
- "x-keyPath":"channel",
- "x-id":"0zzwrkwd",
- "title":"channel",
- "type":"string"
- },
- "success_time":{
- "x-keyPath":"success_time",
- "x-id":"glzze9yv",
- "title":"success_time",
- "type":"string"
- },
- "user_received_account":{
- "x-keyPath":"user_received_account",
- "x-id":"3dnv4brc",
- "title":"user_received_account",
- "type":"string"
- },
- "refund_id":{
- "x-keyPath":"refund_id",
- "x-id":"kdzi35iv",
- "title":"refund_id",
- "type":"string"
- },
- "status":{
- "x-keyPath":"status",
- "x-id":"qwxtrpwt",
- "title":"status",
- "type":"string"
- }
- }
- },
- "uuid":"e9051e29-da70-4330-aaef-2ebb139454fc",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-required":false,
- "x-id":"a593a0d",
- "name":"transaction_id",
- "title":"微信支付订单号",
- "type":"string",
- "x-index":1
- },
- "reason":{
- "x-required":false,
- "x-id":"9365274",
- "name":"reason",
- "title":"退款原因",
- "type":"string",
- "x-index":4
- },
- "amount":{
- "x-required":true,
- "x-id":"7a805a8",
- "name":"amount",
- "title":"金额信息",
- "type":"object",
- "list":[
- {
- "x-required":true,
- "x-keyPath":"",
- "x-id":"65ea3b9",
- "format":"",
- "name":"currency",
- "description":"符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。\n示例值:CNY",
- "pId":"7a805a8",
- "type":"string",
- "x-index":2,
- "title":"退款币种",
- "x-unique":false,
- "maxLength":4000
- },
- {
- "x-required":true,
- "x-id":"ae4ef43",
- "name":"refund",
- "pId":"7a805a8",
- "title":"退款金额",
- "type":"number"
- },
- {
- "x-required":false,
- "x-id":"bcdf06f",
- "name":"from",
- "pId":"7a805a8",
- "title":"退款出资账户及金额",
- "type":"array",
- "list":[
- {
- "x-required":true,
- "x-id":"87724ba",
- "name":"account",
- "pId":"bcdf06f",
- "title":"出资账户类型",
- "type":"string"
- },
- {
- "x-required":true,
- "x-id":"a41f529",
- "name":"amount",
- "pId":"bcdf06f",
- "title":"出资金额",
- "type":"number"
- }
- ],
- "items":{
- "x-required":false,
- "type":"object",
- "properties":{
- "amount":{
- "x-required":true,
- "x-id":"a41f529",
- "name":"amount",
- "title":"出资金额",
- "type":"number"
- },
- "account":{
- "x-required":true,
- "x-id":"87724ba",
- "name":"account",
- "title":"出资账户类型",
- "type":"string"
- }
- },
- "required":[
- "account",
- "amount"
- ]
- }
- },
- {
- "x-required":true,
- "x-id":"682593a",
- "name":"total",
- "pId":"7a805a8",
- "title":"原订单金额",
- "type":"number"
- }
- ],
- "x-index":6,
- "properties":{
- "total":{
- "x-required":true,
- "x-id":"682593a",
- "name":"total",
- "title":"原订单金额",
- "type":"number",
- "x-index":5
- },
- "from":{
- "x-required":false,
- "x-id":"bcdf06f",
- "name":"from",
- "title":"退款出资账户及金额",
- "type":"array",
- "list":[
- {
- "x-required":true,
- "x-id":"87724ba",
- "name":"account",
- "pId":"bcdf06f",
- "title":"出资账户类型",
- "type":"string",
- "x-index":1
- },
- {
- "x-required":true,
- "x-id":"a41f529",
- "name":"amount",
- "pId":"bcdf06f",
- "title":"出资金额",
- "type":"number",
- "x-index":2
- }
- ],
- "x-index":4,
- "items":{
- "x-required":false,
- "type":"object",
- "properties":{
- "amount":{
- "x-required":true,
- "x-id":"a41f529",
- "name":"amount",
- "title":"出资金额",
- "type":"number",
- "x-index":2
- },
- "account":{
- "x-required":true,
- "x-id":"87724ba",
- "name":"account",
- "title":"出资账户类型",
- "type":"string",
- "x-index":1
- }
- },
- "required":[
- "account",
- "amount"
- ]
- }
- },
- "currency":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"65ea3b9",
- "format":"",
- "name":"currency",
- "description":"符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。\n示例值:CNY",
- "type":"string",
- "x-index":2,
- "title":"退款币种",
- "x-unique":false,
- "maxLength":4000
- },
- "refund":{
- "x-required":true,
- "x-id":"ae4ef43",
- "name":"refund",
- "title":"退款金额",
- "type":"number",
- "x-index":3
- }
- },
- "required":[
- "refund",
- "total"
- ]
- },
- "out_trade_no":{
- "x-required":false,
- "x-id":"a8ec754",
- "name":"out_trade_no",
- "title":"商户订单号",
- "type":"string",
- "x-index":2
- },
- "out_refund_no":{
- "x-required":true,
- "x-id":"7a58a9a",
- "name":"out_refund_no",
- "title":"商户退款单号",
- "type":"string",
- "x-index":3
- },
- "funds_account":{
- "x-required":false,
- "x-id":"917d277",
- "name":"funds_account",
- "title":"退款资金来源",
- "type":"string",
- "x-index":5
- },
- "goods_detail":{
- "x-required":false,
- "x-id":"9e076fb",
- "name":"goods_detail",
- "title":"退款商品",
- "type":"array",
- "list":[
- {
- "x-required":false,
- "x-id":"a0602c9",
- "name":"goods_name",
- "pId":"9e076fb",
- "title":"商品名称",
- "type":"string",
- "x-index":1
- },
- {
- "x-required":false,
- "x-id":"78dfc51",
- "name":"wechatpay_goods_id",
- "pId":"9e076fb",
- "title":"微信支付商品编码",
- "type":"string",
- "x-index":2
- },
- {
- "x-required":true,
- "x-id":"6e24aef",
- "name":"merchant_goods_id",
- "pId":"9e076fb",
- "title":"商户侧商品编码",
- "type":"string",
- "x-index":3
- },
- {
- "x-required":true,
- "x-id":"ab0bced",
- "name":"refund_amount",
- "pId":"9e076fb",
- "title":"商品退款金额",
- "type":"number",
- "x-index":4
- },
- {
- "x-required":true,
- "x-id":"a0affba",
- "name":"unit_price",
- "pId":"9e076fb",
- "title":"商品单价",
- "type":"number",
- "x-index":5
- },
- {
- "x-required":true,
- "x-id":"afcca20",
- "name":"refund_quantity",
- "pId":"9e076fb",
- "title":"商品退货数量",
- "type":"number",
- "x-index":6
- }
- ],
- "x-index":7,
- "items":{
- "x-required":false,
- "type":"object",
- "properties":{
- "goods_name":{
- "x-required":false,
- "x-id":"a0602c9",
- "name":"goods_name",
- "title":"商品名称",
- "type":"string",
- "x-index":1
- },
- "wechatpay_goods_id":{
- "x-required":false,
- "x-id":"78dfc51",
- "name":"wechatpay_goods_id",
- "title":"微信支付商品编码",
- "type":"string",
- "x-index":2
- },
- "merchant_goods_id":{
- "x-required":true,
- "x-id":"6e24aef",
- "name":"merchant_goods_id",
- "title":"商户侧商品编码",
- "type":"string",
- "x-index":3
- },
- "refund_amount":{
- "x-required":true,
- "x-id":"ab0bced",
- "name":"refund_amount",
- "title":"商品退款金额",
- "type":"number",
- "x-index":4
- },
- "unit_price":{
- "x-required":true,
- "x-id":"a0affba",
- "name":"unit_price",
- "title":"商品单价",
- "type":"number",
- "x-index":5
- },
- "refund_quantity":{
- "x-required":true,
- "x-id":"afcca20",
- "name":"refund_quantity",
- "title":"商品退货数量",
- "type":"number",
- "x-index":6
- }
- },
- "required":[
- "merchant_goods_id",
- "refund_amount",
- "unit_price",
- "refund_quantity"
- ]
- }
- }
- },
- "required":[
- "out_refund_no",
- "amount",
- "currency"
- ]
- },
- "name":"refund",
- "calleeBody":{
- "method":"POST",
- "query":{
- "values":{
- "type":"object",
- "value":{},
- "key":"2387be55782182"
- }
- },
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "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}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/refund/domestic/refunds"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"提交退款申请后,通过调用该接口查询退款状态。退款有一定延时,建议在提交退款申请后1分钟发起查询退款状态,一般来说零钱支付的退款5分钟内到账,银行卡支付的退款1-3个工作日到账。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_10.shtml",
- "type":"http",
- "title":"查询单笔退款",
- "outParams":{
- "x-keyPath":"",
- "x-id":"mx7ko99g",
- "title":"value",
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-keyPath":"transaction_id",
- "x-id":"ha9p3id8",
- "title":"transaction_id",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"",
- "x-id":"f2pvechl",
- "title":"amount",
- "type":"object",
- "properties":{
- "payer_total":{
- "x-keyPath":"amount.payer_total",
- "x-id":"73s7baat",
- "title":"payer_total",
- "type":"number"
- },
- "settlement_total":{
- "x-keyPath":"amount.settlement_total",
- "x-id":"kybrs4b6",
- "title":"settlement_total",
- "type":"number"
- },
- "total":{
- "x-keyPath":"amount.total",
- "x-id":"fomnagov",
- "title":"total",
- "type":"number"
- },
- "payer_refund":{
- "x-keyPath":"amount.payer_refund",
- "x-id":"2qk18udx",
- "title":"payer_refund",
- "type":"number"
- },
- "refund_fee":{
- "x-keyPath":"amount.refund_fee",
- "x-id":"bo3liaaq",
- "title":"refund_fee",
- "type":"number"
- },
- "discount_refund":{
- "x-keyPath":"amount.discount_refund",
- "x-id":"2vst6zt3",
- "title":"discount_refund",
- "type":"number"
- },
- "currency":{
- "x-keyPath":"amount.currency",
- "x-id":"t91hs0kb",
- "title":"currency",
- "type":"string"
- },
- "from":{
- "x-keyPath":"amount.from",
- "x-id":"bcagbpoj",
- "title":"from",
- "type":"array",
- "items":{
- "x-keyPath":"$item",
- "x-id":"v9qhe6kf",
- "title":"value",
- "type":"string"
- }
- },
- "settlement_refund":{
- "x-keyPath":"amount.settlement_refund",
- "x-id":"d8fze7ry",
- "title":"settlement_refund",
- "type":"number"
- },
- "refund":{
- "x-keyPath":"amount.refund",
- "x-id":"te627uve",
- "title":"refund",
- "type":"number"
- }
- }
- },
- "out_trade_no":{
- "x-keyPath":"out_trade_no",
- "x-id":"hryj19fr",
- "title":"out_trade_no",
- "type":"string"
- },
- "create_time":{
- "x-keyPath":"create_time",
- "x-id":"pi8v8w8c",
- "title":"create_time",
- "type":"string"
- },
- "promotion_detail":{
- "x-keyPath":"promotion_detail",
- "x-id":"fdbojfv1",
- "title":"promotion_detail",
- "type":"array",
- "items":{
- "x-keyPath":"$item",
- "x-id":"e31qihr0",
- "title":"value",
- "type":"string"
- }
- },
- "out_refund_no":{
- "x-keyPath":"out_refund_no",
- "x-id":"zp4lp60b",
- "title":"out_refund_no",
- "type":"string"
- },
- "funds_account":{
- "x-keyPath":"funds_account",
- "x-id":"kq1kx6to",
- "title":"funds_account",
- "type":"string"
- },
- "channel":{
- "x-keyPath":"channel",
- "x-id":"uggwa6ae",
- "title":"channel",
- "type":"string"
- },
- "success_time":{
- "x-keyPath":"success_time",
- "x-id":"wm8ykfha",
- "title":"success_time",
- "type":"string"
- },
- "user_received_account":{
- "x-keyPath":"user_received_account",
- "x-id":"tykejz29",
- "title":"user_received_account",
- "type":"string"
- },
- "refund_id":{
- "x-keyPath":"refund_id",
- "x-id":"e72t4hc5",
- "title":"refund_id",
- "type":"string"
- },
- "status":{
- "x-keyPath":"status",
- "x-id":"01jj6z0g",
- "title":"status",
- "type":"string"
- }
- }
- },
- "uuid":"1a7eec48-545a-459c-8609-bac1ad3ad229",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "out_refund_no":{
- "x-required":true,
- "x-id":"7e4ae6e",
- "name":"out_refund_no",
- "title":"商户退款单号",
- "type":"string",
- "x-index":1
- }
- },
- "required":[
- "out_refund_no"
- ]
- },
- "name":"queryRefund",
- "calleeBody":{
- "method":"GET",
- "query":{
- "values":{
- "type":"object",
- "value":{},
- "key":"26a87b206815ca"
- }
- },
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{{params.out_refund_no}}"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"微信支付按天提供交易账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含交易相关的金额、时间、营销等信息,供商户核对订单、退款、银行到账等情况。\n注意:\n• 微信侧未成功下单的交易不会出现在对账单中。支付成功后撤销的交易会出现在对账单中,跟原支付单订单号一致;\n\n• 对账单中涉及金额的字段单位为“元”;\n\n• 对账单接口只能下载三个月以内的账单。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_6.shtml",
- "type":"http",
- "title":"申请交易账单",
- "outParams":{
- "x-keyPath":"",
- "x-id":"ltxic790",
- "title":"value",
- "type":"object",
- "properties":{
- "nonce_str":{
- "x-keyPath":"nonce_str",
- "x-id":"mgzlawyh",
- "title":"nonce_str",
- "type":"string"
- },
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"zrhdcfut",
- "title":"mchid",
- "type":"string"
- },
- "signature":{
- "x-keyPath":"signature",
- "x-id":"izwqs9su",
- "title":"signature",
- "type":"string"
- },
- "download_url":{
- "x-keyPath":"download_url",
- "x-id":"zngfffvw",
- "title":"download_url",
- "type":"string"
- },
- "hash_value":{
- "x-keyPath":"hash_value",
- "x-id":"tqq08jpk",
- "title":"hash_value",
- "type":"string"
- },
- "serial_no":{
- "x-keyPath":"serial_no",
- "x-id":"3df84rx5",
- "title":"serial_no",
- "type":"string"
- },
- "hash_type":{
- "x-keyPath":"hash_type",
- "x-id":"syc9mk1y",
- "title":"hash_type",
- "type":"string"
- },
- "timestamp":{
- "x-keyPath":"timestamp",
- "x-id":"34cq6u2c",
- "title":"timestamp",
- "type":"number"
- }
- }
- },
- "uuid":"e71613ad-f78d-4422-aa6a-7d7f531b58c5",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "bill_date":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"9e5ea1d",
- "name":"bill_date",
- "format":"",
- "isEnum":false,
- "description":"",
- "title":"账单日期",
- "type":"string",
- "x-index":4,
- "x-unique":false,
- "maxLength":4000
- },
- "bill_type":{
- "x-required":false,
- "x-id":"a097c83",
- "name":"bill_type",
- "title":"账单类型",
- "type":"string",
- "x-index":5
- },
- "tar_type":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"7421a85",
- "format":"",
- "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单",
- "type":"string",
- "x-index":2,
- "title":"压缩类型",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"tradebill",
- "calleeBody":{
- "method":"GET",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "bill_date":"{{params.bill_date}}",
- "bill_type":"{{params.bill_type}}",
- "tar_type":"{{params.tar_type}}"
- },
- "key":"2e99d86c1aa0de"
- }
- },
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/bill/tradebill"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"微信支付按天提供微信支付账户的资金流水账单文件,商户可以通过该接口获取账单文件的下载地址。文件内包含该账户资金操作相关的业务单号、收支金额、记账时间等信息,供商户进行核对。\n注意:\n• 资金账单中的数据反映的是商户微信支付账户资金变动情况;\n\n• 对账单中涉及金额的字段单位为“元”。\nhttps://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_5_7.shtml",
- "type":"http",
- "title":"申请资金账单",
- "outParams":{
- "x-keyPath":"",
- "x-id":"u6z5317f",
- "title":"value",
- "type":"object",
- "properties":{
- "nonce_str":{
- "x-keyPath":"nonce_str",
- "x-id":"0bbpknx3",
- "title":"nonce_str",
- "type":"string"
- },
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"k8lnw0ia",
- "title":"mchid",
- "type":"string"
- },
- "signature":{
- "x-keyPath":"signature",
- "x-id":"8yeu0now",
- "title":"signature",
- "type":"string"
- },
- "download_url":{
- "x-keyPath":"download_url",
- "x-id":"fmn0eeox",
- "title":"download_url",
- "type":"string"
- },
- "hash_value":{
- "x-keyPath":"hash_value",
- "x-id":"xc9s7wfe",
- "title":"hash_value",
- "type":"string"
- },
- "serial_no":{
- "x-keyPath":"serial_no",
- "x-id":"ok5cf3zo",
- "title":"serial_no",
- "type":"string"
- },
- "hash_type":{
- "x-keyPath":"hash_type",
- "x-id":"kbdzgfyd",
- "title":"hash_type",
- "type":"string"
- },
- "timestamp":{
- "x-keyPath":"timestamp",
- "x-id":"zf539is8",
- "title":"timestamp",
- "type":"number"
- }
- }
- },
- "uuid":"a5d6db4c-d945-4059-a3af-f10877d60d46",
- "intent":"create",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "type":"object",
- "properties":{
- "account_type":{
- "x-required":false,
- "x-id":"8d4a0d2",
- "name":"account_type",
- "title":"资金账户类型",
- "type":"string",
- "x-index":4
- },
- "bill_date":{
- "x-required":true,
- "x-id":"b78cf72",
- "name":"bill_date",
- "title":"账单日期",
- "type":"string",
- "x-index":3
- },
- "tar_type":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"9dc21c4",
- "format":"",
- "name":"tar_type",
- "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单\n示例值:GZIP",
- "isEnum":false,
- "type":"string",
- "x-index":2,
- "title":"压缩类型",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[
- "bill_date"
- ]
- },
- "name":"fundflowbill",
- "calleeBody":{
- "method":"GET",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "account_type":"{{params.account_type}}",
- "bill_date":"{{params.bill_date}}",
- "tar_type":"{{params.tar_type}}"
- },
- "key":"42f87755978d74"
- }
- },
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/bill/fundflowbill"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"微信订单支付成功后,商户发起分账请求,将结算后的资金分到分账接收方",
- "title":"请求分账",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"7nuxq09h",
- "title":"value",
- "type":"object",
- "properties":{
- "orderId":{
- "x-keyPath":"orderId",
- "x-id":"nbfhicq9",
- "title":"orderId",
- "type":"string"
- },
- "receivers":{
- "x-keyPath":"receivers",
- "x-id":"6vj5yand",
- "title":"receivers",
- "type":"array",
- "items":{
- "x-keyPath":"",
- "x-id":"s8lb1ys7",
- "title":"value",
- "type":"object",
- "properties":{
- "result":{
- "x-keyPath":"$item.result",
- "x-id":"g69m0wbj",
- "title":"result",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"$item.amount",
- "x-id":"vpih1wr4",
- "title":"amount",
- "type":"number"
- },
- "finishTime":{
- "x-keyPath":"$item.finishTime",
- "x-id":"jo3vvqex",
- "title":"finishTime",
- "type":"string"
- },
- "createTime":{
- "x-keyPath":"$item.createTime",
- "x-id":"yle5jrf9",
- "title":"createTime",
- "type":"string"
- },
- "description":{
- "x-keyPath":"$item.description",
- "x-id":"1h9n5mp1",
- "title":"description",
- "type":"string"
- },
- "detailId":{
- "x-keyPath":"$item.detailId",
- "x-id":"hoih3z2h",
- "title":"detailId",
- "type":"string"
- },
- "failReason":{
- "x-required":false,
- "x-keyPath":"$item.failReason",
- "x-id":"9621572",
- "format":"",
- "name":"failReason",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"failReason",
- "x-unique":false,
- "maxLength":4000
- },
- "type":{
- "x-keyPath":"$item.type",
- "x-id":"8z5ofbui",
- "title":"type",
- "type":"string"
- },
- "account":{
- "x-keyPath":"$item.account",
- "x-id":"s4g5tvbj",
- "title":"account",
- "type":"string"
- }
- }
- }
- },
- "state":{
- "x-keyPath":"state",
- "x-id":"vfx6lct8",
- "title":"state",
- "type":"string"
- },
- "outOrderNo":{
- "x-keyPath":"outOrderNo",
- "x-id":"ug5t8oe3",
- "title":"outOrderNo",
- "type":"string"
- },
- "transactionId":{
- "x-keyPath":"transactionId",
- "x-id":"x4nvxno6",
- "title":"transactionId",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"a5664445-4f8a-458f-be84-5edc3eddf2af",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"631300b",
- "format":"",
- "description":"微信支付订单号\n示例值:4208450740201411110007820472",
- "type":"string",
- "x-index":2,
- "title":"微信订单号",
- "x-unique":false,
- "maxLength":4000
- },
- "unfreeze_unsplit":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"8097e89",
- "format":"",
- "description":"1、如果为true,该笔订单剩余未分账的金额会解冻回分账方商户;\n2、如果为false,该笔订单剩余未分账的金额不会解冻回分账方商户,可以对该笔订单再次进行分账。",
- "type":"boolean",
- "x-index":8,
- "title":"是否解冻剩余未分资金",
- "x-unique":false
- },
- "receivers":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"7a7a5ad",
- "format":"",
- "description":"分账接收方列表,可以设置出资商户作为分账接受方,最多可有50个分账接收方",
- "type":"array",
- "x-index":6,
- "title":"分账接收方列表",
- "items":{
- "format":"",
- "type":"object",
- "properties":{
- "amount":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"657694b",
- "format":"",
- "name":"amount",
- "description":"分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额\n示例值:888",
- "type":"number",
- "x-index":6,
- "title":"分账金额",
- "x-unique":false
- },
- "name":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"67c5a8f",
- "format":"",
- "name":"name",
- "description":"可选项,在接收方类型为个人的时可选填,若有值,会检查与 name 是否实名匹配,不匹配会拒绝分账请求\n1、分账接收方类型是PERSONAL_OPENID,是个人姓名的密文(选传,传则校验) 此字段的加密方法详见:敏感信息加密说明\n2、使用微信支付平台证书中的公钥\n3、使用RSAES-OAEP算法进行加密\n4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号\n示例值:hu89ohu89ohu89o",
- "type":"string",
- "x-index":4,
- "title":"分账个人接收方姓名",
- "x-unique":false,
- "maxLength":4000
- },
- "description":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"b330ec8",
- "format":"",
- "name":"description",
- "description":"分账的原因描述,分账账单中需要体现\n示例值:分给商户A",
- "type":"string",
- "x-index":8,
- "title":"分账描述",
- "x-unique":false,
- "maxLength":4000
- },
- "type":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"9e9d0c9",
- "format":"",
- "name":"type",
- "description":"分账接收方账号:\n1、类型是MERCHANT_ID时,是商户号(mch_id或者sub_mch_id)\n2、类型是PERSONAL_OPENID时,是个人openid",
- "type":"string",
- "x-index":2,
- "title":"分账接收方类型",
- "x-unique":false,
- "maxLength":4000
- },
- "account":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"a6ff677",
- "format":"",
- "name":"account",
- "description":"分账接收方账号:\n1、类型是MERCHANT_ID时,是商户号(mch_id或者sub_mch_id)\n2、类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852",
- "type":"string",
- "x-index":10,
- "title":"分账接收方账号",
- "x-unique":false,
- "maxLength":4000
- }
- }
- },
- "x-unique":false
- },
- "out_order_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"9f7cc74",
- "format":"",
- "description":"商户系统内部的分账单号,在商户系统内部唯一,同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@\n示例值:P20150806125346",
- "type":"string",
- "x-index":4,
- "title":"商户分账单号",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"profitsharing_orders",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "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}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"发起分账请求后,可调用此接口查询分账结果",
- "title":"查询分账结果",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"ni2255xj",
- "title":"value",
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-keyPath":"transaction_id",
- "x-id":"e9wrymd9",
- "title":"transaction_id",
- "type":"string"
- },
- "receivers":{
- "x-keyPath":"receivers",
- "x-id":"uhmcyz36",
- "title":"receivers",
- "type":"array",
- "items":{
- "x-keyPath":"",
- "x-id":"gngr8moq",
- "title":"value",
- "type":"object",
- "properties":{
- "result":{
- "x-keyPath":"$item.result",
- "x-id":"n2v0avbf",
- "title":"result",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"$item.amount",
- "x-id":"4xef3loz",
- "title":"amount",
- "type":"number"
- },
- "create_time":{
- "x-keyPath":"$item.create_time",
- "x-id":"6q3elwi6",
- "title":"create_time",
- "type":"string"
- },
- "description":{
- "x-keyPath":"$item.description",
- "x-id":"j4242aim",
- "title":"description",
- "type":"string"
- },
- "detail_id":{
- "x-keyPath":"$item.detail_id",
- "x-id":"evglumbd",
- "title":"detail_id",
- "type":"string"
- },
- "type":{
- "x-keyPath":"$item.type",
- "x-id":"gjqg4geb",
- "title":"type",
- "type":"string"
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"$item. fail_reason",
- "x-id":"6606d43",
- "format":"",
- "name":"fail_reason",
- "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",
- "type":"string",
- "x-index":2,
- "title":"fail_reason",
- "x-unique":false,
- "maxLength":4000
- },
- "account":{
- "x-keyPath":"$item.account",
- "x-id":"lpw6f5vl",
- "title":"account",
- "type":"string"
- },
- "finish_time":{
- "x-keyPath":"$item.finish_time",
- "x-id":"fvwr3n2h",
- "title":"finish_time",
- "type":"string"
- }
- }
- }
- },
- "out_order_no":{
- "x-keyPath":"out_order_no",
- "x-id":"vsw9qfq5",
- "title":"out_order_no",
- "type":"string"
- },
- "state":{
- "x-keyPath":"state",
- "x-id":"cbdn951i",
- "title":"state",
- "type":"string"
- },
- "order_id":{
- "x-keyPath":"order_id",
- "x-id":"cmez7tzj",
- "title":"order_id",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"a38cbc80-33e6-451e-a62f-e650914e249c",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"b5eeeee",
- "format":"",
- "description":"微信支付订单号\n示例值:4208450740201411110007820472",
- "type":"string",
- "x-index":2,
- "title":"微信订单号",
- "x-unique":false,
- "maxLength":4000
- },
- "out_order_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"6ee57c7",
- "format":"",
- "description":"询分账结果,输入申请分账时的商户分账单号; 查询分账完结执行的结果,输入发起分账完结时的商户分账单号。\n示例值:P20150806125346",
- "type":"string",
- "x-index":4,
- "title":"商户分账单号",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"queryProfitsharingByOutTradeNo",
- "calleeBody":{
- "method":"GET",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "transaction_id":"{{params.transaction_id}}"
- },
- "key":"381e52c55a906a"
- }
- },
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders/{{params.out_order_no}}"
- },
- "isCollapse":true
- },
- {
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "amount":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"7d9baf3",
- "format":"",
- "description":"要从分账接收方回退的金额,单位为分,只能为整数,不能超过原始分账单分出给该接收方的金额\n示例值:10",
- "type":"number",
- "x-index":10,
- "title":"回退金额",
- "x-unique":false
- },
- "out_order_no":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"9a395e8",
- "format":"",
- "description":"原发起分账请求时使用的商户系统内部的分账单号。微信分账单号与商户分账单号二选一填写\n示例值:P20150806125346",
- "type":"string",
- "x-index":4,
- "title":"商户分账单号",
- "x-unique":false,
- "maxLength":4000
- },
- "out_return_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"bc13703",
- "format":"",
- "description":"此回退单号是商户在自己后台生成的一个新的回退单号,在商户后台唯一\n示例值:R20190516001",
- "type":"string",
- "x-index":6,
- "title":"商户回退单号",
- "x-unique":false,
- "maxLength":4000
- },
- "description":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"6ecc33a",
- "format":"",
- "description":"账回退的原因描述\n示例值:用户退款",
- "type":"string",
- "x-index":12,
- "title":"回退描述",
- "x-unique":false,
- "maxLength":4000
- },
- "return_mchid":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"6f0485b",
- "format":"",
- "description":"分账接口中的分账接收方商户号\n示例值:86693852",
- "type":"string",
- "x-index":8,
- "title":"回退商户号",
- "x-unique":false,
- "maxLength":4000
- },
- "order_id":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"8f099a3",
- "format":"",
- "description":"微信分账单号,微信支付系统返回的唯一标识。\n示例值:3008450740201411110007820472",
- "type":"string",
- "x-index":2,
- "title":"微信分账单号",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "isTitleInValid":false,
- "name":"profitsharingReturnOrders",
- "title":"请求分账回退",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"ql2w3xcg",
- "title":"value",
- "type":"object",
- "properties":{
- "result":{
- "x-keyPath":"result",
- "x-id":"4b773zmv",
- "title":"result",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"amount",
- "x-id":"3jjmv3g3",
- "title":"amount",
- "type":"number"
- },
- "create_time":{
- "x-keyPath":"create_time",
- "x-id":"pusm93l4",
- "title":"create_time",
- "type":"string"
- },
- "description":{
- "x-keyPath":"description",
- "x-id":"63v7w206",
- "title":"description",
- "type":"string"
- },
- "out_order_no":{
- "x-keyPath":"out_order_no",
- "x-id":"fgeaw1s5",
- "title":"out_order_no",
- "type":"string"
- },
- "out_return_no":{
- "x-keyPath":"out_return_no",
- "x-id":"g3fvtrwm",
- "title":"out_return_no",
- "type":"string"
- },
- "return_id":{
- "x-keyPath":"return_id",
- "x-id":"7xbkw6ho",
- "title":"return_id",
- "type":"string"
- },
- "return_mchid":{
- "x-keyPath":"return_mchid",
- "x-id":"a4qmcntk",
- "title":"return_mchid",
- "type":"string"
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"fail_reason",
- "x-id":"b0bd2c3",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"fail_reason",
- "x-unique":false,
- "maxLength":4000
- },
- "order_id":{
- "x-keyPath":"order_id",
- "x-id":"57d7y2w8",
- "title":"order_id",
- "type":"string"
- },
- "finish_time":{
- "x-keyPath":"finish_time",
- "x-id":"v3qdhdew",
- "title":"finish_time",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{{params}}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/return-orders"
- },
- "isCollapse":true,
- "uuid":"aef7ff46-24e4-4e5c-b44a-c031369cf9ff",
- "isNameInValid":false,
- "isShow":true
- },
- {
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "out_return_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"7d9659b",
- "format":"",
- "description":"调用回退接口提供的商户系统内部的回退单号\n示例值:R20190516001",
- "type":"string",
- "x-index":2,
- "title":"商户回退单号",
- "x-unique":false,
- "maxLength":4000
- },
- "out_order_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"8dd4021",
- "format":"",
- "description":"原发起分账请求时使用的商户系统内部的分账单号\n示例值:P20190806125346",
- "type":"string",
- "x-index":4,
- "title":"商户分账单号",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "isTitleInValid":false,
- "name":"queryProfitsharingReturnOrders",
- "title":"查询分账回退结果",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"h2rtn2ml",
- "title":"value",
- "type":"object",
- "properties":{
- "result":{
- "x-keyPath":"result",
- "x-id":"e5q0ju9e",
- "title":"result",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"amount",
- "x-id":"bnc6mcez",
- "title":"amount",
- "type":"number"
- },
- "create_time":{
- "x-keyPath":"create_time",
- "x-id":"3er62ix9",
- "title":"create_time",
- "type":"string"
- },
- "description":{
- "x-keyPath":"description",
- "x-id":"asrm9yrp",
- "title":"description",
- "type":"string"
- },
- "out_order_no":{
- "x-keyPath":"out_order_no",
- "x-id":"hboeonyy",
- "title":"out_order_no",
- "type":"string"
- },
- "out_return_no":{
- "x-keyPath":"out_return_no",
- "x-id":"c245mvs1",
- "title":"out_return_no",
- "type":"string"
- },
- "return_id":{
- "x-keyPath":"return_id",
- "x-id":"9s0xneta",
- "title":"return_id",
- "type":"string"
- },
- "return_mchid":{
- "x-keyPath":"return_mchid",
- "x-id":"omf722ym",
- "title":"return_mchid",
- "type":"string"
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"fail_reason",
- "x-id":"8eab02f",
- "format":"",
- "description":"",
- "type":"string",
- "x-index":2,
- "title":"fail_reason",
- "x-unique":false,
- "maxLength":4000
- },
- "order_id":{
- "x-keyPath":"order_id",
- "x-id":"six3i353",
- "title":"order_id",
- "type":"string"
- },
- "finish_time":{
- "x-keyPath":"finish_time",
- "x-id":"gulc35u6",
- "title":"finish_time",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "calleeBody":{
- "method":"GET",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "out_order_no":"{{params.out_order_no}}"
- },
- "key":"2a524acaf4b354"
- }
- },
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/return-orders/{{params.out_return_no}}"
- },
- "isCollapse":true,
- "uuid":"cdcd5b10-29c8-431a-aba2-d9bd906b3088",
- "isNameInValid":false,
- "isShow":true
- },
- {
- "isTitleInValid":false,
- "description":"不需要进行分账的订单,可直接调用本接口将订单的金额全部解冻给本商户",
- "title":"解冻剩余资金",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"y70o8tsx",
- "title":"value",
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-keyPath":"transaction_id",
- "x-id":"9kuzi4i2",
- "title":"transaction_id",
- "type":"string"
- },
- "receivers":{
- "x-keyPath":"receivers",
- "x-id":"io3b5r6q",
- "title":"receivers",
- "type":"array",
- "items":{
- "x-keyPath":"",
- "x-id":"y4xreuje",
- "title":"value",
- "type":"object",
- "properties":{
- "result":{
- "x-keyPath":"$item.result",
- "x-id":"3ewfc0db",
- "title":"result",
- "type":"string"
- },
- "amount":{
- "x-keyPath":"$item.amount",
- "x-id":"6yss66sb",
- "title":"amount",
- "type":"number"
- },
- "create_time":{
- "x-keyPath":"$item.create_time",
- "x-id":"un7tzpr4",
- "title":"create_time",
- "type":"string"
- },
- "description":{
- "x-keyPath":"$item.description",
- "x-id":"lk6tgsmc",
- "title":"description",
- "type":"string"
- },
- "detail_id":{
- "x-keyPath":"$item.detail_id",
- "x-id":"rlz1mfji",
- "title":"detail_id",
- "type":"string"
- },
- "type":{
- "x-keyPath":"$item.type",
- "x-id":"vowr8wu6",
- "title":"type",
- "type":"string"
- },
- "fail_reason":{
- "x-required":false,
- "x-keyPath":"$item.fail_reason",
- "x-id":"65250a4",
- "format":"",
- "name":"fail_reason",
- "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",
- "type":"string",
- "x-index":2,
- "title":"fail_reason",
- "x-unique":false,
- "maxLength":4000
- },
- "account":{
- "x-keyPath":"$item.account",
- "x-id":"dbojnt0g",
- "title":"account",
- "type":"string"
- },
- "finish_time":{
- "x-keyPath":"$item.finish_time",
- "x-id":"dg3oln9r",
- "title":"finish_time",
- "type":"string"
- }
- }
- }
- },
- "out_order_no":{
- "x-keyPath":"out_order_no",
- "x-id":"jo24hxw7",
- "title":"out_order_no",
- "type":"string"
- },
- "state":{
- "x-keyPath":"state",
- "x-id":"virf5jyq",
- "title":"state",
- "type":"string"
- },
- "order_id":{
- "x-keyPath":"order_id",
- "x-id":"djv1qc0f",
- "title":"order_id",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"8a079b26-a9f2-427d-9ffc-457c5d11cd9b",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"8c96058",
- "format":"",
- "description":"微信支付订单号\n示例值:4208450740201411110007820472",
- "type":"string",
- "x-index":2,
- "title":"微信订单号",
- "x-unique":false,
- "maxLength":4000
- },
- "out_order_no":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"ab8babd",
- "format":"",
- "description":"商户系统内部的分账单号,在商户系统内部唯一,同一分账单号多次请求等同一次。只能是数字、大小写字母_-|*@\n示例值:P20150806125346",
- "type":"string",
- "x-index":4,
- "title":"商户分账单号",
- "x-unique":false,
- "maxLength":4000
- },
- "description":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"841a802",
- "format":"",
- "description":"账的原因描述,分账账单中需要体现\n示例值:解冻全部剩余资金",
- "type":"string",
- "x-index":6,
- "title":"分账描述",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"profitsharingOrdersUnfreeze",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{{params}}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/orders/unfreeze"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"可调用此接口查询订单剩余待分金额",
- "title":"查询剩余待分金额",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"dm3x5xxp",
- "title":"value",
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-keyPath":"transaction_id",
- "x-id":"u0lxkt0k",
- "title":"transaction_id",
- "type":"string"
- },
- "unsplit_amount":{
- "x-keyPath":"unsplit_amount",
- "x-id":"ys1pelif",
- "title":"unsplit_amount",
- "type":"number"
- }
- }
- },
- "intent":"create",
- "uuid":"c7a11760-bb58-484e-b8ef-6382ca8ff2ac",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "transaction_id":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"84236c2",
- "format":"",
- "description":"微信支付订单号\n示例值:4208450740201411110007820472",
- "type":"string",
- "x-index":2,
- "title":"微信订单号",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"queryProfitsharingTransactions",
- "calleeBody":{
- "method":"GET",
- "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};",
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/transactions/{{params.transaction_id}}/amounts"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户发起添加分账接收方请求,建立分账接收方列表。后续可通过发起分账请求,将分账方商户结算后的资金,分到该分账接收方",
- "title":"添加分账接收方",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"imzpclsr",
- "title":"value",
- "type":"object",
- "properties":{
- "relationType":{
- "x-keyPath":"relationType",
- "x-id":"9vd2kb61",
- "title":"relationType",
- "type":"string"
- },
- "customRelation":{
- "x-keyPath":"customRelation",
- "x-id":"eg2eivqc",
- "title":"customRelation",
- "type":"string"
- },
- "name":{
- "x-keyPath":"name",
- "x-id":"nyoeic03",
- "title":"name",
- "type":"string"
- },
- "type":{
- "x-keyPath":"type",
- "x-id":"qozqljxd",
- "title":"type",
- "type":"string"
- },
- "account":{
- "x-keyPath":"account",
- "x-id":"i3yhwjwn",
- "title":"account",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"f9c969e6-49ec-4d5a-9750-1bc5a2cb6bc0",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "custom_relation":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"ba1f2d6",
- "format":"",
- "description":"子商户与接收方具体的关系,本字段最多10个字。\n当字段relation_type的值为CUSTOM时,本字段必填;\n当字段relation_type的值不为CUSTOM时,本字段无需填写。\n示例值:代理商",
- "type":"string",
- "x-index":10,
- "title":"自定义的分账关系",
- "x-unique":false,
- "maxLength":4000
- },
- "name":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"a5d0917",
- "format":"",
- "description":"分账接收方类型是MERCHANT_ID时,是商户全称(必传),当商户是小微商户或个体户时,是开户人姓名 分账接收方类型是PERSONAL_OPENID时,是个人姓名(选传,传则校验)\n1、此字段需要加密,加密方法详见:敏感信息加密说明\n2、使用微信支付平台证书中的公钥:获取平台证书\n3、使用RSAES-OAEP算法进行加密\n4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号\n示例值:hu89ohu89ohu89o",
- "type":"string",
- "x-index":6,
- "title":"分账个人接收方姓名",
- "x-unique":false,
- "maxLength":4000
- },
- "relation_type":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"ae9c816",
- "format":"",
- "description":"子商户与接收方的关系。 本字段值为枚举:\nSTORE:门店\nSTAFF:员工\nSTORE_OWNER:店主\nPARTNER:合作伙伴\nHEADQUARTER:总部\nBRAND:品牌方\nDISTRIBUTOR:分销商\nUSER:用户\nSUPPLIER: 供应商\nCUSTOM:自定义\n示例值:STORE",
- "type":"string",
- "x-index":8,
- "title":"与分账方的关系类型",
- "x-unique":false,
- "maxLength":4000
- },
- "type":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"ac42331",
- "format":"",
- "description":"枚举值:\nMERCHANT_ID:商户ID\nPERSONAL_OPENID:个人openid(由父商户APPID转换得到)\n示例值:MERCHANT_ID",
- "type":"string",
- "x-index":2,
- "title":"分账接收方类型",
- "x-unique":false,
- "maxLength":4000
- },
- "account":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"93a24e3",
- "format":"",
- "description":"型是MERCHANT_ID时,是商户号\n类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852",
- "type":"string",
- "x-index":4,
- "title":"分账接收方账号",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"addProfitsharingReceivers",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "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}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/receivers/add"
- },
- "isCollapse":true
- },
- {
- "isTitleInValid":false,
- "description":"商户发起删除分账接收方请求。删除后,不支持将分账方商户结算后的资金,分到该分账接收方",
- "title":"删除分账接收方",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"fzplnriq",
- "title":"value",
- "type":"object",
- "properties":{
- "type":{
- "x-keyPath":"type",
- "x-id":"4oqiu65w",
- "title":"type",
- "type":"string"
- },
- "account":{
- "x-keyPath":"account",
- "x-id":"pp0xx0dx",
- "title":"account",
- "type":"string"
- }
- }
- },
- "intent":"create",
- "uuid":"5b426592-2957-4f24-9f5f-2f405b101761",
- "isNameInValid":false,
- "isShow":true,
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "type":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"a25cf4c",
- "format":"",
- "description":"枚举值:\nMERCHANT_ID:商户ID\nPERSONAL_OPENID:个人openid(由父商户APPID转换得到)\n示例值:MERCHANT_ID",
- "type":"string",
- "x-index":2,
- "title":"分账接收方类型",
- "x-unique":false,
- "maxLength":4000
- },
- "account":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"6c79749",
- "format":"",
- "description":"类型是MERCHANT_ID时,是商户号\n类型是PERSONAL_OPENID时,是个人openid\nopenid获取方法\n示例值:86693852",
- "type":"string",
- "x-index":4,
- "title":"分账接收方账号",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "name":"deleteProfitsharingReceivers",
- "calleeBody":{
- "method":"POST",
- "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};",
- "isUrlInValid":true,
- "body":{
- "values":{
- "type":"string",
- "value":"{\n \"appid\": \"{{vars.appid}}\",\n \"type\": \"{{params.type}}\",\n \"account\": \"{{params.account}}\"\n}",
- "key":"json"
- },
- "contentType":"json"
- },
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/receivers/delete"
- },
- "isCollapse":true
- },
- {
- "inParams":{
- "additionalProperties":true,
- "type":"object",
- "properties":{
- "bill_date":{
- "x-required":true,
- "x-keyPath":"",
- "x-id":"abc1036",
- "format":"",
- "description":"格式yyyy-MM-DD\n仅支持三个月内的账单下载申请。\n示例值:2019-06-11",
- "type":"string",
- "x-index":2,
- "title":"账单日期\t",
- "x-unique":false,
- "maxLength":4000
- },
- "tar_type":{
- "x-required":false,
- "x-keyPath":"",
- "x-id":"9465226",
- "format":"",
- "description":"不填则默认是数据流\n枚举值:\nGZIP:返回格式为.gzip的压缩包账单\n示例值:GZIP",
- "type":"string",
- "x-index":4,
- "title":"压缩类型",
- "x-unique":false,
- "maxLength":4000
- }
- },
- "required":[]
- },
- "isTitleInValid":false,
- "name":"queryProfitsharingBills",
- "title":"申请分账账单",
- "type":"http",
- "outParams":{
- "x-keyPath":"",
- "x-id":"gds4il9q",
- "title":"value",
- "type":"object",
- "properties":{
- "nonce_str":{
- "x-keyPath":"nonce_str",
- "x-id":"gjwt1vkh",
- "title":"nonce_str",
- "type":"string"
- },
- "mchid":{
- "x-keyPath":"mchid",
- "x-id":"qp4nuvuz",
- "title":"mchid",
- "type":"string"
- },
- "signature":{
- "x-keyPath":"signature",
- "x-id":"eefl56ug",
- "title":"signature",
- "type":"string"
- },
- "download_url":{
- "x-keyPath":"download_url",
- "x-id":"e1p8qpdg",
- "title":"download_url",
- "type":"string"
- },
- "hash_value":{
- "x-keyPath":"hash_value",
- "x-id":"dy9mgifw",
- "title":"hash_value",
- "type":"string"
- },
- "serial_no":{
- "x-keyPath":"serial_no",
- "x-id":"lb16ifcm",
- "title":"serial_no",
- "type":"string"
- },
- "hash_type":{
- "x-keyPath":"hash_type",
- "x-id":"471qrv9l",
- "title":"hash_type",
- "type":"string"
- },
- "timestamp":{
- "x-keyPath":"timestamp",
- "x-id":"8wi185yj",
- "title":"timestamp",
- "type":"number"
- }
- }
- },
- "intent":"create",
- "calleeBody":{
- "method":"GET",
- "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};",
- "query":{
- "values":{
- "type":"object",
- "value":{
- "bill_date":"{{params.bill_date}}",
- "tar_type":"{{params.tar_type}}"
- },
- "key":"372a546fc30bfa"
- }
- },
- "isUrlInValid":true,
- "url":"https://api.mch.weixin.qq.com/v3/profitsharing/bills"
- },
- "isCollapse":true,
- "uuid":"6c7d08e5-14f7-4710-9460-c15b9d6838ac",
- "isNameInValid":false,
- "isShow":true
- }
- ],
- "name":"wxpay_order_apis_4tp3344",
- "pkgId":"honghgaier-5guiffgcf17a2eea",
- "templateCode":"weixinpaydc",
- "title":"wxpay-微信支付APIs",
- "type":"cloud-integration",
- "version":"1.0"
- }
|