-
Notifications
You must be signed in to change notification settings - Fork 16
/
openapi.yaml
13597 lines (13333 loc) · 452 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: ShipEngine API
version: 1.1.202412061012
termsOfService: 'https://www.shipengine.com/terms-of-service/'
x-logo:
url: 'https://shipengine.github.io/img/shipengine-logo-square.png'
backgroundColor: '#FFFFFF'
altText: ShipEngine logo
contact:
name: ShipEngine Sales & Support
email: sales@shipengine.com
url: 'https://www.shipengine.com/contact/'
x-phone: 1-512-856-5379
description: >
ShipEngine's easy-to-use REST API lets you manage all of your shipping needs
without worrying about the complexities of different carrier APIs and
protocols. We handle all the heavy lifting so you can focus on providing a
first-class shipping experience for your customers at the best possible
prices.
Each of ShipEngine's features can be used by itself or in conjunction with
each other to build powerful shipping functionality into your application or
service.
## Getting Started
If you're new to REST APIs then be sure to read our [introduction to
REST](https://www.shipengine.com/docs/rest/) to understand the basics.
Learn how to [authenticate yourself to
ShipEngine](https://www.shipengine.com/docs/auth/), and then use our
[sandbox environment](https://www.shipengine.com/docs/sandbox/) to kick the
tires and get familiar with our API. If you run into any problems, then be
sure to check the [error handling
guide](https://www.shipengine.com/docs/errors/) for tips.
Here are some step-by-step **tutorials** to get you started:
- [Learn how to create your first shipping label](https://www.shipengine.com/docs/labels/create-a-label/)
- [Calculate shipping costs and compare rates across carriers](https://www.shipengine.com/docs/rates/)
- [Track packages on-demand or in real time](https://www.shipengine.com/docs/tracking/)
- [Validate mailing addresses anywhere on Earth](https://www.shipengine.com/docs/addresses/validation/)
## Shipping Labels for Every Major Carrier
ShipEngine makes it easy to [create shipping labels for any
carrier](https://www.shipengine.com/docs/labels/create-a-label/) and
[download them](https://www.shipengine.com/docs/labels/downloading/) in a
[variety of file formats](https://www.shipengine.com/docs/labels/formats/).
You can even customize labels with your own
[messages](https://www.shipengine.com/docs/labels/messages/) and
[images](https://www.shipengine.com/docs/labels/branding/).
## Real-Time Package Tracking
With ShipEngine you can [get the current status of a
package](https://www.shipengine.com/docs/tracking/) or [subscribe to
real-time tracking
updates](https://www.shipengine.com/docs/tracking/webhooks/) via webhooks.
You can also create [custimized tracking
pages](https://www.shipengine.com/docs/tracking/branded-tracking-page/) with
your own branding so your customers will always know where their package is.
## Compare Shipping Costs Across Carriers
Make sure you ship as cost-effectively as possible by [comparing rates
across carriers](https://www.shipengine.com/docs/rates/get-shipment-rates/)
using the ShipEngine Rates API. Or if you don't know the full shipment
details yet, then you can [get rate
estimates](https://www.shipengine.com/docs/rates/estimate/) with limited
address info.
## Worldwide Address Validation
ShipEngine supports [address
validation](https://www.shipengine.com/docs/addresses/validation/) for
virtually [every country on
Earth](https://www.shipengine.com/docs/addresses/validation/countries/),
including the United States, Canada, Great Britain, Australia, Germany,
France, Norway, Spain, Sweden, Israel, Italy, and over 160 others.
paths:
/v1/account/settings:
summary: Account settings
description: ShipEngine Account settings
get:
summary: List Account Settings
description: List all account settings for the ShipEngine account
tags:
- account
operationId: list_account_settings
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/get_account_settings_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
/v1/account/settings/images:
summary: Account settings images
description: ShipEngine Account images
get:
summary: List Account Images
description: List all account images for the ShipEngine account
tags:
- account
operationId: list_account_images
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: >-
#/components/schemas/list_account_settings_images_response_body
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
post:
summary: Create an Account Image
description: Create an Account Image
tags:
- account
operationId: create_account_image
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/create_account_settings_image_request_body'
responses:
'200':
description: The requested object creation was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/get_account_settings_images_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
'/v1/account/settings/images/{label_image_id}':
summary: Account settings images
description: ShipEngine Account images
get:
summary: Get Account Image By ID
description: Retrieve information for an account image.
tags:
- account
operationId: get_account_settings_images_by_id
parameters:
- name: label_image_id
in: path
required: true
schema:
$ref: '#/components/schemas/image_id'
description: Label Image Id
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/get_account_settings_images_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
put:
summary: Update Account Image By ID
description: Update information for an account image.
tags:
- account
operationId: update_account_settings_images_by_id
parameters:
- name: label_image_id
in: path
required: true
schema:
$ref: '#/components/schemas/image_id'
description: Label Image Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/update_account_settings_image_request_body'
responses:
'204':
description: The request was successful.
content:
text/plain:
schema:
$ref: '#/components/schemas/empty_response_body'
application/json:
schema:
$ref: '#/components/schemas/empty_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
delete:
summary: Delete Account Image By Id
description: Delete Account Image By Id
tags:
- account
operationId: delete_account_image_by_id
parameters:
- name: label_image_id
in: path
required: true
schema:
$ref: '#/components/schemas/image_id'
description: Label Image Id
responses:
'204':
description: The request was successful.
content:
text/plain:
schema:
$ref: '#/components/schemas/empty_response_body'
application/json:
schema:
$ref: '#/components/schemas/empty_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
/v1/addresses/recognize:
summary: Parse an address
description: >
Data often enters your system as unstructured text (for example: emails,
SMS messages, support tickets, or other documents). ShipEngine's
address-recognition API helps you extract meaningful address data (e.g.
recipient name, address line 1, line 2, city, postal code) from this
unstructured text.
put:
summary: Parse an address
description: >
The address-recognition API makes it easy for you to extract address
data from unstructured text, including the recipient name, line 1, line
2, city, postal code, and more.
Data often enters your system as unstructured text (for example: emails,
SMS messages, support tickets, or other documents). ShipEngine's
address-recognition API helps you extract meaningful, structured data
from this unstructured text. The parsed address data is returned in the
same structure that's used for other ShipEngine APIs, such as address
validation, rate quotes, and shipping labels.
> **Note:** Address recognition is currently supported for the United
States, Canada, Australia, New Zealand, the United Kingdom, and Ireland.
tags:
- addresses
operationId: parse_address
requestBody:
required: true
description: >
The only required field is `text`, which is the text to be parsed. You
can optionally also provide an `address` containing already-known
values. For example, you may already know the recipient's name, city,
and country, and only want to parse the street address into separate
lines.
content:
application/json:
schema:
$ref: '#/components/schemas/parse_address_request_body'
examples:
text_only:
summary: Text only
description: >
This is the simplest way to call the address-recognition API.
Just pass the text to be parsed and nothing else.
value:
text: >-
Margie McMiller at 3800 North Lamar suite 200 in austin,
tx. The zip code there is 78652.
some_known_fields:
summary: Some known fields
description: >
You can optionally provide an `address` object containing any
already-known values. For example, you may already know the
recipient's name, city, and country, and only want to parse
the street address into separate lines.
value:
text: >-
Margie McMiller at 3800 North Lamar suite 200 in austin,
tx. The zip code there is 78652.
address:
country_code: US
address_residential_indicator: 'yes'
responses:
'200':
description: >
Returns the parsed address, as well as a confidence score and a list
of all the entities that were recognized in the text.
content:
application/json:
schema:
$ref: '#/components/schemas/parse_address_response_body'
examples:
text_only:
description: >
This response shows that the address-recognition API was
able to recognize all the address entities in the text.
Notice that the `country_code` is not populated and the
`address_residential_indicator` is "unknown", since neither
of these fields was included in the text.
value:
score: 0.9122137426845613
address:
name: Margie McMiller
address_line1: 3800 North Lamar
address_line2: Suite 200
city_locality: Austin
state_province: TX
postal_code: 78652
address_residential_indicator: unknown
entities:
- type: person
score: 0.9519646137063122
text: Margie McMiller
start_index: 0
end_index: 14
result:
value: Margie McMiller
- type: address_line
score: 0.9805313966503588
text: 3800 North Lamar
start_index: 19
end_index: 34
result:
line: 1
value: 3800 North Lamar
- type: number
score: 0.9805313966503588
text: 3800
start_index: 19
end_index: 22
result:
type: cardinal
value: 3800
- type: address_line
score: 1
text: suite 200
start_index: 36
end_index: 44
result:
line: 2
value: Suite 200
- type: number
score: 0.9805313966503588
text: 200
start_index: 42
end_index: 44
result:
type: cardinal
value: 200
- type: city_locality
score: 0.9805313966503588
text: austin
start_index: 49
end_index: 54
result:
value: Austin
- type: state_province
score: 0.6082904353940255
text: tx
start_index: 57
end_index: 58
result:
name: Texas
value: TX
- type: postal_code
score: 0.9519646137063122
text: 78652
start_index: 84
end_index: 88
result:
value: 78652
some_known_fields:
description: >
This response is shows that the address-recognition API was
able to recognize all the address entities in the text.
Notice that the `country_code` and
`address_residential_indicator` fields are populated with
the values that were provided in the request.
value:
score: 0.9122137426845613
address:
name: Margie McMiller
address_line1: 3800 North Lamar
address_line2: Suite 200
city_locality: Austin
state_province: TX
postal_code: 78652
country_code: US
address_residential_indicator: 'yes'
entities:
- type: person
score: 0.9519646137063122
text: Margie McMiller
start_index: 0
end_index: 14
result:
value: Margie McMiller
- type: address_line
score: 0.9805313966503588
text: 3800 North Lamar
start_index: 19
end_index: 34
result:
line: 1
value: 3800 North Lamar
- type: number
score: 0.9805313966503588
text: 3800
start_index: 19
end_index: 22
result:
type: cardinal
value: 3800
- type: address_line
score: 1
text: suite 200
start_index: 36
end_index: 44
result:
line: 2
value: Suite 200
- type: number
score: 0.9805313966503588
text: 200
start_index: 42
end_index: 44
result:
type: cardinal
value: 200
- type: city_locality
score: 0.9805313966503588
text: austin
start_index: 49
end_index: 54
result:
value: Austin
- type: state_province
score: 0.6082904353940255
text: tx
start_index: 57
end_index: 58
result:
name: Texas
value: TX
- type: postal_code
score: 0.9519646137063122
text: 78652
start_index: 84
end_index: 88
result:
value: 78652
'400':
$ref: '#/components/responses/400_error_response'
'500':
$ref: '#/components/responses/500_error_response'
/v1/addresses/validate:
summary: Address Validation
description: >
Address validation ensures accurate addresses and can lead to reduced
shipping costs by preventing address correction surcharges.
ShipEngine cross references multiple databases to validate addresses and
identify potential deliverability issues.
post:
summary: Validate An Address
description: >
Address validation ensures accurate addresses and can lead to reduced
shipping costs by preventing address correction surcharges.
ShipEngine cross references multiple databases to validate addresses and
identify potential deliverability issues.
tags:
- addresses
operationId: validate_address
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/validate_address_request_body'
examples:
all_known_fields_request:
summary: All Known Fields
description: A call that returns a status of `verified`.
value:
- name: Mickey and Minnie Mouse
phone: 714-781-4565
company_name: The Walt Disney Company
address_line1: 500 South Buena Vista Street
city_locality: Burbank
state_province: CA
postal_code: 91521
country_code: US
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/validate_address_response_body'
examples:
all_known_fields:
summary: All Known Fields
description: A response for a `verified` status call.
value:
- status: verified
original_address:
name: Mickey and Minnie Mouse
phone: 714-781-4565
company_name: The Walt Disney Company
address_line1: 500 South Buena Vista Street
address_line2: null
address_line3: null
city_locality: Burbank
state_province: CA
postal_code: 91521
country_code: US
address_residential_indicator: unknown
matched_address:
name: MICKEY AND MINNIE MOUSE
phone: 714-781-4565
company_name: THE WALT DISNEY COMPANY
address_line1: 500 S BUENA VISTA ST
address_line2: null
address_line3: null
city_locality: BURBANK
state_province: CA
postal_code: 91521-0007
country_code: US
address_residential_indicator: 'no'
messages: []
empty_fields:
summary: Empty Fields
description: A response for an `unverified` API Call with error message
value:
- status: unverified
original_address:
name: null
phone: null
company_name: null
address_line1: null
address_line2: null
address_line3: null
city_locality: null
state_province: null
postal_code: null
country_code: null
address_residential_indicator: unknown
matched_address: null
messages:
- code: a1001
message: >-
country_code is not currently a supported country
please check the documentation for acceptable
2-letter country codes.
type: error
detail_code: unsupported_country
'400':
$ref: '#/components/responses/400_error_response'
'500':
$ref: '#/components/responses/500_error_response'
/v1/batches:
summary: Batches
description: >
Batches are an advanced feature of ShipEngine designed for users who need
to generate hundreds or thousands of labels at a time.
When ShipEngine generates labels it relies on many carriers, their
services, their dependencies, and a number of other variables
to fulfill your requests; those requests can take a few minutes for us to
get back to you.
get:
summary: List Batches
description: List Batches associated with your Shipengine account
operationId: list_batches
tags:
- batches
parameters:
- name: status
in: query
required: false
schema:
$ref: '#/components/schemas/batch_status'
- name: page
in: query
required: false
schema:
type: integer
format: int32
minimum: 1
default: 1
example: 2
description: >
Return a specific page of results. Defaults to the first page. If
set to a number that's greater than the number of pages of results,
an empty page is returned.
- name: page_size
in: query
required: false
schema:
type: integer
format: int32
minimum: 1
default: 25
example: 50
description: The number of results to return per response.
- name: sort_dir
in: query
required: false
schema:
allOf:
- $ref: '#/components/schemas/sort_dir'
default: desc
description: Controls the sort order of the query.
- name: batch_number
in: query
required: false
schema:
type: string
description: Batch Number
- name: sort_by
in: query
required: false
schema:
$ref: '#/components/schemas/batches_sort_by'
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/list_batches_response_body'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
post:
summary: Create A Batch
description: Create a Batch
tags:
- batches
operationId: create_batch
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/create_batch_request'
responses:
'200':
description: The requested object creation was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/create_batch_response_body'
'207':
description: >-
The request was a partial success. It contains results, as well as
processing errors.
content:
application/json:
schema:
$ref: '#/components/schemas/create_batch_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'500':
$ref: '#/components/responses/500_error_response'
'/v1/batches/external_batch_id/{external_batch_id}':
summary: External Batch ID
description: Retrive a batch from an external batch ID
parameters:
- name: external_batch_id
in: path
required: true
schema:
type: string
example: 13553d7f-3c87-4771-bae1-c49bacef11cb
get:
summary: Get Batch By External ID
description: Get Batch By External ID
tags:
- batches
operationId: get_batch_by_external_id
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/get_batch_by_external_id_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
'/v1/batches/{batch_id}':
summary: Batch By ID
description: Check the status of your batch by retrieving it with a Batch ID.
parameters:
- name: batch_id
in: path
required: true
schema:
$ref: '#/components/schemas/se_id'
description: Batch ID
delete:
summary: Delete Batch By Id
description: Delete Batch By Id
operationId: delete_batch
tags:
- batches
responses:
'204':
description: The request was successful.
content:
text/plain:
schema:
$ref: '#/components/schemas/empty_response_body'
application/json:
schema:
$ref: '#/components/schemas/empty_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
get:
summary: Get Batch By ID
description: Get Batch By ID
tags:
- batches
operationId: get_batch_by_id
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/get_batch_by_id_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
put:
summary: Update Batch By Id
description: Update Batch By Id
operationId: update_batch
tags:
- batches
responses:
'204':
description: The request was successful.
content:
text/plain:
schema:
$ref: '#/components/schemas/empty_response_body'
application/json:
schema:
$ref: '#/components/schemas/empty_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
'/v1/batches/{batch_id}/add':
summary: Add Funds to a Carrier
description: >
You can check your balance for a particular carrier by calling [List
Carriers](https://www.shipengine.com/docs/reference/list-carriers/)
endpoint.
For any carrier account where requires_funded_amount is true, you can add
funds.
parameters:
- name: batch_id
in: path
required: true
schema:
$ref: '#/components/schemas/se_id'
description: Batch ID
post:
summary: Add to a Batch
description: Add a Shipment or Rate to a Batch
tags:
- batches
operationId: add_to_batch
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/add_to_batch_request_body'
responses:
'204':
description: The request was successful.
content:
text/plain:
schema:
$ref: '#/components/schemas/empty_response_body'
application/json:
schema:
$ref: '#/components/schemas/empty_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
'/v1/batches/{batch_id}/errors':
summary: Batch Errors
description: >
Error handling in batches are handled differently than in a single
synchronous request.
You must retrieve the status of your batch by [getting a
batch](https://www.shipengine.com/docs/reference/get-batch-by-id/) and
getting an overview of the statuses or you can list errors directly here
below to get detailed information about the errors.
parameters:
- name: batch_id
in: path
required: true
schema:
$ref: '#/components/schemas/se_id'
description: Batch ID
get:
summary: Get Batch Errors
description: >
Error handling in batches are handled differently than in a single
synchronous request.
You must retrieve the status of your batch by [getting a
batch](https://www.shipengine.com/docs/reference/get-batch-by-id/) and
getting an overview of the statuses or you can list errors directly here
below to get detailed information about the errors.
tags:
- batches
operationId: list_batch_errors
parameters:
- name: page
in: query
required: false
schema:
type: integer
format: int32
minimum: 1
default: 1
example: 2
description: >
Return a specific page of results. Defaults to the first page. If
set to a number that's greater than the number of pages of results,
an empty page is returned.
- name: pagesize
in: query
required: false
schema:
type: integer
format: int32
minimum: 1
responses:
'200':
description: The request was a success.
content:
application/json:
schema:
$ref: '#/components/schemas/list_batch_errors_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
'/v1/batches/{batch_id}/process/labels':
summary: Process Batch ID Labels
description: Process Batch ID Labels
parameters:
- name: batch_id
in: path
required: true
schema:
$ref: '#/components/schemas/se_id'
description: Batch ID
post:
summary: Process Batch ID Labels
description: Process Batch ID Labels
tags:
- batches
operationId: process_batch
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/process_batch_request_body'
responses:
'204':
description: The request was successful.
content:
text/plain:
schema:
$ref: '#/components/schemas/empty_response_body'
application/json:
schema:
$ref: '#/components/schemas/empty_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
'/v1/batches/{batch_id}/remove':
summary: Remove Batch By ID
description: Remove a list of shipments from a batch
parameters:
- name: batch_id
in: path
required: true
schema:
$ref: '#/components/schemas/se_id'
description: Batch ID
post:
summary: Remove From Batch
description: Remove a shipment or rate from a batch
tags:
- batches
operationId: remove_from_batch
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/remove_from_batch_request_body'
responses:
'204':
description: The request was successful.
content:
text/plain:
schema:
$ref: '#/components/schemas/empty_response_body'
application/json:
schema:
$ref: '#/components/schemas/empty_response_body'
'400':
$ref: '#/components/responses/400_error_response'
'404':
$ref: '#/components/responses/404_error_response'
'500':
$ref: '#/components/responses/500_error_response'
/v1/carriers:
summary: Carriers
description: >
Carriers are a company or individual that specializes in transporting
freight from one destination to another.
Shipengine allows you to easily integrate with multiple carriers so you
can chose the shipping option that is right for you.
get: