@celigo/api-specs 0.2.39 → 0.2.41

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.
@@ -770,6 +770,13 @@ components:
770
770
  description: Display name of the dependent resource.
771
771
  examples:
772
772
  - Import Orders to NetSuite
773
+ type:
774
+ type: string
775
+ description: |-
776
+ Sub-type of the dependent resource when its collection distinguishes one, such as
777
+ `stream` for a listener export. Only present for resource types that carry a `type`.
778
+ examples:
779
+ - stream
773
780
  paths:
774
781
  type: array
775
782
  description: |-
@@ -209,6 +209,9 @@ paths:
209
209
  fileType: X12
210
210
  documentType: '850'
211
211
  documentNumber: PO03302026A
212
+ referenceDocumentNumber:
213
+ - PO PO03302026A
214
+ lifecycleStatus: PO received
212
215
  direction: Inbound
213
216
  faStatus: inProgress
214
217
  sandbox: false
@@ -267,6 +270,145 @@ paths:
267
270
  message: please provide a valid date range
268
271
  '401':
269
272
  $ref: '#/components/responses/401-unauthorized'
273
+ /v1/ediTransactions/signedURL:
274
+ get:
275
+ x-internal: false
276
+ operationId: getEdiTransactionsSignedUrl
277
+ tags:
278
+ - EDI Transactions
279
+ summary: Get signed URL to download EDI transactions CSV
280
+ description: |-
281
+ Exports EDI transaction-log records matching a `lastModified` date window
282
+ to a CSV file and returns a short-lived pre-signed S3 URL for downloading
283
+ it — the API equivalent of the B2B Manager dashboard's transaction
284
+ download.
285
+
286
+ When `startDate` and `endDate` are both omitted, the export covers the
287
+ last 24 hours. When the window matches more records than the server-side
288
+ export cap, the request fails with `exceeded_max_ediTransactions` —
289
+ narrow the window and retry.
290
+
291
+ CSV columns for X12 exports: Doc no., Doc type, FA status, File type,
292
+ Direction, Processed, ISA no., GS no., ST no., ISA sender, ISA receiver,
293
+ GS sender, GS receiver, FA details, MDN status. EDIFACT exports replace
294
+ FA status with ACK status and the ISA/GS/ST columns with UNB no.,
295
+ UNH no., UNB sender, UNB receiver. The Processed timestamp is rendered
296
+ in the account owner's timezone preference.
297
+
298
+ The signed URL expires 15 minutes after generation (S3
299
+ `X-Amz-Expires=900`) — fetch it promptly and do not persist it. To browse
300
+ transaction records via the API instead, use
301
+ `POST /v1/ediTransactions/query`.
302
+ parameters:
303
+ - name: fileType
304
+ in: query
305
+ required: false
306
+ schema:
307
+ type: string
308
+ enum:
309
+ - X12
310
+ - EDIFACT
311
+ x-enumDescriptions:
312
+ X12: Export the ANSI X12 transaction log.
313
+ EDIFACT: Export the UN/EDIFACT transaction log.
314
+ description: |-
315
+ Which transaction log to export. Defaults to `X12` when omitted —
316
+ pass `fileType=EDIFACT` explicitly to export EDIFACT records. The
317
+ two logs produce different CSV columns.
318
+ - name: startDate
319
+ in: query
320
+ required: false
321
+ schema:
322
+ type: integer
323
+ format: int64
324
+ examples:
325
+ - 1742774400000
326
+ description: |-
327
+ Lower bound of the `lastModified` window, as epoch milliseconds
328
+ (non-numeric values are rejected). When both `startDate` and
329
+ `endDate` are omitted, the window defaults to the last 24 hours.
330
+ - name: endDate
331
+ in: query
332
+ required: false
333
+ schema:
334
+ type: integer
335
+ format: int64
336
+ examples:
337
+ - 1745452800000
338
+ description: |-
339
+ Upper bound of the `lastModified` window, as epoch milliseconds
340
+ (non-numeric values are rejected). Must be greater than `startDate`.
341
+ Defaults to the current time when only `startDate` is provided —
342
+ sending `endDate` without `startDate` fails with
343
+ `start_time_or_end_time_missing`.
344
+ responses:
345
+ '200':
346
+ description: |-
347
+ Signed URL for the generated CSV export. Returned even when zero
348
+ records match the window — the CSV then contains only the header
349
+ row.
350
+ content:
351
+ application/json:
352
+ schema:
353
+ $ref: '#/components/schemas/EDITransactionsSignedUrlResponse'
354
+ examples:
355
+ default:
356
+ summary: Signed URL for the CSV export
357
+ value:
358
+ url: https://integrator-userdata-delete-30.s3.us-east-1.amazonaws.com/ediTransactions/5e58483b68b52e5827d56a86/TransactionSummary_20260614_20260713_5e58483b68b52e5827d56a86.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAEXAMPLE%2F20260713%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260713T120000Z&X-Amz-Expires=900&X-Amz-Security-Token=EXAMPLE-STS-TOKEN&X-Amz-SignedHeaders=host&X-Amz-Signature=7d0e5a9d2f4b6c8e1a3f7b0c5e9a2d4f8b1c3e7a0d5f2b9c4e6a8d1f3b7c0e5a
359
+ '400':
360
+ description: |-
361
+ The request failed validation, or the date window matches more
362
+ records than the server-side export cap.
363
+ content:
364
+ application/json:
365
+ schema:
366
+ $ref: '#/components/schemas/Error'
367
+ examples:
368
+ end_date_without_start_date:
369
+ summary: endDate sent without startDate
370
+ value:
371
+ errors:
372
+ - code: start_time_or_end_time_missing
373
+ message: start time or end time missing
374
+ invalid_start_or_end_time:
375
+ summary: Non-numeric startDate or endDate
376
+ value:
377
+ errors:
378
+ - code: invalid_start_time_or_end_time
379
+ message: please provide a valid start time or end time
380
+ invalid_date_range:
381
+ summary: startDate is not before endDate
382
+ value:
383
+ errors:
384
+ - code: invalid_date_range
385
+ message: please provide a valid date range
386
+ invalid_filetype:
387
+ summary: fileType is not X12 or EDIFACT
388
+ value:
389
+ errors:
390
+ - code: invalid_filetype
391
+ message: 'fileType is invalid. fileType should be one of the following: X12, EDIFACT'
392
+ too_many_records:
393
+ summary: Window matches more records than the export cap
394
+ value:
395
+ errors:
396
+ - code: exceeded_max_ediTransactions
397
+ message: Too many records found. Please narrow your search criteria for more precise results.
398
+ '401':
399
+ $ref: '#/components/responses/401-unauthorized'
400
+ '422':
401
+ description: The account's subscription does not include a B2B / EDI license.
402
+ content:
403
+ application/json:
404
+ schema:
405
+ $ref: '#/components/schemas/Error'
406
+ examples:
407
+ no_edi_license:
408
+ value:
409
+ errors:
410
+ - code: edi_subscription_required
411
+ message: EDI is a premium feature that is not included in your account's current subscription plan. Please upgrade your account to get access to B2B Manager.
270
412
  /v1/ediTransactions/{_ediTransactionId}/faDetails:
271
413
  get:
272
414
  x-internal: false
@@ -758,6 +900,71 @@ components:
758
900
  documents. May also be an empty string.
759
901
  examples:
760
902
  - PO03302026A
903
+ referenceDocumentNumber:
904
+ type: array
905
+ description: |-
906
+ Business documents this one refers back to, each as an upper-cased
907
+ `<qualifier> <number>` string — for example the purchase order an
908
+ 856 ASN or 810 invoice fulfils. Links the documents of one order
909
+ lifecycle together. Present only when the file definition extracted
910
+ at least one reference.
911
+ items:
912
+ type: string
913
+ examples:
914
+ - - PO RV850-100001
915
+ lifecycleStatus:
916
+ type: string
917
+ enum:
918
+ - PO received
919
+ - PO sent
920
+ - PO Ack received
921
+ - PO Ack sent
922
+ - PO change req received
923
+ - PO change req sent
924
+ - ASN received
925
+ - ASN sent
926
+ - Invoice received
927
+ - Invoice sent
928
+ - Payment received
929
+ - Payment sent
930
+ x-enumDescriptions:
931
+ PO received: Inbound 850 or ORDERS — a purchase order arrived from the trading partner
932
+ PO sent: Outbound 850 or ORDERS — a purchase order was sent to the trading partner
933
+ PO Ack received: Inbound 855 or ORDRSP — the partner acknowledged a purchase order
934
+ PO Ack sent: Outbound 855 or ORDRSP — a purchase-order acknowledgement was sent
935
+ PO change req received: Inbound 860 or ORDCHG — the partner requested a purchase-order change
936
+ PO change req sent: Outbound 860 or ORDCHG — a purchase-order change request was sent
937
+ ASN received: Inbound 856 or DESADV — an advance ship notice arrived
938
+ ASN sent: Outbound 856 or DESADV — an advance ship notice was sent
939
+ Invoice received: Inbound 810 or INVOIC — an invoice arrived
940
+ Invoice sent: Outbound 810 or INVOIC — an invoice was sent
941
+ Payment received: Inbound 820 — a payment or remittance advice arrived
942
+ Payment sent: Outbound 820 — a payment or remittance advice was sent
943
+ description: |-
944
+ Order-lifecycle step this document represents, derived from
945
+ `documentType` and `direction`. Absent when the document type is
946
+ outside the order cycle (functional acknowledgements, inventory and
947
+ status documents) and on records that predate lifecycle tracking.
948
+ examples:
949
+ - PO received
950
+ tradingPartnerName:
951
+ type: string
952
+ description: |-
953
+ Display name of the trading partner the document was exchanged with.
954
+ Present only when the flow resolved the partner; drives the partner
955
+ filter of the B2B Manager dashboard.
956
+ examples:
957
+ - Best Buy
958
+ partnerPairKey:
959
+ type: string
960
+ description: |-
961
+ Upper-cased key identifying the trading-partner pair that exchanged
962
+ the document, shared by every document of that pair so an order
963
+ lifecycle can be followed across documents together with
964
+ `referenceDocumentNumber`. Present only when the flow resolved the
965
+ partner.
966
+ examples:
967
+ - ACME:BESTBUY
761
968
  direction:
762
969
  type: string
763
970
  enum:
@@ -1125,6 +1332,24 @@ components:
1125
1332
  description: |-
1126
1333
  Opaque cursor string. Pass as `pageToken` in the next request
1127
1334
  body to retrieve the next page.
1335
+ EDITransactionsSignedUrlResponse:
1336
+ type: object
1337
+ description: |-
1338
+ Location of the CSV export generated from the matching EDI transaction
1339
+ records.
1340
+ properties:
1341
+ url:
1342
+ type: string
1343
+ format: uri
1344
+ description: |-
1345
+ Pre-signed S3 URL that streams the CSV export when fetched with a
1346
+ plain GET (no auth headers needed). Expires 15 minutes after
1347
+ generation (S3 `X-Amz-Expires=900`) — fetch it promptly, do not
1348
+ persist it.
1349
+ examples:
1350
+ - https://integrator-userdata-delete-30.s3.us-east-1.amazonaws.com/ediTransactions/5e58483b68b52e5827d56a86/TransactionSummary_20260614_20260713_5e58483b68b52e5827d56a86.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=4f9b2c1e8a3d7f0b5c6e9a2d4f8b1c3e7a0d5f2b9c4e6a8d1f3b7c0e5a9d2f4b
1351
+ required:
1352
+ - url
1128
1353
  EDITransactionMdnResponse:
1129
1354
  type: object
1130
1355
  description: |-