-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathPaperless.yaml
More file actions
1158 lines (1144 loc) · 51.2 KB
/
Paperless.yaml
File metadata and controls
1158 lines (1144 loc) · 51.2 KB
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.3
info:
title: Paperless Document
version: ''
description: |
The Paperless Documents API allows users to upload specific trade documents for paperless processing of international shipments. <br />The /upload endpoint of the API requires document details, including file name, file format, and document type (such as authorization form, commercial invoice, certificate of origin, export license, etc).<br />The /image endpoint helps users upload document images as support documents for shipping<br />The /delete endpoint of the API helps delete a specific document the user has uploaded.
# Reference
- <a href="https://developer.ups.com/api/reference/paperlessdocument/business-rules" target="_blank" rel="noopener">Business Rules</a>
- <a href="https://developer.ups.com/api/reference/paperlessdocument/errors" target="_blank" rel="noopener">Errors</a>
- <a href="https://developer.ups.com/api/reference/paperlessdocument/faq" target="_blank" rel="noopener">FAQ</a>
</br><p>Try out UPS APIs with example requests using Postman and learn more about the UPS Postman Collection by visiting our <a href="https://developer.ups.com/api/reference/postman/guide"
target="_blank" rel="noopener">Postman Guide</a>. Explore API documentation and sample applications through GitHub.</p>
<a href="https://god.gw.postman.com/run-collection/29542085-ee617b20-f052-4f25-9eca-7f7b8a1c5146?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D29542085-ee617b20-f052-4f25-9eca-7f7b8a1c5146%26entityType%3Dcollection%26workspaceId%3D7e7595f0-4829-4f9a-aee1-75c126b9d417" target="_blank" rel="noopener noreferrer">
<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;"></a>
<a href="https://github.com/UPS-API" target="_blank" rel="noopener noreferrer">
<img src="https://www.ups.com/assets/resources/webcontent/images/gitHubButton.svg" alt="Open in GitHub " style="width: 128px; height: 32px;">
</a>
servers:
- url: https://wwwcie.ups.com/api
description: Customer Integration Environment
- url: https://onlinetools.ups.com/api
description: Production
paths:
"/paperlessdocuments/{version}/upload":
post:
summary: Upload Paperless Document
tags:
- Paperless
security:
- OAuth2: []
description: 'The Paperless Document API web service allows the users to upload,delete
and push to image repository their own customized trade documents for customs
clearance to Forms History. '
operationId: Upload
parameters:
- in: header
name: transId
schema:
type: string
description: An identifier unique to the request. Length 32
- in: header
name: transactionSrc
schema:
type: string
default: testing
description: An identifier of the client/source application that is making
the request.Length 512
- in: path
name: version
schema:
type: string
default: v2
description: |
Version of API
Valid values:
- v2
required: true
- in: header
name: ShipperNumber
schema:
type: string
description: Shipper Number
required: true
requestBody:
description: Generate sample code for popular API requests by selecting an
example below. To view a full sample request and response, first click "Authorize"
and enter your application credentials, then populate the required parameters
above and click "Try it out".
required: true
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTUploadRequestWrapper"
examples:
'1':
summary: Upload Request with document type 013
value:
UploadRequest:
Request:
TransactionReference:
CustomerContext: ''
UserCreatedForm:
UserCreatedFormFileName: TestFile.txt
UserCreatedFormFileFormat: txt
UserCreatedFormDocumentType: '013'
UserCreatedFormFile: Tm90aWNlDQpJbiBhbGwgY29tbXVuaWNhdGlvbnMgd2l0aCBVUFMgY29uY2VybmluZyB0aGlzIGRvY3VtZW50LCBwbGVhc2UgcmVmZXIgdG8gdGhlIGRvY3VtZW50IGRhdGUgbG9jYXRlZCBvbiB0aGUgY292ZXIuDQpDb3B5cmlnaHQNClRoZSB1c2UsIGRpc2Nsb3N1cmUsIHJlcHJvZHVjdGlvbiwgbW9kaWZpY2F0aW9uLCB0cmFuc2Zlciwgb3IgdHJhbnNtaXR0YWwgb2YgdGhpcyB3b3JrIGZvciBhbnkgcHVycG9zZSBpbiBhbnkgZm9ybSBvciBieSBhbnkgbWVhbnMgd2l0aG91dCB0aGUgd3JpdHRlbiBwZXJtaXNzaW9uIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkLg0KwqkgQ29weXJpZ2h0IDIwMTYgVW5pdGVkIFBhcmNlbCBTZXJ2aWNlIG9mIEFtZXJpY2EsIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4NClRyYWRlbWFya3MNClVQUyBPbkxpbmXCriBpcyBhIHJlZ2lzdGVyZWQgdHJhZGVtYXJrIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIEFsbCBvdGhlciB0cmFkZW1hcmtzIGFyZSB0aGUgcHJvcGVydHkgb2YgdGhlaXIgcmVzcGVjdGl2ZSBvd25lcnMuDQpTb21lIG9mIHRoZSBVUFMgY29ycG9yYXRlIGFwcGxpY2F0aW9ucyB1c2UgVS5TLiBjaXR5LCBzdGF0ZSwgYW5kIHBvc3RhbCBjb2RlIGluZm9ybWF0aW9uIG9idGFpbmVkIGJ5IFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIHVuZGVyIGEgbm9uLWV4Y2x1c2l2ZSBsaWNlbnNlIGZyb20gdGhlIFVuaXRlZCBTdGF0ZXMgUG9zdGFsIFNlcnZpY2UuIA0K
'2':
summary: Upload Request with document type 010
value:
UploadRequest:
Request:
RequestOption:
TransactionReference:
CustomerContext: df25efe0-899b-4c03-9534-557ae1c90b66
ShipperNumber: ''
UserCreatedForm:
UserCreatedFormDocumentType: '010'
UserCreatedFormFile: JVBERi0xLjUKJeLjz9MKMyAwIG9iago8PC9MZW5ndGggMTI1MC9GaWx0ZXIvRmxhdGVEZWNvZGU+PnN0cmVhbQp4nLVXXVPjNhR9z6+4Tx2YgcSWv3lq+NpmC5SSdNud4UWxbxIvthVkGcj+nf7RXslOcJPA1ttZmAHH0T336Nwj6eqxdzrpOT6ELoNJ0ruY9H7Xbywwv/0otJwIHnqDSxtsGjHr2eYb+uRZEET0Ku8d3PL4IS3mcJWWCgYwKp5EGiP8BGOMK5mqFZxjnHHJVSqKw8kXnWZvEga29a8kjgdBYJsksPfnN5mghDucocQixhOY3B5brsfciL2XyN5K5NBkXKvvmUwXL0shFcEOk0RiWb7PONzGsaMG56NYFPAnZvGiI4IVmfgJkpzDOBZVoboh+FHYcPijSBV4RzBZIHzgCp/5qiNUGBqgUynyqZCimnecjR8E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BSL1R5cGUvWFJlZi9JbmRleFswIDEwXS9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDQ1L1NpemUgMTAvSUQgWzw5MjMwZDQ0NmJmM2E2NDg5YmVmZGM3YTRiZWUzMmY0Zj48NzYyNGI1MDU3ODdmYTNkZDZhNzJhOGNlYThjNDU1ODc+XT4+c3RyZWFtCnicY2Bg+P+fiYGNgRFEMDEy8DMwgFjMIIKBkU0JSLCagogkBhD4/x8AcAoE/wplbmRzdHJlYW0KZW5kb2JqCnN0YXJ0eHJlZgoxODg1CiUlRU9GCg==
UserCreatedFormFileFormat: pdf
UserCreatedFormFileName: TP-0452492_PackingList.pdf
'3':
summary: Upload Request with document type 002
value:
UploadRequest:
Request:
TransactionReference:
CustomerContext: 06266e54656e4284805be4d45786ee96
UserCreatedForm:
- UserCreatedFormFileName: iShipTestFile04.txt
UserCreatedFormFileFormat: txt
UserCreatedFormDocumentType: '002'
UserCreatedFormFile: Tm90aWNlDQpJbiBhbGwgY29tbXVuaWNhdGlvbnMgd2l0aCBVUFMgY29uY2VybmluZyB0aGlzIGRvY3VtZW50LCBwbGVhc2UgcmVmZXIgdG8gdGhlIGRvY3VtZW50IGRhdGUgbG9jYXRlZCBvbiB0aGUgY292ZXIuDQpDb3B5cmlnaHQNClRoZSB1c2UsIGRpc2Nsb3N1cmUsIHJlcHJvZHVjdGlvbiwgbW9kaWZpY2F0aW9uLCB0cmFuc2Zlciwgb3IgdHJhbnNtaXR0YWwgb2YgdGhpcyB3b3JrIGZvciBhbnkgcHVycG9zZSBpbiBhbnkgZm9ybSBvciBieSBhbnkgbWVhbnMgd2l0aG91dCB0aGUgd3JpdHRlbiBwZXJtaXNzaW9uIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkLg0KwqkgQ29weXJpZ2h0IDIwMTYgVW5pdGVkIFBhcmNlbCBTZXJ2aWNlIG9mIEFtZXJpY2EsIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4NClRyYWRlbWFya3MNClVQUyBPbkxpbmXCriBpcyBhIHJlZ2lzdGVyZWQgdHJhZGVtYXJrIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIEFsbCBvdGhlciB0cmFkZW1hcmtzIGFyZSB0aGUgcHJvcGVydHkgb2YgdGhlaXIgcmVzcGVjdGl2ZSBvd25lcnMuDQpTb21lIG9mIHRoZSBVUFMgY29ycG9yYXRlIGFwcGxpY2F0aW9ucyB1c2UgVS5TLiBjaXR5LCBzdGF0ZSwgYW5kIHBvc3RhbCBjb2RlIGluZm9ybWF0aW9uIG9idGFpbmVkIGJ5IFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIHVuZGVyIGEgbm9uLWV4Y2x1c2l2ZSBsaWNlbnNlIGZyb20gdGhlIFVuaXRlZCBTdGF0ZXMgUG9zdGFsIFNlcnZpY2UuIA0K
ShipperNumber: ''
responses:
'200':
description: successful operation
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTUploadResponseWrapper"
'400':
description: Invalid Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'401':
description: Unauthorized Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'403':
description: Blocked Merchant
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
"/paperlessdocuments/{version}/image":
post:
summary: Paperless Document Push Image
tags:
- Paperless
security:
- OAuth2: []
description: 'The Paperless Document API web service allows the users to upload
their own customized trade documents for customs clearance to Forms History. '
operationId: PushToImageRepository
parameters:
- in: header
name: transId
schema:
type: string
description: An identifier unique to the request. Length 32
- in: header
name: transactionSrc
schema:
type: string
default: testing
description: An identifier of the client/source application that is making
the request.Length 512
- in: path
name: version
schema:
type: string
default: v2
description: |
Version of API
Valid values:
- v2
required: true
- in: header
name: ShipperNumber
schema:
type: string
description: Shipper Number
required: true
requestBody:
description: Generate sample code for popular API requests by selecting an
example below. To view a full sample request and response, first click "Authorize"
and enter your application credentials, then populate the required parameters
above and click "Try it out".
required: true
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTRequestWrapper"
examples:
json:
summary: A sample JSON request (Standard Example)
value:
PushToImageRepositoryRequest:
Request:
TransactionReference:
CustomerContext: Your Customer Context
FormsHistoryDocumentID:
DocumentID: 2016-01-18-11.01.07.589501
ShipmentIdentifier: Your Package Shipment Identifier
ShipmentDateAndTime: 2016-01-18-11.01.07
ShipmentType: '1'
TrackingNumber: Your Package Tracking Number
responses:
'200':
description: successful operation
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTResponseWrapper"
'400':
description: Invalid Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'401':
description: Unauthorized Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'403':
description: Blocked Merchant
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
"/paperlessdocuments/{version}/DocumentId/ShipperNumber":
delete:
summary: Delete Paperless Document
tags:
- Paperless
security:
- OAuth2: []
description: The Paperless Document API web service allows the users to upload their own customized trade documents for customs clearance to Forms History.
operationId: Delete
parameters:
- in: header
name: transId
schema:
type: string
description: An identifier unique to the request. Length 32
- in: header
name: transactionSrc
schema:
type: string
default: testing
description: An identifier of the client/source application that is making
the request.Length 512
- in: path
name: version
schema:
type: string
default: v2
description: |
Version of API
Valid values:
- v2
required: true
- in: header
name: ShipperNumber
schema:
type: string
description: Your Shipper Number
required: true
- in: header
name: DocumentId
schema:
type: string
description: DocumentId representing uploaded document to Forms History. Only one DocumentID will be accepted for delete request.
required: true
responses:
'200':
description: successful operation
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTDeleteResponseWrapper"
'400':
description: Invalid Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'401':
description: Unauthorized Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'403':
description: Blocked Merchant
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
"/paperlessdocuments/{deprecatedVersion}/upload":
post:
deprecated: true
summary: Upload Paperless Document
tags:
- Paperless
security:
- OAuth2: []
description: 'The Paperless Document API web service allows the users to upload,delete
and push to image repository their own customized trade documents for customs
clearance to Forms History. '
operationId: Deprecated Upload
parameters:
- in: header
name: transId
schema:
type: string
description: An identifier unique to the request. Length 32
- in: header
name: transactionSrc
schema:
type: string
default: testing
description: An identifier of the client/source application that is making
the request.Length 512
- in: path
name: deprecatedVersion
schema:
type: string
default: v1
description: |
Version of API
Valid values:
- v1
required: true
- in: header
name: ShipperNumber
schema:
type: string
description: Shipper Number
required: true
requestBody:
description: Generate sample code for popular API requests by selecting an
example below. To view a full sample request and response, first click "Authorize"
and enter your application credentials, then populate the required parameters
above and click "Try it out".
required: true
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTUploadRequestWrapper"
examples:
'1':
summary: Upload Request with document type 013
value:
UploadRequest:
Request:
TransactionReference:
CustomerContext: ''
UserCreatedForm:
UserCreatedFormFileName: TestFile.txt
UserCreatedFormFileFormat: txt
UserCreatedFormDocumentType: '013'
UserCreatedFormFile: Tm90aWNlDQpJbiBhbGwgY29tbXVuaWNhdGlvbnMgd2l0aCBVUFMgY29uY2VybmluZyB0aGlzIGRvY3VtZW50LCBwbGVhc2UgcmVmZXIgdG8gdGhlIGRvY3VtZW50IGRhdGUgbG9jYXRlZCBvbiB0aGUgY292ZXIuDQpDb3B5cmlnaHQNClRoZSB1c2UsIGRpc2Nsb3N1cmUsIHJlcHJvZHVjdGlvbiwgbW9kaWZpY2F0aW9uLCB0cmFuc2Zlciwgb3IgdHJhbnNtaXR0YWwgb2YgdGhpcyB3b3JrIGZvciBhbnkgcHVycG9zZSBpbiBhbnkgZm9ybSBvciBieSBhbnkgbWVhbnMgd2l0aG91dCB0aGUgd3JpdHRlbiBwZXJtaXNzaW9uIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkLg0KwqkgQ29weXJpZ2h0IDIwMTYgVW5pdGVkIFBhcmNlbCBTZXJ2aWNlIG9mIEFtZXJpY2EsIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4NClRyYWRlbWFya3MNClVQUyBPbkxpbmXCriBpcyBhIHJlZ2lzdGVyZWQgdHJhZGVtYXJrIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIEFsbCBvdGhlciB0cmFkZW1hcmtzIGFyZSB0aGUgcHJvcGVydHkgb2YgdGhlaXIgcmVzcGVjdGl2ZSBvd25lcnMuDQpTb21lIG9mIHRoZSBVUFMgY29ycG9yYXRlIGFwcGxpY2F0aW9ucyB1c2UgVS5TLiBjaXR5LCBzdGF0ZSwgYW5kIHBvc3RhbCBjb2RlIGluZm9ybWF0aW9uIG9idGFpbmVkIGJ5IFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIHVuZGVyIGEgbm9uLWV4Y2x1c2l2ZSBsaWNlbnNlIGZyb20gdGhlIFVuaXRlZCBTdGF0ZXMgUG9zdGFsIFNlcnZpY2UuIA0K
'2':
summary: Upload Request with document type 010
value:
UploadRequest:
Request:
RequestOption:
TransactionReference:
CustomerContext: df25efe0-899b-4c03-9534-557ae1c90b66
ShipperNumber: ''
UserCreatedForm:
UserCreatedFormDocumentType: '010'
UserCreatedFormFile: JVBERi0xLjUKJeLjz9MKMyAwIG9iago8PC9MZW5ndGggMTI1MC9GaWx0ZXIvRmxhdGVEZW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HJlYW0KeJyVUNGKwjAQ/JV9vHs4N4kGFKRwVcsVOShauIPSh167SEATaVLx/t5NUZ/v8jKZnWE2GQ0CJEgtQYFSC5jBVChYLrH8PRMWzYHwkzrTpO5aCfbqhYb5TNUs9WQD+wXscOVsYOZhOtIdeTf0LXnOyViKwPGjlvG2eEkSLHrX7ilAhcU6AyzpGgDzE+9M77i6Y14nfJ7Pipm4H35CJHEiMW08jeMPOl4omLZ5S92xw41tXWfsAb+MfbfePPh/0/4SFNvymJff5YueiIl4xa3pfKXjd2vuaOC+JPtvJZNzfwplbmRzdHJlYW0KZW5kb2JqCjkgMCBvYmoKPDwvV1sxIDIgMl0vSW5mbyA4IDAgUi9Sb290IDcgMCBSL1R5cGUvWFJlZi9JbmRleFswIDEwXS9GaWx0ZXIvRmxhdGVEZWNvZGUvTGVuZ3RoIDQ1L1NpemUgMTAvSUQgWzw5MjMwZDQ0NmJmM2E2NDg5YmVmZGM3YTRiZWUzMmY0Zj48NzYyNGI1MDU3ODdmYTNkZDZhNzJhOGNlYThjNDU1ODc+XT4+c3RyZWFtCnicY2Bg+P+fiYGNgRFEMDEy8DMwgFjMIIKBkU0JSLCagogkBhD4/x8AcAoE/wplbmRzdHJlYW0KZW5kb2JqCnN0YXJ0eHJlZgoxODg1CiUlRU9GCg==
UserCreatedFormFileFormat: pdf
UserCreatedFormFileName: TP-0452492_PackingList.pdf
'3':
summary: Upload Request with document type 002
value:
UploadRequest:
Request:
TransactionReference:
CustomerContext: 06266e54656e4284805be4d45786ee96
UserCreatedForm:
- UserCreatedFormFileName: iShipTestFile04.txt
UserCreatedFormFileFormat: txt
UserCreatedFormDocumentType: '002'
UserCreatedFormFile: Tm90aWNlDQpJbiBhbGwgY29tbXVuaWNhdGlvbnMgd2l0aCBVUFMgY29uY2VybmluZyB0aGlzIGRvY3VtZW50LCBwbGVhc2UgcmVmZXIgdG8gdGhlIGRvY3VtZW50IGRhdGUgbG9jYXRlZCBvbiB0aGUgY292ZXIuDQpDb3B5cmlnaHQNClRoZSB1c2UsIGRpc2Nsb3N1cmUsIHJlcHJvZHVjdGlvbiwgbW9kaWZpY2F0aW9uLCB0cmFuc2Zlciwgb3IgdHJhbnNtaXR0YWwgb2YgdGhpcyB3b3JrIGZvciBhbnkgcHVycG9zZSBpbiBhbnkgZm9ybSBvciBieSBhbnkgbWVhbnMgd2l0aG91dCB0aGUgd3JpdHRlbiBwZXJtaXNzaW9uIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBpcyBzdHJpY3RseSBwcm9oaWJpdGVkLg0KwqkgQ29weXJpZ2h0IDIwMTYgVW5pdGVkIFBhcmNlbCBTZXJ2aWNlIG9mIEFtZXJpY2EsIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC4NClRyYWRlbWFya3MNClVQUyBPbkxpbmXCriBpcyBhIHJlZ2lzdGVyZWQgdHJhZGVtYXJrIG9mIFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIEFsbCBvdGhlciB0cmFkZW1hcmtzIGFyZSB0aGUgcHJvcGVydHkgb2YgdGhlaXIgcmVzcGVjdGl2ZSBvd25lcnMuDQpTb21lIG9mIHRoZSBVUFMgY29ycG9yYXRlIGFwcGxpY2F0aW9ucyB1c2UgVS5TLiBjaXR5LCBzdGF0ZSwgYW5kIHBvc3RhbCBjb2RlIGluZm9ybWF0aW9uIG9idGFpbmVkIGJ5IFVuaXRlZCBQYXJjZWwgU2VydmljZSBvZiBBbWVyaWNhLCBJbmMuIHVuZGVyIGEgbm9uLWV4Y2x1c2l2ZSBsaWNlbnNlIGZyb20gdGhlIFVuaXRlZCBTdGF0ZXMgUG9zdGFsIFNlcnZpY2UuIA0K
ShipperNumber: ''
responses:
'200':
description: successful operation
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTUploadResponseWrapper"
'400':
description: Invalid Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'401':
description: Unauthorized Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'403':
description: Blocked Merchant
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
"/paperlessdocuments/{deprecatedVersion}/image":
post:
deprecated: true
summary: Paperless Document Push Image
tags:
- Paperless
security:
- OAuth2: []
description: 'The Paperless Document API web service allows the users to upload
their own customized trade documents for customs clearance to Forms History. '
operationId: Deprecated PushToImageRepository
parameters:
- in: header
name: transId
schema:
type: string
description: An identifier unique to the request. Length 32
- in: header
name: transactionSrc
schema:
type: string
default: testing
description: An identifier of the client/source application that is making
the request.Length 512
- in: path
name: deprecatedVersion
schema:
type: string
default: v1
description: |
Version of API
Valid values:
- v1
required: true
- in: header
name: ShipperNumber
schema:
type: string
description: Shipper Number
required: true
requestBody:
description: Generate sample code for popular API requests by selecting an
example below. To view a full sample request and response, first click "Authorize"
and enter your application credentials, then populate the required parameters
above and click "Try it out".
required: true
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTRequestWrapper"
examples:
json:
summary: A sample JSON request (Standard Example)
value:
PushToImageRepositoryRequest:
Request:
TransactionReference:
CustomerContext: Your Customer Context
FormsHistoryDocumentID:
DocumentID: 2016-01-18-11.01.07.589501
ShipmentIdentifier: Your Package Shipment Identifier
ShipmentDateAndTime: 2016-01-18-11.01.07
ShipmentType: '1'
TrackingNumber: Your Package Tracking Number
responses:
'200':
description: successful operation
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTResponseWrapper"
'400':
description: Invalid Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'401':
description: Unauthorized Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'403':
description: Blocked Merchant
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
"/paperlessdocuments/{deprecatedVersion}/DocumentId/ShipperNumber":
delete:
deprecated: true
summary: Delete Paperless Document
tags:
- Paperless
security:
- OAuth2: []
description: The Paperless Document API web service allows the users to upload their own customized trade documents for customs clearance to Forms History.
operationId: Deprecated Delete
parameters:
- in: header
name: transId
schema:
type: string
description: An identifier unique to the request. Length 32
- in: header
name: transactionSrc
schema:
type: string
default: testing
description: An identifier of the client/source application that is making
the request.Length 512
- in: path
name: deprecatedVersion
schema:
type: string
default: v1
description: |
Version of API
Valid values:
- v1
required: true
- in: header
name: ShipperNumber
schema:
type: string
description: Your Shipper Number
required: true
- in: header
name: DocumentId
schema:
type: string
description: DocumentId representing uploaded document to Forms History. Only one DocumentID will be accepted for delete request.
required: true
responses:
'200':
description: successful operation
content:
application/json:
schema:
"$ref": "#/components/schemas/PAPERLESSDOCUMENTDeleteResponseWrapper"
'400':
description: Invalid Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'401':
description: Unauthorized Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'403':
description: Blocked Merchant
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorResponse"
components:
securitySchemes:
OAuth2:
type: oauth2
description: |
Find your Client ID and Secret on your app info page.
1. Select \"Try It\"
2. In the Security section enter your Client ID and Secret.
3. Select \"Request Token\"
4. Enter any additional information in the Body and Parameters sections.
5. Select \"Send\" to execute your API request
flows:
clientCredentials:
x-tokenEndpointAuthMethod: client_secret_basic
tokenUrl: https://wwwcie.ups.com/security/v1/oauth/token
scopes: {}
schemas:
PAPERLESSDOCUMENTDeleteRequestWrapper:
xml:
name: DeleteRequest
description: 'N/A '
maximum: 1
type: object
required:
- DeleteRequest
properties:
DeleteRequest:
"$ref": "#/components/schemas/DeleteRequest"
PAPERLESSDOCUMENTDeleteResponseWrapper:
xml:
name: DeleteResponse
description: 'N/A '
maximum: 1
type: object
required:
- DeleteResponse
properties:
DeleteResponse:
"$ref": "#/components/schemas/DeleteResponse"
DeleteRequest:
type: object
required:
- Request
- DocumentID
- ShipperNumber
properties:
Request:
"$ref": "#/components/schemas/DeleteRequest_Request"
ShipperNumber:
description: The Shipper's UPS Account Number. Your UPS Account Number
must have 'Upload Forms Created Offline' enabled to use this webservice.
maximum: 1
type: string
minLength: 6
maxLength: 6
DocumentID:
description: DocumentId representing uploaded document to Forms History. Only
one DocumentID will be accepted for delete request.
maximum: 1
type: string
minLength: 26
maxLength: 26
xml:
name: DeleteRequest
maximum: 1
description: Paperless Document API Request container for deleting user created
forms.
DeleteRequest_Request:
type: object
properties:
RequestOption:
description: Enables the user to specify optional processing. Currently,
there is no optional process in Paperless Document API.
type: string
minLength: 1
maxLength: 1
SubVersion:
description: Not Used.
maximum: 1
type: string
TransactionReference:
"$ref": "#/components/schemas/Request_TransactionReference"
xml:
name: Request
maximum: 1
description: Contains Paperless Document API deleted request criteria components.
DeleteResponse:
type: object
required:
- Response
properties:
Response:
"$ref": "#/components/schemas/DeleteResponse_Response"
xml:
name: DeleteResponse
description: Paperless Document API response container for delete request.
maximum: 1
DeleteResponse_Response:
type: object
required:
- ResponseStatus
properties:
ResponseStatus:
"$ref": "#/components/schemas/Response_ResponseStatus"
Alert:
description: |
Alert Container. There can be zero to many alert containers with code and description.
**NOTE:** For versions >= v2, this element will always be returned as an array. For requests using version = v1, this element will be returned as an array if there is more than one object and a single object if there is only 1.
type: array
items:
"$ref": "#/components/schemas/Response_Alert"
TransactionReference:
"$ref": "#/components/schemas/Response_TransactionReference"
xml:
name: Response
description: Response container.
maximum: 1
Response_ResponseStatus:
type: object
maximum: 1
required:
- Description
- Code
properties:
Code:
description: Identifies the success or failure of the transaction. Valid
values are 0 = Failed and 1 = Successful.
maximum: 1
type: string
minLength: 1
maxLength: 1
Description:
description: Describes Response Status Code. Returns text of "Success"
or "Failure".
maximum: 1
type: string
minLength: 1
maxLength: 35
xml:
name: ResponseStatus
description: Response status container.
Response_Alert:
type: object
maximum: 1
required:
- Description
- Code
properties:
Code:
description: Warning code returned by the system.
maximum: 1
type: string
minLength: 1
maxLength: 10
Description:
description: Warning messages returned by the system.
maximum: 1
type: string
minLength: 1
maxLength: 150
xml:
name: Alert
description: Alert Container. There can be zero to many alert containers with
code and description.
Response_TransactionReference:
type: object
maximum: 1
properties:
CustomerContext:
description: The CustomerContext Information which will be echoed during
response.
maximum: 1
type: string
minLength: 1
maxLength: 512
xml:
name: TransactionReference
description: Transaction Reference Container.
PAPERLESSDOCUMENTRequestWrapper:
xml:
name: PushToImageRepositoryRequest
description: 'N/A '
maximum: 1
type: object
required:
- PushToImageRepositoryRequest
properties:
PushToImageRepositoryRequest:
"$ref": "#/components/schemas/PushToImageRepositoryRequest"
PAPERLESSDOCUMENTResponseWrapper:
xml:
name: PushToImageRepositoryResponse
description: 'N/A '
maximum: 1
type: object
required:
- PushToImageRepositoryResponse
properties:
PushToImageRepositoryResponse:
"$ref": "#/components/schemas/PushToImageRepositoryResponse"
PushToImageRepositoryRequest:
type: object
required:
- ShipmentIdentifier
- ShipmentType
- Request
- ShipperNumber
- FormsHistoryDocumentID
properties:
Request:
"$ref": "#/components/schemas/PushToImageRepositoryRequest_Request"
ShipperNumber:
description: The Shipper's UPS Account Number. Your UPS Account Number
must have 'Upload Forms Created Offline' enabled to use this webservice.
maximum: 1
type: string
minLength: 6
maxLength: 6
FormsHistoryDocumentID:
"$ref": "#/components/schemas/PushToImageRepositoryRequest_FormsHistoryDocumentID"
FormsGroupID:
description: FormsGroupID would be required in Push Request if user needs
to update uploaded DocumentID(s) in Forms History.
maximum: 1
type: string
minLength: 26
maxLength: 26
ShipmentIdentifier:
description: Shipment Identifier is required for this request.
maximum: 1
type: string
minLength: 1
maxLength: 19
ShipmentDateAndTime:
description: The date and time of the processed shipment. Required only
for small package shipments. The valid format is yyyy-MM-dd-HH.mm.ss
maximum: 1
type: string
ShipmentType:
description: 'Valid values are: 1 = small package, 2 = freight. '
maximum: 1
type: string
minLength: 1
maxLength: 1
PRQConfirmationNumber:
description: PRQ Confirmation being specified by client. Required for freight
shipments.
maximum: 1
type: string
minLength: 9
maxLength: 30
TrackingNumber:
description: UPS Tracking Number associated with this shipment. Required
only for small package shipment.
type: array
minLength: 7
maxLength: 20
items:
type: string
xml:
name: PushToImageRepositoryRequest
maximum: 1
description: Paperless Document API request container for push to Image Repository.
PushToImageRepositoryRequest_Request:
type: object
properties:
RequestOption:
description: Enables the user to specify optional processing. Currently,
there is no optional process in Paperless Document API.
type: string
minLength: 1
maxLength: 1
SubVersion:
description: Not Used.
maximum: 1
type: string
TransactionReference:
"$ref": "#/components/schemas/Request_TransactionReference"
xml:
name: Request
maximum: 1
description: Contains Paperless Document API PushToImageRepository request criteria
components.
Request_TransactionReference:
type: object
maximum: 1
properties:
CustomerContext:
description: The client uses CustomerContext to synchronize request/response pairs. The client establishes CustomerContext, which can contain any information you want; it is echoed back by the server.
maximum: 1
type: string
minLength: 1
maxLength: 512
xml:
name: TransactionReference
description: TransactionReference identifies transactions between client and server.
PushToImageRepositoryRequest_FormsHistoryDocumentID:
type: object
maximum: 13
required:
- DocumentID
properties:
DocumentID:
description: DocumentID represents a document uploaded to Forms History.
type: array
maximum: 13
minLength: 26
maxLength: 26
items:
type: string
xml:
name: FormsHistoryDocumentID
description: The container for DocumentID(s).
PushToImageRepositoryResponse:
type: object
required:
- Response
properties:
Response:
"$ref": "#/components/schemas/PushToImageRepositoryResponse_Response"
FormsGroupID:
description: FormsGroupID is a consolidated ID representing one or multiple
DocumentID(s).
maximum: 1
type: string
minLength: 26
maxLength: 26
xml:
name: PushToImageRepositoryResponse
maximum: 1
description: Paperless Document API response container for Push To Image Repository
request.
PushToImageRepositoryResponse_Response:
type: object
required:
- ResponseStatus
properties:
ResponseStatus:
"$ref": "#/components/schemas/Response_ResponseStatus"
Alert:
description: |
Alert Container. There can be zero to many alert containers with code and description.
**NOTE:** For versions >= v2, this element will always be returned as an array. For requests using version = v1, this element will be returned as an array if there is more than one object and a single object if there is only 1.
type: array
items:
"$ref": "#/components/schemas/Response_Alert"
TransactionReference:
"$ref": "#/components/schemas/Response_TransactionReference"
xml:
name: Response
description: Response container.
maximum: 1
PAPERLESSDOCUMENTUploadRequestWrapper:
xml:
name: UploadRequest
description: 'N/A '
maximum: 1
type: object
required:
- UploadRequest
properties:
UploadRequest:
"$ref": "#/components/schemas/UploadRequest"
PAPERLESSDOCUMENTUploadResponseWrapper:
xml:
name: UploadResponse
description: 'N/A '
maximum: 1
type: object
required:
- UploadResponse
properties:
UploadResponse:
"$ref": "#/components/schemas/UploadResponse"
UploadRequest:
type: object
required:
- Request
- UserCreatedForm
- ShipperNumber
properties:
Request:
"$ref": "#/components/schemas/UploadRequest_Request"