1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'ROA', 'product' => 'linkedmall', 'version' => '2023-09-30'],
'directories' => [
[
'children' => ['ListPurchaserShops', 'GetPurchaserShop'],
'type' => 'directory',
'title' => '采购店铺',
'id' => 303558,
],
[
'children' => ['GetSelectionProduct', 'ListSelectionProducts', 'GetSelectionProductSaleInfo', 'ListSelectionProductSaleInfos', 'ListSelectionSkuSaleInfos', 'ListCategories', 'SearchProducts', 'SelectionGroupAddProduct', 'SelectionGroupRemoveProduct'],
'type' => 'directory',
'title' => '商品',
'id' => 303561,
],
[
'children' => ['SplitPurchaseOrder', 'RenderPurchaseOrder', 'CreatePurchaseOrder', 'GetPurchaseOrderStatus'],
'type' => 'directory',
'title' => '采购单',
'id' => 303621,
],
[
'children' => ['GetOrder', 'QueryOrders', 'ListLogisticsOrders', 'ConfirmDisburse'],
'type' => 'directory',
'title' => '订单',
'id' => 303646,
],
[
'children' => ['RenderRefundOrder', 'CreateRefundOrder', 'CancelRefundOrder', 'GetRefundOrder', 'CreateGoodsShippingNotice'],
'type' => 'directory',
'title' => '售后单',
'id' => 303664,
],
[
'children' => ['QueryChildDivisionCode'],
'type' => 'directory',
'title' => '区域编码',
'id' => 303678,
],
],
'components' => [
'schemas' => [
'AddressInfo' => [
'title' => '地址',
'description' => '收货地址',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => '三级地址code(建议必填)', 'description' => '四级地址code(区/县级,建议必填)', 'type' => 'string', 'required' => false, 'example' => '330106'],
'addressDetail' => ['title' => '收货地址详细地址', 'description' => '收货地址详细地址(建议以省/市/区县/街道/小区的格式填写完整地址信息)', 'type' => 'string', 'required' => true, 'example' => '陕西省西安市新城区xx街道xxx大厦xx室'],
'receiverPhone' => ['title' => '收货人电话', 'description' => '收货人电话', 'type' => 'string', 'required' => true, 'example' => '182***5674'],
'townDivisionCode' => ['title' => '四级地址code(建议必填)', 'description' => '五级地址code(乡镇/街道级,必填)', 'type' => 'string', 'required' => false, 'example' => '330106109'],
'receiver' => ['title' => '收货人', 'description' => '收货人', 'type' => 'string', 'required' => true, 'example' => '任先生'],
'addressId' => ['title' => '地址ID', 'description' => '地址ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'],
],
],
'ApplyReason' => [
'title' => '申请理由',
'description' => '申请退款原因',
'type' => 'object',
'properties' => [
'reasonTextId' => ['title' => '理由ID', 'description' => '理由ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '403769'],
'reasonTips' => ['title' => '理由文本', 'description' => '理由文本', 'type' => 'string', 'required' => false, 'example' => '不想要了'],
],
],
'Category' => [
'description' => '类目链',
'type' => 'object',
'properties' => [
'name' => ['title' => '类目名称', 'description' => '类目名称', 'type' => 'string', 'required' => false, 'example' => '名称测试'],
'isLeaf' => ['title' => '是否叶子类目', 'description' => '是否叶子类目', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'level' => ['title' => '层级', 'description' => '层级', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
'categoryId' => ['title' => '类目id', 'description' => '类目id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '201792301'],
'parentId' => ['title' => '父类id', 'description' => '父类id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'],
],
],
'CategoryListQuery' => [
'title' => '类目查询参数',
'description' => '类目查询参数',
'type' => 'object',
'properties' => [
'parentCategoryId' => ['title' => '父类目id', 'description' => '父类目id', 'type' => 'integer', 'format' => 'int64', 'example' => '5200001'],
'categoryIds' => [
'title' => '类目id集合',
'description' => '类目id集合',
'type' => 'array',
'items' => ['description' => '类目ID'."\n"
.'> 单次查询类目ID数量上限为50个', 'type' => 'integer', 'format' => 'int64', 'example' => '5200067'],
],
],
],
'CategoryListResult' => [
'title' => '类目查询结果',
'description' => '类目',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string'],
'categories' => [
'title' => '类目集合',
'description' => '类目集合',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/Category', 'description' => ''],
],
],
],
'ConfirmDisburseCmd' => [
'title' => '确认收货入参',
'description' => '确认收货入参'."\n"
.'> '."\n"
.'> - 当purchaseOrderId字段与orderId字段均传入时,系统以purchaseOrderId字段为准,即确收该采购单下所有订单。',
'type' => 'object',
'properties' => [
'orderId' => ['title' => '主分销订单号', 'description' => '主分销订单号', 'type' => 'string', 'required' => false, 'example' => '6692****5457'],
'purchaseOrderId' => ['title' => '分销交易号', 'description' => '分销交易号', 'type' => 'string', 'required' => false, 'example' => '6692****5696'],
'disputeId' => ['type' => 'string'],
],
],
'ConfirmDisburseResult' => [
'title' => '确认收货结果',
'description' => '确认收货结果',
'type' => 'object',
'properties' => [
'result' => ['title' => '确认收货返回结果', 'description' => '确认收货返回结果', 'type' => 'string', 'required' => false, 'example' => 'success'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'CooperationShop' => [
'title' => '合作方店铺',
'description' => '合作方店铺',
'type' => 'object',
'properties' => [
'shopId' => ['title' => '店铺id', 'description' => '店铺id', 'type' => 'string'],
'cooperationCompanyId' => ['title' => '合作企业id', 'description' => '合作企业id', 'type' => 'string'],
'cooperationShopId' => ['title' => '合作店铺id', 'description' => '合作店铺id', 'type' => 'string'],
],
],
'DeliveryInfo' => [
'title' => '履约信息',
'description' => '履约信息',
'type' => 'object',
'properties' => [
'postFee' => ['title' => '运费金额', 'description' => '运费金额', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0'],
'serviceType' => ['title' => 'serviceType', 'description' => '邮递服务类型', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '-4'],
'id' => ['title' => '唯一ID', 'description' => '唯一ID', 'type' => 'string', 'required' => false, 'example' => '20'],
'displayName' => ['title' => '显示名称', 'description' => '显示名称', 'type' => 'string', 'required' => false, 'example' => '快递 免邮'],
],
],
'DistributionMaxRefundFee' => [
'title' => '退费金额',
'description' => '退款费用',
'type' => 'object',
'properties' => [
'minRefundFee' => ['title' => '本单最小可退款金额', 'description' => '本单最小可退款金额', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'maxRefundFee' => ['title' => '本单最大可退款金额', 'description' => '本单最大可退款金额', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
],
],
'Division' => [
'title' => '区域信息',
'description' => 'divisionList',
'type' => 'object',
'properties' => [
'divisionName' => ['title' => '地址名称', 'description' => '地址名称', 'type' => 'string', 'required' => false, 'example' => '上海'],
'divisionCode' => ['title' => '地址编码', 'description' => '地址编码', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '310000'],
'divisionLevel' => ['title' => '地址等级', 'description' => '地址等级', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2'],
'pinyin' => ['title' => '地址拼音', 'description' => '地址拼音', 'type' => 'string', 'required' => false, 'example' => 'shang hai'],
'parentId' => ['title' => '父级ID', 'description' => '父级ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
],
'DivisionPageResult' => [
'title' => '区域分页返回',
'description' => '区域分页返回',
'type' => 'object',
'properties' => [
'divisionList' => [
'title' => '区域集合',
'description' => '区域集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/Division', 'description' => ''],
'required' => false,
],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'DivisionQuery' => [
'title' => '区域查询',
'description' => '区域查询',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => 'divisionCode', 'description' => '区域码', 'type' => 'string', 'required' => true, 'example' => '1', 'default' => '1'],
],
],
'EticketInfo' => [
'description' => '卡券电子凭证',
'type' => 'object',
'properties' => [
'code' => ['description' => '卡券电子凭证Code', 'type' => 'string', 'example' => 'taobao******tpg'],
'qrcodeUrl' => ['description' => '卡券电子凭证二维码图片链接'."\n"
.'> 目前该字段没有值,分销商需要根据`code`字段自行生成二维码', 'type' => 'string', 'example' => 'http://qrcode.alicdn.com/img.jpg'],
'codeStatus' => [
'description' => '卡券电子凭证状态'."\n"
.'> 枚举值:'."\n"
.'> - 1(有效)'."\n"
.'> - -1(已核销)'."\n"
.'> - -2(已失效)'."\n"
.'> - -5(已失效)'."\n"
.'> - -8(已失效)',
'type' => 'integer',
'format' => 'int64',
'enumValueTitles' => [1 => '有效', -1 => '已核销', -2 => '已失效', -5 => '已失效', -8 => '已失效'],
'example' => "\n"
.'-1',
],
'startTime' => ['description' => '卡券电子凭证有效期起始时间', 'type' => 'string', 'example' => "\n"
.'2026-02-04T00:00:00.000+08:00'],
'endTime' => ['description' => '卡券电子凭证有效期结束时间', 'type' => 'string', 'example' => '2026-08-02T23:59:59.000+08:00'],
'usedNum' => ['description' => '卡券电子凭证已核销份数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'useTime' => ['description' => '卡券电子凭证核销时间', 'type' => 'string', 'example' => "\n"
.'2026-02-04T15:07:59.000+08:00'],
'lockNum' => ['description' => '锁定状态的卡券电子凭证份数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'availableNum' => ['description' => '未核销卡券电子凭证数量', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
'GeneralBill' => [
'description' => '账单',
'type' => 'object',
'properties' => [
'totalAmount' => ['required' => false, '$ref' => '#/components/schemas/Money', 'description' => ''],
'gmtModified' => ['title' => '账单修改时间', 'description' => '账单修改时间', 'type' => 'string', 'required' => false],
'billId' => ['title' => '账单id', 'description' => '账单id', 'type' => 'string', 'required' => false],
'downloadUrl' => [
'title' => '明细下载地址',
'description' => '明细下载地址',
'type' => 'array',
'items' => ['title' => '明细下载地址', 'description' => '明细下载地址', 'type' => 'string', 'required' => false],
'required' => false,
],
'shopName' => ['title' => '店铺名称', 'description' => '店铺名称', 'type' => 'string', 'required' => false],
'startTime' => ['title' => '账期开始时间', 'description' => '账期开始时间', 'type' => 'string', 'required' => false],
'endTime' => ['title' => '账期结束时间', 'description' => '账期结束时间', 'type' => 'string', 'required' => false],
'shopId' => ['title' => '店铺id', 'description' => '店铺id', 'type' => 'string', 'required' => false],
'gmtCreate' => ['title' => '账单创建时间', 'description' => '账单创建时间', 'type' => 'string', 'required' => false],
'billPeriod' => ['title' => '账期', 'description' => '账期', 'type' => 'string', 'required' => false],
],
],
'GeneralBillPageQuery' => [
'title' => '账单查询入参',
'description' => '账单查询入参',
'type' => 'object',
'properties' => [
'asc' => ['title' => 'asc', 'description' => 'asc', 'type' => 'boolean', 'required' => false],
'pageNumber' => ['title' => 'pageNumber', 'description' => 'pageNumber', 'type' => 'integer', 'format' => 'int32', 'required' => false],
'billId' => ['title' => 'billId', 'description' => 'billId', 'type' => 'string', 'required' => false],
'limit' => ['title' => 'limit', 'description' => 'limit', 'type' => 'integer', 'format' => 'int32', 'required' => false],
'start' => ['title' => 'start', 'description' => 'start', 'type' => 'integer', 'format' => 'int32', 'required' => false],
'orderBy' => ['title' => 'orderBy', 'description' => 'orderBy', 'type' => 'string', 'required' => false],
'orderDirection' => ['title' => 'orderDirection', 'description' => 'orderDirection', 'type' => 'string', 'required' => false],
'pageSize' => ['title' => 'pageSize', 'description' => 'pageSize', 'type' => 'integer', 'format' => 'int32', 'required' => false],
'shopId' => ['title' => 'shopId', 'description' => 'shopId', 'type' => 'string', 'required' => false],
'billPeriod' => ['title' => 'billPeriod', 'description' => 'billPeriod', 'type' => 'string', 'required' => false],
],
],
'GeneralBillPageResult' => [
'title' => '账单查询结果',
'description' => '账单查询结果',
'type' => 'object',
'properties' => [
'pageSize' => ['title' => '页大小', 'description' => '页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false],
'total' => ['title' => '总数量', 'description' => '总数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '24'],
'pageNumber' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => false],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '3239281273464326823'],
'generalBills' => [
'title' => '账单集合',
'description' => '账单集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/GeneralBill', 'description' => ''],
'required' => false,
],
],
],
'Good' => [
'description' => '货品集合',
'type' => 'object',
'properties' => [
'goodName' => ['title' => '货品名称', 'description' => '货品名称', 'type' => 'string', 'required' => false, 'example' => '儿童学习桌'],
'productId' => ['title' => '商品ID', 'description' => '商品ID', 'type' => 'string', 'required' => false, 'example' => '6600****6736'],
'quantity' => ['title' => '数量', 'description' => '数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'skuId' => ['title' => 'skuId', 'description' => 'skuId', 'type' => 'string', 'example' => '7232****2321'],
'skuTitle' => ['title' => 'sku标题', 'description' => 'sku标题', 'type' => 'string', 'example' => '白色'],
],
],
'GoodsShippingNoticeCreateCmd' => [
'title' => '提交物流入参',
'description' => '提交物流入参',
'type' => 'object',
'properties' => [
'cpCode' => [
'title' => '公司代码',
'description' => '公司代码',
'type' => 'string',
'required' => true,
'enumValueTitles' => [
'TAOBAO' => '淘宝物流', 'YUNDA' => '韵达快递', 'ZJS' => '宅急送', 'FEDEX' => '联邦快递', 'ZTKY' => '中铁物流', 'POST' => '中国邮政', 'DBKD' => '德邦物流', 'EMS' => 'EMS', 'JT' => '极兔物流', 'QFKD' => '全峰快递',
'POSTB' => '邮政快递包裹', 'EYB' => '邮政电商标快EYB', 'STO' => '申通快递', 'OTHER' => '其他', 'SF' => '顺丰速运', 'ZTO' => '中通快递', 'YTO' => '圆通快递', 'TTKDEX' => '天天快递', 'JDLEx' => '京东快递', 'CNDJWL' => '菜鸟大件物流',
'TN' => '特能', 'HTKY' => '百世快递', 'SHQ' => '华强物流', 'ZMKM' => '菜鸟速递',
],
'example' => 'SF',
],
'logisticsNo' => ['title' => '物流单号', 'description' => '物流单号', 'type' => 'string', 'required' => true, 'example' => 'SF145****4353'],
'disputeId' => ['title' => '纠纷ID', 'description' => '纠纷ID', 'type' => 'string', 'required' => true, 'example' => '6693****4352'],
],
],
'GoodsShippingNoticeCreateResult' => [
'title' => '提交物流结果',
'description' => '提交物流结果',
'type' => 'object',
'properties' => [
'result' => ['title' => '提交物流信息返回结果', 'description' => '提交物流信息返回结果', 'type' => 'string', 'required' => false, 'example' => 'success'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'LeavePictureList' => [
'title' => '图片信息',
'description' => '凭证',
'type' => 'object',
'properties' => [
'picture' => ['title' => '图片地址', 'description' => '售后凭证图片><notice>如售后单渲染接口返回必传售后图片,则为必传></notice>', 'type' => 'string', 'required' => false, 'example' => 'https://img.alicdn.com/imgextra/i3/221428******/O1CN01w4vomR1QYYE*******_!!221428*******.jpg'],
'desc' => ['title' => '描述', 'description' => '描述><notice>如售后单渲染接口返回必传留言描述,则为必传></notice>', 'type' => 'string', 'required' => false, 'example' => '外观破损了。'],
],
],
'LimitRule' => [
'title' => '限购配置',
'description' => '限购规则',
'type' => 'object',
'properties' => [
'ruleType' => [
'title' => '限购类型',
'description' => '限购类型',
'type' => 'string',
'enumValueTitles' => ['UpperNumberPerUserPeriod' => '周期总量限购', 'LowerNumberPerBuy' => '单次限购最低购买数量', 'UpperNumberPerBuy' => '单次限购', 'UpperNumberPerUser' => '总量限购'],
'example' => 'UpperNumberPerUser',
],
'limitNum' => ['title' => '限购数量', 'description' => '限购数量'."\n"
.'> 同一时间,如有多条限购有效时,最终限购数量为最小值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
'beginTime' => ['title' => '生效开始时间', 'description' => '生效开始时间'."\n"
.'> 时间戳:毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1724947200000'],
'endTime' => ['title' => '生效截止时间', 'description' => '生效截止时间'."\n"
.'> 时间戳:毫秒', 'type' => 'integer', 'format' => 'int64', 'example' => '1724947200000'],
'condcase' => [
'title' => '周期条件',
'description' => '周期条件'."\n"
.'> ruleType值为UpperNumberPerUserPeriod时,该字段有效',
'type' => 'string',
'enumValueTitles' => ['Null' => 'Null', 'week' => '每周', 'month' => '每月', 'day' => '每天'],
'example' => 'day',
],
],
],
'LogisticsDetail' => [
'title' => '物流详情',
'description' => '物流详情集合',
'type' => 'object',
'properties' => [
'ocurrTimeStr' => ['title' => '物流发生时间', 'description' => '物流发生时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-11T12:22:24.000+08:00'],
'standerdDesc' => ['title' => '物流描述信息', 'description' => '物流描述信息', 'type' => 'string', 'required' => false, 'example' => '已签收'],
],
],
'LogisticsInformationData' => [
'title' => 'A short description of struct',
'description' => '物流信息',
'type' => 'object',
'properties' => [
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'example' => 'PID22000009'],
'trackingCompanyCode' => ['title' => '快递公司代码', 'description' => '快递公司代码', 'type' => 'string', 'example' => 'SF'],
'trackingCompanyName' => ['title' => '快递公司名称', 'description' => '快递公司名称', 'type' => 'string', 'example' => '顺丰快递'],
'modifiedTime' => ['title' => '更新时间 yyyy-MM-dd HH:mm:ss', 'description' => '更新时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '1713407100321'],
'orderLineId' => ['title' => '子单id', 'description' => '子单id', 'type' => 'string', 'example' => '6692****5458'],
'trackingNumber' => ['title' => '快递单号', 'description' => '快递单号', 'type' => 'string', 'example' => 'SF198913131'],
'outerPurchaseOrderId' => ['title' => '创建采购单传入的外部采购单号', 'description' => '创建采购单传入的外部采购单号', 'type' => 'string', 'example' => '233111'],
'logisticsStatus' => ['title' => '物流状态 2=已发货 -> 等待买家确认收货', 'description' => '物流状态 2=已发货 -> 等待买家确认收货', 'type' => 'string', 'example' => '1'],
'orderId' => ['title' => '订单id', 'description' => '订单id', 'type' => 'string', 'example' => '6696070566****8593'],
],
],
'LogisticsOrderListResult' => [
'title' => '物流单信息',
'description' => '物流单信息',
'type' => 'object',
'properties' => [
'logisticsOrderList' => [
'title' => '物流集合',
'description' => '物流集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/LogisticsOrderResult', 'description' => ''],
'required' => false,
],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'LogisticsOrderResult' => [
'description' => '履约单',
'type' => 'object',
'properties' => [
'mailNo' => ['title' => '物流单号', 'description' => '物流单号'."\n"
.'> 电子卡券的物流单号为固定值:*', 'type' => 'string', 'required' => false, 'example' => 'SF234***2345'],
'dataProviderTitle' => ['title' => '数据文本', 'description' => '数据文本', 'type' => 'string', 'required' => false, 'example' => '菜鸟裹裹'],
'logisticsCompanyName' => ['title' => '物流公司名称', 'description' => '物流公司名称', 'type' => 'string', 'required' => false, 'example' => '顺丰'],
'logisticsDetailList' => [
'title' => '物流详情',
'description' => '物流详情',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/LogisticsDetail', 'description' => ''],
'required' => false,
],
'goods' => [
'title' => '货品详情',
'description' => '货品详情',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/Good', 'description' => ''],
'required' => false,
],
'dataProvider' => ['title' => '数据来源', 'description' => '数据来源', 'type' => 'string', 'required' => false, 'example' => '菜鸟'],
'logisticsCompanyCode' => [
'title' => '物流公司代码',
'description' => '物流公司代码'."\n"
.'>枚举值:'."\n"
.'> - ZTKY(中铁物流)'."\n"
.'> - POST(中国邮政)'."\n"
.'> - DBKD(德邦物流)'."\n"
.'> - JT(极兔物流)'."\n"
.'> - QFKD(全峰快递)'."\n"
.'> - EYB(邮政电商标快EYB)'."\n"
.'> - STO(申通快递)'."\n"
.'> - SF(顺丰速运)'."\n"
.'> - ZTO(中通快递)'."\n"
.'> - YTO(圆通快递)'."\n"
.'> - TTKDEX(天天快递)'."\n"
.'> - JDLEx(京东快递)'."\n"
.'> - ETICKET(电子卡券)'."\n"
.'> - HTKY(百世快递)'."\n"
.'> - SHQ(华强物流)'."\n"
.'> - TAOBAO(淘宝物流)'."\n"
.'> - YUNDA(韵达快递)'."\n"
.'> - ZJS(宅急送)'."\n"
.'> - FEDEX(联邦快递)'."\n"
.'> - EMS'."\n"
.'> - POSTB(邮政快递包裹)'."\n"
.'> - OTHER(其他)'."\n"
.'> - CNDJWL(菜鸟大件物流)'."\n"
.'> - TN(特能)'."\n"
.'> - ZMKM(菜鸟速递)',
'type' => 'string',
'required' => false,
'enumValueTitles' => [
'ZTKY' => '中铁物流', 'POST' => '中国邮政', 'DBKD' => '德邦物流', 'JT' => '极兔物流', 'QFKD' => '全峰快递', 'EYB' => '邮政电商标快EYB', 'STO' => '申通快递', 'SF' => '顺丰速运', 'ZTO' => '中通快递', 'YTO' => '圆通快递',
'TTKDEX' => '天天快递', 'JDLEx' => '京东快递', 'ETICKET' => '电子卡券', 'HTKY' => '百世快递', 'SHQ' => '华强物流', 'TAOBAO' => '淘宝物流', 'YUNDA' => '韵达快递', 'ZJS' => '宅急送', 'FEDEX' => '联邦快递', 'EMS' => 'EMS',
'POSTB' => '邮政快递包裹', 'OTHER' => '其他', 'CNDJWL' => '菜鸟大件物流', 'TN' => '特能', 'ZMKM' => '菜鸟速递',
],
'example' => 'SF',
],
],
],
'Money' => [
'description' => '账单金额',
'type' => 'object',
'properties' => [
'amount' => ['title' => 'amount', 'description' => 'amount', 'type' => 'integer', 'format' => 'int64', 'required' => false],
'amountString' => ['title' => 'amountString', 'description' => 'amountString', 'type' => 'string', 'required' => false],
'cent' => ['title' => 'cent', 'description' => 'cent', 'type' => 'integer', 'format' => 'int64', 'required' => false],
'amountAsString' => ['title' => 'amountAsString', 'description' => 'amountAsString', 'type' => 'string', 'required' => false],
'currency' => [
'title' => 'currency',
'description' => 'currency',
'type' => 'object',
'properties' => [
'symbol' => ['title' => 'symbol', 'description' => 'symbol', 'type' => 'string', 'required' => false],
'displayName' => ['title' => 'displayName', 'description' => 'displayName', 'type' => 'string', 'required' => false],
'currencyCode' => ['title' => 'currencyCode', 'description' => 'currencyCode', 'type' => 'string', 'required' => false],
'defaultFractionDigits' => ['title' => 'defaultFractionDigits', 'description' => 'defaultFractionDigits', 'type' => 'integer', 'format' => 'int32', 'required' => false],
'numericCode' => ['title' => 'numericCode', 'description' => 'numericCode', 'type' => 'integer', 'format' => 'int32', 'required' => false],
],
'required' => false,
],
'positive' => ['title' => 'positive', 'description' => 'positive', 'type' => 'boolean', 'required' => false],
'currencyCode' => ['title' => 'currencyCode', 'description' => 'currencyCode', 'type' => 'string', 'required' => false],
],
],
'OrderLineResult' => [
'title' => '子单信息',
'description' => '子订单集合',
'type' => 'object',
'properties' => [
'productTitle' => ['title' => '商品名称', 'description' => '商品名称', 'type' => 'string', 'required' => false, 'example' => '儿童学习桌'],
'number' => ['title' => '数量', 'description' => '数量', 'type' => 'string', 'required' => false, 'example' => '1'],
'skuTitle' => ['title' => 'sku名称', 'description' => 'sku名称', 'type' => 'string', 'required' => false, 'example' => '浅绿色'],
'productId' => ['title' => '商品ID', 'description' => '商品ID', 'type' => 'string', 'required' => false, 'example' => '6600****6736'],
'orderId' => ['title' => '订单id(主订单id)', 'description' => '订单id(主订单id)', 'type' => 'string', 'required' => false, 'example' => '6692****5457'],
'productPic' => ['title' => '商品图片', 'description' => '商品图片', 'type' => 'string', 'required' => false, 'example' => '//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0'],
'orderLineId' => ['title' => '子订单id', 'description' => '子订单id', 'type' => 'string', 'required' => false, 'example' => '6692****5458'],
'logisticsStatus' => [
'title' => '物流状态',
'description' => '物流状态',
'type' => 'string',
'required' => false,
'enumValueTitles' => [1 => '未发货>待卖家发货', '已发货>待买家收货', '已收货>确认收货', 6 => '部分发货', 8 => '未创建物流订单'],
'example' => '1',
],
'payFee' => ['title' => '子订单应付金额', 'description' => '子订单应付金额', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'skuId' => ['title' => 'skuId', 'description' => 'skuId', 'type' => 'string', 'required' => false, 'example' => '6600****6737'],
'orderLineStatus' => [
'title' => '子订单状态',
'description' => '子订单状态',
'type' => 'string',
'required' => false,
'enumValueTitles' => [1 => '待付款', '已付款', 4 => '退款成功', 6 => '交易成功', 8 => '交易关闭'],
'example' => '1',
],
'eticketInfos' => [
'description' => '卡券电子凭证',
'type' => 'array',
'items' => ['description' => '卡券电子凭证', '$ref' => '#/components/schemas/EticketInfo'],
],
],
],
'OrderListResult' => [
'title' => '订单分页结果',
'description' => '订单分页结果',
'type' => 'object',
'properties' => [
'orderList' => [
'title' => '订单集合',
'description' => '订单集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/OrderResult', 'description' => ''],
'required' => false,
],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
'total' => ['title' => '总数量', 'description' => '总数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '24'],
],
],
'OrderPageQuery' => [
'title' => '订单分页查询入参',
'description' => '订单分页查询入参',
'type' => 'object',
'properties' => [
'pageSize' => ['title' => '每页数量', 'description' => '每页数量', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
'orderIdList' => [
'title' => '主单ID集合',
'description' => '主单ID集合',
'type' => 'array',
'items' => ['description' => '主单ID(oderId)', 'type' => 'string', 'required' => false, 'example' => '8234****1234'],
'required' => false,
],
'pageNumber' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'purchaseOrderId' => ['title' => '采购单ID', 'description' => '采购单ID', 'type' => 'string', 'required' => false, 'example' => '6692****5696'],
'outPurchaseOrderId' => ['type' => 'string'],
],
],
'OrderProductResult' => [
'title' => '订单商品信息',
'description' => '商品信息',
'type' => 'object',
'properties' => [
'productTitle' => ['title' => '商品标题', 'description' => '商品标题', 'type' => 'string', 'required' => false, 'example' => '儿童学习桌'],
'features' => ['title' => '商品额外信息', 'description' => '商品额外信息', 'type' => 'object', 'required' => false],
'skuTitle' => ['title' => 'sku标题', 'description' => 'sku标题', 'type' => 'string', 'required' => false, 'example' => '浅绿色'],
'quantity' => ['title' => '购买数量', 'description' => '购买数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'productId' => ['title' => '商品id', 'description' => '商品id', 'type' => 'string', 'required' => false, 'example' => '6600****6736'],
'canSell' => ['title' => '商品是否可售卖', 'description' => '商品是否可售卖', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'price' => ['title' => '商品价格(单位:分)', 'description' => '商品价格(单位:分)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'productPicUrl' => ['title' => '商品图片链接', 'description' => '商品图片链接', 'type' => 'string', 'required' => false, 'example' => '//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0'],
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => false, 'example' => 'PID56****2304'],
'message' => ['title' => '不可售原因', 'description' => '不可售原因', 'type' => 'string', 'required' => false, 'example' => '库存为0'],
'skuId' => ['title' => 'SKUID', 'description' => 'SKUID', 'type' => 'string', 'required' => false, 'example' => '6600****6737'],
],
],
'OrderRenderProductDTO' => [
'title' => '渲染商品',
'description' => '商品集合',
'type' => 'object',
'properties' => [
'quantity' => ['title' => '购买数量', 'description' => '购买数量', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PID56****2304'],
'productId' => ['title' => '商品ID', 'description' => '商品ID', 'type' => 'string', 'required' => true, 'example' => '6600****6736'],
'skuId' => ['title' => 'skuID', 'description' => 'skuID', 'type' => 'string', 'required' => true, 'example' => '6600****6737'],
],
],
'OrderRenderResult' => [
'title' => '采购单渲染返回',
'description' => '订单不可售列表',
'type' => 'object',
'properties' => [
'message' => ['title' => '不可售原因', 'description' => '不可售原因', 'type' => 'string', 'required' => false, 'example' => '库存为0'],
'deliveryInfoList' => [
'title' => '履约信息',
'description' => '履约信息',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/DeliveryInfo', 'description' => ''],
'required' => false,
],
'canSell' => ['title' => '是否可售', 'description' => '是否可售', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'productList' => [
'title' => '商品集合',
'description' => '商品集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/OrderProductResult', 'description' => ''],
'required' => false,
],
'extInfo' => ['title' => '扩展信息', 'description' => '扩展信息', 'type' => 'object', 'required' => false],
],
],
'OrderResult' => [
'title' => '订单详情',
'description' => '主单列表',
'type' => 'object',
'properties' => [
'orderAmount' => ['title' => '订单金额(分)', 'description' => '订单金额(分)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'orderLineList' => [
'title' => '子订单集合',
'description' => '子订单集合',
'type' => 'array',
'items' => ['description' => '子订单集合', 'required' => false, '$ref' => '#/components/schemas/OrderLineResult'],
'required' => false,
],
'orderId' => ['title' => '订单id(主订单id)', 'description' => '订单id(主订单id)', 'type' => 'string', 'required' => false, 'example' => '6692****5457'],
'distributorId' => ['title' => '分销商ID', 'description' => '分销商ID', 'type' => 'string', 'required' => false, 'example' => '12****01'],
'orderStatus' => ['title' => '订单状态1=待支付,2=已支付,4=已退款关闭,6=交易成功,8=已关闭', 'description' => '订单状态 1=待支付,2=已支付,4=已退款关闭,6=交易成功,8=已关闭', 'type' => 'string', 'required' => false, 'example' => '1'],
'logisticsStatus' => ['title' => '物流状态 1=未发货 -> 等待卖家发货 2=已发货 -> 等待买家确认收货 3=已收货 -> 交易成功 4=已经退货 -> 交易失败 5=部分收货 -> 交易成功 6=部分发货中 8=还未创建物流订单', 'description' => '物流状态 1=未发货 -> 等待卖家发货 2=已发货 -> 等待买家确认收货 3=已收货 -> 交易成功 4=已经退货 -> 交易失败 5=部分收货 -> 交易成功 6=部分发货中 8=还未创建物流订单', 'type' => 'string', 'required' => false, 'example' => '1'],
'createDate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-11T12:22:24.000+08:00'],
'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string', 'example' => '841471F6-5D61-1331-8C38-2****B55'],
'orderClosedReason' => ['title' => '订单关单原因', 'description' => '订单关单原因', 'type' => 'string', 'example' => '系统关单'],
],
],
'Product' => [
'title' => '商品',
'description' => '商品',
'type' => 'object',
'properties' => [
'categoryChain' => [
'title' => '类目链',
'description' => '类目链',
'type' => 'array',
'items' => ['description' => '类目', 'required' => false, '$ref' => '#/components/schemas/Category'],
'required' => false,
],
'skus' => [
'title' => 'skus',
'description' => 'skus',
'type' => 'array',
'items' => ['description' => '商品SKU', 'required' => false, '$ref' => '#/components/schemas/Sku'],
'required' => false,
],
'lmItemId' => ['title' => 'LM商品id', 'description' => 'LM商品id', 'type' => 'string', 'example' => '2100****7-458****812'],
'canSell' => [
'title' => '商品是否可售,计算值',
'description' => '商品是否可售,计算值',
'type' => 'boolean',
'required' => false,
'enumValueTitles' => ['flase' => '不可售', 'true' => '可售'],
'example' => 'true',
],
'fuzzyQuantity' => [
'title' => '模糊库存',
'description' => '模糊库存',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['有货' => '有货', '库存紧张' => '库存紧张', '无货' => '无货'],
'example' => '有货',
],
'title' => ['title' => '标题', 'description' => '标题', 'type' => 'string', 'required' => false, 'example' => '发财树'],
'extendProperties' => [
'title' => '商品扩展属性',
'description' => '商品扩展属性',
'type' => 'array',
'items' => ['description' => '商品扩展属性', '$ref' => '#/components/schemas/ProductExtendProperty'],
],
'servicePromises' => [
'title' => '服务承诺',
'description' => '服务承诺><notice>服务承诺均由供应商维护,如供应商维护、更新不及时,可能会造成部分商品服务承诺标不够准确,请分销商面向自己的客户群体时谨慎透出。></notice>',
'type' => 'array',
'items' => ['title' => 'SEVEN_DAYS:7天无理由退货', 'description' => 'SEVEN_DAYS:7天无理由退货', 'type' => 'string'],
],
'soldQuantity' => ['title' => '销量', 'description' => '销量', 'type' => 'string', 'required' => false, 'example' => '100+'],
'picUrl' => ['title' => '商品主图', 'description' => '商品主图', 'type' => 'string', 'required' => false, 'example' => 'https://img.alicdn.com/imgextra/i3/221*******988/O1CN01w4vomR1QYYEx6nyr5_!!221******988.jpg'],
'categoryLeafId' => ['title' => '类目id', 'description' => '类目id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '201****501'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '3239281273******823'],
'shopId' => ['title' => '渠道店铺id', 'description' => '渠道店铺id', 'type' => 'string', 'required' => false, 'example' => '210*****7'],
'inGroup' => [
'title' => '是否入库',
'description' => '商品入库状态',
'type' => 'boolean',
'enumValueTitles' => ['true' => '已入库', 'false' => '已出库'],
'example' => 'True',
],
'productType' => [
'title' => '商品类型',
'description' => '商品类型',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['Virtual' => '虚拟类型,如电子卡券。', 'Normal' => '普通商品'],
'example' => 'Normal',
'enum' => ['Normal', 'Virtual'],
],
'images' => [
'title' => 'images',
'description' => 'images',
'type' => 'array',
'items' => ['description' => '图片链接', 'type' => 'string', 'required' => false, 'example' => '[]'],
'required' => false,
],
'brandName' => ['title' => '品牌名称', 'description' => '品牌名称', 'type' => 'string', 'example' => 'Apple/苹果'],
'quantity' => ['title' => '库存', 'description' => '库存'."\n"
.'> '."\n"
.'> - 该字段目前为固定值-1,可忽略', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '-1'],
'productId' => ['title' => '商品id', 'description' => '商品id', 'type' => 'string', 'required' => false, 'example' => '660460842******080'],
'productSpecs' => [
'title' => 'productSpecs',
'description' => '商品规格',
'type' => 'array',
'items' => ['description' => '商品规格', 'required' => false, '$ref' => '#/components/schemas/ProductSpec'],
'required' => false,
],
'productStatus' => [
'title' => '商品状态',
'description' => '商品状态',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['Offline' => '下架状态', 'Online' => '上架状态'],
'example' => 'Online',
],
'taxCode' => ['title' => '税码', 'description' => '税码', 'type' => 'string', 'required' => false, 'example' => '3040203000*******000'],
'divisionCode' => ['title' => '区域码', 'description' => '区域码', 'type' => 'string', 'required' => false, 'example' => '110000'],
'taxRate' => ['title' => '税率', 'description' => '税率', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '600'],
'limitRules' => [
'title' => '限购配置',
'description' => '限购规则',
'type' => 'array',
'items' => ['description' => '限购规则', '$ref' => '#/components/schemas/LimitRule'],
],
'descPath' => ['title' => '商品详情链接', 'description' => '商品详情链接', 'type' => 'string', 'required' => false, 'example' => 'https://img.alicdn.com/descpath/O1CN01wciRDp22AEU1*******f34'],
'properties' => [
'title' => '商品属性',
'description' => '商品属性',
'type' => 'array',
'items' => ['description' => '商品属性', 'required' => false, '$ref' => '#/components/schemas/ProductProperty'],
'required' => false,
],
],
],
'ProductDTO' => [
'title' => '商品信息',
'description' => '商品集合',
'type' => 'object',
'properties' => [
'quantity' => ['title' => '购买数量', 'description' => '购买数量', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => '56****2304'],
'productId' => ['title' => '商品ID', 'description' => '商品ID', 'type' => 'string', 'required' => true, 'example' => '6600****6736'],
'price' => ['title' => '商品价格(单位:分)', 'description' => '商品价格(单位:分)><notice>建议必传></notice>', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'skuId' => ['title' => 'SKUID', 'description' => 'SKUID', 'type' => 'string', 'required' => true, 'example' => '6600****6737'],
],
],
'ProductExtendProperty' => [
'title' => '商品扩展属性',
'description' => '商品扩展属性',
'type' => 'object',
'properties' => [
'key' => [
'title' => '属性key',
'description' => '属性key'."\n"
.'> 枚举值:'."\n"
.'> - - ss_picture_scene(氛围图)'."\n"
.'> - - ss_picture_white_background(白底图)'."\n"
.'> - - extraPeriod(保质期)'."\n"
.'> - - itemBoundaryInventoryZeroTag(保留字段,请忽略)'."\n"
.'> - - shoppingShowTitle(商品导购标题)'."\n"
.'> - - itemCCStatus(保留字段,请忽略)'."\n"
.'> - - brandLogo(品牌Logo图)'."\n"
.'> - - multipleBuyLimit(购买倍数)'."\n"
.'> - - eticket_type(电子卡券类型)'."\n"
.'> - - eticket_upper_buy_limit(电子卡券每单采购数量上限)'."\n"
.'> - - validity_type(电子卡券有效期类型)'."\n"
.'> - - etc_expiry_date(电子卡券有效期持续时间,validity_type=1时有效)'."\n"
.'> - - etc_duration_date(电子卡券有效期持续时间,validity_type=2/3/5时有效)'."\n"
.'> - - f_refund(电子卡券售中自动退款比例)'."\n"
.'> - - refund(电子卡券过期自动退比例)'."\n"
.'> - - writeoff(保留字段,请忽略)',
'type' => 'string',
'enumValueTitles' => [
'writeoff' => '保留字段,请忽略', 'ss_picture_scene' => '氛围图', 'ss_picture_white_background' => '白底图', 'validity_type' => '电子卡券有效期类型', 'extraPeriod' => '保质期', 'itemBoundaryInventoryZeroTag' => '保留字段,请忽略', 'etc_expiry_date' => '电子卡券有效期持续时间,validity_type=1时有效', 'eticket_type' => '电子卡券类型', 'eticket_upper_buy_limit' => '电子卡券每单采购数量上限', 'shoppingShowTitle' => '商品导购标题',
'etc_duration_date' => '电子卡券有效期持续时间,validity_type=2/3/5时有效', 'itemCCStatus' => '保留字段,请忽略', 'brandLogo' => '品牌Logo图', 'f_refund' => '电子卡券售中自动退款比例', 'multipleBuyLimit' => '购买倍数', 'refund' => '电子卡券过期自动退比例',
],
'example' => 'ss_picture_scene',
],
'value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'example' => '场景图'],
],
],
'ProductPageResult' => [
'title' => '分页查询商品结果',
'description' => '分页查询商品结果',
'type' => 'object',
'properties' => [
'pageSize' => ['title' => '页大小', 'description' => '页大小', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
'total' => ['title' => '总数量', 'description' => '总数量', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '24'],
'pageNumber' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '3239281273464326823'],
'products' => [
'title' => '商品集合',
'description' => '商品集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/Product', 'description' => ''],
'required' => false,
],
],
'required' => true,
],
'ProductPrice' => [
'description' => '商品价格',
'type' => 'object',
'properties' => [
'fundAmountMoney' => ['title' => '应付金额', 'description' => '应付金额', 'type' => 'string', 'required' => false, 'example' => '120'],
],
],
'ProductProperty' => [
'title' => '商品属性',
'description' => '商品属性',
'type' => 'object',
'properties' => [
'text' => ['title' => '属性文本', 'description' => '属性文本', 'type' => 'string', 'required' => false, 'example' => '颜色'],
'values' => [
'title' => '属性值集合',
'description' => '属性值集合',
'type' => 'array',
'items' => ['type' => 'string', 'required' => false, 'example' => '白色', 'description' => ''],
'required' => false,
],
],
],
'ProductQuery' => [
'title' => '商品查询参数',
'description' => '商品查询参数',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => '区域码', 'description' => '区域码', 'type' => 'string', 'required' => false, 'example' => '110000'],
'distributorShopId' => ['title' => '分销店铺id', 'description' => '分销店铺id', 'type' => 'string', 'required' => true, 'example' => '22000009'],
],
],
'ProductSaleInfo' => [
'title' => '商品',
'description' => '商品',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => '区域码', 'description' => '区域码', 'type' => 'string', 'required' => false, 'example' => '330106109'],
'quantity' => ['title' => '库存', 'description' => '库存', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'],
'skus' => [
'title' => 'sku集合',
'description' => 'sku集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/SkuSaleInfo', 'description' => ''],
'required' => false,
],
'productId' => ['title' => '商品id', 'description' => '商品id', 'type' => 'string', 'required' => false, 'example' => '660460842235822080'],
'canSell' => ['title' => '商品是否可售,计算值', 'description' => '商品是否可售,计算值', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '3239281273464326823'],
'fuzzyQuantity' => [
'title' => '模糊库存',
'description' => '模糊库存',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['有货' => '有货', '库存紧张' => '库存紧张', '无货' => '无货'],
'example' => '有货',
],
'productStatus' => ['title' => '商品状态', 'description' => '商品状态', 'type' => 'string', 'required' => false, 'example' => 'Online'],
'shopId' => ['title' => '渠道店铺id', 'description' => '渠道店铺id', 'type' => 'string', 'required' => false, 'example' => '21000017'],
'title' => ['title' => '标题', 'description' => '标题', 'type' => 'string', 'required' => false, 'example' => '发财树'],
'lmItemId' => ['title' => 'LM商品id', 'description' => 'LM商品id', 'type' => 'string', 'example' => '21000017-4580902812'],
'limitRules' => [
'title' => '限购配置',
'description' => '限购配置',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/LimitRule', 'description' => ''],
],
],
],
'ProductSaleInfoListQuery' => [
'title' => '商品销售信息查询参数',
'description' => '商品销售信息查询参数',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => '区域码', 'description' => '区域码(建议为五级乡镇/街道级地址code)', 'type' => 'string', 'required' => false, 'example' => '330106109'],
'productIds' => [
'title' => '查询商品id集合',
'description' => '查询商品id集合,支持[1,10]个批量查询',
'type' => 'array',
'items' => ['title' => '查询商品id集合', 'description' => '查询商品id集合', 'type' => 'string', 'required' => true, 'example' => '660460842235822080'],
'required' => true,
],
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => '22000009'],
],
'required' => true,
],
'ProductSaleInfoListResult' => [
'title' => '商品销售信息查询结果',
'description' => '商品销售信息查询结果',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '3239281273464326823'],
'productSaleInfos' => [
'title' => '商品销售信息',
'description' => '商品销售信息',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/ProductSaleInfo', 'description' => ''],
'required' => false,
],
],
],
'ProductSaleInfoQuery' => [
'title' => '商品销售信息查询参数',
'description' => '商品销售信息查询参数',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => '区域码', 'description' => '区域码', 'type' => 'string', 'required' => false, 'example' => '110000'],
'distributorShopId' => ['title' => '分销店铺id', 'description' => '分销店铺id', 'type' => 'string', 'required' => true, 'example' => '22000009'],
],
],
'ProductSpec' => [
'title' => '商品规格',
'description' => '商品规格(销售属性)',
'type' => 'object',
'properties' => [
'keyId' => ['title' => '规格', 'description' => '规格', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'],
'key' => ['title' => '规格key名称', 'description' => '规格key名称', 'type' => 'string', 'required' => false, 'example' => '颜色分类'],
'values' => [
'title' => '规则key取值',
'description' => '规则key取值',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/ProductSpecValue', 'description' => ''],
'required' => false,
],
],
],
'ProductSpecValue' => [
'title' => '商品规格值',
'description' => '商品规格值',
'type' => 'object',
'properties' => [
'value' => ['title' => '规格值', 'description' => '规格值', 'type' => 'string', 'required' => false, 'example' => '白色'],
'valueId' => ['title' => '规则值id', 'description' => '规则值id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'],
'valueAlias' => ['title' => '规格值别名', 'description' => '规格值别名', 'type' => 'string', 'example' => '秘色'],
],
],
'PurchaseOrderCreateCmd' => [
'title' => '采购单创建入参',
'description' => '采购单创建入参',
'type' => 'object',
'properties' => [
'outerPurchaseOrderId' => ['title' => '分销商业务中的订单ID,分销商自定义', 'description' => '分销商业务中的订单ID,分销商自定义。', 'type' => 'string', 'required' => true, 'example' => 'outer123456'],
'buyerId' => ['title' => '分销商业务中的用户ID,分销商自定义。', 'description' => '分销商业务中的用户ID,分销商自定义'."\n"
."\n"
.'><notice>请为不同的买家分配不同的buyerId></notice>', 'type' => 'string', 'required' => true, 'example' => 'buyer123456'],
'deliveryAddress' => ['title' => '地址信息', 'description' => '地址信息', 'required' => true, '$ref' => '#/components/schemas/AddressInfo'],
'productList' => [
'title' => '商品集合',
'description' => '商品集合'."\n"
.'> 单个采购单最大采购SKU个数:20',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/ProductDTO', 'description' => ''],
'required' => true,
'minItems' => 1,
],
'extInfo' => ['title' => '扩展信息', 'description' => '扩展信息', 'type' => 'object', 'required' => false],
],
],
'PurchaseOrderCreateResult' => [
'title' => '采购单创建返回',
'description' => '采购单创建返回',
'type' => 'object',
'properties' => [
'purchaseOrderId' => ['title' => '采购单ID', 'description' => '采购单ID', 'type' => 'string', 'required' => false, 'example' => '6692****5696'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'PurchaseOrderRenderQuery' => [
'title' => '采购单渲染入参',
'description' => '采购单渲染入参',
'type' => 'object',
'properties' => [
'buyerId' => ['title' => '分销真实买家ID', 'description' => '分销真实买家ID><notice>请为不同的买家分配不同的ID,勿使用同一ID></notice>', 'type' => 'string', 'required' => true, 'example' => 'test1234567'],
'deliveryAddress' => ['title' => '地址信息', 'description' => '地址信息', 'required' => true, '$ref' => '#/components/schemas/AddressInfo'],
'productList' => [
'title' => '商品集合',
'description' => '商品集合'."\n"
.'> 单个采购单最大采购SKU个数:20',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/OrderRenderProductDTO', 'description' => ''],
'required' => true,
'minItems' => 1,
],
'extInfo' => ['title' => '扩展信息', 'description' => '扩展信息', 'type' => 'object', 'required' => false, 'example' => '{}'],
],
],
'PurchaseOrderRenderResult' => [
'title' => '采购单渲染结果',
'description' => '采购单渲染结果',
'type' => 'object',
'properties' => [
'addressList' => [
'title' => '地址集合',
'description' => '地址集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/AddressInfo', 'description' => ''],
'required' => false,
],
'canSell' => ['title' => '是否可售', 'description' => '是否可售', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
'orderList' => [
'title' => '可售主单集合',
'description' => '可售主单集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/OrderRenderResult', 'description' => ''],
'required' => false,
],
'unsellableOrderList' => [
'title' => '不可售主单集合',
'description' => '不可售主单集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/OrderRenderResult', 'description' => ''],
'required' => false,
],
'message' => ['title' => '不可售原因', 'description' => '不可售原因', 'type' => 'string', 'required' => false, 'example' => '库存为0'],
'extInfo' => ['title' => '扩展信息', 'description' => '扩展信息', 'type' => 'object', 'required' => false],
],
],
'PurchaseOrderStatusResult' => [
'title' => '采购单状态',
'description' => '采购单状态',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '3239281273464326823'],
'status' => [
'title' => '采购单状态',
'description' => '采购单状态',
'type' => 'string',
'required' => false,
'enumValueTitles' => [1 => '采购单创建中', 10 => '采购中', 20 => '采购成功,待发货', '采购成功,部分发货', '采购成功,全部发货', 30 => '部分采购成功,待发货', '部分采购成功,部分发货', '部分采购成功,全部发货', 80 => '交易失败', 99 => '交易成功'],
'example' => '10',
],
],
],
'RefundFeeData' => [
'title' => '退费金额信息',
'description' => '退费区间',
'type' => 'object',
'properties' => [
'minRefundFee' => ['title' => '最小金额(分)', 'description' => '最小金额(分)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'maxRefundFee' => ['title' => '最大金额(分)', 'description' => '最大金额(分)', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
],
],
'RefundOrderCmd' => [
'title' => '创建逆向',
'description' => '创建逆向',
'type' => 'object',
'properties' => [
'applyRefundCount' => ['title' => '退货数量', 'description' => '退货数量', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'bizClaimType' => ['title' => '退款类型', 'description' => '退款类型'."\n"
.'1 仅退款 '."\n"
.'3 退货退款', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'goodsStatus' => ['title' => '货物状态', 'description' => '货物状态'."\n"
.'4: 未发货 '."\n"
.'1: 未收到货'."\n"
.'2: 已收到货', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'leaveMessage' => ['title' => '留言', 'description' => '留言', 'type' => 'string', 'required' => false, 'example' => '不想要了'],
'applyReasonTextId' => ['title' => '退款原因ID', 'description' => '退款原因ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '47821'],
'applyReasonTips' => ['title' => '退款原因文本', 'description' => '退款原因文本', 'type' => 'string', 'required' => false, 'example' => '不想要了'],
'applyRefundFee' => ['title' => '申请退款金额(分)', 'description' => '申请退款金额(分)', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '100'],
'leavePictureLists' => [
'title' => '图片集合',
'description' => '图片集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/LeavePictureList', 'description' => ''],
'required' => false,
],
'orderLineId' => ['title' => '子分销订单ID', 'description' => '子分销订单ID', 'type' => 'string', 'required' => true, 'example' => '6692****5458'],
],
],
'RefundOrderResult' => [
'title' => '逆向操作结果',
'description' => '逆向操作结果',
'type' => 'object',
'properties' => [
'orderLineId' => ['title' => '当前发起逆向的子分销订单号', 'description' => '当前发起逆向的子分销订单号', 'type' => 'string', 'required' => false, 'example' => '6692****5458'],
'disputeId' => ['title' => '纠纷id', 'description' => '纠纷id', 'type' => 'string', 'required' => false, 'example' => '6693****4352'],
'disputeStatus' => ['title' => '逆向的状态', 'description' => '逆向的状态'."\n"
.'1-退货待处理'."\n"
.'2-待买家退货'."\n"
.'3-待商家收货'."\n"
.'4-退款关闭'."\n"
.'5-退款成功'."\n"
.'6-已拒绝退款'."\n"
.'17-取消退款中', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'RefundReason' => [
'title' => '逆向理由',
'description' => '退款理由',
'type' => 'object',
'properties' => [
'reasonTextId' => ['title' => '理由文本id', 'description' => '理由文本id', 'type' => 'string', 'required' => false, 'example' => '47683'],
'proofRequired' => ['title' => '是否要求上传凭证', 'description' => '是否要求上传凭证', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'reasonTips' => ['title' => '理由文本', 'description' => '理由文本', 'type' => 'string', 'required' => false, 'example' => '不想要了'],
'refundDescRequired' => ['title' => '是否要求留言', 'description' => '是否要求留言', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'RefundRenderCmd' => [
'title' => '逆向创建入参',
'description' => '逆向创建入参',
'type' => 'object',
'properties' => [
'bizClaimType' => ['title' => '退款类型 1 仅退款,3 退货退款', 'description' => '退款类型 1 仅退款,3 退货退款', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'goodsStatus' => ['title' => '货物状态 4: 未发货, 1: 未收到货, 2: 已收到货', 'description' => '货物状态 4: 未发货, 1: 未收到货, 2: 已收到货', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '4'],
'orderLineId' => ['title' => '子分销订单ID', 'description' => '子分销订单ID', 'type' => 'string', 'required' => true, 'example' => '6692****5458'],
],
],
'RefundRenderResult' => [
'title' => '逆向渲染结果',
'description' => '逆向渲染结果',
'type' => 'object',
'properties' => [
'maxRefundFeeData' => ['required' => false, '$ref' => '#/components/schemas/DistributionMaxRefundFee', 'description' => ''],
'refundReasonList' => [
'title' => '逆向理由集合',
'description' => '逆向理由集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/RefundReason', 'description' => ''],
'required' => false,
],
'bizClaimType' => ['title' => '支持的订单退货方式', 'description' => '支持的订单退货方式', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'orderLineId' => ['title' => '子分销订单号', 'description' => '子分销订单号', 'type' => 'string', 'required' => false, 'example' => '6692****5458'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'RefundResult' => [
'title' => '逆向信息',
'description' => '逆向信息',
'type' => 'object',
'properties' => [
'refundFee' => ['title' => '退费金额', 'description' => '退费金额', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'refundFeeData' => ['title' => '退费区间', 'description' => '退费区间', 'required' => false, '$ref' => '#/components/schemas/RefundFeeData'],
'applyDisputeDesc' => ['title' => '当前买家申请退款说明', 'description' => '当前买家申请退款说明', 'type' => 'string', 'required' => false, 'example' => '多拍不想要'],
'refunderTel' => ['title' => '退货联系方式', 'description' => '退货联系方式', 'type' => 'string', 'required' => false, 'example' => '182****1334'],
'bizClaimType' => ['title' => '订单退货方式 1, 标识仅退款,3,标识退货退款', 'description' => '订单退货方式 '."\n"
.'1-标识仅退款'."\n"
.'3-标识退货退款', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'disputeDesc' => ['title' => '申请逆向描述', 'description' => '申请逆向描述', 'type' => 'string', 'required' => false, 'example' => '多拍不想要'],
'sellerRefuseReason' => ['title' => '商家拒绝原因', 'description' => '商家拒绝原因', 'type' => 'string', 'required' => false, 'example' => '商品没问题,买家举证无效'],
'orderId' => ['title' => '主单ID', 'description' => '主单ID', 'type' => 'string', 'required' => false, 'example' => '6692****5457'],
'refunderName' => ['title' => '退货收货人', 'description' => '退货收货人', 'type' => 'string', 'required' => false, 'example' => '赵先生'],
'applyReason' => ['title' => '申请理由', 'description' => '申请理由', 'required' => false, '$ref' => '#/components/schemas/ApplyReason'],
'refunderAddress' => ['title' => '商家退货地址', 'description' => '商家退货地址(disputeStatus=2,待买家退货状态时可获取退货地址,如需保存退货地址请在此状态时保存)', 'type' => 'string', 'required' => false, 'example' => '阿里云云谷'],
'refunderZipCode' => ['title' => '退货地址邮编', 'description' => '退货地址邮编', 'type' => 'string', 'required' => false, 'example' => '331001'],
'disputeEndTime' => ['title' => '逆向结束时间', 'description' => '逆向结束时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-15T19:23:59.000+08:00'],
'sellerRefuseAgreementMessage' => ['title' => '卖家拒绝的留言说明', 'description' => '卖家拒绝的留言说明', 'type' => 'string', 'required' => false, 'example' => '不同意退款'],
'disputeId' => ['title' => '逆向单ID', 'description' => '逆向单ID', 'type' => 'string', 'required' => false, 'example' => '6693****4352'],
'disputeStatus' => ['title' => '逆向单状态', 'description' => '逆向的状态 '."\n"
.'1-退货待处理 '."\n"
.'2-待买家退货 '."\n"
.'3-待商家收货 '."\n"
.'4-退款关闭 '."\n"
.'5-退款成功 '."\n"
.'6-已拒绝退款 '."\n"
.'17-取消退款中', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'returnGoodLogisticsStatus' => ['title' => '退货物流状态', 'description' => '退货物流状态'."\n"
.'0-未退货'."\n"
.'1-等待揽收'."\n"
.'2-快件已揽收'."\n"
.'3-物流走件中'."\n"
.'4-派送中'."\n"
.'5-已签收'."\n"
.'6-签收失败', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'],
'orderLogisticsStatus' => ['title' => '订单物流状态', 'description' => '订单物流状态'."\n"
.'1-未发货 -> 等待卖家发货'."\n"
.'2-已发货 -> 等待买家确认收货'."\n"
.'3-已收货 -> 交易成功'."\n"
.'6-部分发货中'."\n"
.'8-还未创建物流订单', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'disputeCreateTime' => ['title' => '逆向创建时间', 'description' => '逆向创建时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-15T19:23:59.000+08:00'],
'orderLineId' => ['title' => '子订单ID', 'description' => '子订单ID', 'type' => 'string', 'required' => false, 'example' => '6692****5458'],
'sellerAgreeMsg' => ['title' => '卖家同意退货说明,真实的退货地址会在这个字段进行返回。', 'description' => '卖家同意退货说明', 'type' => 'string', 'required' => false, 'example' => '同意退款'],
'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'type' => 'string', 'example' => '841471F6-5D61-1331-8C38-2****B55'],
],
],
'Shop' => [
'title' => '店铺详情',
'description' => '店铺详情',
'type' => 'object',
'properties' => [
'endDate' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-11T12:22:24.000+08:00'],
'distributorId' => ['title' => '分销商id', 'description' => '分销商id', 'type' => 'string', 'required' => false, 'example' => '12****09'],
'shopName' => ['title' => '店铺名称', 'description' => '店铺名称', 'type' => 'string', 'required' => false, 'example' => '儿童分销店铺'],
'shopId' => ['title' => '店铺id', 'description' => '店铺id', 'type' => 'string', 'required' => false, 'example' => '22****09'],
'shopType' => ['title' => '店铺类型', 'description' => '店铺类型', 'type' => 'string', 'required' => false, 'example' => 'DistributorQYG'],
'cooperationShops' => [
'title' => '合作方店铺',
'description' => '合作方店铺',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/CooperationShop', 'description' => ''],
'required' => false,
'example' => '12***01',
],
'startDate' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-11T12:22:24.000+08:00'],
'status' => ['title' => '店铺状态', 'description' => '店铺状态', 'type' => 'string', 'required' => false, 'example' => 'Working'],
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'example' => '48A34399-A72C-1E23-8388-7E63****E927'],
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'example' => 'PID56****2304'],
],
],
'ShopPageDataResult' => [
'title' => '店铺分页结果',
'description' => '店铺分页结果',
'type' => 'object',
'properties' => [
'endDate' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-11T12:22:24.000+08:00'],
'shopName' => ['title' => '店铺名称', 'description' => '店铺名称', 'type' => 'string', 'required' => false, 'example' => '儿童座椅分销店铺'],
'shopId' => ['title' => '店铺id', 'description' => '店铺id', 'type' => 'string', 'required' => false, 'example' => '22****09'],
'shopType' => ['title' => '店铺类型', 'description' => '店铺类型', 'type' => 'string', 'required' => false, 'example' => 'DistributorQYG'],
'cooperationShops' => [
'title' => '合作方店铺',
'description' => '合作方店铺',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/CooperationShop', 'description' => ''],
'required' => false,
'example' => '12****01',
],
'startDate' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'required' => false, 'example' => '2023-09-11T12:22:24.000+08:00'],
'status' => ['title' => '店铺状态', 'description' => '店铺状态', 'type' => 'string', 'required' => false, 'example' => 'Working'],
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'example' => 'PID56****2304'],
],
],
'ShopPageResult' => [
'title' => '店铺分页查询返回',
'description' => '店铺分页查询返回',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '841471F6-5D61-1331-8C38-2****B55'],
'total' => ['title' => '总数量', 'description' => '总数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '24'],
'shopList' => [
'title' => '店铺集合',
'description' => '店铺集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/ShopPageDataResult', 'description' => ''],
'required' => false,
],
],
],
'Sku' => [
'description' => 'SKU列表',
'type' => 'object',
'properties' => [
'quantity' => ['title' => '可售库存', 'description' => '可售库存><notice>目前该字段值统一为:-1,无实际意义。></notice>', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '-1'],
'productId' => ['title' => '商品Id', 'description' => '商品Id', 'type' => 'string', 'required' => false, 'example' => '660460842235822080'],
'canSell' => ['title' => 'sku是否可售', 'description' => 'sku是否可售', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'fuzzyQuantity' => [
'title' => '模糊可售库存',
'description' => '模糊可售库存',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['有货' => '有货', '库存紧张' => '库存紧张', '无货' => '无货'],
'example' => '有货'."\n"
.'无货'."\n"
.'库存紧张',
],
'skuStatus' => ['title' => 'sku管控状态', 'description' => 'sku管控状态', 'type' => 'string', 'required' => false, 'example' => 'Online'],
'skuSpecsCode' => ['title' => 'sku销售规格,辅助前端来筛选', 'description' => 'sku销售规格,辅助前端来筛选', 'type' => 'string', 'required' => false, 'example' => '颜色分类:天蓝色'],
'platformPrice' => ['title' => '平台当前售价, 单位分', 'description' => '建议零售价, 单位分', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '999900'],
'title' => ['title' => 'sku标题', 'description' => 'sku标题><notice>建议分销商取SkuSpec结构体中的value值或valueAlias值(当valueAlias有值时)拼接SKU标题对客展示。不建议直接使用本字段作为SKU标题对客展示。></notice>', 'type' => 'string', 'required' => false, 'example' => '天蓝色'],
'divisionCode' => ['title' => '区域码', 'description' => '区域码', 'type' => 'string', 'required' => false, 'example' => '110000'],
'picUrl' => ['title' => 'sku图片', 'description' => 'sku图片', 'type' => 'string', 'required' => false, 'example' => 'https:////img.alicdn.com/imgextra///img.alicdn.com/imgextra/i2/2216003305543/O1CN010DEQCX1qokFYGRfPE_!!2216003305543.png'],
'markPrice' => ['title' => '划线价, 单位分', 'description' => '划线价, 单位分', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '999900'],
'skuSpecs' => [
'title' => 'sku',
'description' => 'sku',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/SkuSpec', 'description' => ''],
'required' => false,
],
'price' => ['title' => '售价,单位分', 'description' => '分销商采购价,单位分', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '19800'],
'shopId' => ['title' => '店铺Id', 'description' => '店铺Id', 'type' => 'string', 'required' => false, 'example' => '21000017'],
'skuId' => ['title' => 'skuId', 'description' => 'skuId', 'type' => 'string', 'required' => false, 'example' => '660460842235822081'],
'barcode' => ['title' => '69码', 'description' => '69码', 'type' => 'string', 'example' => '6922454329176'],
'rankValue' => ['title' => 'SKU排序', 'description' => 'SKU排序', 'type' => 'integer', 'format' => 'int64', 'example' => '3'],
'suggestedRetailPrice' => ['title' => '建议零售价(无优惠)', 'description' => '保留字段', 'type' => 'integer', 'format' => 'int64'],
'discountRetailPrice' => ['title' => '建议零售价(券后)', 'description' => '保留字段', 'type' => 'integer', 'format' => 'int64'],
'skuAlias' => ['title' => 'sku别名', 'description' => 'sku备注', 'type' => 'string'],
],
],
'SkuQueryParam' => [
'title' => '查询商品参数',
'description' => '查询商品参数',
'type' => 'object',
'properties' => [
'productId' => ['title' => '商品id', 'description' => '商品id', 'type' => 'string', 'required' => true, 'example' => '660460842235822080'],
'skuId' => ['title' => 'skuid', 'description' => 'skuid', 'type' => 'string', 'required' => true, 'example' => '660460842235822081'],
'buyAmount' => ['title' => '购买数量', 'description' => '购买数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
'SkuSaleInfo' => [
'title' => 'SKU详细信息',
'description' => 'SKU详细信息',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => '区域码', 'description' => '区域码', 'type' => 'string', 'required' => false, 'example' => '330106109'],
'markPrice' => ['title' => '划线价, 单位分', 'description' => '划线价, 单位分', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '999900'],
'quantity' => ['title' => '可售库存', 'description' => '可售库存', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '-1'],
'productId' => ['title' => '商品Id', 'description' => '商品Id', 'type' => 'string', 'required' => false, 'example' => '660460842235822080'],
'canSell' => ['title' => 'sku是否可售', 'description' => 'sku是否可售', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'price' => ['title' => '售价,单位分', 'description' => '分销商采购价,单位分', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '19800'],
'fuzzyQuantity' => [
'title' => '模糊可售库存',
'description' => '模糊可售库存',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['有货' => '有货', '库存紧张' => '库存紧张', '无货' => '无货'],
'example' => '有货',
],
'skuStatus' => ['title' => 'sku管控状态', 'description' => 'sku管控状态', 'type' => 'string', 'required' => false, 'example' => 'Online'],
'shopId' => ['title' => '店铺Id', 'description' => '店铺Id', 'type' => 'string', 'required' => false, 'example' => '21000017'],
'title' => ['title' => 'sku标题', 'description' => 'sku标题', 'type' => 'string', 'required' => false, 'example' => '天蓝色'],
'skuId' => ['title' => 'skuId', 'description' => 'skuId', 'type' => 'string', 'required' => false, 'example' => '660460842235822081'],
'canNotSellReason' => ['title' => '不可售原因', 'description' => '不可售原因', 'type' => 'string', 'example' => '不可售'],
],
],
'SkuSaleInfoListQuery' => [
'title' => 'SKU销售信息查询参数',
'description' => 'SKU销售信息查询参数',
'type' => 'object',
'properties' => [
'divisionCode' => ['title' => '区域码', 'description' => '区域码(建议为五级乡镇/街道级地址 code)', 'type' => 'string', 'required' => false, 'example' => '330106109'],
'purchaserId' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => '21000017'],
'skuQueryParams' => [
'title' => '查询商品参数',
'description' => '查询商品参数'."\n"
.'> 单次最大查询SKU个数为20',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/SkuQueryParam', 'description' => ''],
'required' => true,
],
],
'required' => true,
],
'SkuSaleInfoListResult' => [
'title' => '商品销售信息查询结果',
'description' => '商品销售信息查询结果',
'type' => 'object',
'properties' => [
'requestId' => ['title' => '接口请求requestId', 'description' => '接口请求requestId', 'type' => 'string', 'required' => false, 'example' => '3239281273464326823'],
'skuSaleInfos' => [
'title' => 'sku库存集合',
'description' => 'sku库存集合',
'type' => 'array',
'items' => ['required' => false, '$ref' => '#/components/schemas/SkuSaleInfo', 'description' => ''],
'required' => false,
],
],
],
'SkuSpec' => [
'title' => 'sku规格',
'description' => 'sku规格(销售属性)',
'type' => 'object',
'properties' => [
'keyId' => ['title' => '规格id', 'description' => '规格id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'],
'valueId' => ['title' => '规格值id', 'description' => '规格值id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1000'],
'value' => ['title' => '规格值', 'description' => '规格值', 'type' => 'string', 'required' => false, 'example' => '天蓝色'],
'key' => ['title' => '规格键', 'description' => '规格键', 'type' => 'string', 'required' => false, 'example' => '颜色分类'],
'valueAlias' => ['title' => '规格值别名', 'description' => '规格值别名(建议:当此字段不为空(null)时,取此字段值作为前端展示规格;当此字段为空(null)时,取value字段作为前端展示规格。)', 'type' => 'string', 'example' => '秘色'],
],
],
],
],
'apis' => [
'CancelRefundOrder' => [
'summary' => '取消售后单。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/{disputeId}/commands/cancel',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'disputeId',
'in' => 'path',
'allowEmptyValue' => true,
'schema' => ['description' => '售后单ID', 'type' => 'string', 'required' => false, 'example' => '601853367760207872'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '售后单资源', 'required' => false, '$ref' => '#/components/schemas/RefundOrderResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"orderLineId\\": \\"6692****5458\\",\\n \\"disputeId\\": \\"6693****4352\\",\\n \\"disputeStatus\\": 1,\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '取消售后单',
'description' => '取消售后单',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "0F5BFCA7-98B9-1D59-80C2-30622***CFB1",'."\n"
.' "orderLineId": "66931024438***7746",'."\n"
.' "disputeStatus": 1,'."\n"
.' "disputeId": "66931163166***4352"'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CancelRefundOrder'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'linkedmall:CancelRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ConfirmDisburse' => [
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/commands/confirmDisburse',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '确认收货(订单)', 'description' => '确认收货入参', 'required' => true, '$ref' => '#/components/schemas/ConfirmDisburseCmd'],
'examples' => [],
],
],
'responses' => [
200 => [
'schema' => ['description' => '确认收货结果', 'required' => false, '$ref' => '#/components/schemas/ConfirmDisburseResult'],
'examples' => [],
],
],
'title' => '确认收货',
'summary' => '确认收货。',
'description' => '确认收货',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "orderId": "6696667996****5953"'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "FF83DFBE-CBF2-1D73-83A3-5010****C402",'."\n"
.' "result": "success"'."\n"
.'}',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '150', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ConfirmDisburse'],
],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:ConfirmDisburse',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": \\"success\\",\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
],
'CreateGoodsShippingNotice' => [
'summary' => '回填运单信息。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/command/createGoodsShippingNotice',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '提交逆向物流信息', 'description' => '提交运单信息', 'required' => true, '$ref' => '#/components/schemas/GoodsShippingNoticeCreateCmd'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '操作返回结果', 'required' => false, '$ref' => '#/components/schemas/GoodsShippingNoticeCreateResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"result\\": \\"success\\",\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '回填运单信息',
'description' => '回填运单信息',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "cpCode": "YUNDA",'."\n"
.' "disputeId": "6696233432****5024",'."\n"
.' "logisticsNo": "4334027****6583"'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "FA53BE49-2740-1AE1-BCBE-3640****5BE5",'."\n"
.' "result": "success"'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:CreateGoodsShippingNotice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'CreatePurchaseOrder' => [
'summary' => '创建采购单,返回采购单号,具体订单创建结果由消息侧通知。订单创建完成之后,客户可以通过订单接口查询采购单下附属的订单信息。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '创建采购单', 'description' => '创建采购单', 'required' => true, '$ref' => '#/components/schemas/PurchaseOrderCreateCmd'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '采购单创建结果(返回采购单号)。'."\n"
.'><warning>请注意,因采购单创建为异步任务,如分销商调用本接口返回异常时(如503错误码),建议勿立即执行业务侧的toC退款;请分销商等待并消费PurchaseOrderCreate消息(采购单创建结果消息)后正常判断订单状态(如消费订单状态同步消息判断订单状态)后再处理业务逻辑,以免造成资损。></warning>', 'required' => false, '$ref' => '#/components/schemas/PurchaseOrderCreateResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"purchaseOrderId\\": \\"6692****5696\\",\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '创建采购单',
'description' => '创建采购单,返回采购单号,具体订单创建结果由消息侧通知。订单创建完成之后,客户可以通过订单接口查询采购单下附属的订单信息。'."\n"
.'><warning>请注意,因采购单创建为异步任务,如分销商调用本接口返回异常时(如503错误码),建议勿立即执行业务侧的toC退款;请分销商等待并消费PurchaseOrderCreate消息(采购单创建结果消息)后正常判断订单状态(如消费订单状态同步消息判断订单状态)后再处理业务逻辑,以免造成资损。></warning>'."\n"
.'><notice>调用采购单创建接口后如未接收到PurchaseOrderCreate消息(采购单创建结果消息),请在技术对接群中提交工单查询原因。></notice>',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "outerPurchaseOrderId": "outer00****0",'."\n"
.' "deliveryAddress": {'."\n"
.' "divisionCode": "610102",'."\n"
.' "addressDetail": "陕西省西安市***大厦",'."\n"
.' "receiverPhone": "187****1553",'."\n"
.' "receiver": "闫先生",'."\n"
.' "townDivisionCode": "61010212"'."\n"
.' },'."\n"
.' "buyerId": "yt12345085",'."\n"
.' "productList": ['."\n"
.' {'."\n"
.' "quantity": 1,'."\n"
.' "productId": "6600622091****6736",'."\n"
.' "purchaserId": "PID2****09",'."\n"
.' "skuId": "6600622091****6737"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "48A34399-A72C-1E23-8388-7E63****E927",'."\n"
.' "purchaseOrderId": "6696070481****5680"'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:CreatePurchaseOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'CreateRefundOrder' => [
'summary' => '创建售后单。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '创建逆向单', 'description' => '创建逆向单', 'required' => true, '$ref' => '#/components/schemas/RefundOrderCmd'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '售后单资源', 'required' => false, '$ref' => '#/components/schemas/RefundOrderResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"orderLineId\\": \\"6692****5458\\",\\n \\"disputeId\\": \\"6693****4352\\",\\n \\"disputeStatus\\": 1,\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '创建售后单',
'description' => '创建售后单',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "4DFA4CBA-AB08-13E2-9E25-0A26****72F2",'."\n"
.' "orderLineId": "6696070566****8594",'."\n"
.' "disputeStatus": 1,'."\n"
.' "disputeId": "6696233432****5024"'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:CreateRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetOrder' => [
'summary' => '查询主单详情。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/{orderId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'orderId',
'in' => 'path',
'allowEmptyValue' => true,
'schema' => ['title' => '订单id', 'description' => '订单id', 'type' => 'string', 'required' => true, 'example' => '669607056****8593'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '订单资源返回', 'required' => false, '$ref' => '#/components/schemas/OrderResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"orderAmount\\": 100,\\n \\"orderLineList\\": [\\n {\\n \\"productTitle\\": \\"儿童学习桌\\",\\n \\"number\\": \\"1\\",\\n \\"skuTitle\\": \\"浅绿色\\",\\n \\"productId\\": \\"6600****6736\\",\\n \\"orderId\\": \\"6692****5457\\",\\n \\"productPic\\": \\"//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0\\",\\n \\"orderLineId\\": \\"6692****5458\\",\\n \\"logisticsStatus\\": \\"1\\",\\n \\"payFee\\": 100,\\n \\"skuId\\": \\"6600****6737\\",\\n \\"orderLineStatus\\": \\"1\\",\\n \\"eticketInfos\\": [\\n {\\n \\"code\\": \\"taobao******tpg\\",\\n \\"qrcodeUrl\\": \\"http://qrcode.alicdn.com/img.jpg\\",\\n \\"codeStatus\\": -1,\\n \\"startTime\\": \\"\\\\n2026-02-04T00:00:00.000+08:00\\",\\n \\"endTime\\": \\"2026-08-02T23:59:59.000+08:00\\",\\n \\"usedNum\\": 1,\\n \\"useTime\\": \\"\\\\n2026-02-04T15:07:59.000+08:00\\",\\n \\"lockNum\\": 0,\\n \\"availableNum\\": 0\\n }\\n ]\\n }\\n ],\\n \\"orderId\\": \\"6692****5457\\",\\n \\"distributorId\\": \\"12****01\\",\\n \\"orderStatus\\": \\"1\\",\\n \\"logisticsStatus\\": \\"1\\",\\n \\"createDate\\": \\"2023-09-11T12:22:24.000+08:00\\",\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\",\\n \\"orderClosedReason\\": \\"系统关单\\"\\n}","type":"json"}]',
'title' => '获取订单详情',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "createDate": "2023-09-09 10:57:23",'."\n"
.' "distributorId": "6599775553****9296",'."\n"
.' "logisticsStatus": "1",'."\n"
.' "orderId": "6696070566****8593",'."\n"
.' "orderAmount": "1",'."\n"
.' "orderStatus": "2",'."\n"
.' "orderLineList": ['."\n"
.' {'."\n"
.' "productPic": "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0DYLWA_!!2216003305543.jpg",'."\n"
.' "productPrice": ['."\n"
.' {'."\n"
.' "fundAmountMoney": "1" //订单应付金额'."\n"
.' }'."\n"
.' ],'."\n"
.' "productTitle": "儿童学习桌",'."\n"
.' "productId": "6600622091****6736",'."\n"
.' "number": "1",'."\n"
.' "orderLineStatus": "2",'."\n"
.' "logisticsStatus": "1",'."\n"
.' "skuId": "6600622091****6737",'."\n"
.' "skuTitle": "浅灰色",'."\n"
.' "orderLineId": "6696070566****8594",'."\n"
.' "orderId": "6696070566****8593"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '550', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetOrder'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetPurchaseOrderStatus' => [
'summary' => '获取采购单状态。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders/{purchaseOrderId}/status',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'purchaseOrderId',
'in' => 'path',
'allowEmptyValue' => true,
'schema' => ['title' => '采购单ID', 'description' => '采购单ID', 'type' => 'string', 'required' => true, 'example' => '6696070481****5680'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => [
'description' => '交易单状态',
'required' => false,
'enumValueTitles' => [],
'$ref' => '#/components/schemas/PurchaseOrderStatusResult',
],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3239281273464326823\\",\\n \\"status\\": \\"10\\"\\n}","type":"json"}]',
'title' => '获取采购单状态',
'description' => '获取交易单状态。',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "AC85D1AE-3015-1024-B17C-D056****3583",'."\n"
.' "status": "20"'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetPurchaseOrderStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetPurchaserShop' => [
'summary' => '获取采购方店铺。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaserShops/{purchaserId}',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'purchaserId',
'in' => 'path',
'schema' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PID22000016'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '店铺详情', 'description' => '店铺详情', '$ref' => '#/components/schemas/Shop'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"endDate\\": \\"2024-09-09 00:00:00\\",\\n \\"distributorId\\": \\"12****09\\",\\n \\"shopName\\": \\"儿童分销店铺\\",\\n \\"shopId\\": \\"22****09\\",\\n \\"shopType\\": \\"DistributorQYG\\",\\n \\"cooperationShops\\": [\\n {\\n \\"shopId\\": \\"\\",\\n \\"cooperationCompanyId\\": \\"\\",\\n \\"cooperationShopId\\": \\"\\"\\n }\\n ],\\n \\"startDate\\": \\"2023-09-09 00:00:00\\",\\n \\"status\\": \\"Working\\",\\n \\"requestId\\": \\"48A34399-A72C-1E23-8388-7E63****E927\\",\\n \\"purchaserId\\": \\"PID56****2304\\"\\n}","type":"json"}]',
'title' => '获取采购方店铺',
'description' => '获取采购方店铺。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetPurchaserShop',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetRefundOrder' => [
'summary' => '获取售后单详情。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/{disputeId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'disputeId',
'in' => 'path',
'allowEmptyValue' => true,
'schema' => ['description' => '售后单id', 'type' => 'string', 'required' => false, 'example' => '6696233432****5024'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '售后单结果', 'required' => false, '$ref' => '#/components/schemas/RefundResult'],
'examples' => [],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"refundFee\\": 1,\\n \\"refundFeeData\\": {\\n \\"minRefundFee\\": 1,\\n \\"maxRefundFee\\": 100\\n },\\n \\"applyDisputeDesc\\": \\"多拍不想要\\",\\n \\"refunderTel\\": \\"182****1334\\",\\n \\"bizClaimType\\": 1,\\n \\"disputeDesc\\": \\"多拍不想要\\",\\n \\"sellerRefuseReason\\": \\"商品没问题,买家举证无效\\",\\n \\"orderId\\": \\"6692****5457\\",\\n \\"refunderName\\": \\"赵先生\\",\\n \\"applyReason\\": {\\n \\"reasonTextId\\": 403769,\\n \\"reasonTips\\": \\"不想要了\\"\\n },\\n \\"refunderAddress\\": \\"阿里云云谷\\",\\n \\"refunderZipCode\\": \\"331001\\",\\n \\"disputeEndTime\\": \\"2023-09-15T19:23:59.000+08:00\\",\\n \\"sellerRefuseAgreementMessage\\": \\"不同意退款\\",\\n \\"disputeId\\": \\"6693****4352\\",\\n \\"disputeStatus\\": 1,\\n \\"returnGoodLogisticsStatus\\": 0,\\n \\"orderLogisticsStatus\\": 1,\\n \\"disputeCreateTime\\": \\"2023-09-15T19:23:59.000+08:00\\",\\n \\"orderLineId\\": \\"6692****5458\\",\\n \\"sellerAgreeMsg\\": \\"同意退款\\",\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '获取售后单详情',
'description' => '获取售后单详情',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "applyDisputeDesc": null,'."\n"
.' "applyReason": {'."\n"
.' "reasonTextId": 403883,'."\n"
.' "reasonTips": "商品成分描述不符"'."\n"
.' },'."\n"
.' "bizClaimType": 3,'."\n"
.' "disputeCreateTime": "2023-09-09 12:00:35",'."\n"
.' "disputeDesc": null,'."\n"
.' "disputeEndTime": null,'."\n"
.' "disputeId": "6696233432****5024",'."\n"
.' "disputeStatus": 3,'."\n"
.' "disputeType": 1,'."\n"
.' "orderId": "6696070566****8593",'."\n"
.' "refundFeeData": {'."\n"
.' "maxRefundFee": null,'."\n"
.' "minRefundFee": null'."\n"
.' },'."\n"
.' "orderLogisticsStatus": 2,'."\n"
.' "refundFee": 1,'."\n"
.' "refunderAddress": null,'."\n"
.' "refunderName": null,'."\n"
.' "refunderTel": null,'."\n"
.' "refunderZipCode": null,'."\n"
.' "returnGoodCount": null,'."\n"
.' "returnGoodLogisticsStatus": null,'."\n"
.' "sellerAgreeMsg": null,'."\n"
.' "sellerRefuseAgreementMessage": null,'."\n"
.' "sellerRefuseReason": null,'."\n"
.' "orderLineId": "6696070566****8594"'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetSelectionProduct' => [
'summary' => '查询选品池商品详情。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/{productId}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'productId',
'in' => 'path',
'allowEmptyValue' => true,
'schema' => ['description' => '商品id', 'type' => 'string', 'required' => true, 'example' => '660460842235822080'],
'examples' => [],
],
[
'name' => 'purchaserId',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PID22000009'],
'examples' => [],
],
[
'name' => 'divisionCode',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '区域码(建议四级乡镇/街道级地址code)', 'description' => '区域码(建议为五级乡镇/街道级地址code)', 'type' => 'string', 'required' => false, 'example' => '330106109'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '商品详情', '$ref' => '#/components/schemas/Product'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
'title' => '查询选品池商品详情',
'description' => '通过商品id查询选品池商品详情,支持输入区域码查询商品区域库存。',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "productId": "660057403063402509",'."\n"
.' "purchaserId": "PID22000009",'."\n"
.' "divisionCode": "330106109"'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "EA2F57E7-94AF-1C51-B607-47EECC6CCAB2",'."\n"
.' "productId": "660057403063402509",'."\n"
.' "title": "西安/成都限购测试商品-yh-请勿下单千牛修改同步",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",'."\n"
.' "descPath": "//itemcdn.tmall.com/desc/icoss!0724961349057!11733929840",'."\n"
.' "categoryLeafId": 50022568,'."\n"
.' "images": ['."\n"
.' "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",'."\n"
.' "//img.alicdn.com/imgextra/i1/2214281521988/O1CN011QYYFMQFeubcGuJ_!!2214281521988.jpg"'."\n"
.' ],'."\n"
.' "properties": ['."\n"
.' {'."\n"
.' "text": "品牌",'."\n"
.' "values": ['."\n"
.' "七情(鲜花)"'."\n"
.' ]'."\n"
.' },'."\n"
.' {'."\n"
.' "text": "颜色分类",'."\n"
.' "values": ['."\n"
.' "浅灰色",'."\n"
.' "黑色",'."\n"
.' "单sku商品why111千牛编辑同步"'."\n"
.' ]'."\n"
.' }'."\n"
.' ],'."\n"
.' "productSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "values": ['."\n"
.' {'."\n"
.' "valueId": 0,'."\n"
.' "value": "浅灰色"'."\n"
.' },'."\n"
.' {'."\n"
.' "valueId": 0,'."\n"
.' "value": "黑色"'."\n"
.' },'."\n"
.' {'."\n"
.' "valueId": 0,'."\n"
.' "value": "单sku商品why111千牛编辑同步"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ],'."\n"
.' "skus": ['."\n"
.' {'."\n"
.' "shopId": "21000017",'."\n"
.' "productId": "660057403063402509",'."\n"
.' "skuId": "660057403063402511",'."\n"
.' "title": "浅灰色",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",'."\n"
.' "skuSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "valueId": 0,'."\n"
.' "value": "浅灰色"'."\n"
.' }'."\n"
.' ],'."\n"
.' "skuSpecsCode": "",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": true,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "price": 2,'."\n"
.' "markPrice": 777700,'."\n"
.' "platformPrice": 777700,'."\n"
.' "divisionCode": "330106109"'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000017",'."\n"
.' "productId": "660057403063402509",'."\n"
.' "skuId": "660057403063402510",'."\n"
.' "title": "单sku商品why111千牛编辑同步",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",'."\n"
.' "skuSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "valueId": 0,'."\n"
.' "value": "单sku商品why111"'."\n"
.' }'."\n"
.' ],'."\n"
.' "skuSpecsCode": "",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": true,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "price": 1,'."\n"
.' "markPrice": 777700,'."\n"
.' "platformPrice": 777700,'."\n"
.' "divisionCode": "330106109"'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000017",'."\n"
.' "productId": "660057403063402509",'."\n"
.' "skuId": "660057403063402512",'."\n"
.' "title": "黑色",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra/i2/2214281521988/O1CN01mBXX711QYYFAxfNiX_!!2214281521988.jpg",'."\n"
.' "skuSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "valueId": 0,'."\n"
.' "value": "黑色"'."\n"
.' }'."\n"
.' ],'."\n"
.' "skuSpecsCode": "",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": true,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "price": 9,'."\n"
.' "markPrice": 777700,'."\n"
.' "platformPrice": 777700,'."\n"
.' "divisionCode": "330106109"'."\n"
.' }'."\n"
.' ],'."\n"
.' "canSell": true,'."\n"
.' "productType": "Normal",'."\n"
.' "productStatus": "Online",'."\n"
.' "shopId": "21000017",'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "taxRate": null,'."\n"
.' "taxCode": null,'."\n"
.' "categoryChain": ['."\n"
.' {'."\n"
.' "categoryId": 50020808,'."\n"
.' "name": "家居饰品",'."\n"
.' "parentId": 0,'."\n"
.' "level": 0,'."\n"
.' "isLeaf": false'."\n"
.' },'."\n"
.' {'."\n"
.' "categoryId": 50022568,'."\n"
.' "name": "其他工艺饰品",'."\n"
.' "parentId": 50020808,'."\n"
.' "level": 0,'."\n"
.' "isLeaf": true'."\n"
.' }'."\n"
.' ],'."\n"
.' "soldQuantity": "2",'."\n"
.' "divisionCode": "330106109"'."\n"
.'}',
'changeSet' => [
['createdAt' => '2024-03-29T03:14:22.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetSelectionProduct'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetSelectionProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetSelectionProductSaleInfo' => [
'summary' => '查询选品池商品销售信息。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/{productId}/saleInfo',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'productId',
'in' => 'path',
'allowEmptyValue' => true,
'schema' => ['description' => '商品id', 'type' => 'string', 'required' => true, 'example' => '660460842235822080'],
'examples' => [],
],
[
'name' => 'purchaserId',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PID22000009'],
'examples' => [],
],
[
'name' => 'divisionCode',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '区域码', 'description' => '区域码(建议为五级乡镇/街道级地址code)', 'type' => 'string', 'required' => false, 'example' => '330106109'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '商品销售信息', '$ref' => '#/components/schemas/ProductSaleInfo'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"divisionCode\\": \\"330106109\\",\\n \\"quantity\\": 10,\\n \\"skus\\": [\\n {\\n \\"divisionCode\\": \\"330106109\\",\\n \\"markPrice\\": 999900,\\n \\"quantity\\": -1,\\n \\"productId\\": \\"660460842235822080\\",\\n \\"canSell\\": true,\\n \\"price\\": 19800,\\n \\"fuzzyQuantity\\": \\"有货\\",\\n \\"skuStatus\\": \\"Online\\",\\n \\"shopId\\": \\"21000017\\",\\n \\"title\\": \\"天蓝色\\",\\n \\"skuId\\": \\"660460842235822081\\",\\n \\"canNotSellReason\\": \\"不可售\\"\\n }\\n ],\\n \\"productId\\": \\"660460842235822080\\",\\n \\"canSell\\": true,\\n \\"requestId\\": \\"3239281273464326823\\",\\n \\"fuzzyQuantity\\": \\"有货\\",\\n \\"productStatus\\": \\"Online\\",\\n \\"shopId\\": \\"21000017\\",\\n \\"title\\": \\"发财树\\",\\n \\"lmItemId\\": \\"21000017-4580902812\\",\\n \\"limitRules\\": [\\n {\\n \\"ruleType\\": \\"UpperNumberPerUser\\",\\n \\"limitNum\\": 1,\\n \\"beginTime\\": 1724947200000,\\n \\"endTime\\": 1724947200000,\\n \\"condcase\\": \\"day\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询选品池商品销售信息',
'description' => '查询选品池商品销售信息:分销商可调用此接口查询商品销售信息,如商品状态等;通过divisionCode(建议传入五级地址(乡镇/街道) Code) 入参查询商品在该区域是否可售。',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "productId": "660460842235822080",'."\n"
.' "purchaserId": "PID22000009",'."\n"
.' "divisionCode": "330106109"'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "33D4B4FC-E37F-1CB1-A4DD-F953B7F296DB",'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "title": "发财树5--我用下小蚁这个商品-qhh 不用你其他商品",'."\n"
.' "skus": ['."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822081",'."\n"
.' "title": "天蓝色",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": false,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "无货",'."\n"
.' "price": 1,'."\n"
.' "markPrice": 999900'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822082",'."\n"
.' "title": "红色",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": true,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "price": 2,'."\n"
.' "markPrice": 999900'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822083",'."\n"
.' "title": "黑色",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": false,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "无货",'."\n"
.' "price": 1,'."\n"
.' "markPrice": 999900'."\n"
.' }'."\n"
.' ],'."\n"
.' "canSell": true,'."\n"
.' "productStatus": "Online",'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货"'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetSelectionProductSaleInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListCategories' => [
'summary' => '查询类目列表。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/categories/commands/list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => '类目查询参数', 'required' => false, '$ref' => '#/components/schemas/CategoryListQuery'],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '类目', '$ref' => '#/components/schemas/CategoryListResult'],
'examples' => [],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"categories\\": [\\n {\\n \\"name\\": \\"名称测试\\",\\n \\"isLeaf\\": false,\\n \\"level\\": 0,\\n \\"categoryId\\": 201792301,\\n \\"parentId\\": 0\\n }\\n ]\\n}","type":"json"}]',
'title' => '查询类目列表',
'description' => '根据父类目id查询所有子类目信息,或者根据类目id查询类目信息。'."\n"
."\n"
.'当父类目id(parentCategoryId)为0时,则返回根类目下的一级类目。',
'requestParamsDescription' => '```'."\n"
.'// 查询类目(parentCategoryId)下的所有子类目'."\n"
.'{'."\n"
.' "body": {'."\n"
.' "parentCategoryId": "50016422"'."\n"
.' }'."\n"
.'}'."\n"
."\n"
.'// 根据入参类目id(categoryIds)批量查询类目'."\n"
.'{'."\n"
.' "body": {'."\n"
.' "categoryIds": ['."\n"
.' "202007601",'."\n"
.' "201792301"'."\n"
.' ]'."\n"
.' }',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "4D1FC14F-CE54-1A1F-A322-D6DC87D49AFE",'."\n"
.' "categories": ['."\n"
.' {'."\n"
.' "categoryId": 201792301,'."\n"
.' "name": "方便面/拉面/挂面/轻食面速食",'."\n"
.' "parentId": 50016422,'."\n"
.' "level": 2,'."\n"
.' "isLeaf": false'."\n"
.' },'."\n"
.' {'."\n"
.' "categoryId": 202007601,'."\n"
.' "name": "方便速食/速冻食品类卡券",'."\n"
.' "parentId": 50016422,'."\n"
.' "level": 2,'."\n"
.' "isLeaf": false'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListCategories',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListLogisticsOrders' => [
'summary' => '查询订单物流信息。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/{orderId}/logisticsOrders',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'orderId',
'in' => 'path',
'allowEmptyValue' => true,
'schema' => ['title' => '订单id', 'description' => '订单id', 'type' => 'string', 'required' => true, 'example' => '6696070566****8593'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '物流信息', 'required' => false, '$ref' => '#/components/schemas/LogisticsOrderListResult'],
'examples' => [],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"logisticsOrderList\\": [\\n {\\n \\"mailNo\\": \\"SF234***2345\\",\\n \\"dataProviderTitle\\": \\"菜鸟裹裹\\",\\n \\"logisticsCompanyName\\": \\"顺丰\\",\\n \\"logisticsDetailList\\": [\\n {\\n \\"ocurrTimeStr\\": \\"2023-09-11T12:22:24.000+08:00\\",\\n \\"standerdDesc\\": \\"已签收\\"\\n }\\n ],\\n \\"goods\\": [\\n {\\n \\"goodName\\": \\"儿童学习桌\\",\\n \\"productId\\": \\"6600****6736\\",\\n \\"quantity\\": 1,\\n \\"skuId\\": \\"7232****2321\\",\\n \\"skuTitle\\": \\"白色\\"\\n }\\n ],\\n \\"dataProvider\\": \\"菜鸟\\",\\n \\"logisticsCompanyCode\\": \\"SF\\"\\n }\\n ],\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '查询订单物流信息',
'description' => '查询订单物流信息',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "ED080FA8-F005-10B1-A9AB-CCFD****9149",'."\n"
.' "logisticsOrderList": ['."\n"
.' {'."\n"
.' "dataProvider": "菜鸟裹裹",'."\n"
.' "dataProviderTitle": "本数据由菜鸟裹裹提供",'."\n"
.' "goods": ['."\n"
.' {'."\n"
.' "goodName": "儿童学习桌",'."\n"
.' "productId": 2384738123****7238,'."\n"
.' "quantity": 1'."\n"
.' }'."\n"
.' ],'."\n"
.' "logisticsCompanyCode": "SF",'."\n"
.' "logisticsCompanyName": "顺丰速运",'."\n"
.' "logisticsDetailList": ['."\n"
.' {'."\n"
.' "ocurrTimeStr": "2023-06-06 14:44:45",'."\n"
.' "standerdDesc": "顺丰速运 已收取快件"'."\n"
.' },'."\n"
.' {'."\n"
.' "ocurrTimeStr": "2023-06-06 14:44:46",'."\n"
.' "standerdDesc": "快件在【加工厂店】完成分拣,准备发往 【沈阳****中转场】"'."\n"
.' },'."\n"
.' {'."\n"
.' "ocurrTimeStr": "2023-06-06 18:24:09",'."\n"
.' "standerdDesc": "快件到达 【沈阳****中转场】"'."\n"
.' },'."\n"
.' {'."\n"
.' "ocurrTimeStr": "2023-06-06 18:28:26",'."\n"
.' "standerdDesc": "快件在【沈阳****中转场】完成分拣,准备发往 【西安****中转场】"'."\n"
.' },'."\n"
.' {'."\n"
.' "ocurrTimeStr": "2023-06-07 05:40:35",'."\n"
.' "standerdDesc": "快件已发车"'."\n"
.' }'."\n"
.' ],'."\n"
.' "mailNo": "SF162546****599"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListLogisticsOrders',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListPurchaserShops' => [
'summary' => '获取采购方店铺列表。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaserShops',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'pageNumber',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '请求页码', 'description' => '请求页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, 'example' => '1'],
'examples' => [],
],
[
'name' => 'pageSize',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '每页数量范围', 'description' => '每页数量范围', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, 'example' => '10'],
'examples' => [],
],
],
'responses' => [
200 => [
'schema' => ['description' => '店铺列表信息', '$ref' => '#/components/schemas/ShopPageResult'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\",\\n \\"total\\": 24,\\n \\"shopList\\": [\\n {\\n \\"endDate\\": \\"2023-09-11T12:22:24.000+08:00\\",\\n \\"shopName\\": \\"儿童座椅分销店铺\\",\\n \\"shopId\\": \\"22****09\\",\\n \\"shopType\\": \\"DistributorQYG\\",\\n \\"cooperationShops\\": [\\n {\\n \\"shopId\\": \\"\\",\\n \\"cooperationCompanyId\\": \\"\\",\\n \\"cooperationShopId\\": \\"\\"\\n }\\n ],\\n \\"startDate\\": \\"2023-09-11T12:22:24.000+08:00\\",\\n \\"status\\": \\"Working\\",\\n \\"purchaserId\\": \\"PID56****2304\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '获取采购方店铺列表',
'description' => '获取采购方店铺列表。',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "AEE64C1D-7FBD-1F10-B8C7-12A854A1D6B4",'."\n"
.' "total": 6,'."\n"
.' "shopList": ['."\n"
.' {'."\n"
.' "shopId": "22000019",'."\n"
.' "purchaserId": "PID22000019",'."\n"
.' "shopName": "店铺名称001",'."\n"
.' "cooperationShops": ['."\n"
.' {'."\n"
.' "shopId": "22000019",'."\n"
.' "cooperationCompanyId": "11200003",'."\n"
.' "cooperationShopId": "21000026"'."\n"
.' }'."\n"
.' ],'."\n"
.' "shopType": "DistributorQYG",'."\n"
.' "startDate": null,'."\n"
.' "endDate": null,'."\n"
.' "status": "WORKING"'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "22000018",'."\n"
.' "purchaserId": "PID22000018",'."\n"
.' "shopName": "店铺名称002",'."\n"
.' "cooperationShops": [],'."\n"
.' "shopType": "DistributorQYG",'."\n"
.' "startDate": null,'."\n"
.' "endDate": null,'."\n"
.' "status": "APPROVED"'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "22000017",'."\n"
.' "purchaserId": "PID22000017",'."\n"
.' "shopName": "分销店铺0817",'."\n"
.' "cooperationShops": [],'."\n"
.' "shopType": "DistributorQYG",'."\n"
.' "startDate": null,'."\n"
.' "endDate": null,'."\n"
.' "status": "TO_BE_APPROVED"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListPurchaserShops',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListSelectionProductSaleInfos' => [
'summary' => '批量查询选品池商品销售信息。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products/saleInfo/commands/list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '批量查询商品库存参数', 'description' => '批量查询商品销售信息参数', 'required' => true, '$ref' => '#/components/schemas/ProductSaleInfoListQuery'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '商品销售信息', '$ref' => '#/components/schemas/ProductSaleInfoListResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3239281273464326823\\",\\n \\"productSaleInfos\\": [\\n {\\n \\"divisionCode\\": \\"330106109\\",\\n \\"quantity\\": 10,\\n \\"skus\\": [\\n {\\n \\"divisionCode\\": \\"330106109\\",\\n \\"markPrice\\": 999900,\\n \\"quantity\\": -1,\\n \\"productId\\": \\"660460842235822080\\",\\n \\"canSell\\": true,\\n \\"price\\": 19800,\\n \\"fuzzyQuantity\\": \\"有货\\",\\n \\"skuStatus\\": \\"Online\\",\\n \\"shopId\\": \\"21000017\\",\\n \\"title\\": \\"天蓝色\\",\\n \\"skuId\\": \\"660460842235822081\\",\\n \\"canNotSellReason\\": \\"不可售\\"\\n }\\n ],\\n \\"productId\\": \\"660460842235822080\\",\\n \\"canSell\\": true,\\n \\"requestId\\": \\"3239281273464326823\\",\\n \\"fuzzyQuantity\\": \\"有货\\",\\n \\"productStatus\\": \\"Online\\",\\n \\"shopId\\": \\"21000017\\",\\n \\"title\\": \\"发财树\\",\\n \\"lmItemId\\": \\"21000017-4580902812\\",\\n \\"limitRules\\": [\\n {\\n \\"ruleType\\": \\"UpperNumberPerUser\\",\\n \\"limitNum\\": 1,\\n \\"beginTime\\": 1724947200000,\\n \\"endTime\\": 1724947200000,\\n \\"condcase\\": \\"day\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
'title' => '批量查询选品池商品销售信息',
'description' => '批量查询选品池商品销售信息:分销商可调用此接口批量查询商品销售信息,如商品状态等;通过divisionCode(建议传入五级地址(乡镇/街道) Code) 入参批量查询商品在该区域是否可售。',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "purchaserId":"PID22000009", '."\n"
.' "divisionCode":"330106109", '."\n"
.' "productIds":['."\n"
.' "660460842235822080"'."\n"
.' ]'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "1556385F-6098-114E-84F8-14B383EF5AA8",'."\n"
.' "productSaleInfos": ['."\n"
.' {'."\n"
.' "requestId": null,'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "title": "发财树5--我用下小蚁这个商品-qhh 不用你其他商品",'."\n"
.' "skus": ['."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822081",'."\n"
.' "title": "天蓝色",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": false,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "无货",'."\n"
.' "price": 1,'."\n"
.' "markPrice": 999900'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822082",'."\n"
.' "title": "红色",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": true,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "price": 2,'."\n"
.' "markPrice": 999900'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822083",'."\n"
.' "title": "黑色",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": false,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "无货",'."\n"
.' "price": 1,'."\n"
.' "markPrice": 999900'."\n"
.' }'."\n"
.' ],'."\n"
.' "canSell": true,'."\n"
.' "productStatus": "Online",'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ListSelectionProductSaleInfos'],
],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListSelectionProductSaleInfos',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListSelectionProducts' => [
'summary' => '查询选品池商品列表。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/products',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'pageSize',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '分页大小', 'description' => '分页大小,区间[1,20]', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
],
[
'name' => 'pageNumber',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '当前页面序号,从1开始', 'description' => '当前页面序号,从1开始', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
],
[
'name' => 'purchaserId',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => ['title' => '采购方id', 'description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PID22000009'],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '商品详情', '$ref' => '#/components/schemas/ProductPageResult'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"pageSize\\": 10,\\n \\"total\\": 24,\\n \\"pageNumber\\": 1,\\n \\"requestId\\": \\"3239281273464326823\\",\\n \\"products\\": []\\n}","type":"json"}]',
'title' => '查询选品池商品列表',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "pageNumber": 1,'."\n"
.' "pageSize": 10,'."\n"
.' "purchaserId": "PID22000009"'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "87C11800-27D4-1CF7-A544-D006AC4ADAD5",'."\n"
.' "total": 48,'."\n"
.' "pageNumber": 2,'."\n"
.' "pageSize": 20,'."\n"
.' "products": ['."\n"
.' {'."\n"
.' "requestId": null,'."\n"
.' "productId": "660460842235822080",'."\n"
.' "title": "发财树5--我用下小蚁这个商品-qhh 不用你其他商品",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01NtbRbi1qokFAIsvNo_!!2216003305543.jpg",'."\n"
.' "descPath": "//itemcdn.tmall.com/desc/icoss!0724961349057!11733929840",'."\n"
.' "categoryLeafId": 50011150,'."\n"
.' "images": ['."\n"
.' "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01NtbRbi1qokFAIsvNo_!!2216003305543.jpg",'."\n"
.' "//img.alicdn.com/imgextra/i2/2216003305543/O1CN010DEQCX1qokFYGRfPE_!!2216003305543.png",'."\n"
.' "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01E6yC8z1qokFueiOI7_!!2216003305543.jpg",'."\n"
.' "//img.alicdn.com/imgextra/i3/2216003305543/O1CN01K3DLfJ1qokF5BPhVJ_!!2216003305543.jpg"'."\n"
.' ],'."\n"
.' "properties": ['."\n"
.' {'."\n"
.' "text": "颜色分类",'."\n"
.' "values": ['."\n"
.' "天蓝色",'."\n"
.' "红色",'."\n"
.' "黑色"'."\n"
.' ]'."\n"
.' }'."\n"
.' ],'."\n"
.' "productSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "values": ['."\n"
.' {'."\n"
.' "valueId": 0,'."\n"
.' "value": "天蓝色"'."\n"
.' },'."\n"
.' {'."\n"
.' "valueId": 0,'."\n"
.' "value": "红色"'."\n"
.' },'."\n"
.' {'."\n"
.' "valueId": 0,'."\n"
.' "value": "黑色"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ],'."\n"
.' "skus": ['."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822081",'."\n"
.' "title": "天蓝色",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra///img.alicdn.com/imgextra/i2/2216003305543/O1CN010DEQCX1qokFYGRfPE_!!2216003305543.png",'."\n"
.' "skuSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "valueId": 0,'."\n"
.' "value": "天蓝色"'."\n"
.' }'."\n"
.' ],'."\n"
.' "skuSpecsCode": "",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": false,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "无货",'."\n"
.' "price": 1,'."\n"
.' "markPrice": 999900,'."\n"
.' "platformPrice": 999900,'."\n"
.' "divisionCode": null'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822082",'."\n"
.' "title": "红色",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra///img.alicdn.com/imgextra/i3/2216003305543/O1CN01EWJ8tO1qokF2BAhv3_!!2216003305543.jpg",'."\n"
.' "skuSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "valueId": 0,'."\n"
.' "value": "红色"'."\n"
.' }'."\n"
.' ],'."\n"
.' "skuSpecsCode": "",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": true,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "price": 2,'."\n"
.' "markPrice": 999900,'."\n"
.' "platformPrice": 999900,'."\n"
.' "divisionCode": null'."\n"
.' },'."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822083",'."\n"
.' "title": "黑色",'."\n"
.' "picUrl": "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01NtbRbi1qokFAIsvNo_!!2216003305543.jpg",'."\n"
.' "skuSpecs": ['."\n"
.' {'."\n"
.' "keyId": 0,'."\n"
.' "key": "颜色分类",'."\n"
.' "valueId": 0,'."\n"
.' "value": "黑色"'."\n"
.' }'."\n"
.' ],'."\n"
.' "skuSpecsCode": "",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": false,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "无货",'."\n"
.' "price": 1,'."\n"
.' "markPrice": 999900,'."\n"
.' "platformPrice": 999900,'."\n"
.' "divisionCode": null'."\n"
.' }'."\n"
.' ],'."\n"
.' "canSell": true,'."\n"
.' "productType": "Normal",'."\n"
.' "productStatus": "Online",'."\n"
.' "shopId": "21000019",'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "taxRate": null,'."\n"
.' "taxCode": null,'."\n"
.' "categoryChain": ['."\n"
.' {'."\n"
.' "categoryId": 50023724,'."\n"
.' "name": "其他",'."\n"
.' "parentId": 0,'."\n"
.' "level": 0,'."\n"
.' "isLeaf": false'."\n"
.' },'."\n"
.' {'."\n"
.' "categoryId": 50011150,'."\n"
.' "name": "其它",'."\n"
.' "parentId": 50023724,'."\n"
.' "level": 0,'."\n"
.' "isLeaf": true'."\n"
.' }'."\n"
.' ],'."\n"
.' "soldQuantity": "0",'."\n"
.' "divisionCode": null'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListSelectionProducts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListSelectionSkuSaleInfos' => [
'summary' => '批量查询选品池SKU销售信息。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/skus/saleInfo/commands/list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'operationType' => 'read',
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '批量查询SKU库存参数', 'description' => '批量查询SKU销售信息参数', 'required' => true, '$ref' => '#/components/schemas/SkuSaleInfoListQuery'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => 'SKU销售信息', '$ref' => '#/components/schemas/SkuSaleInfoListResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"3239281273464326823\\",\\n \\"skuSaleInfos\\": [\\n {\\n \\"divisionCode\\": \\"330106109\\",\\n \\"markPrice\\": 999900,\\n \\"quantity\\": -1,\\n \\"productId\\": \\"660460842235822080\\",\\n \\"canSell\\": true,\\n \\"price\\": 19800,\\n \\"fuzzyQuantity\\": \\"有货\\",\\n \\"skuStatus\\": \\"Online\\",\\n \\"shopId\\": \\"21000017\\",\\n \\"title\\": \\"天蓝色\\",\\n \\"skuId\\": \\"660460842235822081\\",\\n \\"canNotSellReason\\": \\"不可售\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '批量查询选品池SKU销售信息',
'description' => '批量查询选品池SKU销售信息:分销商可调用此接口批量查询SKU销售信息,如SKU状态等;通过divisionCode(建议传入五级地址(乡镇/街道) Code) 入参批量查询SKU在该区域是否可售',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "divisionCode": "330106109",'."\n"
.' "purchaserId": "PID22000009",'."\n"
.' "skuQueryParams": ['."\n"
.' {'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822082"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "6F3A5B0A-AC2B-1083-A2ED-ACE62BF1C100",'."\n"
.' "skuSaleInfos": ['."\n"
.' {'."\n"
.' "shopId": "21000019",'."\n"
.' "divisionCode": "330106109",'."\n"
.' "productId": "660460842235822080",'."\n"
.' "skuId": "660460842235822082",'."\n"
.' "title": "红色",'."\n"
.' "skuStatus": "Online",'."\n"
.' "canSell": true,'."\n"
.' "quantity": -1,'."\n"
.' "fuzzyQuantity": "有货",'."\n"
.' "price": 2,'."\n"
.' "markPrice": 999900'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListSelectionSkuSaleInfos',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'QueryChildDivisionCode' => [
'summary' => '查询子区域编码。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/division/commands/queryChildDivisionCode',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '查询地址divisionCode', 'description' => '查询子区域编码', 'required' => true, '$ref' => '#/components/schemas/DivisionQuery'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '子区域编码', 'required' => false, '$ref' => '#/components/schemas/DivisionPageResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"divisionList\\": [\\n {\\n \\"divisionName\\": \\"上海\\",\\n \\"divisionCode\\": 310000,\\n \\"divisionLevel\\": 2,\\n \\"pinyin\\": \\"shang hai\\",\\n \\"parentId\\": 1\\n }\\n ],\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '查询子区域编码',
'description' => '查询子区域编码',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "divisionCode": "1"'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "85144A43-F418-1094-9A40-B8CE****8F30",'."\n"
.' "divisionList": ['."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 310000,'."\n"
.' "divisionName": "上海",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "shang hai"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 530000,'."\n"
.' "divisionName": "云南省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "yun nan sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 150000,'."\n"
.' "divisionName": "内蒙古自治区",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "nei meng gu zi zhi qu"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 110000,'."\n"
.' "divisionName": "北京",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "bei jing"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 220000,'."\n"
.' "divisionName": "吉林省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "ji lin sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 510000,'."\n"
.' "divisionName": "四川省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "si chuan sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 120000,'."\n"
.' "divisionName": "天津",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "tian jin"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 640000,'."\n"
.' "divisionName": "宁夏回族自治区",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "ning xia hui zu zi zhi qu"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 340000,'."\n"
.' "divisionName": "安徽省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "an hui sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 370000,'."\n"
.' "divisionName": "山东省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "shan dong sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 140000,'."\n"
.' "divisionName": "山西省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "shan xi sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 440000,'."\n"
.' "divisionName": "广东省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "guang dong sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 450000,'."\n"
.' "divisionName": "广西壮族自治区",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "guang xi zhuang zu zi zhi qu"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 650000,'."\n"
.' "divisionName": "新疆维吾尔自治区",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "xin jiang wei wu er zi zhi qu"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 320000,'."\n"
.' "divisionName": "江苏省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "jiang su sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 360000,'."\n"
.' "divisionName": "江西省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "jiang xi sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 130000,'."\n"
.' "divisionName": "河北省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "he bei sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 410000,'."\n"
.' "divisionName": "河南省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "he nan sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 330000,'."\n"
.' "divisionName": "浙江省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "zhe jiang sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 460000,'."\n"
.' "divisionName": "海南省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "hai nan sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 420000,'."\n"
.' "divisionName": "湖北省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "hu bei sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 430000,'."\n"
.' "divisionName": "湖南省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "hu nan sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 620000,'."\n"
.' "divisionName": "甘肃省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "gan su sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 350000,'."\n"
.' "divisionName": "福建省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "fu jian sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 540000,'."\n"
.' "divisionName": "西藏自治区",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "xi zang zi zhi qu"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 520000,'."\n"
.' "divisionName": "贵州省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "gui zhou sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 210000,'."\n"
.' "divisionName": "辽宁省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "liao ning sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 500000,'."\n"
.' "divisionName": "重庆",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "chong qing"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 610000,'."\n"
.' "divisionName": "陕西省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "shan xi sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 630000,'."\n"
.' "divisionName": "青海省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "qing hai sheng"'."\n"
.' },'."\n"
.' {'."\n"
.' "parentId": 1,'."\n"
.' "divisionCode": 230000,'."\n"
.' "divisionName": "黑龙江省",'."\n"
.' "divisionLevel": 2,'."\n"
.' "pinyin": "hei long jiang sheng"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'QueryChildDivisionCode'],
],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:QueryChildDivisionCode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'QueryOrders' => [
'summary' => '查询订单列表',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/orders/commands/query',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '查询主单列表', 'description' => '查询主单列表', 'required' => true, '$ref' => '#/components/schemas/OrderPageQuery'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '订单列表', 'required' => false, '$ref' => '#/components/schemas/OrderListResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"orderList\\": [\\n {\\n \\"orderAmount\\": 100,\\n \\"orderLineList\\": [\\n {\\n \\"productTitle\\": \\"儿童学习桌\\",\\n \\"number\\": \\"1\\",\\n \\"skuTitle\\": \\"浅绿色\\",\\n \\"productId\\": \\"6600****6736\\",\\n \\"orderId\\": \\"6692****5457\\",\\n \\"productPic\\": \\"//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0\\",\\n \\"orderLineId\\": \\"6692****5458\\",\\n \\"logisticsStatus\\": \\"1\\",\\n \\"payFee\\": 100,\\n \\"skuId\\": \\"6600****6737\\",\\n \\"orderLineStatus\\": \\"1\\",\\n \\"eticketInfos\\": [\\n {\\n \\"code\\": \\"taobao******tpg\\",\\n \\"qrcodeUrl\\": \\"http://qrcode.alicdn.com/img.jpg\\",\\n \\"codeStatus\\": -1,\\n \\"startTime\\": \\"\\\\n2026-02-04T00:00:00.000+08:00\\",\\n \\"endTime\\": \\"2026-08-02T23:59:59.000+08:00\\",\\n \\"usedNum\\": 1,\\n \\"useTime\\": \\"\\\\n2026-02-04T15:07:59.000+08:00\\",\\n \\"lockNum\\": 0,\\n \\"availableNum\\": 0\\n }\\n ]\\n }\\n ],\\n \\"orderId\\": \\"6692****5457\\",\\n \\"distributorId\\": \\"12****01\\",\\n \\"orderStatus\\": \\"1\\",\\n \\"logisticsStatus\\": \\"1\\",\\n \\"createDate\\": \\"2023-09-11T12:22:24.000+08:00\\",\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\",\\n \\"orderClosedReason\\": \\"系统关单\\"\\n }\\n ],\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\",\\n \\"total\\": 24\\n}","type":"json"}]',
'title' => '查询订单列表',
'description' => '查询订单列表',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "pageNumber": 1,'."\n"
.' "pageSize": 10,'."\n"
.' "orderIdList": ['."\n"
.' "6696070566****8593"'."\n"
.' ],'."\n"
.' "purchaseOrderId": "6696070566****8593",'."\n"
.' "outPurchaseOrderId": "6696070566****8512"'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "15BC537F-26F7-1AD0-AC3C-B79****D540",'."\n"
.' "total": 10,'."\n"
.' "orderList": ['."\n"
.' {'."\n"
.' "requestId": null,'."\n"
.' "createDate": "2023-09-09 10:57:23",'."\n"
.' "distributorId": "12****01",'."\n"
.' "logisticsStatus": "2",'."\n"
.' "orderId": "6696070566****8593",'."\n"
.' "orderAmount": "1",'."\n"
.' "orderStatus": "2",'."\n"
.' "orderLineList": ['."\n"
.' {'."\n"
.' "productPic": "//img.alicdn.com/imgextra/i4/2216****05543/O1CN01bip3Un1qo****YLWA_!!2216003****43.jpg",'."\n"
.' "productPrice": ['."\n"
.' {'."\n"
.' "fundAmountMoney": "1"'."\n"
.' }'."\n"
.' ],'."\n"
.' "productTitle": "儿童学习桌",'."\n"
.' "productId": "6600622091****6736",'."\n"
.' "number": "1",'."\n"
.' "orderLineStatus": "2",'."\n"
.' "logisticsStatus": "2",'."\n"
.' "skuId": "6600622091****6737",'."\n"
.' "skuTitle": "浅灰色",'."\n"
.' "orderLineId": "6696070566****8594",'."\n"
.' "orderId": "6696070566****8593"'."\n"
.' }'."\n"
.' ]'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [
['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'QueryOrders'],
],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:QueryOrders',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'RenderPurchaseOrder' => [
'summary' => '采购单渲染,会返回可售商品和不可售商品,客户可以选择可售商品进行采购单下单。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders/commands/render',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '渲染采购单', 'description' => '渲染采购单', 'required' => true, '$ref' => '#/components/schemas/PurchaseOrderRenderQuery'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '采购单渲染结果', 'required' => false, '$ref' => '#/components/schemas/PurchaseOrderRenderResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"addressList\\": [\\n {\\n \\"divisionCode\\": \\"330106\\",\\n \\"addressDetail\\": \\"陕西省西安市新城区xx街道xxx大厦xx室\\",\\n \\"receiverPhone\\": \\"182***5674\\",\\n \\"townDivisionCode\\": \\"330106109\\",\\n \\"receiver\\": \\"任先生\\",\\n \\"addressId\\": 0\\n }\\n ],\\n \\"canSell\\": true,\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\",\\n \\"orderList\\": [\\n {\\n \\"message\\": \\"库存为0\\",\\n \\"deliveryInfoList\\": [\\n {\\n \\"postFee\\": 0,\\n \\"serviceType\\": -4,\\n \\"id\\": \\"20\\",\\n \\"displayName\\": \\"快递 免邮\\"\\n }\\n ],\\n \\"canSell\\": true,\\n \\"productList\\": [\\n {\\n \\"productTitle\\": \\"儿童学习桌\\",\\n \\"features\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"skuTitle\\": \\"浅绿色\\",\\n \\"quantity\\": 1,\\n \\"productId\\": \\"6600****6736\\",\\n \\"canSell\\": true,\\n \\"price\\": 100,\\n \\"productPicUrl\\": \\"//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0\\",\\n \\"purchaserId\\": \\"PID56****2304\\",\\n \\"message\\": \\"库存为0\\",\\n \\"skuId\\": \\"6600****6737\\"\\n }\\n ],\\n \\"extInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"unsellableOrderList\\": [\\n {\\n \\"message\\": \\"库存为0\\",\\n \\"deliveryInfoList\\": [\\n {\\n \\"postFee\\": 0,\\n \\"serviceType\\": -4,\\n \\"id\\": \\"20\\",\\n \\"displayName\\": \\"快递 免邮\\"\\n }\\n ],\\n \\"canSell\\": true,\\n \\"productList\\": [\\n {\\n \\"productTitle\\": \\"儿童学习桌\\",\\n \\"features\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"skuTitle\\": \\"浅绿色\\",\\n \\"quantity\\": 1,\\n \\"productId\\": \\"6600****6736\\",\\n \\"canSell\\": true,\\n \\"price\\": 100,\\n \\"productPicUrl\\": \\"//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0\\",\\n \\"purchaserId\\": \\"PID56****2304\\",\\n \\"message\\": \\"库存为0\\",\\n \\"skuId\\": \\"6600****6737\\"\\n }\\n ],\\n \\"extInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"message\\": \\"库存为0\\",\\n \\"extInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]',
'title' => '采购单渲染',
'description' => '><warning>本接口即将下线,采购单渲染请使用SplitPurchaseOrder - 采购单渲染并拆单接口></warning>',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "deliveryAddress": {'."\n"
.' "divisionCode": "610102",'."\n"
.' "addressDetail": "陕西省西安市***大厦",'."\n"
.' "receiverPhone": "187****1553",'."\n"
.' "receiver": "闫先生",'."\n"
.' "townDivisionCode": "61010212"'."\n"
.' },'."\n"
.' "buyerId": "test1234****679",'."\n"
.' "productList": ['."\n"
.' {'."\n"
.' "quantity": 1,'."\n"
.' "productId": "6600622091****6736",'."\n"
.' "purchaserId": "22000009",'."\n"
.' "skuId": "6600622091****6737"'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": "0928251D-713B-17A1-A2B0-1A57****90B4",'."\n"
.' "orderList": ['."\n"
.' {'."\n"
.' "productList": ['."\n"
.' {'."\n"
.' "productId": "6600622091****6736",'."\n"
.' "productTitle": "儿童学习桌",'."\n"
.' "skuTitle": "浅灰色",'."\n"
.' "skuId": "6600622091****6737",'."\n"
.' "purchaserId": "22***09",'."\n"
.' "promotionFee": null,'."\n"
.' "quantity": 1,'."\n"
.' "productUrl": null,'."\n"
.' "productPicUrl": "//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0DYLWA_!!2216003305543.jpg",'."\n"
.' "price": 1,'."\n"
.' "canSell": true,'."\n"
.' "message": null,'."\n"
.' "features": null'."\n"
.' }'."\n"
.' ],'."\n"
.' "deliveryInfoList": ['."\n"
.' {'."\n"
.' "id": "20",'."\n"
.' "displayName": "快递 免邮",'."\n"
.' "postFee": 0,'."\n"
.' "serviceType": -4'."\n"
.' }'."\n"
.' ],'."\n"
.' "invoiceInfo": null,'."\n"
.' "extInfo": null,'."\n"
.' "canSell": true,'."\n"
.' "message": null'."\n"
.' }'."\n"
.' ],'."\n"
.' "unsellableOrderList": ['."\n"
.' {'."\n"
.' "productList": [],'."\n"
.' "deliveryInfoList": null,'."\n"
.' "invoiceInfo": null,'."\n"
.' "extInfo": null,'."\n"
.' "canSell": false,'."\n"
.' "message": null'."\n"
.' }'."\n"
.' ],'."\n"
.' "addressList": ['."\n"
.' {'."\n"
.' "addressId": 0,'."\n"
.' "receiver": "闫先生",'."\n"
.' "receiverPhone": "187****1553",'."\n"
.' "addressDetail": "陕西省西安市***大厦",'."\n"
.' "divisionCode": "610102",'."\n"
.' "townDivisionCode": "610102002"'."\n"
.' }'."\n"
.' ],'."\n"
.' "extInfo": null,'."\n"
.' "canSell": true,'."\n"
.' "message": null'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:RenderPurchaseOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'RenderRefundOrder' => [
'summary' => '逆向单渲染',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/refunds/commands/render',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => [],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'schema' => ['title' => '逆向单渲染', 'description' => '逆向单渲染', 'required' => true, '$ref' => '#/components/schemas/RefundRenderCmd'],
'examples' => [],
],
],
'responses' => [
200 => [
'description' => '成功',
'schema' => ['description' => '售后单渲染结果', 'required' => false, '$ref' => '#/components/schemas/RefundRenderResult'],
'examples' => [],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"maxRefundFeeData\\": {\\n \\"minRefundFee\\": 1,\\n \\"maxRefundFee\\": 100\\n },\\n \\"refundReasonList\\": [\\n {\\n \\"reasonTextId\\": \\"47683\\",\\n \\"proofRequired\\": true,\\n \\"reasonTips\\": \\"不想要了\\",\\n \\"refundDescRequired\\": true\\n }\\n ],\\n \\"bizClaimType\\": 1,\\n \\"orderLineId\\": \\"6692****5458\\",\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\"\\n}","type":"json"}]',
'title' => '售后单渲染',
'description' => '售后单渲染',
'requestParamsDescription' => '```'."\n"
.'{'."\n"
.' "bizClaimType": 3,'."\n"
.' "goodsStatus": 2,'."\n"
.' "orderLineId": "6696070566****8594"'."\n"
.'}',
'responseParamsDescription' => '````'."\n"
.'{'."\n"
.' "requestId": "6D7C43A1-2EFC-185E-816E-A8CB****36EB",'."\n"
.' "orderLineId": "6696070566****8594",'."\n"
.' "bizClaimType": 3,'."\n"
.' "maxRefundFeeData": {'."\n"
.' "maxRefundFee": 1,'."\n"
.' "minRefundFee": 0'."\n"
.' },'."\n"
.' "refundReasonList": ['."\n"
.' {'."\n"
.' "reasonTextId": "402652",'."\n"
.' "proofRequired": false,'."\n"
.' "reasonTips": "拍错/多拍/不喜欢",'."\n"
.' "refundDescRequired": false'."\n"
.' },'."\n"
.' {'."\n"
.' "reasonTextId": "403883",'."\n"
.' "proofRequired": false,'."\n"
.' "reasonTips": "商品成分描述不符",'."\n"
.' "refundDescRequired": false'."\n"
.' },'."\n"
.' {'."\n"
.' "reasonTextId": "402641",'."\n"
.' "proofRequired": false,'."\n"
.' "reasonTips": "尺寸/规格不符",'."\n"
.' "refundDescRequired": false'."\n"
.' },'."\n"
.' {'."\n"
.' "reasonTextId": "402649",'."\n"
.' "proofRequired": false,'."\n"
.' "reasonTips": "颜色/款式/包装与商品描述不符",'."\n"
.' "refundDescRequired": false'."\n"
.' },'."\n"
.' {'."\n"
.' "reasonTextId": "402645",'."\n"
.' "proofRequired": false,'."\n"
.' "reasonTips": "收到商品少件/破损/变形等",'."\n"
.' "refundDescRequired": false'."\n"
.' },'."\n"
.' {'."\n"
.' "reasonTextId": "402638",'."\n"
.' "proofRequired": false,'."\n"
.' "reasonTips": "枯萎/死亡",'."\n"
.' "refundDescRequired": false'."\n"
.' }'."\n"
.' ]'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:RenderRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'SearchProducts' => [
'summary' => '商品搜索接口,提供按不同条件搜索合适商品的分页接口。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/searchProduct',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '263793',
'abilityTreeNodes' => ['FEATURElinkedmallMY1IED'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求Body',
'type' => 'object',
'properties' => [
'purchaserId' => ['description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PIDxxxx'],
'categoryIds' => [
'description' => '类目id集合',
'type' => 'array',
'items' => ['description' => '类目id', 'type' => 'string', 'required' => false, 'example' => 'xxx'],
'required' => false,
],
'productStatus' => [
'description' => '商品状态',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['Unsellable' => '不可售卖', 'Sellable' => '可售卖'],
'example' => 'Sellable',
],
'productName' => ['description' => '商品名称', 'type' => 'string', 'required' => false, 'example' => '绿植'],
'productId' => ['description' => '商品Id', 'type' => 'string', 'required' => false, 'example' => 'xxxxxxx'],
'lmItemId' => ['description' => 'LM商品id', 'type' => 'string', 'required' => false, 'example' => 'xxx-xxxxx'],
'inGroup' => [
'description' => '是否入库',
'type' => 'boolean',
'required' => false,
'enumValueTitles' => ['true' => '已入库', 'false' => '未入库'],
'example' => 'true',
],
'inventoryRiskLevel' => [
'description' => '库存风险等级',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['High' => '高', 'Low' => '低'],
'example' => 'Low',
],
'distributionLowPrice' => ['description' => '经销采购价下限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100(单位:分)'],
'distributionHighPrice' => ['description' => '经销采购价上限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100(单位:分)'],
'distributionLowPriceRatio' => ['description' => '经销溢价率下限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '133(1.33%)'],
'distributionHighPriceRatio' => ['description' => '经销溢价率上限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '244(2.44%)'],
'lowMarkPrice' => ['description' => '划线价下限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100(单位:分)'],
'highMarkPrice' => ['description' => '划线价上限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100(单位:分)'],
'lowPrice' => ['description' => '建议零售价下限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100(单位:分)'],
'highPrice' => ['description' => '建议零售价上限', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100(单位:分)'],
'platform' => [
'description' => '来源平台',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['Cbu' => '1688分销货盘', 'Tmall' => '天猫', 'Taobao' => '淘宝'],
'example' => 'Taobao(来源淘宝)'."\n"
.'Tmall(来源天猫)'."\n"
.'Cbu(来源1688分销货盘)',
],
'brandName' => ['description' => '品牌名称', 'type' => 'string', 'required' => false, 'example' => '绿植'],
'inGroupStartTime' => ['description' => '入库起始时间', 'type' => 'string', 'required' => false, 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'],
'inGroupEndTime' => ['description' => '入库结束时间', 'type' => 'string', 'required' => false, 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'],
'modifyStartTime' => ['description' => '修改起始时间', 'type' => 'string', 'required' => false, 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'],
'modifyEndTime' => ['description' => '修改结束时间', 'type' => 'string', 'required' => false, 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'],
'createStartTime' => ['description' => '创建起始时间', 'type' => 'string', 'required' => false, 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'],
'createEndTime' => ['description' => '创建结束时间', 'type' => 'string', 'required' => false, 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'],
'tradeModeAndCredit' => [
'description' => '销售模式',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['Credit90' => '支持账期90天', 'NonCredit' => '不支持账期', 'ConsignmentJingXiao' => '经销和代销', 'JingXiao' => '经销', 'None' => '无配置'],
'example' => 'JingXiao',
],
'taxRate' => [
'description' => '税率'."\n"
.'> '."\n"
.'> - 支持多种税率枚举值组合入参,请使用“,”隔离,例:Rate0,Rate1'."\n"
.'> - HasRate不能和其他枚举值组合入参',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['Rate1' => '1%', 'Rate0' => '0税率', 'Rate5' => '5%', 'Rate6' => '6%', 'HasRate' => '有税率', 'Rate9' => '9%', 'Rate13' => '13%', 'NonRate' => '无税率', 'TaxExemption' => '免税'],
'example' => 'Rate0',
],
'pageSize' => ['description' => '分页大小'."\n"
.'> '."\n"
.'> - 最大支持20个/页', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
'pageNumber' => ['description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'orderBy' => [
'description' => '排序字段'."\n"
.'> '."\n"
.'> - 与排序方向字段组合使用',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['soldQuantity' => '按销量排序'],
'example' => 'soldQuantity(按销量排序,不填默认创建时间倒序)',
],
'orderDirection' => [
'description' => '排序方向'."\n"
.'> '."\n"
.'> - 与排序字段组合使用',
'type' => 'string',
'required' => false,
'enumValueTitles' => [' ASC' => '顺序排序', 'DESC' => '倒序排序'],
'example' => 'ASC',
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'total' => ['description' => '总数量', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'products' => [
'description' => '商品集合',
'type' => 'array',
'items' => [
'description' => '商品集合',
'type' => 'object',
'properties' => [
'picUrl' => ['description' => '商品主图', 'type' => 'string', 'example' => 'https://img.alicdn.com/xxx.jpg'],
'productName' => ['description' => '商品名称', 'type' => 'string', 'example' => '绿植'],
'productId' => ['description' => '商品id', 'type' => 'string', 'example' => 'xxxxx'],
'lmItemId' => ['description' => 'LM商品id', 'type' => 'string', 'example' => 'xxx-xxxxx'],
'distributionPrice' => ['description' => '经销采购价范围', 'type' => 'string', 'example' => '¥0.05 ~ ¥21.10'],
'diffPrice' => ['description' => '价差范围', 'type' => 'string', 'example' => '¥-9998.95 ~ ¥-9977.90'],
'distributionPriceRatio' => ['description' => '经销溢价率范围', 'type' => 'string', 'example' => '-100.00% ~ -99.79%'],
'platformPrice' => ['description' => '建议零售价范围', 'type' => 'string', 'example' => '¥9999.00 ~ ¥9999.00'],
'platformReservePrice' => ['description' => '划线价范围', 'type' => 'string', 'example' => '¥9999.00 ~ ¥9999.00'],
'soldQuantity' => ['description' => '累计销量', 'type' => 'string', 'example' => '100'],
'inventoryRiskLevel' => [
'description' => '库存风险等级',
'type' => 'string',
'enumValueTitles' => ['High' => '高', 'Low' => '低'],
'example' => 'Low',
],
'externalPlatformType' => ['description' => '来源平台', 'type' => 'string', 'example' => 'Taobao(来源淘宝)'."\n"
.'Tmall(来源天猫)'."\n"
.'Cbu(来源1688分销货盘)'],
'shopName' => ['description' => '渠道商店铺名称', 'type' => 'string', 'example' => 'xxx'],
'categoryChain' => [
'description' => '类目',
'type' => 'array',
'items' => [
'description' => '类目',
'type' => 'object',
'properties' => [
'categoryId' => ['description' => '类目id', 'type' => 'integer', 'format' => 'int64', 'example' => '201792301'],
'name' => ['description' => '类目名称', 'type' => 'string', 'example' => '名称测试'],
'parentId' => ['description' => '父类id', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'isLeaf' => ['description' => '是否叶子节点', 'type' => 'boolean', 'example' => 'false'],
'level' => ['description' => '层级', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
'bandName' => ['description' => '品牌名称', 'type' => 'string', 'example' => '绿植'],
'canSell' => ['description' => '商品是否可售,计算值', 'type' => 'boolean', 'example' => 'true'],
'canNotSellReason' => ['description' => '不可售原因', 'type' => 'string', 'example' => '库存不足'],
'tradeMode' => ['description' => '销售模式', 'type' => 'string', 'example' => 'JingXiao'],
'credit' => [
'description' => '账期',
'type' => 'array',
'items' => [
'description' => '账期',
'type' => 'string',
'enumValueTitles' => ['Credit90' => '90天账期', 'NonCredit' => '不支持账期'],
'example' => 'Credit90',
],
],
'invoiceType' => [
'description' => '发票类型',
'type' => 'string',
'enumValueTitles' => ['HasInvoice' => '可开发票', 'NonInvoice' => '不可开发票'],
'example' => 'HasInvoice',
],
'taxRate' => ['description' => '税率', 'type' => 'integer', 'format' => 'int64', 'example' => '600(6%)'."\n"
.'-100(免税)'],
'taxCode' => ['description' => '税码', 'type' => 'string', 'example' => '3040203000000000000'],
'gmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'."\n"],
'inGroupTime' => ['description' => '入库时间', 'type' => 'string', 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'."\n"],
'gmtModified' => ['description' => '最后修改时间。', 'type' => 'string', 'example' => '2025-01-02 12:23:34'."\n"
.'(yyyy-MM-dd HH:mm:ss)'."\n"],
'inGroup' => [
'description' => '是否入库',
'type' => 'boolean',
'enumValueTitles' => ['true' => '已入库', 'false' => '未入库'],
'example' => 'true',
],
],
],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"total\\": 3,\\n \\"products\\": [\\n {\\n \\"picUrl\\": \\"https://img.alicdn.com/xxx.jpg\\",\\n \\"productName\\": \\"绿植\\",\\n \\"productId\\": \\"xxxxx\\",\\n \\"lmItemId\\": \\"xxx-xxxxx\\",\\n \\"distributionPrice\\": \\"¥0.05 ~ ¥21.10\\",\\n \\"diffPrice\\": \\"¥-9998.95 ~ ¥-9977.90\\",\\n \\"distributionPriceRatio\\": \\"-100.00% ~ -99.79%\\",\\n \\"platformPrice\\": \\"¥9999.00 ~ ¥9999.00\\",\\n \\"platformReservePrice\\": \\"¥9999.00 ~ ¥9999.00\\",\\n \\"soldQuantity\\": \\"100\\",\\n \\"inventoryRiskLevel\\": \\"Low\\",\\n \\"externalPlatformType\\": \\"Taobao(来源淘宝)\\\\nTmall(来源天猫)\\\\nCbu(来源1688分销货盘)\\",\\n \\"shopName\\": \\"xxx\\",\\n \\"categoryChain\\": [\\n {\\n \\"categoryId\\": 201792301,\\n \\"name\\": \\"名称测试\\",\\n \\"parentId\\": 0,\\n \\"isLeaf\\": false,\\n \\"level\\": 1\\n }\\n ],\\n \\"bandName\\": \\"绿植\\",\\n \\"canSell\\": true,\\n \\"canNotSellReason\\": \\"库存不足\\",\\n \\"tradeMode\\": \\"JingXiao\\",\\n \\"credit\\": [\\n \\"Credit90\\"\\n ],\\n \\"invoiceType\\": \\"HasInvoice\\",\\n \\"taxRate\\": 0,\\n \\"taxCode\\": \\"3040203000000000000\\",\\n \\"gmtCreate\\": \\"2025-01-02 12:23:34\\\\n(yyyy-MM-dd HH:mm:ss)\\\\n\\",\\n \\"inGroupTime\\": \\"2025-01-02 12:23:34\\\\n(yyyy-MM-dd HH:mm:ss)\\\\n\\",\\n \\"gmtModified\\": \\"2025-01-02 12:23:34\\\\n(yyyy-MM-dd HH:mm:ss)\\\\n\\",\\n \\"inGroup\\": true\\n }\\n ]\\n}","type":"json"}]',
'title' => '搜索选品池商品',
'responseParamsDescription' => '```'."\n"
.'{'."\n"
.' "requestId": null,'."\n"
.' "total": 1,'."\n"
.' "products": ['."\n"
.' {'."\n"
.' "picUrl": "//img.alicdn.com/imgextra/i4/xxx.jpg",'."\n"
.' "productName": "xxx",'."\n"
.' "productId": "xxxx",'."\n"
.' "lmItemId": "xxx-xxx",'."\n"
.' "distributionPrice": "¥0.01 ~ ¥0.02",'."\n"
.' "diffPrice": "¥0.00 ~ ¥0.00",'."\n"
.' "distributionPriceRatio": "0.00% ~ 0.00%",'."\n"
.' "platformPrice": "¥0.01 ~ ¥0.02",'."\n"
.' "platformReservePrice": "¥0.01 ~ ¥0.02",'."\n"
.' "soldQuantity": "1",'."\n"
.' "inventoryRiskLevel": "Low",'."\n"
.' "externalPlatformType": "Tmall",'."\n"
.' "shopName": "xxxx",'."\n"
.' "categoryChain": ['."\n"
.' {'."\n"
.' "categoryId": 50050359,'."\n"
.' "name": "水产肉类/新鲜蔬果/熟食",'."\n"
.' "parentId": 0,'."\n"
.' "level": 1,'."\n"
.' "isLeaf": false'."\n"
.' },'."\n"
.' {'."\n"
.' "categoryId": 50050372,'."\n"
.' "name": "生肉/肉制品",'."\n"
.' "parentId": 50050359,'."\n"
.' "level": 2,'."\n"
.' "isLeaf": false'."\n"
.' },'."\n"
.' {'."\n"
.' "categoryId": 50050667,'."\n"
.' "name": "鸡肉类",'."\n"
.' "parentId": 50050372,'."\n"
.' "level": 3,'."\n"
.' "isLeaf": false'."\n"
.' },'."\n"
.' {'."\n"
.' "categoryId": 124222016,'."\n"
.' "name": "整鸡/整鸡制品",'."\n"
.' "parentId": 50050667,'."\n"
.' "level": 4,'."\n"
.' "isLeaf": true'."\n"
.' }'."\n"
.' ],'."\n"
.' "bandName": "xxx",'."\n"
.' "canSell": true,'."\n"
.' "canNotSellReason": null,'."\n"
.' "tradeMode": "JingXiao",'."\n"
.' "credit": ['."\n"
.' "Credit90"'."\n"
.' ],'."\n"
.' "invoiceType": "HasInvoice",'."\n"
.' "taxRate": 0,'."\n"
.' "taxCode": "xxx",'."\n"
.' "gmtCreate": "2025-01-21 17:11:04",'."\n"
.' "inGroupTime": "2025-01-21 17:12:09",'."\n"
.' "gmtModified": "2025-01-21 17:11:04",'."\n"
.' "inGroup": true'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'```',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:SearchProducts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'SelectionGroupAddProduct' => [
'summary' => '分销商操作商品入库。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/addProduct',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '263790',
'abilityTreeNodes' => ['FEATURElinkedmallMY1IED'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'purchaserId' => ['description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PIDxxxxx'],
'productIds' => [
'description' => '入库商品id集合'."\n"
.'> '."\n"
.'> - 单次调用最大30个商品',
'type' => 'array',
'items' => ['description' => '商品id', 'type' => 'string', 'required' => true, 'example' => 'xxxx'],
'required' => true,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '入库接口返回',
'type' => 'object',
'properties' => [
'productIds' => [
'description' => '入库成功的商品id列表',
'type' => 'array',
'items' => ['description' => '入库成功的商品id', 'type' => 'string', 'example' => 'xxxx'],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"productIds\\": [\\n \\"xxxx\\"\\n ]\\n}","type":"json"}]',
'title' => '选品池商品入库',
'description' => '分销商可通过此接口入库商品。'."\n"
."\n"
.'> 2025年1月1日(含)后入驻的分销客户,建议对接此接口。关于入库操作和影响请参考中[商品最佳实践](https://help.aliyun.com/zh/linkedmall/user-guide/product-interface-best-practices?spm=a2c4g.11186623.help-menu-88587.d_2_2_0_8_0.58122056oN3crP&scm=20140722.H_2869668._.OR_help-T_cn~zh-V_1#lFENl)中相关说明。',
'requestParamsDescription' => '已入库的商品不会重复入库',
'responseParamsDescription' => '只有入库成功会返回对应的商品id',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'linkedmall:SelectionGroupAddProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'SelectionGroupRemoveProduct' => [
'summary' => '分销商操作商品出库。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/selectionPool/selection-group/product/command/removeProduct',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '263792',
'abilityTreeNodes' => ['FEATURElinkedmallMY1IED'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'purchaserId' => ['description' => '采购方id', 'type' => 'string', 'required' => true, 'example' => 'PIDxxxxx'],
'productIds' => [
'description' => '需要出库的商品id列表'."\n"
.'> '."\n"
.'> - 单次调用最大支持30个商品',
'type' => 'array',
'items' => ['description' => '出库的商品id', 'type' => 'string', 'required' => true, 'example' => 'xxxxxx'],
'required' => true,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '出库接口返回',
'type' => 'object',
'properties' => [
'productIds' => [
'description' => '出库成功的商品id集合',
'type' => 'array',
'items' => ['description' => '出库成功的商品id', 'type' => 'string', 'example' => 'xxxxx'],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"productIds\\": [\\n \\"xxxxx\\"\\n ]\\n}","type":"json"}]',
'title' => '选品池商品出库',
'description' => '分销商通过此接口操作商品出库',
'requestParamsDescription' => '已出库的商品不会重复出库',
'responseParamsDescription' => '这里仅返回出库成功的商品id列表',
'changeSet' => [
['createdAt' => '2025-02-19T02:53:12.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'SelectionGroupRemoveProduct'],
],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'linkedmall:SelectionGroupRemoveProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'SplitPurchaseOrder' => [
'summary' => '采购单渲染拆单接口,可以依照最终主子单结构方式返回商品列表,分销商接入方可以渲染得到最终的主子单结构,方便后续接收创建采购单成功消息并回填主子单信息。',
'path' => '/opensaas-s2b/opensaas-s2b-biz-trade/v2/purchaseOrders/commands/split',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => '采购单拆单渲染入参信息', 'required' => false, '$ref' => '#/components/schemas/PurchaseOrderRenderQuery'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '采购单拆单渲染结果返回', '$ref' => '#/components/schemas/PurchaseOrderRenderResult'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"addressList\\": [\\n {\\n \\"divisionCode\\": \\"330106\\",\\n \\"addressDetail\\": \\"陕西省西安市新城区xx街道xxx大厦xx室\\",\\n \\"receiverPhone\\": \\"182***5674\\",\\n \\"townDivisionCode\\": \\"330106109\\",\\n \\"receiver\\": \\"任先生\\",\\n \\"addressId\\": 0\\n }\\n ],\\n \\"canSell\\": true,\\n \\"requestId\\": \\"841471F6-5D61-1331-8C38-2****B55\\",\\n \\"orderList\\": [\\n {\\n \\"message\\": \\"库存为0\\",\\n \\"deliveryInfoList\\": [\\n {\\n \\"postFee\\": 0,\\n \\"serviceType\\": -4,\\n \\"id\\": \\"20\\",\\n \\"displayName\\": \\"快递 免邮\\"\\n }\\n ],\\n \\"canSell\\": true,\\n \\"productList\\": [\\n {\\n \\"productTitle\\": \\"儿童学习桌\\",\\n \\"features\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"skuTitle\\": \\"浅绿色\\",\\n \\"quantity\\": 1,\\n \\"productId\\": \\"6600****6736\\",\\n \\"canSell\\": true,\\n \\"price\\": 100,\\n \\"productPicUrl\\": \\"//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0\\",\\n \\"purchaserId\\": \\"PID56****2304\\",\\n \\"message\\": \\"库存为0\\",\\n \\"skuId\\": \\"6600****6737\\"\\n }\\n ],\\n \\"extInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"unsellableOrderList\\": [\\n {\\n \\"message\\": \\"库存为0\\",\\n \\"deliveryInfoList\\": [\\n {\\n \\"postFee\\": 0,\\n \\"serviceType\\": -4,\\n \\"id\\": \\"20\\",\\n \\"displayName\\": \\"快递 免邮\\"\\n }\\n ],\\n \\"canSell\\": true,\\n \\"productList\\": [\\n {\\n \\"productTitle\\": \\"儿童学习桌\\",\\n \\"features\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"skuTitle\\": \\"浅绿色\\",\\n \\"quantity\\": 1,\\n \\"productId\\": \\"6600****6736\\",\\n \\"canSell\\": true,\\n \\"price\\": 100,\\n \\"productPicUrl\\": \\"//img.alicdn.com/imgextra/i4/2216003305543/O1CN01bip3Un1qokG0\\",\\n \\"purchaserId\\": \\"PID56****2304\\",\\n \\"message\\": \\"库存为0\\",\\n \\"skuId\\": \\"6600****6737\\"\\n }\\n ],\\n \\"extInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ],\\n \\"message\\": \\"库存为0\\",\\n \\"extInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n}","type":"json"}]',
'title' => '采购单渲染并拆单',
'description' => '建议在创建采购单之前调用本接口,本接口将返回可售商品信息列表和不可售商品信息列表,其中可售商品信息列表按照最终主子单拆单结构进行呈现。',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:SplitPurchaseOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
],
'endpoints' => [
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkedmall.aliyuncs.com', 'endpoint' => 'linkedmall.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkedmall-distributor.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'linkedmall-distributor.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'linkedmall-distributor-vpc.cn-zhangjiakou.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'linkedmall.cn-hangzhou.aliyuncs.com', 'endpoint' => 'linkedmall.cn-hangzhou.aliyuncs.com', 'vpc' => 'linkedmall.vpc-proxy.aliyuncs.com'],
['regionId' => 'cn-north-2-gov-1', 'regionName' => '北京政务云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'linkedmall.aliyuncs.com', 'endpoint' => 'linkedmall.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'ApplyReasonTextIdInvalid', 'message' => '无效的退款原因id', 'http_code' => 400, 'description' => '无效的退款原因id'],
['code' => 'AuthCompanyNotFind', 'message' => 'AK对应的主体不存在', 'http_code' => 404, 'description' => 'AK对应的主体不存在'],
['code' => 'CpCodeInvalid', 'message' => '无法识别的快递公司代号 {}', 'http_code' => 400, 'description' => '无法识别的快递公司代号'],
['code' => 'DisputeInSelleFundOnlyCanReturnAll', 'message' => '售中只能全部退', 'http_code' => 400, 'description' => '售中只能全部退'],
['code' => 'DisputePolicyInvalid', 'message' => '无效的退款类型', 'http_code' => 400, 'description' => '无效的退款类型'],
['code' => 'GoodStatusInvalid', 'message' => '无效的货品状态', 'http_code' => 400, 'description' => '无效的货品状态'],
['code' => 'HasNoPrivilege', 'message' => 'NoPrivilege.', 'http_code' => 403, 'description' => '没有权限'],
['code' => 'linkedmall.errorcode.InternalError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => '未知原因导致请求失败.'],
['code' => 'MissingParameter', 'message' => 'You must specify the parameter.', 'http_code' => 500, 'description' => '缺少参数'],
['code' => 'MissingParameter', 'message' => 'Required parameter \'{}\' is not found.', 'http_code' => 400, 'description' => '参数缺失'],
['code' => 'OnlyRefundAndReturnCanSubmitShipping', 'message' => '只有退货退款才能提交退货物流信息', 'http_code' => 400, 'description' => '只有退货退款才能提交退货物流信息'],
['code' => 'OrderForbidden', 'message' => '{} 订单无访问权限', 'http_code' => 403, 'description' => '订单无访问权限'],
['code' => 'OrderLineForbidden', 'message' => '{} 子订单无访问权限', 'http_code' => 403, 'description' => '子订单无访问权限'],
['code' => 'OrderLineNotFound', 'message' => '{} 子订单不存在', 'http_code' => 404, 'description' => '子订单不存在'],
['code' => 'OrderNotFound', 'message' => '订单不存在', 'http_code' => 404, 'description' => '主订单不存在'],
['code' => 'OuterPurchaseOrderIdExist', 'message' => '{} 外部采购单已经存在', 'http_code' => 500, 'description' => '外部采购单已经存在'],
['code' => 'ParameterInvalid', 'message' => 'parameter {} invalid', 'http_code' => 400, 'description' => '参数格式错误'],
['code' => 'PurchaseOrderForbidden', 'message' => '采购单不存在或无访问权限', 'http_code' => 403, 'description' => '采购单不存在或无访问权限'],
['code' => 'PurchaseOrderIdOrOrderIdInvalid', 'message' => '分销交易号或者主订单号不正确', 'http_code' => 400, 'description' => '分销交易号或者主订单号不正确'],
['code' => 'PurchaseOrderNotFound', 'message' => '{} 采购单不存在', 'http_code' => 400, 'description' => '采购单不存在'],
['code' => 'RefundAmountMustLessThanOrder', 'message' => '退款金额不能大于订单金额', 'http_code' => 400, 'description' => '退款金额不能大于订单金额'],
['code' => 'RefundNotFound', 'message' => '退款单不存在', 'http_code' => 400, 'description' => '退款单不存在'],
['code' => 'RefundNumberMustLessThanOrder', 'message' => '退款数量不能大于订单数量', 'http_code' => 400, 'description' => '退款数量不能大于订单数量'],
['code' => 'SavePurchaseOrderError', 'message' => '保存采购单失败', 'http_code' => 500, 'description' => '保存采购单失败'],
['code' => 'ShopForbidden', 'message' => '{} 店铺无访问权限', 'http_code' => 403, 'description' => '店铺无访问权限'],
['code' => 'ShopIdUnique', 'message' => '存在多个不同的shopId', 'http_code' => 404, 'description' => '存在多个不同的shopId'],
['code' => 'ShopNotFind', 'message' => '{} 店铺不存在', 'http_code' => 404, 'description' => '店铺不存在'],
['code' => 'ShopTypeInvalid', 'message' => 'skuId:{} 是经销集采的店铺商品无法下单', 'http_code' => 400, 'description' => '经销集采店铺的商品无法下单'],
['code' => 'SkuNotFind', 'message' => '{} sku不存在', 'http_code' => 404, 'description' => 'sku不存在'],
['code' => 'SkuPriceUnique', 'message' => 'skuId:{} sku价格不是最新的', 'http_code' => 400, 'description' => 'sku价格不是最新的'],
],
'changeSet' => [
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'SearchProducts'],
['description' => '请求参数发生变更', 'api' => 'SelectionGroupAddProduct'],
['description' => '请求参数发生变更', 'api' => 'SelectionGroupRemoveProduct'],
],
'createdAt' => '2025-02-19T02:53:22.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'GetSelectionProduct'],
],
'createdAt' => '2024-03-29T03:14:50.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'ListPurchaserShops'],
],
'createdAt' => '2023-09-15T07:17:12.000Z',
'description' => '',
],
],
'flowControl' => [
'flowControlList' => [
['threshold' => '500', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ListSelectionSkuSaleInfos'],
['threshold' => '3500', 'countWindow' => 100, 'regionId' => '*', 'api' => 'CreatePurchaseOrder'],
['threshold' => '250', 'countWindow' => 10, 'regionId' => '*', 'api' => 'SplitPurchaseOrder'],
['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CancelRefundOrder'],
['threshold' => '500', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetSelectionProduct'],
['threshold' => '500', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetSelectionProductSaleInfo'],
['threshold' => '150', 'countWindow' => 10, 'regionId' => '*', 'api' => 'RenderRefundOrder'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'SelectionGroupRemoveProduct'],
['threshold' => '270', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetRefundOrder'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'QueryChildDivisionCode'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CreateGoodsShippingNotice'],
['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'QueryOrders'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ListCategories'],
['threshold' => '130', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetPurchaseOrderStatus'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetPurchaserShop'],
['threshold' => '150', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ConfirmDisburse'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ListSelectionProducts'],
['threshold' => '550', 'countWindow' => 10, 'regionId' => '*', 'api' => 'GetOrder'],
['threshold' => '250', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ListLogisticsOrders'],
['threshold' => '250', 'countWindow' => 10, 'regionId' => '*', 'api' => 'RenderPurchaseOrder'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'SelectionGroupAddProduct'],
['threshold' => '200', 'countWindow' => 10, 'regionId' => '*', 'api' => 'ListSelectionProductSaleInfos'],
['threshold' => '50', 'countWindow' => 10, 'regionId' => '*', 'api' => 'SearchProducts'],
['threshold' => '100', 'countWindow' => 10, 'regionId' => '*', 'api' => 'CreateRefundOrder'],
['threshold' => '25', 'countWindow' => 5, 'regionId' => '*', 'api' => 'ListPurchaserShops'],
],
],
'ram' => [
'productCode' => 'Linkedmall',
'productName' => '企业商城 LinkedMall',
'ramCodes' => ['linkedmall', 'neuron'],
'ramLevel' => '操作级',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'ListPurchaserShops',
'description' => '获取采购方店铺列表',
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListPurchaserShops',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryChildDivisionCode',
'description' => '查询子区域编码',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:QueryChildDivisionCode',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'SearchProducts',
'description' => '搜索选品池商品',
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:SearchProducts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetOrder',
'description' => '获取订单详情',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetPurchaseOrderStatus',
'description' => '获取采购单状态',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetPurchaseOrderStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListSelectionProductSaleInfos',
'description' => '批量查询选品池商品销售信息',
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListSelectionProductSaleInfos',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListCategories',
'description' => '查询类目列表',
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListCategories',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'SelectionGroupAddProduct',
'description' => '选品池商品入库',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkedmall:SelectionGroupAddProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetSelectionProduct',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetSelectionProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetSelectionProductSaleInfo',
'description' => '查询选品池商品销售信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetSelectionProductSaleInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateGoodsShippingNotice',
'description' => '回填运单信息',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:CreateGoodsShippingNotice',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListSelectionSkuSaleInfos',
'description' => '批量查询选品池SKU销售信息',
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListSelectionSkuSaleInfos',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'SplitPurchaseOrder',
'description' => '采购单渲染并拆单',
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:SplitPurchaseOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetRefundOrder',
'description' => '获取售后单详情',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListLogisticsOrders',
'description' => '查询订单物流信息',
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListLogisticsOrders',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ConfirmDisburse',
'description' => '确认收货',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:ConfirmDisburse',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'SelectionGroupRemoveProduct',
'description' => '选品池商品出库',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkedmall:SelectionGroupRemoveProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'RenderPurchaseOrder',
'description' => '采购单渲染',
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:RenderPurchaseOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateRefundOrder',
'description' => '创建售后单',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:CreateRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'RenderRefundOrder',
'description' => '售后单渲染',
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:RenderRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListSelectionProducts',
'description' => '查询选品池商品列表',
'operationType' => 'list',
'ramAction' => [
'action' => 'linkedmall:ListSelectionProducts',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryOrders',
'description' => '查询订单列表',
'operationType' => 'none',
'ramAction' => [
'action' => 'linkedmall:QueryOrders',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetPurchaserShop',
'description' => '获取采购方店铺',
'operationType' => 'get',
'ramAction' => [
'action' => 'linkedmall:GetPurchaserShop',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreatePurchaseOrder',
'description' => '创建采购单',
'operationType' => 'create',
'ramAction' => [
'action' => 'linkedmall:CreatePurchaseOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CancelRefundOrder',
'description' => '取消售后单',
'operationType' => 'update',
'ramAction' => [
'action' => 'linkedmall:CancelRefundOrder',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Linkedmall', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [],
],
];
|