@shipengine/connect-carrier-api 2.4.7 → 2.5.1

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.
Files changed (66) hide show
  1. package/lib/app/carrier-app-definition.d.ts +7 -2
  2. package/lib/app/carrier-app.js +10 -2
  3. package/lib/app/carrier-app.js.map +1 -1
  4. package/lib/app/constants.d.ts +1 -0
  5. package/lib/app/constants.js +1 -0
  6. package/lib/app/constants.js.map +1 -1
  7. package/lib/app/internal/carrier-specification.d.ts +1 -0
  8. package/lib/app/internal/carrier-specification.js +1 -0
  9. package/lib/app/internal/carrier-specification.js.map +1 -1
  10. package/lib/app/internal/metadata.js +3 -0
  11. package/lib/app/internal/metadata.js.map +1 -1
  12. package/lib/app/metadata/carrier.d.ts +1 -0
  13. package/lib/app/metadata/carrier.js +1 -0
  14. package/lib/app/metadata/carrier.js.map +1 -1
  15. package/lib/models/labels/index.d.ts +3 -0
  16. package/lib/models/labels/index.js +3 -0
  17. package/lib/models/labels/index.js.map +1 -1
  18. package/lib/models/labels/label-details.d.ts +36 -0
  19. package/lib/models/labels/label-details.js +8 -0
  20. package/lib/models/labels/label-details.js.map +1 -0
  21. package/lib/models/labels/label-payment-result.d.ts +10 -0
  22. package/lib/models/labels/label-payment-result.js +17 -0
  23. package/lib/models/labels/label-payment-result.js.map +1 -0
  24. package/lib/models/labels/label-request.d.ts +35 -0
  25. package/lib/models/labels/label-request.js +3 -0
  26. package/lib/models/labels/label-request.js.map +1 -0
  27. package/lib/models/manifests/manifest-request-shipment.d.ts +1 -1
  28. package/lib/models/manifests/manifest-request-shipment.js +2 -2
  29. package/lib/models/manifests/manifest-request-shipment.js.map +1 -1
  30. package/lib/models/time-window.d.ts +1 -1
  31. package/lib/models/time-window.js +3 -3
  32. package/lib/models/time-window.js.map +1 -1
  33. package/lib/requests/create-label-payment-request.d.ts +6 -0
  34. package/lib/requests/create-label-payment-request.js +9 -0
  35. package/lib/requests/create-label-payment-request.js.map +1 -0
  36. package/lib/requests/create-label-request.d.ts +3 -2
  37. package/lib/requests/create-label-request.js.map +1 -1
  38. package/lib/requests/index.d.ts +1 -0
  39. package/lib/requests/index.js +1 -0
  40. package/lib/requests/index.js.map +1 -1
  41. package/lib/responses/create-label-payment-response.d.ts +9 -0
  42. package/lib/responses/create-label-payment-response.js +16 -0
  43. package/lib/responses/create-label-payment-response.js.map +1 -0
  44. package/lib/responses/index.d.ts +1 -0
  45. package/lib/responses/index.js +1 -0
  46. package/lib/responses/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/spec.json +800 -212
  49. package/src/app/carrier-app-definition.ts +9 -0
  50. package/src/app/carrier-app.ts +12 -2
  51. package/src/app/constants.ts +1 -0
  52. package/src/app/internal/carrier-specification.ts +2 -0
  53. package/src/app/internal/metadata.ts +4 -0
  54. package/src/app/metadata/carrier.ts +2 -0
  55. package/src/models/labels/index.ts +3 -0
  56. package/src/models/labels/label-details.ts +55 -0
  57. package/src/models/labels/label-payment-result.ts +17 -0
  58. package/src/models/labels/label-request.ts +53 -0
  59. package/src/models/manifests/manifest-request-shipment.ts +1 -1
  60. package/src/models/time-window.ts +4 -4
  61. package/src/requests/create-label-payment-request.ts +7 -0
  62. package/src/requests/create-label-request.ts +4 -1
  63. package/src/requests/index.ts +1 -0
  64. package/src/responses/create-label-payment-response.ts +14 -0
  65. package/src/responses/index.ts +1 -0
  66. package/tsconfig.tsbuildinfo +1 -1
package/spec.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "ShipEngine Connect Carrier API",
5
5
  "description": "This API specification describes the canonical ShipEngine Carrier API connector module. A module which implements one or more endpoints from this specification can be integrated with the ShipEngine Carrier Platform.",
6
- "version": "1.15.4"
6
+ "version": "1.16.0"
7
7
  },
8
8
  "paths": {
9
9
  "/Register": {
@@ -31,11 +31,44 @@
31
31
  "schema": {
32
32
  "$ref": "#/components/schemas/ExampleRegisterRequest"
33
33
  },
34
- "example": {"registration_info":{"username":"auctane-next-day","password":"password!","meter_number":"8675309"},"transaction_id":"00000000-0000-0000-0000-000000000000","metadata":{"username":"auctane-next-day","password":"password!","meter_number":"8675309"}}
34
+ "example": {
35
+ "registration_info": {
36
+ "username": "auctane-next-day",
37
+ "password": "password!",
38
+ "meter_number": "8675309"
39
+ },
40
+ "transaction_id": "00000000-0000-0000-0000-000000000000",
41
+ "metadata": {
42
+ "username": "auctane-next-day",
43
+ "password": "password!",
44
+ "meter_number": "8675309"
45
+ }
46
+ }
35
47
  }
36
48
  }
37
49
  },
38
50
  "responses": {
51
+ "200": {
52
+ "description": "The Register method returns the result of the carrier's authentication process. This information will be included in the metadata of every subsequent request to your application.",
53
+ "content": {
54
+ "application/json": {
55
+ "schema": {
56
+ "$ref": "#/components/schemas/RegisterResponse"
57
+ },
58
+ "example": {
59
+ "credentials": {
60
+ "username": "auctane-next-day",
61
+ "password": "password!"
62
+ },
63
+ "metadata": {
64
+ "username": "auctane-next-day",
65
+ "password": "password!",
66
+ "meter_number": "8675309"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ },
39
72
  "400": {
40
73
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
41
74
  "content": {
@@ -56,6 +89,9 @@
56
89
  }
57
90
  }
58
91
  },
92
+ "404": {
93
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
94
+ },
59
95
  "500": {
60
96
  "description": "An unexpected error occurred in the carrier app.",
61
97
  "content": {
@@ -75,20 +111,6 @@
75
111
  }
76
112
  }
77
113
  }
78
- },
79
- "404": {
80
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
81
- },
82
- "200": {
83
- "description": "The Register method returns the result of the carrier's authentication process. This information will be included in the metadata of every subsequent request to your application.",
84
- "content": {
85
- "application/json": {
86
- "schema": {
87
- "$ref": "#/components/schemas/RegisterResponse"
88
- },
89
- "example": {"credentials":{"username":"auctane-next-day","password":"password!"},"metadata":{"username":"auctane-next-day","password":"password!","meter_number":"8675309"}}
90
- }
91
- }
92
114
  }
93
115
  }
94
116
  }
@@ -122,6 +144,16 @@
122
144
  }
123
145
  },
124
146
  "responses": {
147
+ "200": {
148
+ "description": "This object model represents the response from a successful create label request.",
149
+ "content": {
150
+ "application/json": {
151
+ "schema": {
152
+ "$ref": "#/components/schemas/CreateLabelResponse"
153
+ }
154
+ }
155
+ }
156
+ },
125
157
  "400": {
126
158
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
127
159
  "content": {
@@ -142,6 +174,9 @@
142
174
  }
143
175
  }
144
176
  },
177
+ "404": {
178
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
179
+ },
145
180
  "500": {
146
181
  "description": "An unexpected error occurred in the carrier app.",
147
182
  "content": {
@@ -161,16 +196,88 @@
161
196
  }
162
197
  }
163
198
  }
199
+ }
200
+ }
201
+ }
202
+ },
203
+ "/CreateLabelPayment": {
204
+ "post": {
205
+ "tags": [
206
+ "Labels"
207
+ ],
208
+ "description": "This method creates a label payment before creating the label itself. This may be necessary in situations\r\nwhere labels must be paid for prior to creating them. Accepts an array of label payments, which may contain\r\none or many items, depending on whether we are purchasing a single label or processing a batch. In that\r\nscenario this method will be called once before making all the individual `CreateLabel` calls for the batch.\r\nIn order for this method to be called the carrier must have the `RequiresLabelPayment` flag.",
209
+ "operationId": "Create Label Payment",
210
+ "parameters": [
211
+ {
212
+ "name": "ShipStation-TransactionID",
213
+ "in": "header",
214
+ "description": "The transaction ID uniquely represents this request.",
215
+ "schema": {
216
+ "type": "string",
217
+ "format": "uuid"
218
+ }
219
+ }
220
+ ],
221
+ "requestBody": {
222
+ "description": "An object containing information about the labels that require payments.",
223
+ "content": {
224
+ "application/json": {
225
+ "schema": {
226
+ "$ref": "#/components/schemas/CreateLabelPaymentRequest"
227
+ }
228
+ }
229
+ }
230
+ },
231
+ "responses": {
232
+ "200": {
233
+ "description": "This object model represents the response from a successful create label payment request.",
234
+ "content": {
235
+ "application/json": {
236
+ "schema": {
237
+ "$ref": "#/components/schemas/CreateLabelPaymentResponse"
238
+ }
239
+ }
240
+ }
241
+ },
242
+ "400": {
243
+ "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
244
+ "content": {
245
+ "application/json": {
246
+ "schema": {
247
+ "$ref": "#/components/schemas/BadRequestResponse"
248
+ }
249
+ }
250
+ }
251
+ },
252
+ "401": {
253
+ "description": "Use this to indicate an authentication or authorization error.",
254
+ "content": {
255
+ "application/json": {
256
+ "schema": {
257
+ "$ref": "#/components/schemas/UnauthorizedResponse"
258
+ }
259
+ }
260
+ }
164
261
  },
165
262
  "404": {
166
263
  "description": "Use this when the behavior is not supported or the behavior is not available for the user."
167
264
  },
168
- "200": {
169
- "description": "This object model represents the response from a successful create label request.",
265
+ "500": {
266
+ "description": "An unexpected error occurred in the carrier app.",
170
267
  "content": {
171
268
  "application/json": {
172
269
  "schema": {
173
- "$ref": "#/components/schemas/CreateLabelResponse"
270
+ "$ref": "#/components/schemas/InternalServerErrorResponse"
271
+ }
272
+ }
273
+ }
274
+ },
275
+ "520": {
276
+ "description": "Use this when an error is the result of calling an external service, such as an API. This indicates that the error came from a downstream service rather than directly in your app.",
277
+ "content": {
278
+ "application/json": {
279
+ "schema": {
280
+ "$ref": "#/components/schemas/ExternalServerErrorResponse"
174
281
  }
175
282
  }
176
283
  }
@@ -207,6 +314,16 @@
207
314
  }
208
315
  },
209
316
  "responses": {
317
+ "200": {
318
+ "description": "This object model represents the response from a successful void labels request.",
319
+ "content": {
320
+ "application/json": {
321
+ "schema": {
322
+ "$ref": "#/components/schemas/VoidLabelsResponse"
323
+ }
324
+ }
325
+ }
326
+ },
210
327
  "400": {
211
328
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
212
329
  "content": {
@@ -227,6 +344,9 @@
227
344
  }
228
345
  }
229
346
  },
347
+ "404": {
348
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
349
+ },
230
350
  "500": {
231
351
  "description": "An unexpected error occurred in the carrier app.",
232
352
  "content": {
@@ -246,19 +366,6 @@
246
366
  }
247
367
  }
248
368
  }
249
- },
250
- "404": {
251
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
252
- },
253
- "200": {
254
- "description": "This object model represents the response from a successful void labels request.",
255
- "content": {
256
- "application/json": {
257
- "schema": {
258
- "$ref": "#/components/schemas/VoidLabelsResponse"
259
- }
260
- }
261
- }
262
369
  }
263
370
  }
264
371
  }
@@ -292,6 +399,16 @@
292
399
  }
293
400
  },
294
401
  "responses": {
402
+ "200": {
403
+ "description": "This object model represents the response from a successful create manifest request.",
404
+ "content": {
405
+ "application/json": {
406
+ "schema": {
407
+ "$ref": "#/components/schemas/CreateManifestResponse"
408
+ }
409
+ }
410
+ }
411
+ },
295
412
  "400": {
296
413
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
297
414
  "content": {
@@ -312,6 +429,9 @@
312
429
  }
313
430
  }
314
431
  },
432
+ "404": {
433
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
434
+ },
315
435
  "500": {
316
436
  "description": "An unexpected error occurred in the carrier app.",
317
437
  "content": {
@@ -331,19 +451,6 @@
331
451
  }
332
452
  }
333
453
  }
334
- },
335
- "404": {
336
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
337
- },
338
- "200": {
339
- "description": "This object model represents the response from a successful create manifest request.",
340
- "content": {
341
- "application/json": {
342
- "schema": {
343
- "$ref": "#/components/schemas/CreateManifestResponse"
344
- }
345
- }
346
- }
347
454
  }
348
455
  }
349
456
  }
@@ -377,6 +484,16 @@
377
484
  }
378
485
  },
379
486
  "responses": {
487
+ "200": {
488
+ "description": "This object model represents the response from a successful create manifest request.",
489
+ "content": {
490
+ "application/json": {
491
+ "schema": {
492
+ "$ref": "#/components/schemas/CreateManifestResponse"
493
+ }
494
+ }
495
+ }
496
+ },
380
497
  "400": {
381
498
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
382
499
  "content": {
@@ -397,6 +514,9 @@
397
514
  }
398
515
  }
399
516
  },
517
+ "404": {
518
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
519
+ },
400
520
  "500": {
401
521
  "description": "An unexpected error occurred in the carrier app.",
402
522
  "content": {
@@ -416,19 +536,6 @@
416
536
  }
417
537
  }
418
538
  }
419
- },
420
- "404": {
421
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
422
- },
423
- "200": {
424
- "description": "This object model represents the response from a successful create manifest request.",
425
- "content": {
426
- "application/json": {
427
- "schema": {
428
- "$ref": "#/components/schemas/CreateManifestResponse"
429
- }
430
- }
431
- }
432
539
  }
433
540
  }
434
541
  }
@@ -458,11 +565,48 @@
458
565
  "schema": {
459
566
  "$ref": "#/components/schemas/ValidateInboundDataRequest"
460
567
  },
461
- "example": {"data":"{\"tracking_number\":\"12345678901234567890\",\"status\":11,\"timestamp\":\"2021-08-11T21:15:00Z\"}","headers":{"content-type":["application/json"],"X-Signature":["v1:cedff7d0389299089e4c62c1042ce93059664d455ed0bfdf29cb959a861bda4b","v2:4b3157c730e498cb1126359fa020017e9e7c97b148f2d55da822fdfcd83e4a19"]},"transaction_id":"00000000-0000-0000-0000-000000000000","metadata":{"username":"auctane-next-day","password":"password!","meter_number":"8675309"}}
568
+ "example": {
569
+ "data": "{\"tracking_number\":\"12345678901234567890\",\"status\":11,\"timestamp\":\"2021-08-11T21:15:00Z\"}",
570
+ "headers": {
571
+ "content-type": [
572
+ "application/json"
573
+ ],
574
+ "X-Signature": [
575
+ "v1:cedff7d0389299089e4c62c1042ce93059664d455ed0bfdf29cb959a861bda4b",
576
+ "v2:4b3157c730e498cb1126359fa020017e9e7c97b148f2d55da822fdfcd83e4a19"
577
+ ]
578
+ },
579
+ "transaction_id": "00000000-0000-0000-0000-000000000000",
580
+ "metadata": {
581
+ "username": "auctane-next-day",
582
+ "password": "password!",
583
+ "meter_number": "8675309"
584
+ }
585
+ }
462
586
  }
463
587
  }
464
588
  },
465
589
  "responses": {
590
+ "200": {
591
+ "description": "An object with a list of information contained in the inbound data.",
592
+ "content": {
593
+ "application/json": {
594
+ "schema": {
595
+ "$ref": "#/components/schemas/ValidateInboundDataResponse"
596
+ },
597
+ "examples": {
598
+ "Tracking": {
599
+ "summary": "Tracking",
600
+ "value": {
601
+ "content_types": [
602
+ "tracking"
603
+ ]
604
+ }
605
+ }
606
+ }
607
+ }
608
+ }
609
+ },
466
610
  "400": {
467
611
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
468
612
  "content": {
@@ -483,6 +627,9 @@
483
627
  }
484
628
  }
485
629
  },
630
+ "404": {
631
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
632
+ },
486
633
  "500": {
487
634
  "description": "An unexpected error occurred in the carrier app.",
488
635
  "content": {
@@ -502,25 +649,6 @@
502
649
  }
503
650
  }
504
651
  }
505
- },
506
- "404": {
507
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
508
- },
509
- "200": {
510
- "description": "An object with a list of information contained in the inbound data.",
511
- "content": {
512
- "application/json": {
513
- "schema": {
514
- "$ref": "#/components/schemas/ValidateInboundDataResponse"
515
- },
516
- "examples": {
517
- "Tracking": {
518
- "summary": "Tracking",
519
- "value": {"content_types":["tracking"]}
520
- }
521
- }
522
- }
523
- }
524
652
  }
525
653
  }
526
654
  }
@@ -550,11 +678,65 @@
550
678
  "schema": {
551
679
  "$ref": "#/components/schemas/NormalizeTrackingDataRequest"
552
680
  },
553
- "example": {"data":"{\"tracking_number\":\"12345678901234567890\",\"status\":11,\"timestamp\":\"2021-08-11T21:15:00Z\"}","headers":{"content-type":["application/json"],"X-Signature":["v1:cedff7d0389299089e4c62c1042ce93059664d455ed0bfdf29cb959a861bda4b","v2:4b3157c730e498cb1126359fa020017e9e7c97b148f2d55da822fdfcd83e4a19"]},"transaction_id":"00000000-0000-0000-0000-000000000000","metadata":{"username":"auctane-next-day","password":"password!","meter_number":"8675309"}}
681
+ "example": {
682
+ "data": "{\"tracking_number\":\"12345678901234567890\",\"status\":11,\"timestamp\":\"2021-08-11T21:15:00Z\"}",
683
+ "headers": {
684
+ "content-type": [
685
+ "application/json"
686
+ ],
687
+ "X-Signature": [
688
+ "v1:cedff7d0389299089e4c62c1042ce93059664d455ed0bfdf29cb959a861bda4b",
689
+ "v2:4b3157c730e498cb1126359fa020017e9e7c97b148f2d55da822fdfcd83e4a19"
690
+ ]
691
+ },
692
+ "transaction_id": "00000000-0000-0000-0000-000000000000",
693
+ "metadata": {
694
+ "username": "auctane-next-day",
695
+ "password": "password!",
696
+ "meter_number": "8675309"
697
+ }
698
+ }
554
699
  }
555
700
  }
556
701
  },
557
702
  "responses": {
703
+ "200": {
704
+ "description": "An object with tracking information for one or more shipments.",
705
+ "content": {
706
+ "application/json": {
707
+ "schema": {
708
+ "$ref": "#/components/schemas/NormalizeTrackingDataResponse"
709
+ },
710
+ "examples": {
711
+ "Delivered": {
712
+ "summary": "Delivered",
713
+ "value": {
714
+ "tracking_info": [
715
+ {
716
+ "carrier_name": "UPS",
717
+ "tracking_number": "12345678901234567890",
718
+ "standardized_status_code": "DE",
719
+ "carrier_status_code": "11",
720
+ "carrier_status_description": "Delivered",
721
+ "estimated_delivery_datetime": "2021-08-11T00:00:00",
722
+ "actual_delivery_datetime": "2021-08-11T21:15:00Z",
723
+ "service": {
724
+ "code": "03",
725
+ "name": "UPS® Ground"
726
+ },
727
+ "packaging": "package",
728
+ "package_count": 1,
729
+ "shipping_problem": false,
730
+ "carrierEnum": 0
731
+ }
732
+ ],
733
+ "update_method": "append"
734
+ }
735
+ }
736
+ }
737
+ }
738
+ }
739
+ },
558
740
  "400": {
559
741
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
560
742
  "content": {
@@ -575,6 +757,9 @@
575
757
  }
576
758
  }
577
759
  },
760
+ "404": {
761
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
762
+ },
578
763
  "500": {
579
764
  "description": "An unexpected error occurred in the carrier app.",
580
765
  "content": {
@@ -594,25 +779,6 @@
594
779
  }
595
780
  }
596
781
  }
597
- },
598
- "404": {
599
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
600
- },
601
- "200": {
602
- "description": "An object with tracking information for one or more shipments.",
603
- "content": {
604
- "application/json": {
605
- "schema": {
606
- "$ref": "#/components/schemas/NormalizeTrackingDataResponse"
607
- },
608
- "examples": {
609
- "Delivered": {
610
- "summary": "Delivered",
611
- "value": {"tracking_info":[{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"DE","carrier_status_code":"11","carrier_status_description":"Delivered","estimated_delivery_datetime":"2021-08-11T00:00:00","actual_delivery_datetime":"2021-08-11T21:15:00Z","service":{"code":"03","name":"UPS® Ground"},"packaging":"package","package_count":1,"shipping_problem":false,"carrierEnum":0}],"update_method":"append"}
612
- }
613
- }
614
- }
615
- }
616
782
  }
617
783
  }
618
784
  }
@@ -643,6 +809,16 @@
643
809
  }
644
810
  },
645
811
  "responses": {
812
+ "200": {
813
+ "description": "This object model represents the response from a successful create notification request.",
814
+ "content": {
815
+ "application/json": {
816
+ "schema": {
817
+ "$ref": "#/components/schemas/CreateNotificationResponse"
818
+ }
819
+ }
820
+ }
821
+ },
646
822
  "400": {
647
823
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
648
824
  "content": {
@@ -663,6 +839,9 @@
663
839
  }
664
840
  }
665
841
  },
842
+ "404": {
843
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
844
+ },
666
845
  "500": {
667
846
  "description": "An unexpected error occurred in the carrier app.",
668
847
  "content": {
@@ -682,19 +861,6 @@
682
861
  }
683
862
  }
684
863
  }
685
- },
686
- "404": {
687
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
688
- },
689
- "200": {
690
- "description": "This object model represents the response from a successful create notification request.",
691
- "content": {
692
- "application/json": {
693
- "schema": {
694
- "$ref": "#/components/schemas/CreateNotificationResponse"
695
- }
696
- }
697
- }
698
864
  }
699
865
  }
700
866
  }
@@ -725,6 +891,16 @@
725
891
  }
726
892
  },
727
893
  "responses": {
894
+ "200": {
895
+ "description": "This object model represents the response from a successful cancel notification request.",
896
+ "content": {
897
+ "application/json": {
898
+ "schema": {
899
+ "$ref": "#/components/schemas/CancelNotificationResponse"
900
+ }
901
+ }
902
+ }
903
+ },
728
904
  "400": {
729
905
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
730
906
  "content": {
@@ -745,6 +921,9 @@
745
921
  }
746
922
  }
747
923
  },
924
+ "404": {
925
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
926
+ },
748
927
  "500": {
749
928
  "description": "An unexpected error occurred in the carrier app.",
750
929
  "content": {
@@ -764,19 +943,6 @@
764
943
  }
765
944
  }
766
945
  }
767
- },
768
- "404": {
769
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
770
- },
771
- "200": {
772
- "description": "This object model represents the response from a successful cancel notification request.",
773
- "content": {
774
- "application/json": {
775
- "schema": {
776
- "$ref": "#/components/schemas/CancelNotificationResponse"
777
- }
778
- }
779
- }
780
946
  }
781
947
  }
782
948
  }
@@ -810,6 +976,16 @@
810
976
  }
811
977
  },
812
978
  "responses": {
979
+ "200": {
980
+ "description": "This object model represents the response from a successful schedule pickup request.",
981
+ "content": {
982
+ "application/json": {
983
+ "schema": {
984
+ "$ref": "#/components/schemas/SchedulePickupResponse"
985
+ }
986
+ }
987
+ }
988
+ },
813
989
  "400": {
814
990
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
815
991
  "content": {
@@ -830,6 +1006,9 @@
830
1006
  }
831
1007
  }
832
1008
  },
1009
+ "404": {
1010
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1011
+ },
833
1012
  "500": {
834
1013
  "description": "An unexpected error occurred in the carrier app.",
835
1014
  "content": {
@@ -849,19 +1028,6 @@
849
1028
  }
850
1029
  }
851
1030
  }
852
- },
853
- "404": {
854
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
855
- },
856
- "200": {
857
- "description": "This object model represents the response from a successful schedule pickup request.",
858
- "content": {
859
- "application/json": {
860
- "schema": {
861
- "$ref": "#/components/schemas/SchedulePickupResponse"
862
- }
863
- }
864
- }
865
1031
  }
866
1032
  }
867
1033
  }
@@ -892,6 +1058,16 @@
892
1058
  }
893
1059
  },
894
1060
  "responses": {
1061
+ "200": {
1062
+ "description": "This object model represents the response from a successful cancel pickup request.",
1063
+ "content": {
1064
+ "application/json": {
1065
+ "schema": {
1066
+ "$ref": "#/components/schemas/CancelPickupResponse"
1067
+ }
1068
+ }
1069
+ }
1070
+ },
895
1071
  "400": {
896
1072
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
897
1073
  "content": {
@@ -912,6 +1088,9 @@
912
1088
  }
913
1089
  }
914
1090
  },
1091
+ "404": {
1092
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1093
+ },
915
1094
  "500": {
916
1095
  "description": "An unexpected error occurred in the carrier app.",
917
1096
  "content": {
@@ -931,19 +1110,6 @@
931
1110
  }
932
1111
  }
933
1112
  }
934
- },
935
- "404": {
936
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
937
- },
938
- "200": {
939
- "description": "This object model represents the response from a successful cancel pickup request.",
940
- "content": {
941
- "application/json": {
942
- "schema": {
943
- "$ref": "#/components/schemas/CancelPickupResponse"
944
- }
945
- }
946
- }
947
1113
  }
948
1114
  }
949
1115
  }
@@ -977,6 +1143,16 @@
977
1143
  }
978
1144
  },
979
1145
  "responses": {
1146
+ "200": {
1147
+ "description": "This object model represents the response from a successful get rates request.",
1148
+ "content": {
1149
+ "application/json": {
1150
+ "schema": {
1151
+ "$ref": "#/components/schemas/GetRatesResponse"
1152
+ }
1153
+ }
1154
+ }
1155
+ },
980
1156
  "400": {
981
1157
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
982
1158
  "content": {
@@ -997,6 +1173,9 @@
997
1173
  }
998
1174
  }
999
1175
  },
1176
+ "404": {
1177
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1178
+ },
1000
1179
  "500": {
1001
1180
  "description": "An unexpected error occurred in the carrier app.",
1002
1181
  "content": {
@@ -1016,19 +1195,6 @@
1016
1195
  }
1017
1196
  }
1018
1197
  }
1019
- },
1020
- "404": {
1021
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1022
- },
1023
- "200": {
1024
- "description": "This object model represents the response from a successful get rates request.",
1025
- "content": {
1026
- "application/json": {
1027
- "schema": {
1028
- "$ref": "#/components/schemas/GetRatesResponse"
1029
- }
1030
- }
1031
- }
1032
1198
  }
1033
1199
  }
1034
1200
  }
@@ -1062,6 +1228,16 @@
1062
1228
  }
1063
1229
  },
1064
1230
  "responses": {
1231
+ "200": {
1232
+ "description": "This object model represents the response from a successful get relay points request.",
1233
+ "content": {
1234
+ "application/json": {
1235
+ "schema": {
1236
+ "$ref": "#/components/schemas/GetRelayPointsResponse"
1237
+ }
1238
+ }
1239
+ }
1240
+ },
1065
1241
  "400": {
1066
1242
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
1067
1243
  "content": {
@@ -1082,6 +1258,9 @@
1082
1258
  }
1083
1259
  }
1084
1260
  },
1261
+ "404": {
1262
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1263
+ },
1085
1264
  "500": {
1086
1265
  "description": "An unexpected error occurred in the carrier app.",
1087
1266
  "content": {
@@ -1101,19 +1280,6 @@
1101
1280
  }
1102
1281
  }
1103
1282
  }
1104
- },
1105
- "404": {
1106
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1107
- },
1108
- "200": {
1109
- "description": "This object model represents the response from a successful get relay points request.",
1110
- "content": {
1111
- "application/json": {
1112
- "schema": {
1113
- "$ref": "#/components/schemas/GetRelayPointsResponse"
1114
- }
1115
- }
1116
- }
1117
1283
  }
1118
1284
  }
1119
1285
  }
@@ -1143,11 +1309,256 @@
1143
1309
  "schema": {
1144
1310
  "$ref": "#/components/schemas/TrackingRequest"
1145
1311
  },
1146
- "example": {"tracking_number":"12345678901234567890","is_return":false,"identifiers":[{"type":"tracking_number","value":"12345678901234567890"},{"type":"carrier_transaction_id","value":"US-12345678901234567890-1"}],"attributes":[{"type":"marketplace_order_token","value":"123456abcdefg7890"}],"transaction_id":"00000000-0000-0000-0000-000000000000","metadata":{"username":"auctane-next-day","password":"password!","meter_number":"8675309"}}
1312
+ "example": {
1313
+ "tracking_number": "12345678901234567890",
1314
+ "is_return": false,
1315
+ "identifiers": [
1316
+ {
1317
+ "type": "tracking_number",
1318
+ "value": "12345678901234567890"
1319
+ },
1320
+ {
1321
+ "type": "carrier_transaction_id",
1322
+ "value": "US-12345678901234567890-1"
1323
+ }
1324
+ ],
1325
+ "attributes": [
1326
+ {
1327
+ "type": "marketplace_order_token",
1328
+ "value": "123456abcdefg7890"
1329
+ }
1330
+ ],
1331
+ "transaction_id": "00000000-0000-0000-0000-000000000000",
1332
+ "metadata": {
1333
+ "username": "auctane-next-day",
1334
+ "password": "password!",
1335
+ "meter_number": "8675309"
1336
+ }
1337
+ }
1147
1338
  }
1148
1339
  }
1149
1340
  },
1150
1341
  "responses": {
1342
+ "200": {
1343
+ "description": "An object with tracking information for the specified shipment.",
1344
+ "content": {
1345
+ "application/json": {
1346
+ "schema": {
1347
+ "$ref": "#/components/schemas/TrackingResponse"
1348
+ },
1349
+ "examples": {
1350
+ "Delivered with Event History": {
1351
+ "summary": "Delivered with Event History",
1352
+ "value": {
1353
+ "tracking_info": {
1354
+ "carrier_name": "UPS",
1355
+ "tracking_number": "12345678901234567890",
1356
+ "standardized_status_code": "DE",
1357
+ "carrier_status_code": "11",
1358
+ "carrier_status_description": "Delivered",
1359
+ "estimated_delivery_datetime": "2021-08-11T00:00:00",
1360
+ "actual_delivery_datetime": "2021-08-11T21:15:00Z",
1361
+ "weight": 500,
1362
+ "dimensions": {
1363
+ "length": 10,
1364
+ "width": 10,
1365
+ "height": 10
1366
+ },
1367
+ "service": {
1368
+ "code": "03",
1369
+ "name": "UPS® Ground"
1370
+ },
1371
+ "packaging": "package",
1372
+ "package_count": 1,
1373
+ "events": [
1374
+ {
1375
+ "event_datetime": "2021-08-08T21:15:00Z",
1376
+ "event_datetime_local": "2021-08-08T16:15:00",
1377
+ "event_code": "3",
1378
+ "description": "Order Processed: Ready for UPS",
1379
+ "city": "Austin",
1380
+ "state": "TX",
1381
+ "postal_code": "78756",
1382
+ "country": "US",
1383
+ "geo": {
1384
+ "lat": 30.31,
1385
+ "long": -97.74
1386
+ },
1387
+ "status_code": "AC"
1388
+ },
1389
+ {
1390
+ "event_datetime": "2021-08-09T09:15:00Z",
1391
+ "event_datetime_local": "2021-08-09T04:15:00",
1392
+ "event_code": "5",
1393
+ "description": "In Transit",
1394
+ "city": "Austin",
1395
+ "state": "TX",
1396
+ "postal_code": "78756",
1397
+ "country": "US",
1398
+ "geo": {
1399
+ "lat": 30.2,
1400
+ "long": -97.66
1401
+ },
1402
+ "status_code": "IT"
1403
+ },
1404
+ {
1405
+ "event_datetime": "2021-08-10T09:15:00Z",
1406
+ "event_datetime_local": "2021-08-10T04:15:00",
1407
+ "event_code": "6",
1408
+ "description": "On Vehicle for Delivery",
1409
+ "city": "Los Angeles",
1410
+ "state": "CA",
1411
+ "postal_code": "90045",
1412
+ "country": "US",
1413
+ "geo": {
1414
+ "lat": 33.95,
1415
+ "long": -118.38
1416
+ },
1417
+ "status_code": "IT"
1418
+ },
1419
+ {
1420
+ "event_datetime": "2021-08-10T15:15:00Z",
1421
+ "event_datetime_local": "2021-08-10T10:15:00",
1422
+ "event_code": "21",
1423
+ "description": "On Vehicle for Delivery Today",
1424
+ "city": "Los Angeles",
1425
+ "state": "CA",
1426
+ "postal_code": "90045",
1427
+ "country": "US",
1428
+ "geo": {
1429
+ "lat": 33.95,
1430
+ "long": -118.38
1431
+ },
1432
+ "status_code": "IT"
1433
+ },
1434
+ {
1435
+ "event_datetime": "2021-08-10T21:15:00Z",
1436
+ "event_datetime_local": "2021-08-10T16:15:00",
1437
+ "event_code": "22",
1438
+ "description": "First Attempt Made",
1439
+ "city": "El Segundo",
1440
+ "state": "CA",
1441
+ "postal_code": "90245",
1442
+ "country": "US",
1443
+ "geo": {
1444
+ "lat": 33.95,
1445
+ "long": -118.38
1446
+ },
1447
+ "status_code": "AT"
1448
+ },
1449
+ {
1450
+ "event_datetime": "2021-08-11T03:15:00Z",
1451
+ "event_datetime_local": "2021-08-10T22:15:00",
1452
+ "event_code": "21",
1453
+ "description": "On Vehicle for Delivery Today",
1454
+ "city": "Los Angeles",
1455
+ "state": "CA",
1456
+ "postal_code": "90045",
1457
+ "country": "US",
1458
+ "geo": {
1459
+ "lat": 33.95,
1460
+ "long": -118.38
1461
+ },
1462
+ "status_code": "IT"
1463
+ },
1464
+ {
1465
+ "event_datetime": "2021-08-11T21:15:00Z",
1466
+ "event_datetime_local": "2021-08-11T16:15:00",
1467
+ "event_code": "11",
1468
+ "description": "Delivered",
1469
+ "city": "El Segundo",
1470
+ "state": "CA",
1471
+ "postal_code": "90245",
1472
+ "country": "US",
1473
+ "geo": {
1474
+ "lat": 33.95,
1475
+ "long": -118.38
1476
+ },
1477
+ "status_code": "DE"
1478
+ }
1479
+ ],
1480
+ "shipping_problem": false,
1481
+ "carrierEnum": 0
1482
+ }
1483
+ }
1484
+ },
1485
+ "Not Yet in System": {
1486
+ "summary": "Not Yet in System",
1487
+ "value": {
1488
+ "tracking_info": {
1489
+ "carrier_name": "UPS",
1490
+ "tracking_number": "12345678901234567890",
1491
+ "standardized_status_code": "NY",
1492
+ "events": [],
1493
+ "shipping_problem": false,
1494
+ "carrierEnum": 0
1495
+ }
1496
+ }
1497
+ },
1498
+ "Fatal Exception": {
1499
+ "summary": "Fatal Exception",
1500
+ "value": {
1501
+ "tracking_info": {
1502
+ "carrier_name": "UPS",
1503
+ "tracking_number": "12345678901234567890",
1504
+ "standardized_status_code": "EX",
1505
+ "carrier_status_code": "64",
1506
+ "carrier_status_description": "Delivery Refused",
1507
+ "estimated_delivery_datetime": "2021-08-11T00:00:00",
1508
+ "actual_delivery_datetime": "2021-08-11T21:15:00Z",
1509
+ "weight": 500,
1510
+ "dimensions": {
1511
+ "length": 10,
1512
+ "width": 10,
1513
+ "height": 10
1514
+ },
1515
+ "service": {
1516
+ "code": "03",
1517
+ "name": "UPS® Ground"
1518
+ },
1519
+ "packaging": "package",
1520
+ "package_count": 1,
1521
+ "events": [
1522
+ {
1523
+ "event_datetime": "2021-08-09T09:15:00Z",
1524
+ "event_datetime_local": "2021-08-09T04:15:00",
1525
+ "event_code": "5",
1526
+ "description": "In Transit",
1527
+ "city": "Austin",
1528
+ "state": "TX",
1529
+ "postal_code": "78756",
1530
+ "country": "US",
1531
+ "geo": {
1532
+ "lat": 30.2,
1533
+ "long": -97.66
1534
+ },
1535
+ "status_code": "IT"
1536
+ },
1537
+ {
1538
+ "event_datetime": "2021-08-11T21:15:00Z",
1539
+ "event_datetime_local": "2021-08-11T16:15:00",
1540
+ "event_code": "59",
1541
+ "description": "Delivery Refused",
1542
+ "city": "El Segundo",
1543
+ "state": "CA",
1544
+ "postal_code": "90245",
1545
+ "country": "US",
1546
+ "geo": {
1547
+ "lat": 33.95,
1548
+ "long": -118.38
1549
+ },
1550
+ "status_code": "EX"
1551
+ }
1552
+ ],
1553
+ "shipping_problem": false,
1554
+ "carrierEnum": 0
1555
+ }
1556
+ }
1557
+ }
1558
+ }
1559
+ }
1560
+ }
1561
+ },
1151
1562
  "400": {
1152
1563
  "description": "Can be an internal or external error indicating an issue with the request that must be corrected.",
1153
1564
  "content": {
@@ -1168,6 +1579,9 @@
1168
1579
  }
1169
1580
  }
1170
1581
  },
1582
+ "404": {
1583
+ "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1584
+ },
1171
1585
  "500": {
1172
1586
  "description": "An unexpected error occurred in the carrier app.",
1173
1587
  "content": {
@@ -1187,33 +1601,6 @@
1187
1601
  }
1188
1602
  }
1189
1603
  }
1190
- },
1191
- "404": {
1192
- "description": "Use this when the behavior is not supported or the behavior is not available for the user."
1193
- },
1194
- "200": {
1195
- "description": "An object with tracking information for the specified shipment.",
1196
- "content": {
1197
- "application/json": {
1198
- "schema": {
1199
- "$ref": "#/components/schemas/TrackingResponse"
1200
- },
1201
- "examples": {
1202
- "Delivered with Event History": {
1203
- "summary": "Delivered with Event History",
1204
- "value": {"tracking_info":{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"DE","carrier_status_code":"11","carrier_status_description":"Delivered","estimated_delivery_datetime":"2021-08-11T00:00:00","actual_delivery_datetime":"2021-08-11T21:15:00Z","weight":500.0,"dimensions":{"length":10.0,"width":10.0,"height":10.0},"service":{"code":"03","name":"UPS® Ground"},"packaging":"package","package_count":1,"events":[{"event_datetime":"2021-08-08T21:15:00Z","event_datetime_local":"2021-08-08T16:15:00","event_code":"3","description":"Order Processed: Ready for UPS","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.31,"long":-97.74},"status_code":"AC"},{"event_datetime":"2021-08-09T09:15:00Z","event_datetime_local":"2021-08-09T04:15:00","event_code":"5","description":"In Transit","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.2,"long":-97.66},"status_code":"IT"},{"event_datetime":"2021-08-10T09:15:00Z","event_datetime_local":"2021-08-10T04:15:00","event_code":"6","description":"On Vehicle for Delivery","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-10T15:15:00Z","event_datetime_local":"2021-08-10T10:15:00","event_code":"21","description":"On Vehicle for Delivery Today","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-10T21:15:00Z","event_datetime_local":"2021-08-10T16:15:00","event_code":"22","description":"First Attempt Made","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"AT"},{"event_datetime":"2021-08-11T03:15:00Z","event_datetime_local":"2021-08-10T22:15:00","event_code":"21","description":"On Vehicle for Delivery Today","city":"Los Angeles","state":"CA","postal_code":"90045","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"IT"},{"event_datetime":"2021-08-11T21:15:00Z","event_datetime_local":"2021-08-11T16:15:00","event_code":"11","description":"Delivered","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"DE"}],"shipping_problem":false,"carrierEnum":0}}
1205
- },
1206
- "Not Yet in System": {
1207
- "summary": "Not Yet in System",
1208
- "value": {"tracking_info":{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"NY","events":[],"shipping_problem":false,"carrierEnum":0}}
1209
- },
1210
- "Fatal Exception": {
1211
- "summary": "Fatal Exception",
1212
- "value": {"tracking_info":{"carrier_name":"UPS","tracking_number":"12345678901234567890","standardized_status_code":"EX","carrier_status_code":"64","carrier_status_description":"Delivery Refused","estimated_delivery_datetime":"2021-08-11T00:00:00","actual_delivery_datetime":"2021-08-11T21:15:00Z","weight":500.0,"dimensions":{"length":10.0,"width":10.0,"height":10.0},"service":{"code":"03","name":"UPS® Ground"},"packaging":"package","package_count":1,"events":[{"event_datetime":"2021-08-09T09:15:00Z","event_datetime_local":"2021-08-09T04:15:00","event_code":"5","description":"In Transit","city":"Austin","state":"TX","postal_code":"78756","country":"US","geo":{"lat":30.2,"long":-97.66},"status_code":"IT"},{"event_datetime":"2021-08-11T21:15:00Z","event_datetime_local":"2021-08-11T16:15:00","event_code":"59","description":"Delivery Refused","city":"El Segundo","state":"CA","postal_code":"90245","country":"US","geo":{"lat":33.95,"long":-118.38},"status_code":"EX"}],"shipping_problem":false,"carrierEnum":0}}
1213
- }
1214
- }
1215
- }
1216
- }
1217
1604
  }
1218
1605
  }
1219
1606
  }
@@ -1345,7 +1732,7 @@
1345
1732
  "nullable": true
1346
1733
  }
1347
1734
  },
1348
- "additionalProperties": { },
1735
+ "additionalProperties": {},
1349
1736
  "description": "This is a schemaless object. It is for open ended customizations unique to particular carriers. The documented\r\nkeys are some common options shared by many carriers, but are not definitive. Advanced options you support will\r\nbe defined in ShipEngine. If the field is absent it should be interpreted as the default value for any\r\napplicable options, e.g. false for booleans."
1350
1737
  },
1351
1738
  "Authorization": {
@@ -1390,7 +1777,7 @@
1390
1777
  },
1391
1778
  "metadata": {
1392
1779
  "type": "object",
1393
- "additionalProperties": { },
1780
+ "additionalProperties": {},
1394
1781
  "nullable": true
1395
1782
  }
1396
1783
  },
@@ -1401,7 +1788,7 @@
1401
1788
  "properties": {
1402
1789
  "metadata": {
1403
1790
  "type": "object",
1404
- "additionalProperties": { },
1791
+ "additionalProperties": {},
1405
1792
  "description": "This is an optional schemaless object that you may return with a successful response. Anything returned\r\nunder this key will be included in all future requests. For example, you may store additional static\r\nproperties about the end user or their connection to the carrier. The maximum storage size\r\nfor data under this key is 4KB.",
1406
1793
  "nullable": true
1407
1794
  }
@@ -1665,6 +2052,49 @@
1665
2052
  ],
1666
2053
  "type": "string"
1667
2054
  },
2055
+ "CreateLabelPaymentRequest": {
2056
+ "type": "object",
2057
+ "allOf": [
2058
+ {
2059
+ "$ref": "#/components/schemas/BaseRequest"
2060
+ }
2061
+ ],
2062
+ "properties": {
2063
+ "labels": {
2064
+ "type": "array",
2065
+ "items": {
2066
+ "$ref": "#/components/schemas/LabelDetails"
2067
+ },
2068
+ "nullable": true
2069
+ }
2070
+ },
2071
+ "additionalProperties": false
2072
+ },
2073
+ "CreateLabelPaymentResponse": {
2074
+ "type": "object",
2075
+ "allOf": [
2076
+ {
2077
+ "$ref": "#/components/schemas/BaseResponse"
2078
+ }
2079
+ ],
2080
+ "properties": {
2081
+ "transaction_id": {
2082
+ "type": "string",
2083
+ "description": "The transaction ID uniquely represents this request.",
2084
+ "format": "uuid"
2085
+ },
2086
+ "results": {
2087
+ "type": "array",
2088
+ "items": {
2089
+ "$ref": "#/components/schemas/LabelPaymentResult"
2090
+ },
2091
+ "description": "Label payment results.",
2092
+ "nullable": true
2093
+ }
2094
+ },
2095
+ "additionalProperties": false,
2096
+ "description": "This model represents the response from a successful create label payment request."
2097
+ },
1668
2098
  "CreateLabelRequest": {
1669
2099
  "type": "object",
1670
2100
  "allOf": [
@@ -1768,6 +2198,14 @@
1768
2198
  "type": "string",
1769
2199
  "description": "Unique identifier for the carrier rate",
1770
2200
  "nullable": true
2201
+ },
2202
+ "alternative_identifiers": {
2203
+ "type": "array",
2204
+ "items": {
2205
+ "$ref": "#/components/schemas/Identifier"
2206
+ },
2207
+ "description": "Alternative identifiers associated with this shipment.",
2208
+ "nullable": true
1771
2209
  }
1772
2210
  },
1773
2211
  "additionalProperties": false
@@ -1948,7 +2386,7 @@
1948
2386
  },
1949
2387
  "manifest_identifiers": {
1950
2388
  "type": "object",
1951
- "additionalProperties": { },
2389
+ "additionalProperties": {},
1952
2390
  "description": "Carrier information needed to get created manifests.\r\nOnly needed if carrier requires two calls to create and get manifests.",
1953
2391
  "nullable": true
1954
2392
  }
@@ -2383,7 +2821,7 @@
2383
2821
  },
2384
2822
  "manifest_identifiers": {
2385
2823
  "type": "object",
2386
- "additionalProperties": { },
2824
+ "additionalProperties": {},
2387
2825
  "description": "Carrier specific data needed to retrieve Manifest results",
2388
2826
  "nullable": true
2389
2827
  },
@@ -2589,6 +3027,121 @@
2589
3027
  "additionalProperties": false,
2590
3028
  "description": "This model represents a module level error that was caught."
2591
3029
  },
3030
+ "LabelDetails": {
3031
+ "type": "object",
3032
+ "properties": {
3033
+ "correlation_id": {
3034
+ "type": "string",
3035
+ "description": "A unique identifier for the label in this request which should be used to correlate the results.",
3036
+ "nullable": true
3037
+ },
3038
+ "service_code": {
3039
+ "type": "string",
3040
+ "description": "The service code uniquely identifies a shipping service that you offer. Which service codes can be passed\r\nto you will be configured in ShipEngine.",
3041
+ "nullable": true
3042
+ },
3043
+ "ship_datetime": {
3044
+ "type": "string",
3045
+ "description": "When the package is expected to ship. Not guaranteed to be in the future. Formatted per the\r\nhttps://tools.ietf.org/html/rfc3339 spec. Will always be in UTC.",
3046
+ "format": "date-time"
3047
+ },
3048
+ "confirmation": {
3049
+ "$ref": "#/components/schemas/ConfirmationTypes"
3050
+ },
3051
+ "label_format": {
3052
+ "$ref": "#/components/schemas/DocumentFormat"
3053
+ },
3054
+ "label_layout": {
3055
+ "$ref": "#/components/schemas/LabelLayouts"
3056
+ },
3057
+ "is_test_label": {
3058
+ "type": "boolean",
3059
+ "description": "Whether this request is the result of a test. When true the request must not result in any financial charges\r\nto any party. If the field is absent it should be interpreted as false"
3060
+ },
3061
+ "advanced_options": {
3062
+ "$ref": "#/components/schemas/AdvancedOptions"
3063
+ },
3064
+ "insurance_provider": {
3065
+ "$ref": "#/components/schemas/InsuranceProviders"
3066
+ },
3067
+ "is_return_label": {
3068
+ "type": "boolean",
3069
+ "description": "Whether this label is to return a previously shipped package. If the field is absent it should be\r\ninterpreted as false."
3070
+ },
3071
+ "packages": {
3072
+ "type": "array",
3073
+ "items": {
3074
+ "$ref": "#/components/schemas/Package"
3075
+ },
3076
+ "description": "All the packages that make up this shipment. There will always be at least one package defined.",
3077
+ "nullable": true
3078
+ },
3079
+ "ship_to": {
3080
+ "$ref": "#/components/schemas/ShipTo"
3081
+ },
3082
+ "ship_from": {
3083
+ "$ref": "#/components/schemas/ShipFrom"
3084
+ },
3085
+ "pickup_location": {
3086
+ "$ref": "#/components/schemas/PudoLocation"
3087
+ },
3088
+ "relay_points": {
3089
+ "$ref": "#/components/schemas/RelayPointDetails"
3090
+ },
3091
+ "ship_from_display": {
3092
+ "$ref": "#/components/schemas/ShipFromDisplay"
3093
+ },
3094
+ "next_day": {
3095
+ "type": "boolean",
3096
+ "description": "Whether this shipment is expected to use a next day service class. If the field is absent it\r\nshould be interpreted as false",
3097
+ "nullable": true
3098
+ },
3099
+ "international": {
3100
+ "type": "boolean",
3101
+ "description": "Whether this shipment is deemed international.",
3102
+ "nullable": true
3103
+ },
3104
+ "reference": {
3105
+ "type": "string",
3106
+ "description": "A user specified free form string to identify this shipment in their own system.",
3107
+ "nullable": true
3108
+ },
3109
+ "return_details": {
3110
+ "$ref": "#/components/schemas/ReturnLabelDetails"
3111
+ },
3112
+ "fulfillment_plan_details": {
3113
+ "$ref": "#/components/schemas/FulfillmentPlanDetails"
3114
+ },
3115
+ "attachments": {
3116
+ "type": "array",
3117
+ "items": {
3118
+ "$ref": "#/components/schemas/Document"
3119
+ },
3120
+ "description": "Attachments that may be required to be sent to the carrier, in particular customs documents or\r\ncommercial invoices.",
3121
+ "nullable": true
3122
+ },
3123
+ "bill_shipping_to": {
3124
+ "$ref": "#/components/schemas/BillTo"
3125
+ },
3126
+ "carrier_pickup_window": {
3127
+ "$ref": "#/components/schemas/TimeWindow"
3128
+ },
3129
+ "carrier_rate_id": {
3130
+ "type": "string",
3131
+ "description": "Unique identifier for the carrier rate",
3132
+ "nullable": true
3133
+ },
3134
+ "alternative_identifiers": {
3135
+ "type": "array",
3136
+ "items": {
3137
+ "$ref": "#/components/schemas/Identifier"
3138
+ },
3139
+ "description": "Alternative identifiers associated with this shipment.",
3140
+ "nullable": true
3141
+ }
3142
+ },
3143
+ "additionalProperties": false
3144
+ },
2592
3145
  "LabelDownload": {
2593
3146
  "type": "object",
2594
3147
  "allOf": [
@@ -2652,6 +3205,41 @@
2652
3205
  "additionalProperties": false,
2653
3206
  "description": "Package information provided from the carrier"
2654
3207
  },
3208
+ "LabelPaymentResult": {
3209
+ "type": "object",
3210
+ "properties": {
3211
+ "correlation_id": {
3212
+ "type": "string",
3213
+ "description": "A unique identifier for the label as specified in the request to correlate the results.",
3214
+ "nullable": true
3215
+ },
3216
+ "alternative_identifiers": {
3217
+ "type": "array",
3218
+ "items": {
3219
+ "$ref": "#/components/schemas/Identifier"
3220
+ },
3221
+ "description": "Alternative identifiers associated with this label payment. Any values returned will be included in\r\nsubsequent requests for the related shipment such as `CreateLabel`. An example use case would be returning\r\nthe carrier's internal identifier for the shipment that was paid for as the `carrier_transaction_id` and\r\nthen referencing that in the `CreateLabel` call when creating/retrieving the actual label from the carrier.",
3222
+ "nullable": true
3223
+ },
3224
+ "error_messages": {
3225
+ "type": "array",
3226
+ "items": {
3227
+ "type": "string"
3228
+ },
3229
+ "description": "List of discrete errors relating to this label payment. The presence of error messages indicates to the\r\nsystem that the payment was unsuccessful and label creation for this shipment should not proceed.",
3230
+ "nullable": true
3231
+ },
3232
+ "warning_messages": {
3233
+ "type": "array",
3234
+ "items": {
3235
+ "type": "string"
3236
+ },
3237
+ "description": "A list of discrete warnings about this label payment. This is information the end user needs to be aware\r\nof but should not stop the request from succeeding, or a label being created as a result of this payment.",
3238
+ "nullable": true
3239
+ }
3240
+ },
3241
+ "additionalProperties": false
3242
+ },
2655
3243
  "LatLong": {
2656
3244
  "type": "object",
2657
3245
  "properties": {
@@ -3119,7 +3707,7 @@
3119
3707
  "properties": {
3120
3708
  "registration_info": {
3121
3709
  "type": "object",
3122
- "additionalProperties": { },
3710
+ "additionalProperties": {},
3123
3711
  "description": "This is a schemaless object used to contain any required fields for validating a users credentials or\r\nregistering a new account. These fields will be custom to the shipping service provider, and will be\r\ncollected via a form and sent over as key value pairs.",
3124
3712
  "nullable": true
3125
3713
  }
@@ -3135,7 +3723,7 @@
3135
3723
  },
3136
3724
  "metadata": {
3137
3725
  "type": "object",
3138
- "additionalProperties": { },
3726
+ "additionalProperties": {},
3139
3727
  "description": "This is an optional schemaless object that should be returned for persisted auth and user information.\r\nAnything returned under this key will be included in all future requests. For example, you may store\r\nadditional static properties about the end user or their connection to the carrier. The maximum\r\nstorage size for data under this key is 4KB.",
3140
3728
  "nullable": true
3141
3729
  }
@@ -4041,4 +4629,4 @@
4041
4629
  "description": "Given inbound data, such as a webhook with tracking updates, return normalized information."
4042
4630
  }
4043
4631
  ]
4044
- }
4632
+ }