-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathPickupNotificationPreferences.yaml
More file actions
2238 lines (2153 loc) · 75.2 KB
/
PickupNotificationPreferences.yaml
File metadata and controls
2238 lines (2153 loc) · 75.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.1.0
info:
title: "CCPS WS General Preferences API v1"
description: |
The Pickup Notification Preferences API enables users to configure and manage their notification preferences at the account level.
version: "1.0"
tags:
- name: "Pickup Notification Preferences"
description: Pickup preferences for shipper accounts associated with a user
servers:
- url: "https://onlinetools.ups.com/api/digital-experience/preferences/{version}"
description: Production
variables:
version:
default: v1
enum:
- v1
- url: "https://wwwcie.ups.com/api/digital-experience/preferences/{version}"
description: Customer Integration Environment
variables:
version:
default: v1
enum:
- v1
paths:
/account-pickup:
get:
operationId: getUserAccountPickup
tags:
- Pickup Notification Preferences
summary: Get shipper account pickup preferences for user UUID.
description: This endpoint retrieves the shipper account pickup preferences for specified user.
security:
- OAuth2: []
- JWTAuth: []
parameters:
- $ref: "#/components/parameters/uuid"
- $ref: "#/components/parameters/transId"
- $ref: "#/components/parameters/transactionSrc"
- $ref: "#/components/parameters/idToken"
- name: account_number
in: query
required: true
description: |
The account_number is required to retrieve pickup preferences for a specific shipper account associated with the user.
schema:
$ref: "#/components/schemas/AccountNumber"
responses:
'200':
description: Successful retrieval of account pickup preferences in the user profile
headers:
application/json:
schema:
$ref: "#/components/schemas/SuccessResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/AccountPickupGetResponse"
examples:
successfulResponseWithNoDataExample:
value:
statusMessage: "Number of items in payload: 0"
timeStamp: 2025-04-02T20:44:36Z
payload: []
successfulResponseSpecifiedAccountExample:
value:
statusMessage: "Number of items in payload: 1"
timeStamp: 2025-04-02T20:44:36Z
payload:
- accountNumber: "123456"
versionNumber: 1740530158285357000
notificationIndicators:
email:
dayOfPickupInd: true
dayBeforePickupInd: false
preArrivalInd: false
pickupUpdateInd: false
pickupCompleteInd: true
pickupCancellationInd: true
enrollmentConfirmationInd: true
smartPickupCutOffNotificationTimeInd: false
smartPickupTriggerWarningInd: true
smartPickupTriggerNotificationInd: true
smartPickupTriggerCancellationInd: false
pickupIncompleteNotificationInd: false
pickupDelayedInd: true
sms:
dayOfPickupInd: true
dayBeforePickupInd: false
preArrivalInd: false
pickupUpdateInd: false
pickupCompleteInd: true
pickupCancellationInd: true
enrollmentConfirmationInd: true
smartPickupCutOffNotificationTimeInd: false
smartPickupTriggerWarningInd: true
smartPickupTriggerNotificationInd: true
smartPickupTriggerCancellationInd: false
pickupIncompleteNotificationInd: false
pickupDelayedInd: true
locale: en_US
emails:
- user@example.com
- user2@example.com
'401':
description: "Unauthorized"
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
response:
errors:
- code: UJ0001
message: Invalid token or token is not present
'400':
description: Validation/Request Error
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
response:
errors:
- code: PRF_GEN_006
message: "uuid - Required field is missing"
'404':
description: Resource Not Found
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
response:
errors:
- code: "404"
message: The requested resource was not found
"500":
description: Server Error
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
response:
errors:
- code: "500"
message: Internal Server Error
put:
operationId: addAccountPickupPref
tags:
- Pickup Notification Preferences
summary: "Add or update account level pickup preferences for user UUID."
description: This operation allows the user to add or update account level pickup preference for a specified account number.
security:
- OAuth2: []
- JWTAuth: []
parameters:
- $ref: "#/components/parameters/uuid"
- $ref: "#/components/parameters/transId"
- $ref: "#/components/parameters/transactionSrc"
- $ref: "#/components/parameters/idToken"
- name: account_number
in: query
required: true
description: The account_number parameter is required to specify the account for which the pickup preferences are being set.
schema:
$ref: "#/components/schemas/AccountNumber"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/AccountPickupPreference"
example:
notificationIndicators:
email:
dayOfPickupInd: true
dayBeforePickupInd: false
preArrivalInd: false
pickupUpdateInd: false
pickupCompleteInd: true
pickupCancellationInd: true
enrollmentConfirmationInd: true
smartPickupCutOffNotificationTimeInd: false
smartPickupTriggerWarningInd: true
smartPickupTriggerNotificationInd: true
smartPickupTriggerCancellationInd: false
pickupIncompleteNotificationInd: false
pickupDelayedInd: true
sms:
dayOfPickupInd: true
dayBeforePickupInd: false
preArrivalInd: false
pickupUpdateInd: false
pickupCompleteInd: true
pickupCancellationInd: true
enrollmentConfirmationInd: true
smartPickupCutOffNotificationTimeInd: false
smartPickupTriggerWarningInd: true
smartPickupTriggerNotificationInd: true
smartPickupTriggerCancellationInd: false
pickupIncompleteNotificationInd: false
pickupDelayedInd: true
locale: en_US
emails:
- abc@example.com
- def@example.com
responses:
'200':
description: Successful add or update of account pickup preferences
headers:
application/json:
schema:
$ref: "#/components/schemas/SuccessResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/AccountPickupModifyResponse"
example:
statusMessage: "Number of items in payload: 1"
timeStamp: 2025-04-02T20:44:36Z
payload:
accountNumber: "123456"
versionNumber: 1740530158285357000
notificationIndicators:
email:
dayOfPickupInd: true
dayBeforePickupInd: false
preArrivalInd: false
pickupUpdateInd: false
pickupCompleteInd: true
pickupCancellationInd: true
enrollmentConfirmationInd: true
smartPickupCutOffNotificationTimeInd: false
smartPickupTriggerWarningInd: true
smartPickupTriggerNotificationInd: true
smartPickupTriggerCancellationInd: false
pickupIncompleteNotificationInd: false
pickupDelayedInd: true
sms:
dayOfPickupInd: true
dayBeforePickupInd: false
preArrivalInd: false
pickupUpdateInd: false
pickupCompleteInd: true
pickupCancellationInd: true
enrollmentConfirmationInd: true
smartPickupCutOffNotificationTimeInd: false
smartPickupTriggerWarningInd: true
smartPickupTriggerNotificationInd: true
smartPickupTriggerCancellationInd: false
pickupIncompleteNotificationInd: false
pickupDelayedInd: true
locale: en_US
emails:
- abc@example.com
- def@example.com
'400':
description: Validation/Request Error
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
response:
errors:
- code: PRF_GEN_006
message: "uuid - Required field is missing"
'401':
description: "Unauthorized"
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
response:
errors:
- code: UJ0001
message: Invalid token or token is not present
'404':
description: Resource Not Found
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
example:
response:
errors:
- code: "404"
message: The requested resource was not found
"500":
description: Server Error
headers:
application/json:
schema:
$ref: "#/components/schemas/BackendErrorResponseHeaders"
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
response:
errors:
- code: "500"
message: Internal Server Error
components:
securitySchemes:
OAuth2:
type: "oauth2"
flows:
authorizationCode:
authorizationUrl: "https://onlinetools.ups.com/security/v1/oauth/authorize"
tokenUrl: "https://onlinetools.ups.com/security/v1/oauth/token"
scopes:
read:package-type: read access to package type
read:transit-sort-direction: read access to transit sort direction
read:declared-statement: read access to declared statements
read:pickup: read access to pickup
write:package-type: update access to package type
write:transit-sort-direction: update access to transit sort direction
write:declared-statement: update access to declared statements
write:pickup: update access to pickup
JWTAuth:
type: "http"
scheme: bearer
bearerFormat: JWT
parameters:
transId:
name: transId
in: header
description: An identifier unique to the request.
required: true
schema:
type: string
pattern: ^(?!.*[<>`]).{3,100}$
maxLength: 50
example: XOLTGateway-1742420314-1
transactionSrc:
name: transactionSrc
in: header
description: Identifies the client/source application that is calling.
required: true
schema:
type: string
pattern: ^[a-zA-Z0-9-_]{3,100}$
maxLength: 36
example: FCTC
idToken:
name: id_token
in: header
required: false
description: id token which will be required for auth0
schema:
type: string
format: token
uuid:
name: UUID
in: header
description: User's UUID for preferences to be updated, needed for JWT, not required for OAuth2
required: false
schema:
$ref: "#/components/schemas/CustomerRegistrationNumber"
schemas:
AccountNumber:
description: UPS shipper account number
type: string
minLength: 6
maxLength: 10
pattern: '^[0-9]{6,10}$'
example: "123456"
CustomerRegistrationNumber:
description: System generated id for the User
type: string
minLength: 36
maxLength: 36
pattern: '^[a-fA-F0-9\-]+$'
example: 4ce27ff5-8e17-4797-a8c1-089796dbed9c
CountryCode:
description: ISO 3166 alpha-2 country code.
type: string
maxLength: 2
pattern: "^[A-Z]{2}$"
example: "US"
BaseResponse:
description: Base Response object
type: object
required:
- statusMessage
- timeStamp
properties:
statusMessage:
description: Status message, will contain a count of elements in payload in case of success when no warnings
type: string
timeStamp:
description: Response time stamp
type: string
format: date-time
BasePreference:
description: Base preference entity
type: object
properties:
docId:
description: System generated id for preference entity
type: string
minLength: 5
pattern: '^[a-zA-Z0-9\-:]+$'
readOnly: true
# minLength: 36
# pattern: '^([a-zA-Z0-9]+)(::)([a-fA-F0-9\-_]+)$$'
# example: customPackageType::4ce27ff5-8e17-4797-a8c1-089796dbed9c
customerRegistrationHashedNumber:
description: System generated id for the User
type: string
minLength: 36
maxLength: 36
pattern: '^[a-fA-F0-9\-]+$'
example: 4ce27ff5-8e17-4797-a8c1-089796dbed9c
VersionNumber:
description: Document version number
type: object
properties:
versionNumber:
description: System generated id that represents the version of the document.
type: integer
example: 1740530158285357000
CustomPackageTypeResponse:
description: Custom Package Type Response Object
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
properties:
payload:
description: Response payload - array containing zero or more CustomPackageTypes
type: array
maxItems: 20
items:
$ref: "#/components/schemas/CustomPackageType"
CustomPackageTypeModifiedData:
description: Custom Package Type value that was modified
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
properties:
docId:
$ref: "#/components/schemas/BasePreference/properties/docId"
payload:
description: Response payload - object containing zero or one CustomPageType
$ref: "#/components/schemas/CustomPackageType"
CustomPackageType:
description: Custom Package Type Entity
allOf:
- $ref: "#/components/schemas/BasePreference"
- type: object
required:
- customName
- heightQuantity
- lengthQuantity
- widthQuantity
- unitOfMeasure
properties:
customName:
description: Name for custom package type entity
type: string
minLength: 2
pattern: '^((?!<script>).)*$'
example: big box
heightQuantity:
description: Height of the custom package type
type: integer
minimum: 1
example: 1
lengthQuantity:
description: Length of the custom package type
type: integer
minimum: 1
example: 1
widthQuantity:
description: Width of the custom package type
type: integer
minimum: 1
example: 1
unitOfMeasure:
description: Unit of measure of the custom package type dimensions
type: string
pattern: '^(in|cm)$'
maxLength: 2
example: cm
defaultCustomType:
description: Type of custom package entity, optional
type: string
pattern: '^(import|rating|returns|shipping|)$'
example: import
DeclaredStatementResponse:
description: Declared Statement Response Object
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
properties:
payload:
description: Response payload - array containing zero or more Declared Statement entity
type: array
maxLength: 10
items:
$ref: "#/components/schemas/DeclaredStatement"
DeclaredStatementModifiedData:
description: Declared Statement modified value
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
properties:
payload:
description: Response payload - object containing zero or one Declared Statement updated value
$ref: "#/components/schemas/DeclaredStatement"
DeclaredStatement:
description: Declared Statement entity
allOf:
- $ref: "#/components/schemas/BasePreference"
- type: object
- required:
- name
properties:
isDefault:
description: is this the default declared statement for this user
type: boolean
name:
description: name of the declared statement
type: string
pattern: '^((?!<script>).)*$'
text:
description: text value of the declared statement
type: string
pattern: '^((?!<script>).)*$'
TransitSortDirectionResponse:
description: Time in Transit Sort Direction Response Entity
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
properties:
payload:
description: Response payload - object containing zero or one transit sort direction entity
$ref: "#/components/schemas/TransitSortDirection"
TransitSortDirection:
description: Time in Transit Sort Direction
type: object
properties:
lastUsedSortForTime:
description: sort direction last used by user for Calculate Time and Cost (CTC) time in transit results table
type: string
enum: [mostTime, leastTime]
maxLength: 9
pattern: '^(mostTime|leastTime)$'
example: leastTime
PickupResponse:
description: Pickup Response Object
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
properties:
payload:
description: Response payload - object containing zero or one Pickup entity
$ref: "#/components/schemas/Pickup"
Pickup:
description: Pickup preference entity
type: object
properties:
default:
$ref: "#/components/schemas/PickupDefaults"
email:
$ref: "#/components/schemas/PickupEmail"
address:
$ref: "#/components/schemas/PickupAddress"
daysInHistory:
description: Number of days to keep in history
type: string
pattern: '^[0-9]*$'
maxLength: 3
example: "1"
startPage:
description: Pickup webapp start page
type: string
pattern: '^((?!<script>).)*$'
useMyProfile:
description: Indicates if profile address should be used
type: boolean
PickupDefaults:
description: Container for defaults of pickup preferences
type: object
properties:
locationCloseTime:
description: Close time value for the location, format is 24hr HHMM
type: string
pattern: '^[0-9]*$'
maxLength: 4
example: "1900"
locationReadyTime:
description: Time value for when location has packages ready for pickup, format is 24hr HHMM
type: string
pattern: '^[0-9]*$'
maxLength: 4
example: "1400"
accountNumber:
description: Default account number to charge for pickups
type: string
pattern: '^[a-zA-Z0-9]*$'
maxLength: 20
floor:
description: Default floor to pickup from
type: string
pattern: '^[\s\S]*$'
pickupLocation:
description: Default pickup location
type: string
pattern: '^[\s\S]*$'
specialInstructions:
description: Special instructions
type: string
pattern: '^((?!<script>).)*$'
PickupAddress:
description: Pickup Address entity
allOf:
- $ref: "#/components/schemas/Address"
- type: object
properties:
LID:
description: pickup address LID (location id)
type: string
pattern: '^((?!<script>).)*$'
packageANSIQualifier1:
description: package level ANSI qualifier 1
type: string
pattern: '^((?!<script>).)*$'
packageANSIQualifier2:
description: package level ANSI qualifier 2
type: string
pattern: '^((?!<script>).)*$'
url:
description: URL for address
type: string
format: uri
consigneeBillableIndicator:
description: indicates if billing consignee
type: boolean
Address:
description: Address entity
type: object
properties:
key:
description: Address key
type: string
pattern: '^[\s\S]*$'
line1Text:
description: Address Line 1
type: string
pattern: '^[\s\S]*$'
line2Text:
description: Address Line 2
type: string
pattern: '^[\s\S]*$'
line3Text:
description: Address Line 3
type: string
pattern: '^[\s\S]*$'
name:
description: Name
type: string
pattern: '^[\s\S]*$'
attentionName:
description: Attention Name
type: string
pattern: '^[\s\S]*$'
city:
description: City
type: string
pattern: '^[\s\S]*$'
politicalDivision3:
description: Political Division 3, municipality
type: string
pattern: '^[\s\S]*$'
stateProv:
description: State or Province
type: string
pattern: '^[\s\S]*$'
postalCode:
description: Postal / Zip Code
type: string
pattern: '^[a-zA-Z0-9\-\s]+$'
countryCode:
description: Code for Country (2-3 char)
type: string
pattern: '^[a-zA-Z0-9]{2,3}$'
residentialIndicator:
description: Indicator if the address is residential
type: boolean
nickName:
description: Nickname for address
type: string
pattern: '^[\s\S]*$'
faxNumber:
description: Fax
type: string
pattern: '^[\s\S]*$'
telephone:
$ref: "#/components/schemas/Telephone"
PickupEmail:
description: Email container for Pickup Preference
type: object
properties:
address1:
description: default email address
type: string
format: email
address2:
description: secondary email address
type: string
format: email
notificationAddress:
description: email address for notifications
type: string
format: email
message:
description: default email message
type: string
pattern: '^[\s\S]*$'
Telephone:
description: Telephone entity
type: object
properties:
number:
description: Phone Number
type: string
pattern: '^[\s\S]*$'
extensionNumber:
description: Phone Extension
type: string
pattern: '^[\s\S]*$'
ClaimResponse:
description: Claim Response Object
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
required:
- payload
properties:
payload:
description: Response payload - object containing zero or one Claim entity
$ref: "#/components/schemas/Claim"
Claim:
description: Claim preference entity
type: object
properties:
preferredChannel:
description: Preferred communication method(s).
type: object
properties:
indicators:
description: Indicators to indicate preferred communication method(s).
type: object
properties:
email:
description: Indication if email is preferred.
type: boolean
fax:
description: Indication if fax is preferred.
type: boolean
written:
description: Indication if written communication is preferred.
type: boolean
emailAddress:
description: Preferred email address.
type: string
format: email
faxCountryCode:
description: Country code for fax number. ISO 3166 alpha-2 is used.
type: string
pattern: '^[0-9]{2}$'
maxLength: 2
faxNumber:
description: Fax number
type: string
pattern: '^[0-9-]*$'
maxLength: 15
batchUploadNotificationOptionInd:
description: Indicate if batch upload notification is preferred.
type: boolean
batchUploadNotificationEmailAddress:
description: Preferred email address for batch upload notification.
type: string
format: email
claimReportedEmailInd:
description: Indicate if claim is reported in email.
type: boolean
claimUpdatedEmailInd:
description: Indicate if claim is updated in email.
type: boolean
RatingResponse:
description: Rating Response Object
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
properties:
payload:
description: Response payload - object containing zero or one Rating entity
$ref: "#/components/schemas/Rating"
Rating:
description: Rating preference entity
type: object
properties:
dailyPickup:
description: Flag to indicate if daily pickup is preferred.
type: string
enum:
- Y
- N
maxLength: 1
destinationType:
description: Destination type, R - Residential, C - Commercial
type: string
enum:
- R
- C
maxLength: 1
dismissRatingPrefLink:
description: Indicate if rating preference link is dismissed.
type: string
maxLength: 1
shipmentMethodPreference:
description: Preferred option to get package to UPS. |
01 - I will pay shipping charges and ship my package at a retail location such as The UPS Store or UPS Customer Center
02 - I will drop off my prepaid package(s) at a UPS location or give my package(s) to my UPS driver
03 - I will schedule a pickup via - UPS.com
04 - I will schedule a pickup via - 1800-Pick-UPS
type: string
enum:
- "01"
- "02"
- "03"
- "04"
maxLength: 2
quoteType:
description: Preferred quote type. |
01 - Quick Time and Cost (Letter)
02 - Quick Time and Cost (Package)
03 - Detailed Time and Cost
04 - Time -in-Transit Only
type: string
enum:
- "01"
- "02"
- "03"
- "04"
maxLength: 2
shipmentRequestType:
description: Preferred shipment request type for rating. 01 - Package or Letter 02 - Freight
type: string
enum:
- "01"
- "02"
maxLength: 2
freightServiceRequestType:
description: Preferred freight service request type.
type: string
maxLength: 3
measurementUnits:
description: Preferred units of the measurement. M - Centimeters/Kilograms; I - Inches/Pounds
type: string
enum:
- M
- I
itemHeight:
description: Item height for rating.
type: integer
maxLength: 5
itemLength:
description: Item length for rating.
type: integer
maxLength: 5
itemWidth:
description: Item width for rating.
type: integer
maxLength: 5
shipmentItemType:
description: Item type for shipment rating. LOO - loose items; PLT - Pallet
type: string
enum:
- PLT
- LOO
MyUPSGetResponse:
description: MyUPS Response Object
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
required:
- payload
properties:
payload:
description: Response payload - object containing zero or one MyUPS entity
anyOf:
- $ref: "#/components/schemas/MyUPS"
- $ref: "#/components/schemas/TermsConditionsInfo"
MyUPSResponse:
description: MyUPS Response Object
allOf:
- $ref: "#/components/schemas/BaseResponse"
- type: object
required:
- payload
properties:
payload:
description: Response payload - object containing zero or one MyUPS entity
$ref: "#/components/schemas/MyUPS"
MyUPS:
description: MyUPS preference entity
type: object
properties:
dapPartnerIndicator:
description: Indicates if the user is DAP partner.
type: boolean
employeeCountCode:
description: |
Code for employee count
| Code | Description |
| :---: | :--- |
| 00 | Unclassified |
| 01 | 1 |
| 02 | 2-5 |
| 03 | 6-10 |
| 04 | 11-19 |
| 05 | 20-49 |
| 06 | 50-99 |
| 07 | 100+ |
| 09 | Data Not Available |