@celigo/api-specs 0.2.302 → 0.2.304

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,7 +95,11 @@ paths:
95
95
  x-enumDescriptions:
96
96
  X12: ANSI X12 EDI standard.
97
97
  EDIFACT: UN/EDIFACT EDI standard.
98
- description: EDI file type.
98
+ description: |-
99
+ EDI file type. `TRADACOMS` records have no functional
100
+ acknowledgement and fail with 400 `tradacoms_patch_not_supported`
101
+ before any write; any other value fails with 422
102
+ `edi_update_failed`.
99
103
  examples:
100
104
  update_fa_status:
101
105
  summary: Mark a transaction as FA received
@@ -132,9 +136,9 @@ paths:
132
136
  ediTransactions: []
133
137
  '400':
134
138
  description: |-
135
- An `ediTransactions` entry is not an object, or an entry whose
136
- `faStatus` is `accepted` or `rejected` has an `_id` that is missing
137
- or is not a 24-character hex object ID.
139
+ `fileType` is `TRADACOMS`, an `ediTransactions` entry is not an
140
+ object, or an entry whose `faStatus` is `accepted` or `rejected` has
141
+ an `_id` that is missing or is not a 24-character hex object ID.
138
142
  content:
139
143
  application/json:
140
144
  schema:
@@ -146,10 +150,16 @@ paths:
146
150
  errors:
147
151
  - code: invalid_edi_transaction_id
148
152
  message: ediTransactions contains an invalid _id
153
+ tradacoms_patch_not_supported:
154
+ summary: fileType TRADACOMS
155
+ value:
156
+ errors:
157
+ - code: tradacoms_patch_not_supported
158
+ message: PATCH is not supported for TRADACOMS transactions
149
159
  '401':
150
160
  $ref: '#/components/responses/401-unauthorized'
151
161
  '422':
152
- description: The update failed — for example, `fileType` is not `X12` or `EDIFACT`.
162
+ description: The update failed — for example, `fileType` is not `X12`, `EDIFACT`, or `TRADACOMS`.
153
163
  content:
154
164
  application/json:
155
165
  schema:
@@ -185,7 +195,9 @@ paths:
185
195
  acknowledgement status, trading partner, lifecycle status, MDN status
186
196
  and date range; `view: lifecycle` with `mode: browse` groups the
187
197
  documents by order lifecycle (one collapsed row per group, newest
188
- activity first) and `mode: expand` opens one group. To fetch the raw
198
+ activity first) and `mode: expand` opens one group. `fileType: TRADACOMS`
199
+ returns flat rows only — any lifecycle view fails with 400
200
+ `tradacoms_list_only`. To fetch the raw
189
201
  EDI file for a returned record, use
190
202
  `POST /v1/jobs/{_flowJobId}/files/signedURL` with the record's
191
203
  `s3Key`.
@@ -491,7 +503,13 @@ paths:
491
503
  value:
492
504
  errors:
493
505
  - code: invalid_filetype
494
- message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT'
506
+ message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT, TRADACOMS'
507
+ tradacoms_list_only:
508
+ summary: TRADACOMS query asked for the lifecycle view, a lifecycle mode, dual views, or a lifecycle page token
509
+ value:
510
+ errors:
511
+ - code: tradacoms_list_only
512
+ message: TRADACOMS supports list view only
495
513
  invalid_limit_value:
496
514
  value:
497
515
  errors:
@@ -645,6 +663,9 @@ paths:
645
663
  in `ediTransactions`, matched or not, each matched row naming the fields
646
664
  it matched in `matchedFields`.
647
665
 
666
+ `source: TRADACOMS` searches the list view only: `viewMode` defaults to
667
+ `list` and a lifecycle view fails with 400 `tradacoms_list_only`.
668
+
648
669
  X12 `documentType` values come back labeled with the functional group
649
670
  code, for example `PO 850`. Requires a B2B / EDI license and permission to
650
671
  read EDI transactions.
@@ -703,6 +724,12 @@ paths:
703
724
  errors:
704
725
  - code: keyword_too_long
705
726
  message: keyword must not exceed 100 characters
727
+ tradacoms_list_only:
728
+ summary: TRADACOMS search with viewMode dual or lifecycle, filters.lifecycleStatus, or visibleColumns.lifecycle
729
+ value:
730
+ errors:
731
+ - code: tradacoms_list_only
732
+ message: TRADACOMS supports list view only
706
733
  invalid_keyword:
707
734
  summary: keyword contains control characters
708
735
  value:
@@ -713,7 +740,7 @@ paths:
713
740
  value:
714
741
  errors:
715
742
  - code: invalid_source
716
- message: source must be X12 or EDIFACT
743
+ message: source must be X12, EDIFACT, or TRADACOMS
717
744
  invalid_view_mode:
718
745
  value:
719
746
  errors:
@@ -830,7 +857,12 @@ paths:
830
857
  modified, Lifecycle status, File type), then X12 adds ISA no., GS no.,
831
858
  ST no., ISA sender, ISA receiver, GS sender, and GS receiver, while
832
859
  EDIFACT adds UNB no., UNH no., UNB sender, and UNB receiver; both end
833
- with ACK details and MDN status.
860
+ with ACK details and MDN status. TRADACOMS exports take the list view
861
+ only and have their own columns: Doc no., Doc type, Direction, ACK status,
862
+ Partner, Last modified, File type, STX no., MHD
863
+ no., File control Number, STX sender id, STX sender name, STX receiver
864
+ id, STX receiver name, and MDN status — no Ref doc, Lifecycle status, or
865
+ ACK details.
834
866
 
835
867
  The signed URL expires 15 minutes after generation (S3
836
868
  `X-Amz-Expires=900`); fetch it promptly and do not persist it.
@@ -892,6 +924,12 @@ paths:
892
924
  - code: EDI_DOWNLOAD_SOURCE_REQUIRED
893
925
  message: EDI file type/source (X12/EDIFACT) is missing. Ensure source is included.
894
926
  source: resource
927
+ tradacoms_list_only:
928
+ summary: TRADACOMS export with viewMode lifecycle or filters.lifecycleStatus
929
+ value:
930
+ errors:
931
+ - code: tradacoms_list_only
932
+ message: TRADACOMS supports list view only
895
933
  EDI_DOWNLOAD_VIEW_MODE_REQUIRED:
896
934
  value:
897
935
  errors:
@@ -941,7 +979,9 @@ paths:
941
979
  Returns the values for the B2B Manager dashboard filter dropdowns of one
942
980
  EDI standard: the document types and trading partners found in the
943
981
  caller's transactions, plus the direction, functional acknowledgment,
944
- lifecycle, and MDN status values the filters accept.
982
+ lifecycle, and MDN status values the filters accept. TRADACOMS has no
983
+ lifecycle view, so its response omits `lifecycleStatus` and lists only
984
+ `notApplicable` in `faStatus`.
945
985
  parameters:
946
986
  - name: source
947
987
  in: query
@@ -951,9 +991,11 @@ paths:
951
991
  enum:
952
992
  - X12
953
993
  - EDIFACT
994
+ - TRADACOMS
954
995
  x-enumDescriptions:
955
996
  X12: Values for the X12 tab.
956
997
  EDIFACT: Values for the EDIFACT tab.
998
+ TRADACOMS: Values for the TRADACOMS tab.
957
999
  description: EDI standard to return values for. Missing or any other value fails with `invalid_source`.
958
1000
  - name: sandbox
959
1001
  in: query
@@ -1016,11 +1058,11 @@ paths:
1016
1058
  $ref: '#/components/schemas/Error'
1017
1059
  examples:
1018
1060
  invalid_source:
1019
- summary: source is missing or not X12 or EDIFACT
1061
+ summary: source is missing or not X12, EDIFACT, or TRADACOMS
1020
1062
  value:
1021
1063
  errors:
1022
1064
  - code: invalid_source
1023
- message: source must be X12 or EDIFACT
1065
+ message: source must be X12, EDIFACT, or TRADACOMS
1024
1066
  invalid_sandbox:
1025
1067
  summary: sandbox is not true or false
1026
1068
  value:
@@ -1063,8 +1105,11 @@ paths:
1063
1105
  Direction, Processed, ISA no., GS no., ST no., ISA sender, ISA receiver,
1064
1106
  GS sender, GS receiver, FA details, MDN status. EDIFACT exports replace
1065
1107
  FA status with ACK status and the ISA/GS/ST columns with UNB no.,
1066
- UNH no., UNB sender, UNB receiver. The Processed timestamp is rendered
1067
- in the account owner's timezone preference.
1108
+ UNH no., UNB sender, UNB receiver. TRADACOMS exports carry Doc no., Doc
1109
+ type, ACK status, File type, Direction, Processed, STX no., MHD no., File
1110
+ control Number, STX sender id, STX sender name, STX receiver id, STX
1111
+ receiver name, and MDN status. The Processed timestamp is rendered in the
1112
+ account owner's timezone preference.
1068
1113
 
1069
1114
  The signed URL expires 15 minutes after generation (S3
1070
1115
  `X-Amz-Expires=900`) — fetch it promptly and do not persist it. To browse
@@ -1079,13 +1124,15 @@ paths:
1079
1124
  enum:
1080
1125
  - X12
1081
1126
  - EDIFACT
1127
+ - TRADACOMS
1082
1128
  x-enumDescriptions:
1083
1129
  X12: Export the ANSI X12 transaction log.
1084
1130
  EDIFACT: Export the UN/EDIFACT transaction log.
1131
+ TRADACOMS: Export the UK TRADACOMS transaction log.
1085
1132
  description: |-
1086
1133
  Which transaction log to export. Defaults to `X12` when omitted —
1087
- pass `fileType=EDIFACT` explicitly to export EDIFACT records. The
1088
- two logs produce different CSV columns.
1134
+ pass `fileType=EDIFACT` or `fileType=TRADACOMS` explicitly to export
1135
+ those records. Each log produces different CSV columns.
1089
1136
  - name: startDate
1090
1137
  in: query
1091
1138
  required: false
@@ -1155,11 +1202,11 @@ paths:
1155
1202
  - code: invalid_date_range
1156
1203
  message: please provide a valid date range
1157
1204
  invalid_filetype:
1158
- summary: fileType is not X12 or EDIFACT
1205
+ summary: fileType is not X12, EDIFACT, or TRADACOMS
1159
1206
  value:
1160
1207
  errors:
1161
1208
  - code: invalid_filetype
1162
- message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT'
1209
+ message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT, TRADACOMS'
1163
1210
  too_many_records:
1164
1211
  summary: Window matches more records than the export cap
1165
1212
  value:
@@ -1307,11 +1354,17 @@ paths:
1307
1354
  $ref: '#/components/schemas/Error'
1308
1355
  examples:
1309
1356
  invalid_filetype:
1310
- summary: fileType is not X12 or EDIFACT
1357
+ summary: fileType is not X12, EDIFACT, or TRADACOMS
1311
1358
  value:
1312
1359
  errors:
1313
1360
  - code: invalid_filetype
1314
- message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT'
1361
+ message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT, TRADACOMS'
1362
+ tradacoms_fa_not_supported:
1363
+ summary: fileType=TRADACOMS, refused before the transaction is looked up
1364
+ value:
1365
+ errors:
1366
+ - code: tradacoms_fa_not_supported
1367
+ message: Functional acknowledgement details are not supported for TRADACOMS
1315
1368
  not_rejected:
1316
1369
  summary: Transaction is not in a rejected FA status
1317
1370
  value:
@@ -1610,7 +1663,9 @@ paths:
1610
1663
  by `lastModified` is returned. Partner ids use the same names as
1611
1664
  `POST /v1/ediTransactions/query`: `interchangeSenderId` /
1612
1665
  `interchangeReceiverId` for X12, `unbSenderId` / `unbReceiverId` for
1613
- EDIFACT. When no document number is known, use
1666
+ EDIFACT, `stxSenderId` / `stxReceiverId` for TRADACOMS. `fileType` is
1667
+ required and picks the EDI standard searched. When no document number is
1668
+ known, use
1614
1669
  `GET /v1/edi/documents/ediFile` with filters alone.
1615
1670
 
1616
1671
  Get `documentNumber` and `documentType` from a transaction record
@@ -1641,10 +1696,11 @@ paths:
1641
1696
  description: |-
1642
1697
  EDI document type code — for X12 the numeric transaction-set ID as
1643
1698
  a string (`850`, `810`, `856`, `997`); for EDIFACT the UNH01 message
1644
- type (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`). Case-insensitive. It
1645
- also selects the EDI standard the lookup runs against. `X12` and
1646
- `EDIFACT` name the standard, not a document type, and are rejected
1647
- here.
1699
+ type (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`); for TRADACOMS the MHD
1700
+ message type (`ORDERS`, `INVOIC`, `DELIVR`, `CREDIT`, `ACKMNT`).
1701
+ Case-insensitive. Must be a document type of `fileType`, otherwise
1702
+ 400 `edi_invalid_document_type`. `X12` and `EDIFACT` name the
1703
+ standard, not a document type, and are rejected here.
1648
1704
  examples:
1649
1705
  x12_850:
1650
1706
  value: '850'
@@ -1666,6 +1722,8 @@ paths:
1666
1722
  - $ref: '#/components/parameters/InterchangeReceiverId'
1667
1723
  - $ref: '#/components/parameters/UnbSenderId'
1668
1724
  - $ref: '#/components/parameters/UnbReceiverId'
1725
+ - $ref: '#/components/parameters/StxSenderId'
1726
+ - $ref: '#/components/parameters/StxReceiverId'
1669
1727
  responses:
1670
1728
  '200':
1671
1729
  description: The raw EDI file, streamed as the response body.
@@ -1687,8 +1745,14 @@ paths:
1687
1745
  errors:
1688
1746
  - code: document_type_required
1689
1747
  message: The "documentType" query parameter is required to process this request.
1748
+ missing_file_type:
1749
+ summary: fileType query parameter missing
1750
+ value:
1751
+ errors:
1752
+ - code: file_type_required
1753
+ message: The "fileType" query parameter is required to process this request.
1690
1754
  invalid:
1691
- summary: documentType names the standard (`X12` here; `EDIFACT` answers the same way), or fileType disagrees with documentType
1755
+ summary: documentType names the standard (`X12` here; `EDIFACT` answers the same way), or is not a document type of fileType
1692
1756
  value:
1693
1757
  errors:
1694
1758
  - code: edi_invalid_document_type
@@ -1767,13 +1831,12 @@ paths:
1767
1831
 
1768
1832
  `documentNumber` may be passed as a query parameter here; when it is,
1769
1833
  `documentType` becomes required — the same contract as
1770
- `GET /v1/edi/documents/{documentNumber}/ediFile`. When `documentNumber`
1771
- and `documentType` are both omitted, the lookup runs against X12 unless
1772
- `fileType` says `EDIFACT` — `unbSenderId` sent on its own is refused
1773
- with `invalid_search_param_for_X12`. Partner ids
1774
- use the same names as `POST /v1/ediTransactions/query`:
1834
+ `GET /v1/edi/documents/{documentNumber}/ediFile`. `fileType` is required
1835
+ and picks the EDI standard searched; it does not count as a lookup
1836
+ filter. Partner ids use the same names as `POST /v1/ediTransactions/query`:
1775
1837
  `interchangeSenderId` / `interchangeReceiverId` for X12,
1776
- `unbSenderId` / `unbReceiverId` for EDIFACT.
1838
+ `unbSenderId` / `unbReceiverId` for EDIFACT, `stxSenderId` /
1839
+ `stxReceiverId` for TRADACOMS.
1777
1840
 
1778
1841
  Public-API route only: there is no equivalent for applications acting
1779
1842
  with a signed-in user's session. Downloads are rate limited per user.
@@ -1800,6 +1863,8 @@ paths:
1800
1863
  - $ref: '#/components/parameters/InterchangeReceiverId'
1801
1864
  - $ref: '#/components/parameters/UnbSenderId'
1802
1865
  - $ref: '#/components/parameters/UnbReceiverId'
1866
+ - $ref: '#/components/parameters/StxSenderId'
1867
+ - $ref: '#/components/parameters/StxReceiverId'
1803
1868
  responses:
1804
1869
  '200':
1805
1870
  description: |-
@@ -1829,18 +1894,24 @@ paths:
1829
1894
  errors:
1830
1895
  - code: document_type_required
1831
1896
  message: The "documentType" query parameter is required to process this request.
1897
+ missing_file_type:
1898
+ summary: fileType query parameter missing
1899
+ value:
1900
+ errors:
1901
+ - code: file_type_required
1902
+ message: The "fileType" query parameter is required to process this request.
1832
1903
  partner_id_for_other_standard:
1833
1904
  summary: X12 partner id on an EDIFACT lookup
1834
1905
  value:
1835
1906
  errors:
1836
1907
  - code: invalid_search_param_for_EDIFACT
1837
1908
  message: invalid search param interchangeSenderId for filetype EDIFACT
1838
- partner_id_without_a_standard:
1839
- summary: unbSenderId with neither documentType nor fileType — the lookup ran against X12
1909
+ partner_id_for_tradacoms:
1910
+ summary: EDIFACT partner id on a TRADACOMS lookup
1840
1911
  value:
1841
1912
  errors:
1842
- - code: invalid_search_param_for_X12
1843
- message: invalid search param unbSenderId for filetype X12
1913
+ - code: invalid_search_param_for_TRADACOMS
1914
+ message: invalid search param unbSenderId for filetype TRADACOMS
1844
1915
  invalid_sandbox:
1845
1916
  summary: sandbox outside true / false
1846
1917
  value:
@@ -2350,8 +2421,8 @@ components:
2350
2421
  type: string
2351
2422
  description: |-
2352
2423
  Document types to match, as the X12 transaction-set code or the
2353
- EDIFACT message type (`850`, `ORDERS`). An X12 code labeled with its
2354
- functional group (`PO 850`) is read as the bare code.
2424
+ EDIFACT or TRADACOMS message type (`850`, `ORDERS`). An X12 code labeled
2425
+ with its functional group (`PO 850`) is read as the bare code.
2355
2426
  examples:
2356
2427
  - - '850'
2357
2428
  - PO 810
@@ -2385,7 +2456,8 @@ components:
2385
2456
  Order-lifecycle steps to match against each record's
2386
2457
  `lifecycleStatus`. Takes the values
2387
2458
  `GET /v1/ediTransactions/filter-options` returns in `lifecycleStatus`;
2388
- anything else is rejected.
2459
+ anything else is rejected. TRADACOMS has no lifecycle, so a non-empty
2460
+ value with a TRADACOMS source fails with 400 `tradacoms_list_only`.
2389
2461
  examples:
2390
2462
  - - PO received
2391
2463
  - Invoice sent
@@ -2432,8 +2504,9 @@ components:
2432
2504
  Results are narrowed by `fileType`, `faStatus`, the `startDate`/`endDate`
2433
2505
  window, at most one search field — `documentNumber`, or
2434
2506
  `interchangeSenderId`/`interchangeReceiverId` for X12, or
2435
- `unbSenderId`/`unbReceiverId` for EDIFACT — and the dashboard's `filters`
2436
- object, which the server applies in full. A search value needs at least
2507
+ `unbSenderId`/`unbReceiverId` for EDIFACT, or
2508
+ `stxSenderId`/`stxReceiverId`/`fileControlNumber` for TRADACOMS — and the
2509
+ dashboard's `filters` object, which the server applies in full. A search value needs at least
2437
2510
  three characters and takes `*` only as its last character; a value ending
2438
2511
  in `*` also needs three characters before it and a `limit` of 100 or less.
2439
2512
  The top-level `direction`, `documentType`, and `_integrationId` are
@@ -2455,6 +2528,12 @@ components:
2455
2528
  - interchangeSenderId
2456
2529
  - required:
2457
2530
  - interchangeReceiverId
2531
+ - required:
2532
+ - stxSenderId
2533
+ - required:
2534
+ - stxReceiverId
2535
+ - required:
2536
+ - fileControlNumber
2458
2537
  - required:
2459
2538
  - documentNumber
2460
2539
  - unbSenderId
@@ -2465,21 +2544,63 @@ components:
2465
2544
  - unbSenderId
2466
2545
  - unbReceiverId
2467
2546
  else:
2468
- not:
2469
- anyOf:
2470
- - required:
2471
- - unbSenderId
2472
- - required:
2473
- - unbReceiverId
2474
- - required:
2475
- - documentNumber
2476
- - interchangeSenderId
2477
- - required:
2478
- - documentNumber
2479
- - interchangeReceiverId
2480
- - required:
2481
- - interchangeSenderId
2482
- - interchangeReceiverId
2547
+ if:
2548
+ properties:
2549
+ fileType:
2550
+ const: TRADACOMS
2551
+ required:
2552
+ - fileType
2553
+ then:
2554
+ not:
2555
+ anyOf:
2556
+ - required:
2557
+ - interchangeSenderId
2558
+ - required:
2559
+ - interchangeReceiverId
2560
+ - required:
2561
+ - unbSenderId
2562
+ - required:
2563
+ - unbReceiverId
2564
+ - required:
2565
+ - documentNumber
2566
+ - stxSenderId
2567
+ - required:
2568
+ - documentNumber
2569
+ - stxReceiverId
2570
+ - required:
2571
+ - documentNumber
2572
+ - fileControlNumber
2573
+ - required:
2574
+ - stxSenderId
2575
+ - stxReceiverId
2576
+ - required:
2577
+ - stxSenderId
2578
+ - fileControlNumber
2579
+ - required:
2580
+ - stxReceiverId
2581
+ - fileControlNumber
2582
+ else:
2583
+ not:
2584
+ anyOf:
2585
+ - required:
2586
+ - unbSenderId
2587
+ - required:
2588
+ - unbReceiverId
2589
+ - required:
2590
+ - stxSenderId
2591
+ - required:
2592
+ - stxReceiverId
2593
+ - required:
2594
+ - fileControlNumber
2595
+ - required:
2596
+ - documentNumber
2597
+ - interchangeSenderId
2598
+ - required:
2599
+ - documentNumber
2600
+ - interchangeReceiverId
2601
+ - required:
2602
+ - interchangeSenderId
2603
+ - interchangeReceiverId
2483
2604
  dependentRequired:
2484
2605
  endDate:
2485
2606
  - startDate
@@ -2489,12 +2610,17 @@ components:
2489
2610
  enum:
2490
2611
  - X12
2491
2612
  - EDIFACT
2613
+ - TRADACOMS
2492
2614
  x-enumDescriptions:
2493
2615
  X12: ANSI X12 EDI standard.
2494
2616
  EDIFACT: UN/EDIFACT EDI standard.
2617
+ TRADACOMS: UK TRADACOMS EDI standard. Flat rows only.
2495
2618
  description: |-
2496
2619
  EDI standard family. Defaults to `X12` when omitted — set
2497
- `fileType: EDIFACT` explicitly to query EDIFACT records.
2620
+ `fileType: EDIFACT` or `fileType: TRADACOMS` explicitly to query those
2621
+ records. TRADACOMS has no lifecycle view: `view: lifecycle`, a `mode`,
2622
+ `views` naming `lifecycle`, a lifecycle `pageToken`, or a
2623
+ `filters.lifecycleStatus` value fails with 400 `tradacoms_list_only`.
2498
2624
  interchangeSenderId:
2499
2625
  type: string
2500
2626
  pattern: ^[^*]{3,}\*?$
@@ -2531,6 +2657,33 @@ components:
2531
2657
  (`invalid_search_param_for_X12`).
2532
2658
  examples:
2533
2659
  - '7177587895'
2660
+ stxSenderId:
2661
+ type: string
2662
+ pattern: ^[^*]{3,}\*?$
2663
+ description: |-
2664
+ TRADACOMS only. Searches the STX sender code (STX FROM).
2665
+ Send it with `fileType: TRADACOMS`; under X12 or EDIFACT it is refused
2666
+ (`invalid_search_param_for_X12` / `invalid_search_param_for_EDIFACT`).
2667
+ examples:
2668
+ - '5012345000009'
2669
+ stxReceiverId:
2670
+ type: string
2671
+ pattern: ^[^*]{3,}\*?$
2672
+ description: |-
2673
+ TRADACOMS only. Searches the STX receiver code (STX UNTO).
2674
+ Send it with `fileType: TRADACOMS`; under X12 or EDIFACT it is refused
2675
+ (`invalid_search_param_for_X12` / `invalid_search_param_for_EDIFACT`).
2676
+ examples:
2677
+ - '5098765000004'
2678
+ fileControlNumber:
2679
+ type: string
2680
+ pattern: ^[^*]{3,}\*?$
2681
+ description: |-
2682
+ TRADACOMS only. Searches the record's file control number. Send it with
2683
+ `fileType: TRADACOMS`; under X12 or EDIFACT it is refused
2684
+ (`invalid_search_param_for_X12` / `invalid_search_param_for_EDIFACT`).
2685
+ examples:
2686
+ - '000123'
2534
2687
  direction:
2535
2688
  type: string
2536
2689
  enum:
@@ -2957,6 +3110,11 @@ components:
2957
3110
  asc: Ascending.
2958
3111
  desc: Descending.
2959
3112
  description: Sort direction applied, including the default when the request set only `sortBy`.
3113
+ EDILifecycleExpandTransaction:
3114
+ description: A lifecycle group member on an expand response.
3115
+ allOf:
3116
+ - $ref: '#/components/schemas/EDITransaction'
3117
+ - type: object
2960
3118
  EDILifecycleExpandGroup:
2961
3119
  type: object
2962
3120
  required:
@@ -2967,7 +3125,7 @@ components:
2967
3125
  other members beneath it.
2968
3126
  properties:
2969
3127
  latestTransaction:
2970
- $ref: '#/components/schemas/EDITransaction'
3128
+ $ref: '#/components/schemas/EDILifecycleExpandTransaction'
2971
3129
  ediTransactions:
2972
3130
  type: array
2973
3131
  maxItems: 50
@@ -2977,7 +3135,7 @@ components:
2977
3135
  newest 50 are returned; check `truncated` to learn whether older
2978
3136
  members exist.
2979
3137
  items:
2980
- $ref: '#/components/schemas/EDITransaction'
3138
+ $ref: '#/components/schemas/EDILifecycleExpandTransaction'
2981
3139
  truncated:
2982
3140
  type: boolean
2983
3141
  description: Present and true when the group has more than 50 other members.
@@ -3097,9 +3255,11 @@ components:
3097
3255
  enum:
3098
3256
  - X12
3099
3257
  - EDIFACT
3258
+ - TRADACOMS
3100
3259
  x-enumDescriptions:
3101
3260
  X12: Search ANSI X12 transactions.
3102
3261
  EDIFACT: Search UN/EDIFACT transactions.
3262
+ TRADACOMS: Search UK TRADACOMS transactions. List view only.
3103
3263
  description: EDI standard to search. Anything else fails with `invalid_source`.
3104
3264
  viewMode:
3105
3265
  type: string
@@ -3114,7 +3274,9 @@ components:
3114
3274
  lifecycle: Return the lifecycle groups that contain a match in `ediTransactions`.
3115
3275
  description: |-
3116
3276
  Shape of the result. The dashboard uses the default, `dual`. Any other
3117
- value fails with `invalid_view_mode`.
3277
+ value fails with `invalid_view_mode`. With `source: TRADACOMS` the
3278
+ default is `list`, and `dual` or `lifecycle` fails with 400
3279
+ `tradacoms_list_only`.
3118
3280
  pageSize:
3119
3281
  type: integer
3120
3282
  minimum: 1
@@ -3176,7 +3338,9 @@ components:
3176
3338
  type: array
3177
3339
  items:
3178
3340
  type: string
3179
- description: Field names shown in the lifecycle view.
3341
+ description: |-
3342
+ Field names shown in the lifecycle view. Sending this key with
3343
+ `source: TRADACOMS` fails with 400 `tradacoms_list_only`.
3180
3344
  sortBy:
3181
3345
  type: string
3182
3346
  enum:
@@ -3465,9 +3629,11 @@ components:
3465
3629
  enum:
3466
3630
  - X12
3467
3631
  - EDIFACT
3632
+ - TRADACOMS
3468
3633
  x-enumDescriptions:
3469
3634
  X12: Export ANSI X12 transactions.
3470
3635
  EDIFACT: Export UN/EDIFACT transactions.
3636
+ TRADACOMS: Export UK TRADACOMS transactions. List view only.
3471
3637
  description: |-
3472
3638
  EDI standard to export. Missing or any other value, lowercase
3473
3639
  included, fails with `EDI_DOWNLOAD_SOURCE_REQUIRED`.
@@ -3483,7 +3649,9 @@ components:
3483
3649
  Dashboard view the export is taken from, recorded in the CSV's
3484
3650
  comment lines. Missing fails with `EDI_DOWNLOAD_VIEW_MODE_REQUIRED`;
3485
3651
  any other value, `dual` included, fails with
3486
- `EDI_DOWNLOAD_INVALID_VIEW_MODE`.
3652
+ `EDI_DOWNLOAD_INVALID_VIEW_MODE`. With `source: TRADACOMS` anything
3653
+ but `list` fails with 400 `tradacoms_list_only`, and so does a
3654
+ `filters.lifecycleStatus` value.
3487
3655
  keyword:
3488
3656
  type: string
3489
3657
  minLength: 3
@@ -3507,7 +3675,6 @@ components:
3507
3675
  - partner
3508
3676
  - direction
3509
3677
  - faStatus
3510
- - lifecycleStatus
3511
3678
  - mdnStatus
3512
3679
  description: |-
3513
3680
  Values for the dashboard filter dropdowns of one EDI standard. Pass them
@@ -3532,7 +3699,10 @@ components:
3532
3699
  type: array
3533
3700
  items:
3534
3701
  $ref: '#/components/schemas/EDIDashboardFAStatus'
3535
- description: Functional acknowledgment statuses the `faStatus` filter accepts.
3702
+ description: |-
3703
+ Functional acknowledgment statuses the `faStatus` filter accepts.
3704
+ TRADACOMS has no functional acknowledgment, so its list is only
3705
+ `notApplicable`.
3536
3706
  lifecycleStatus:
3537
3707
  type: array
3538
3708
  items:
@@ -3541,7 +3711,8 @@ components:
3541
3711
  Order-lifecycle steps the `lifecycleStatus` filter accepts. Besides
3542
3712
  the order-cycle steps listed under the EDI transaction's
3543
3713
  `lifecycleStatus`, production lists steps for other document types,
3544
- such as warehouse, transport, and freight documents.
3714
+ such as warehouse, transport, and freight documents. Absent for
3715
+ `source=TRADACOMS`, which has no lifecycle view.
3545
3716
  mdnStatus:
3546
3717
  type: array
3547
3718
  items:
@@ -3672,18 +3843,21 @@ components:
3672
3843
  FileType:
3673
3844
  name: fileType
3674
3845
  in: query
3675
- required: false
3846
+ required: true
3676
3847
  schema:
3677
3848
  type: string
3678
3849
  enum:
3679
3850
  - X12
3680
3851
  - EDIFACT
3852
+ - TRADACOMS
3681
3853
  x-enumDescriptions:
3682
3854
  X12: ANSI X12 EDI standard
3683
3855
  EDIFACT: UN/EDIFACT EDI standard
3856
+ TRADACOMS: UK TRADACOMS EDI standard
3684
3857
  description: |-
3685
- EDI standard the lookup runs against. Inferred from `documentType` when
3686
- one is sent, and must agree with it.
3858
+ EDI standard the lookup runs against. Required: a request without it
3859
+ fails with 400 `file_type_required`, and one that names no supported
3860
+ standard with 400 `invalid_filetype`.
3687
3861
  Direction:
3688
3862
  name: direction
3689
3863
  in: query
@@ -3783,7 +3957,7 @@ components:
3783
3957
  description: |-
3784
3958
  X12 only — the record's `isaSenderId` (ISA06), matched exactly or against
3785
3959
  the stored value padded with trailing spaces; letters are uppercased.
3786
- Rejected when the lookup runs against EDIFACT.
3960
+ Rejected when the lookup runs against EDIFACT or TRADACOMS.
3787
3961
  InterchangeReceiverId:
3788
3962
  name: interchangeReceiverId
3789
3963
  in: query
@@ -3794,7 +3968,8 @@ components:
3794
3968
  - CELIGOLABZ
3795
3969
  description: |-
3796
3970
  X12 only — the record's `isaReceiverId` (ISA08), matched like
3797
- `interchangeSenderId`. Rejected when the lookup runs against EDIFACT.
3971
+ `interchangeSenderId`. Rejected when the lookup runs against EDIFACT or
3972
+ TRADACOMS.
3798
3973
  UnbSenderId:
3799
3974
  name: unbSenderId
3800
3975
  in: query
@@ -3806,7 +3981,7 @@ components:
3806
3981
  description: |-
3807
3982
  EDIFACT only — the record's `unbSenderId` (UNB02), matched exactly or
3808
3983
  against the stored value padded with trailing spaces; letters are
3809
- uppercased. Rejected when the lookup runs against X12.
3984
+ uppercased. Rejected when the lookup runs against X12 or TRADACOMS.
3810
3985
  UnbReceiverId:
3811
3986
  name: unbReceiverId
3812
3987
  in: query
@@ -3817,7 +3992,30 @@ components:
3817
3992
  - CELIGOGLN
3818
3993
  description: |-
3819
3994
  EDIFACT only — the record's `unbReceiverId` (UNB04), matched like
3820
- `unbSenderId`. Rejected when the lookup runs against X12.
3995
+ `unbSenderId`. Rejected when the lookup runs against X12 or TRADACOMS.
3996
+ StxSenderId:
3997
+ name: stxSenderId
3998
+ in: query
3999
+ required: false
4000
+ schema:
4001
+ type: string
4002
+ examples:
4003
+ - '5012345000009'
4004
+ description: |-
4005
+ TRADACOMS only — matches the record's STX sender code. Rejected when the
4006
+ lookup runs against X12 or EDIFACT (`invalid_search_param_for_X12` /
4007
+ `invalid_search_param_for_EDIFACT`).
4008
+ StxReceiverId:
4009
+ name: stxReceiverId
4010
+ in: query
4011
+ required: false
4012
+ schema:
4013
+ type: string
4014
+ examples:
4015
+ - '5098765000004'
4016
+ description: |-
4017
+ TRADACOMS only — matches the record's STX receiver code. Rejected when
4018
+ the lookup runs against X12 or EDIFACT.
3821
4019
  DocumentType:
3822
4020
  name: documentType
3823
4021
  in: query
@@ -3829,8 +4027,11 @@ components:
3829
4027
  description: |-
3830
4028
  EDI document type code — for X12 the numeric transaction-set ID as a
3831
4029
  string (`850`, `810`, `856`, `997`); for EDIFACT the UNH01 message type
3832
- (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`). Case-insensitive. It also
3833
- selects the EDI standard the lookup runs against. `X12` and `EDIFACT`
3834
- name the standard, not a document type, and are rejected here.
4030
+ (`ORDERS`, `INVOIC`, `DESADV`, `CONTRL`); for TRADACOMS the MHD message
4031
+ type (`ORDERS`, `INVOIC`, `DELIVR`, `CREDIT`, `ACKMNT`). Case-insensitive.
4032
+ Must be a document type of `fileType` (`ORDERS` and `INVOIC` are valid for
4033
+ both EDIFACT and TRADACOMS); otherwise the lookup fails with 400
4034
+ `edi_invalid_document_type`. `X12` and `EDIFACT` name the standard, not a
4035
+ document type, and are rejected here.
3835
4036
  x-enable-proxy: true
3836
4037
  x-internal: false