@celigo/api-specs 0.2.257 → 0.2.259
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.
- package/dist/ai-agent.yml +73 -16
- package/dist/audit.yml +16 -0
- package/dist/editransaction.yml +177 -38
- package/dist/export.yml +46 -16
- package/dist/guardrail.yml +27 -0
- package/dist/import.yml +130 -27
- package/dist/processor.yml +112 -6
- package/dist/recyclebin.yml +6 -0
- package/dist/tool.yml +118 -25
- package/package.json +1 -1
- package/schemas.json +2 -1
package/dist/ai-agent.yml
CHANGED
|
@@ -228,6 +228,7 @@ paths:
|
|
|
228
228
|
strict: false
|
|
229
229
|
verbose: medium
|
|
230
230
|
tools: []
|
|
231
|
+
attachedKnowledgeBaseIds: []
|
|
231
232
|
createdAt: '2026-03-09T17:17:50.501Z'
|
|
232
233
|
lastModified: '2026-03-09T17:17:50.501Z'
|
|
233
234
|
'400':
|
|
@@ -1352,6 +1353,32 @@ components:
|
|
|
1352
1353
|
the array index.
|
|
1353
1354
|
resources:
|
|
1354
1355
|
$ref: '#/components/schemas/McpResources'
|
|
1356
|
+
attachedKnowledgeBaseIds:
|
|
1357
|
+
type: array
|
|
1358
|
+
maxItems: 50
|
|
1359
|
+
uniqueItems: true
|
|
1360
|
+
default: []
|
|
1361
|
+
description: |-
|
|
1362
|
+
Knowledge bases the agent retrieves from, for every provider. Returned on every agent —
|
|
1363
|
+
`[]` until one is attached — except after a PATCH `remove`, which drops the field. On PUT
|
|
1364
|
+
a non-empty array replaces the stored list (duplicate ids collapse to their first
|
|
1365
|
+
occurrence), while omitting the list, `null`, and `[]` all keep it; clear it with
|
|
1366
|
+
`PATCH /v1/imports/{_id}` — `replace` with `[]` or `remove` on
|
|
1367
|
+
`/aiAgent/attachedKnowledgeBaseIds`.
|
|
1368
|
+
items:
|
|
1369
|
+
type: string
|
|
1370
|
+
format: objectId
|
|
1371
|
+
x-celigo-refModel: knowledgebases
|
|
1372
|
+
x-celigo-ai-guidance:
|
|
1373
|
+
- |-
|
|
1374
|
+
Every id must be a knowledge base in this environment (`GET /v1/knowledgebases`):
|
|
1375
|
+
any other value — a malformed string or the id of another resource — fails the save
|
|
1376
|
+
with 422 `attached_knowledge_base_invalid` naming the ids, and more than 50 distinct
|
|
1377
|
+
ids fails with 422 `invalid_field` on `aiAgent.attachedKnowledgeBaseIds`.
|
|
1378
|
+
- |-
|
|
1379
|
+
Sending `[]` on PUT does not detach anything; use PATCH `replace` with `[]` or
|
|
1380
|
+
`remove` on the whole path. PATCH `add` at `/aiAgent/attachedKnowledgeBaseIds/-`
|
|
1381
|
+
does not append — it fails with 422 — so send the complete list with `replace`.
|
|
1355
1382
|
openai:
|
|
1356
1383
|
type: object
|
|
1357
1384
|
description: |
|
|
@@ -6112,7 +6139,9 @@ components:
|
|
|
6112
6139
|
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
6113
6140
|
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
6114
6141
|
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
6115
|
-
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
6142
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs. The one
|
|
6143
|
+
exception is an array record whose children sit under a single element's field: its path
|
|
6144
|
+
starts with that element's index (``0.items``) — see ``pathToMany``.
|
|
6116
6145
|
- |-
|
|
6117
6146
|
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
6118
6147
|
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
@@ -6124,14 +6153,29 @@ components:
|
|
|
6124
6153
|
- |-
|
|
6125
6154
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
6126
6155
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
6127
|
-
itself, with no ``_PARENT``. In both modes templates on the step reference
|
|
6156
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
6128
6157
|
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
6129
6158
|
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
6130
6159
|
mode) with every element enriched.
|
|
6160
|
+
- |-
|
|
6161
|
+
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
6162
|
+
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
6163
|
+
``{{rows.length}}``) and ``record.*`` is undefined — ``{{record.0.<field>}}`` renders empty
|
|
6164
|
+
in the HTTP body and leaves its field out of a mapping, while the record still succeeds with
|
|
6165
|
+
no error. ``{{0.<field>}}`` resolves in a mapping expression but renders empty in the body;
|
|
6166
|
+
``{{rows.0.<field>}}`` works in both. Live-verified 2026-10-26 in import previews and real
|
|
6167
|
+
flow runs.
|
|
6168
|
+
- |-
|
|
6169
|
+
An array child's ``_PARENT`` reaches mapping expressions (``{{_PARENT.<field>}}``) and
|
|
6170
|
+
JSONPath extracts (``$._PARENT.<field>``; the child's own rows are ``$[0].<field>``) —
|
|
6171
|
+
``_PARENT.0.<field>`` under an index path, whose parent is an array — but every ``_PARENT``
|
|
6172
|
+
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
6173
|
+
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
6174
|
+
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
6131
6175
|
- |-
|
|
6132
6176
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
6133
6177
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
6134
|
-
With the default batch size the template root is ``record
|
|
6178
|
+
With the default batch size the template root is ``record`` (``rows`` for an array child).
|
|
6135
6179
|
default: false
|
|
6136
6180
|
examples:
|
|
6137
6181
|
- true
|
|
@@ -6139,11 +6183,13 @@ components:
|
|
|
6139
6183
|
PathToMany:
|
|
6140
6184
|
type: string
|
|
6141
6185
|
description: |
|
|
6142
|
-
Path to the array of child records
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6186
|
+
Path to the array of child records when `oneToMany` is true, in dot notation (`items`,
|
|
6187
|
+
`lines.lineItems`). Leave blank when the incoming record is itself an array (grouped or
|
|
6188
|
+
row-based data) and each element is a child record; when an array record's children sit under
|
|
6189
|
+
one element's field, start the path with that element's index (`0.items`). A path that does not
|
|
6190
|
+
resolve to an array processes zero records and reports success. Read only on steps that receive
|
|
6191
|
+
a record (imports, lookup exports); on a standalone export it is saved and ignored — see
|
|
6192
|
+
`oneToMany`.
|
|
6147
6193
|
x-celigo-ai-guidance:
|
|
6148
6194
|
- |-
|
|
6149
6195
|
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
@@ -6151,19 +6197,30 @@ components:
|
|
|
6151
6197
|
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
6152
6198
|
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
6153
6199
|
- |-
|
|
6154
|
-
|
|
6155
|
-
On an array record (a ``groupByFields`` export, a CSV/file
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6200
|
+
Start the path with a field name ONLY when the record entering the step is an object whose
|
|
6201
|
+
children sit under that field. On an array record (a ``groupByFields`` export, a CSV/file
|
|
6202
|
+
group, a script returning an array) a path that starts with a field name resolves to nothing:
|
|
6203
|
+
the step processes ZERO children, builds no request, and reports success with no error.
|
|
6204
|
+
Live-verified 2026-09-10 — the failure is silent, so confirm the arriving record's shape (test
|
|
6205
|
+
run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
6206
|
+
- |-
|
|
6207
|
+
On an array record only a path that starts with an element index resolves:
|
|
6208
|
+
``0.finalFulfillmentData`` fans out the array under element 0's ``finalFulfillmentData``
|
|
6209
|
+
field. An index past the last element fans out zero children with the same silent success.
|
|
6210
|
+
Live-verified 2026-10-26 in import previews and real flow runs fed by a ``groupByFields``
|
|
6211
|
+
export.
|
|
6159
6212
|
- |-
|
|
6160
6213
|
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
6161
6214
|
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
6162
6215
|
configuration. An empty string behaves exactly like an absent field.
|
|
6163
6216
|
- |-
|
|
6164
|
-
Use the bare field name or dotted path (``lineItems``, ``details.items``
|
|
6165
|
-
expression. Each child in path mode carries ``_PARENT`` (the
|
|
6166
|
-
parent-level fields
|
|
6217
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``, or ``0.items`` on an
|
|
6218
|
+
array record), not a JSONPath expression. Each child in path mode carries ``_PARENT`` (the
|
|
6219
|
+
parent minus the array), so an object child reads parent-level fields as
|
|
6220
|
+
``{{record._PARENT.<field>}}``. Under an index path the parent is the array record itself,
|
|
6221
|
+
minus only the fanned field: ``{{record._PARENT.0.<field>}}``, with its other elements at
|
|
6222
|
+
``_PARENT.1``, ``_PARENT.2``, and so on. A child that is itself an array binds as ``rows``
|
|
6223
|
+
instead — see ``oneToMany`` for where its ``_PARENT`` can be read.
|
|
6167
6224
|
examples:
|
|
6168
6225
|
- items
|
|
6169
6226
|
- line_items
|
package/dist/audit.yml
CHANGED
|
@@ -85,6 +85,7 @@ paths:
|
|
|
85
85
|
enum:
|
|
86
86
|
- accesstoken
|
|
87
87
|
- agent
|
|
88
|
+
- agentgroup
|
|
88
89
|
- alert
|
|
89
90
|
- api
|
|
90
91
|
- ashare
|
|
@@ -122,6 +123,7 @@ paths:
|
|
|
122
123
|
x-enumDescriptions:
|
|
123
124
|
accesstoken: API access token resource.
|
|
124
125
|
agent: On-premise agent resource.
|
|
126
|
+
agentgroup: On-premise agent group resource. Its audit has no descendants.
|
|
125
127
|
alert: Proactive alert resource.
|
|
126
128
|
api: Custom API endpoint resource.
|
|
127
129
|
ashare: Workspace user access record (account share) resource.
|
|
@@ -526,6 +528,7 @@ paths:
|
|
|
526
528
|
enum:
|
|
527
529
|
- accesstoken
|
|
528
530
|
- agent
|
|
531
|
+
- agentgroup
|
|
529
532
|
- alert
|
|
530
533
|
- api
|
|
531
534
|
- ashare
|
|
@@ -560,6 +563,7 @@ paths:
|
|
|
560
563
|
x-enumDescriptions:
|
|
561
564
|
accesstoken: API access token resource.
|
|
562
565
|
agent: On-premise agent resource.
|
|
566
|
+
agentgroup: On-premise agent group resource. Its audit has no descendants.
|
|
563
567
|
alert: Proactive alert resource.
|
|
564
568
|
api: Custom API endpoint resource.
|
|
565
569
|
ashare: Workspace user access record (account share) resource.
|
|
@@ -773,6 +777,7 @@ paths:
|
|
|
773
777
|
enum:
|
|
774
778
|
- accesstokens
|
|
775
779
|
- agents
|
|
780
|
+
- agentgroups
|
|
776
781
|
- alerts
|
|
777
782
|
- apis
|
|
778
783
|
- asynchelpers
|
|
@@ -802,6 +807,7 @@ paths:
|
|
|
802
807
|
x-enumDescriptions:
|
|
803
808
|
accesstokens: API access token resources.
|
|
804
809
|
agents: On-premise agent resources.
|
|
810
|
+
agentgroups: On-premise agent group resources. The audit covers only the group itself.
|
|
805
811
|
alerts: Proactive alert resources.
|
|
806
812
|
apis: Custom API endpoint resources.
|
|
807
813
|
asynchelpers: Async helper resources.
|
|
@@ -993,6 +999,7 @@ paths:
|
|
|
993
999
|
enum:
|
|
994
1000
|
- accesstokens
|
|
995
1001
|
- agents
|
|
1002
|
+
- agentgroups
|
|
996
1003
|
- alerts
|
|
997
1004
|
- apis
|
|
998
1005
|
- asynchelpers
|
|
@@ -1022,6 +1029,7 @@ paths:
|
|
|
1022
1029
|
x-enumDescriptions:
|
|
1023
1030
|
accesstokens: API access token resources.
|
|
1024
1031
|
agents: On-premise agent resources.
|
|
1032
|
+
agentgroups: On-premise agent group resources. The audit covers only the group itself.
|
|
1025
1033
|
alerts: Proactive alert resources.
|
|
1026
1034
|
apis: Custom API endpoint resources.
|
|
1027
1035
|
asynchelpers: Async helper resources.
|
|
@@ -1216,6 +1224,7 @@ paths:
|
|
|
1216
1224
|
enum:
|
|
1217
1225
|
- accesstokens
|
|
1218
1226
|
- agents
|
|
1227
|
+
- agentgroups
|
|
1219
1228
|
- alerts
|
|
1220
1229
|
- apis
|
|
1221
1230
|
- asynchelpers
|
|
@@ -1243,6 +1252,7 @@ paths:
|
|
|
1243
1252
|
x-enumDescriptions:
|
|
1244
1253
|
accesstokens: API access token resources.
|
|
1245
1254
|
agents: On-premise agent resources.
|
|
1255
|
+
agentgroups: On-premise agent group resources. The audit covers only the group itself.
|
|
1246
1256
|
alerts: Proactive alert resources.
|
|
1247
1257
|
apis: Custom API endpoint resources.
|
|
1248
1258
|
asynchelpers: Async helper resources.
|
|
@@ -1441,6 +1451,7 @@ components:
|
|
|
1441
1451
|
enum:
|
|
1442
1452
|
- accesstoken
|
|
1443
1453
|
- agent
|
|
1454
|
+
- agentgroup
|
|
1444
1455
|
- alert
|
|
1445
1456
|
- api
|
|
1446
1457
|
- ashare
|
|
@@ -1478,6 +1489,7 @@ components:
|
|
|
1478
1489
|
x-enumDescriptions:
|
|
1479
1490
|
accesstoken: API access token resource.
|
|
1480
1491
|
agent: On-premise agent resource.
|
|
1492
|
+
agentgroup: On-premise agent group resource. Its audit has no descendants.
|
|
1481
1493
|
alert: Proactive alert resource.
|
|
1482
1494
|
api: Custom API endpoint resource.
|
|
1483
1495
|
ashare: Workspace user access record (account share) resource.
|
|
@@ -1659,6 +1671,7 @@ components:
|
|
|
1659
1671
|
enum:
|
|
1660
1672
|
- accesstoken
|
|
1661
1673
|
- agent
|
|
1674
|
+
- agentgroup
|
|
1662
1675
|
- alert
|
|
1663
1676
|
- api
|
|
1664
1677
|
- ashare
|
|
@@ -1694,6 +1707,7 @@ components:
|
|
|
1694
1707
|
x-enumDescriptions:
|
|
1695
1708
|
accesstoken: API access token resource.
|
|
1696
1709
|
agent: On-premise agent resource.
|
|
1710
|
+
agentgroup: On-premise agent group resource. Its audit has no descendants.
|
|
1697
1711
|
alert: Proactive alert resource.
|
|
1698
1712
|
api: Custom API endpoint resource.
|
|
1699
1713
|
ashare: Workspace user access record (account share) resource.
|
|
@@ -1887,6 +1901,7 @@ components:
|
|
|
1887
1901
|
enum:
|
|
1888
1902
|
- accesstoken
|
|
1889
1903
|
- agent
|
|
1904
|
+
- agentgroup
|
|
1890
1905
|
- alert
|
|
1891
1906
|
- api
|
|
1892
1907
|
- ashare
|
|
@@ -1922,6 +1937,7 @@ components:
|
|
|
1922
1937
|
x-enumDescriptions:
|
|
1923
1938
|
accesstoken: API access token resource.
|
|
1924
1939
|
agent: On-premise agent resource.
|
|
1940
|
+
agentgroup: On-premise agent group resource. Its audit has no descendants.
|
|
1925
1941
|
alert: Proactive alert resource.
|
|
1926
1942
|
api: Custom API endpoint resource.
|
|
1927
1943
|
ashare: Workspace user access record (account share) resource.
|
package/dist/editransaction.yml
CHANGED
|
@@ -42,11 +42,14 @@ paths:
|
|
|
42
42
|
Partially updates one or more EDI transaction records. Commonly used
|
|
43
43
|
to update the `faStatus` field (functional acknowledgment status).
|
|
44
44
|
|
|
45
|
-
The endpoint is lenient
|
|
46
|
-
|
|
47
|
-
response is `200` with
|
|
48
|
-
|
|
49
|
-
`
|
|
45
|
+
The endpoint is lenient about records it can't match — when the
|
|
46
|
+
`ediTransactions` array is empty, missing, or holds well-formed IDs
|
|
47
|
+
that match no record, the response is `200` with
|
|
48
|
+
`{"ediTransactions": []}` rather than a 400. A malformed `_id` on an
|
|
49
|
+
`accepted` or `rejected` entry is not skipped: it fails the whole
|
|
50
|
+
request with 400 `invalid_edi_transaction_id`. Callers should always
|
|
51
|
+
supply `fileType` and a non-empty `ediTransactions` array for
|
|
52
|
+
meaningful results.
|
|
50
53
|
requestBody:
|
|
51
54
|
required: true
|
|
52
55
|
content:
|
|
@@ -66,6 +69,7 @@ paths:
|
|
|
66
69
|
properties:
|
|
67
70
|
_id:
|
|
68
71
|
type: string
|
|
72
|
+
format: objectId
|
|
69
73
|
description: EDI transaction ID to update.
|
|
70
74
|
examples:
|
|
71
75
|
- 69ca6b7a42f275a91eab88bd
|
|
@@ -127,9 +131,36 @@ paths:
|
|
|
127
131
|
value:
|
|
128
132
|
ediTransactions: []
|
|
129
133
|
'400':
|
|
130
|
-
|
|
134
|
+
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.
|
|
138
|
+
content:
|
|
139
|
+
application/json:
|
|
140
|
+
schema:
|
|
141
|
+
$ref: '#/components/schemas/Error'
|
|
142
|
+
examples:
|
|
143
|
+
invalid_id:
|
|
144
|
+
summary: Malformed transaction ID
|
|
145
|
+
value:
|
|
146
|
+
errors:
|
|
147
|
+
- code: invalid_edi_transaction_id
|
|
148
|
+
message: ediTransactions contains an invalid _id
|
|
131
149
|
'401':
|
|
132
150
|
$ref: '#/components/responses/401-unauthorized'
|
|
151
|
+
'422':
|
|
152
|
+
description: The update failed — for example, `fileType` is not `X12` or `EDIFACT`.
|
|
153
|
+
content:
|
|
154
|
+
application/json:
|
|
155
|
+
schema:
|
|
156
|
+
$ref: '#/components/schemas/Error'
|
|
157
|
+
examples:
|
|
158
|
+
update_failed:
|
|
159
|
+
summary: Unsupported fileType
|
|
160
|
+
value:
|
|
161
|
+
errors:
|
|
162
|
+
- code: edi_update_failed
|
|
163
|
+
message: Unable to update EDI Transactions. Contact Celigo Support to resolve the error.
|
|
133
164
|
/v1/ediTransactions/query:
|
|
134
165
|
post:
|
|
135
166
|
x-internal: false
|
|
@@ -187,6 +218,13 @@ paths:
|
|
|
187
218
|
- failed
|
|
188
219
|
limit: 100
|
|
189
220
|
startDate: 1742774400000
|
|
221
|
+
edifact_by_sender:
|
|
222
|
+
summary: EDIFACT transactions from one trading partner (by UNB sender ID)
|
|
223
|
+
value:
|
|
224
|
+
fileType: EDIFACT
|
|
225
|
+
unbSenderId: '3017581483'
|
|
226
|
+
limit: 100
|
|
227
|
+
startDate: 1742774400000
|
|
190
228
|
sorted_by_partner:
|
|
191
229
|
summary: Sorted by trading partner name, Z to A
|
|
192
230
|
value:
|
|
@@ -439,7 +477,10 @@ paths:
|
|
|
439
477
|
partnerPairKey: 'ACMEFOODS :CELIGOTEST '
|
|
440
478
|
lastModified: '2026-11-02T13:26:29.963Z'
|
|
441
479
|
'400':
|
|
442
|
-
description:
|
|
480
|
+
description: |-
|
|
481
|
+
The request body failed validation. A second search field is refused
|
|
482
|
+
with `invalid_searchapi_body`, whose message names the X12 sender and
|
|
483
|
+
receiver fields by their record names (`isaSenderId`, `isaReceiverId`).
|
|
443
484
|
content:
|
|
444
485
|
application/json:
|
|
445
486
|
schema:
|
|
@@ -460,6 +501,42 @@ paths:
|
|
|
460
501
|
errors:
|
|
461
502
|
- code: invalid_date_range
|
|
462
503
|
message: please provide a valid date range
|
|
504
|
+
start_time_or_end_time_missing:
|
|
505
|
+
summary: endDate sent without startDate
|
|
506
|
+
value:
|
|
507
|
+
errors:
|
|
508
|
+
- code: start_time_or_end_time_missing
|
|
509
|
+
message: start time or end time missing
|
|
510
|
+
invalid_searchapi_body:
|
|
511
|
+
summary: Two search fields in one call
|
|
512
|
+
value:
|
|
513
|
+
errors:
|
|
514
|
+
- code: invalid_searchapi_body
|
|
515
|
+
message: Invalid search api body provided, only one field out of documentNumber, isaSenderId, isaReceiverId is required
|
|
516
|
+
invalid_search_param_for_X12:
|
|
517
|
+
summary: An EDIFACT sender field without fileType EDIFACT
|
|
518
|
+
value:
|
|
519
|
+
errors:
|
|
520
|
+
- code: invalid_search_param_for_X12
|
|
521
|
+
message: invalid search param unbSenderId for filetype X12
|
|
522
|
+
invalid_searchapi_body_length:
|
|
523
|
+
summary: Search value shorter than three characters
|
|
524
|
+
value:
|
|
525
|
+
errors:
|
|
526
|
+
- code: invalid_searchapi_body_length
|
|
527
|
+
message: Invalid search api body provided, the search query string length should not be less than 3
|
|
528
|
+
invalid_searchapi_pattern:
|
|
529
|
+
summary: A * before the end of the search value
|
|
530
|
+
value:
|
|
531
|
+
errors:
|
|
532
|
+
- code: invalid_searchapi_pattern
|
|
533
|
+
message: Invalid search api body provided, "*" is only expected at the end of the string
|
|
534
|
+
invalid_searchapi_limit:
|
|
535
|
+
summary: A search value ending in * with limit above 100
|
|
536
|
+
value:
|
|
537
|
+
errors:
|
|
538
|
+
- code: invalid_searchapi_limit
|
|
539
|
+
message: Invalid search api body provided, the limit provided should not be more than 100
|
|
463
540
|
unsupported_sort_field:
|
|
464
541
|
value:
|
|
465
542
|
errors:
|
|
@@ -506,6 +583,11 @@ paths:
|
|
|
506
583
|
errors:
|
|
507
584
|
- code: invalid_fa_status
|
|
508
585
|
message: 'Invalid fa status, only accepted values: notReceived,accepted,acceptedWithErrors,rejected,failed,notApplicable'
|
|
586
|
+
invalid_page_token:
|
|
587
|
+
value:
|
|
588
|
+
errors:
|
|
589
|
+
- code: invalid_page_token
|
|
590
|
+
message: Invalid request, page token is not valid
|
|
509
591
|
'401':
|
|
510
592
|
$ref: '#/components/responses/401-unauthorized'
|
|
511
593
|
'404':
|
|
@@ -2338,15 +2420,60 @@ components:
|
|
|
2338
2420
|
type: object
|
|
2339
2421
|
description: |-
|
|
2340
2422
|
Filter for `POST /v1/ediTransactions/query`. All fields are optional.
|
|
2341
|
-
Results are narrowed by `fileType`, `
|
|
2342
|
-
|
|
2343
|
-
`
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2423
|
+
Results are narrowed by `fileType`, `faStatus`, the `startDate`/`endDate`
|
|
2424
|
+
window, at most one search field — `documentNumber`, or
|
|
2425
|
+
`interchangeSenderId`/`interchangeReceiverId` for X12, or
|
|
2426
|
+
`unbSenderId`/`unbReceiverId` for EDIFACT — and the dashboard's `filters`
|
|
2427
|
+
object, which the server applies in full. A search value needs at least
|
|
2428
|
+
three characters and takes `*` only as its last character; a value ending
|
|
2429
|
+
in `*` also needs three characters before it and a `limit` of 100 or less.
|
|
2430
|
+
The top-level `direction`, `documentType`, and `_integrationId` are
|
|
2431
|
+
accepted but not applied server-side (filter on those client-side, or use
|
|
2432
|
+
`filters`). Records come back newest-first by `lastModified` unless
|
|
2433
|
+
`sortBy` or `order` is set, and are cursor-paginated via `pageToken`.
|
|
2434
|
+
`view: lifecycle` with `mode` returns the documents grouped by order
|
|
2435
|
+
lifecycle instead of flat rows.
|
|
2436
|
+
if:
|
|
2437
|
+
properties:
|
|
2438
|
+
fileType:
|
|
2439
|
+
const: EDIFACT
|
|
2440
|
+
required:
|
|
2441
|
+
- fileType
|
|
2442
|
+
then:
|
|
2443
|
+
not:
|
|
2444
|
+
anyOf:
|
|
2445
|
+
- required:
|
|
2446
|
+
- interchangeSenderId
|
|
2447
|
+
- required:
|
|
2448
|
+
- interchangeReceiverId
|
|
2449
|
+
- required:
|
|
2450
|
+
- documentNumber
|
|
2451
|
+
- unbSenderId
|
|
2452
|
+
- required:
|
|
2453
|
+
- documentNumber
|
|
2454
|
+
- unbReceiverId
|
|
2455
|
+
- required:
|
|
2456
|
+
- unbSenderId
|
|
2457
|
+
- unbReceiverId
|
|
2458
|
+
else:
|
|
2459
|
+
not:
|
|
2460
|
+
anyOf:
|
|
2461
|
+
- required:
|
|
2462
|
+
- unbSenderId
|
|
2463
|
+
- required:
|
|
2464
|
+
- unbReceiverId
|
|
2465
|
+
- required:
|
|
2466
|
+
- documentNumber
|
|
2467
|
+
- interchangeSenderId
|
|
2468
|
+
- required:
|
|
2469
|
+
- documentNumber
|
|
2470
|
+
- interchangeReceiverId
|
|
2471
|
+
- required:
|
|
2472
|
+
- interchangeSenderId
|
|
2473
|
+
- interchangeReceiverId
|
|
2474
|
+
dependentRequired:
|
|
2475
|
+
endDate:
|
|
2476
|
+
- startDate
|
|
2350
2477
|
properties:
|
|
2351
2478
|
fileType:
|
|
2352
2479
|
type: string
|
|
@@ -2361,18 +2488,40 @@ components:
|
|
|
2361
2488
|
`fileType: EDIFACT` explicitly to query EDIFACT records.
|
|
2362
2489
|
interchangeSenderId:
|
|
2363
2490
|
type: string
|
|
2491
|
+
pattern: ^[^*]{3,}\*?$
|
|
2364
2492
|
description: |-
|
|
2365
|
-
|
|
2366
|
-
`
|
|
2493
|
+
X12 only. Searches the record's `isaSenderId` (ISA06). Refused with
|
|
2494
|
+
`fileType: EDIFACT` (`invalid_search_param_for_EDIFACT`) — use
|
|
2495
|
+
`unbSenderId` there.
|
|
2367
2496
|
examples:
|
|
2368
2497
|
- '1234567890'
|
|
2369
2498
|
interchangeReceiverId:
|
|
2370
2499
|
type: string
|
|
2500
|
+
pattern: ^[^*]{3,}\*?$
|
|
2371
2501
|
description: |-
|
|
2372
|
-
|
|
2373
|
-
`
|
|
2502
|
+
X12 only. Searches the record's `isaReceiverId` (ISA08). Refused with
|
|
2503
|
+
`fileType: EDIFACT` (`invalid_search_param_for_EDIFACT`) — use
|
|
2504
|
+
`unbReceiverId` there.
|
|
2374
2505
|
examples:
|
|
2375
2506
|
- CELIGOLABZ
|
|
2507
|
+
unbSenderId:
|
|
2508
|
+
type: string
|
|
2509
|
+
pattern: ^[^*]{3,}\*?$
|
|
2510
|
+
description: |-
|
|
2511
|
+
EDIFACT only. Searches the record's `unbSenderId` (UNB02). Send it with
|
|
2512
|
+
`fileType: EDIFACT`; under X12, the default, it is refused
|
|
2513
|
+
(`invalid_search_param_for_X12`).
|
|
2514
|
+
examples:
|
|
2515
|
+
- '3017581483'
|
|
2516
|
+
unbReceiverId:
|
|
2517
|
+
type: string
|
|
2518
|
+
pattern: ^[^*]{3,}\*?$
|
|
2519
|
+
description: |-
|
|
2520
|
+
EDIFACT only. Searches the record's `unbReceiverId` (UNB03). Send it
|
|
2521
|
+
with `fileType: EDIFACT`; under X12, the default, it is refused
|
|
2522
|
+
(`invalid_search_param_for_X12`).
|
|
2523
|
+
examples:
|
|
2524
|
+
- '7177587895'
|
|
2376
2525
|
direction:
|
|
2377
2526
|
type: string
|
|
2378
2527
|
enum:
|
|
@@ -2397,10 +2546,11 @@ components:
|
|
|
2397
2546
|
- '850'
|
|
2398
2547
|
documentNumber:
|
|
2399
2548
|
type: string
|
|
2549
|
+
pattern: ^[^*]{3,}\*?$
|
|
2400
2550
|
description: |-
|
|
2401
|
-
Business document number to
|
|
2402
|
-
|
|
2403
|
-
|
|
2551
|
+
Business document number to search for — the `documentNumber` field
|
|
2552
|
+
extracted from the transaction set (e.g. a purchase-order number from
|
|
2553
|
+
an 850's BEG03). Works for either file type.
|
|
2404
2554
|
examples:
|
|
2405
2555
|
- PO03302026A
|
|
2406
2556
|
_integrationId:
|
|
@@ -2455,7 +2605,8 @@ components:
|
|
|
2455
2605
|
format: int64
|
|
2456
2606
|
description: |-
|
|
2457
2607
|
Upper bound of the `lastModified` window, as epoch milliseconds.
|
|
2458
|
-
Must be greater than `startDate
|
|
2608
|
+
Must be greater than `startDate` and needs it: `endDate` alone is
|
|
2609
|
+
refused with `start_time_or_end_time_missing`.
|
|
2459
2610
|
examples:
|
|
2460
2611
|
- 1745452800000
|
|
2461
2612
|
limit:
|
|
@@ -2493,7 +2644,8 @@ components:
|
|
|
2493
2644
|
description: |-
|
|
2494
2645
|
Opaque cursor from a previous response's `pageToken.next`. Pass
|
|
2495
2646
|
this value to retrieve the next page of results; omit it on the
|
|
2496
|
-
first call.
|
|
2647
|
+
first call. A corrupted or truncated value fails with
|
|
2648
|
+
`invalid_page_token`. On a dual-view request send an object carrying both
|
|
2497
2649
|
windows' cursors — one missing either key fails with
|
|
2498
2650
|
`invalid_query_dual_page_token`. A cursor fixes its own sort, so
|
|
2499
2651
|
`sortBy` and `order` are ignored beside it.
|
|
@@ -3445,19 +3597,6 @@ components:
|
|
|
3445
3597
|
- mdnTimestamp
|
|
3446
3598
|
- mdnDisposition
|
|
3447
3599
|
responses:
|
|
3448
|
-
400-bad-request:
|
|
3449
|
-
description: |
|
|
3450
|
-
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
|
3451
|
-
content:
|
|
3452
|
-
application/json:
|
|
3453
|
-
schema:
|
|
3454
|
-
$ref: '#/components/schemas/Error'
|
|
3455
|
-
examples:
|
|
3456
|
-
default:
|
|
3457
|
-
value:
|
|
3458
|
-
errors:
|
|
3459
|
-
- code: invalid_request
|
|
3460
|
-
message: The request body failed validation.
|
|
3461
3600
|
401-unauthorized:
|
|
3462
3601
|
description: |-
|
|
3463
3602
|
Unauthorized. The request lacks a valid bearer token, or the provided token
|