Repository navigation
Expand file tree
/
Copy pathLocation-API.yaml
More file actions
4511 lines (4446 loc) · 165 KB
/
Copy pathLocation-API.yaml
File metadata and controls
4511 lines (4446 loc) · 165 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: Location Management API v1
version: '1.0'
description: |
The **Location Management API** provides a centralized system for managing operational locations and their associated configurations.
It enables businesses to define, update, and customize key attributes of their locations which may include stores, warehouses, or distribution centers, depending on the business model. This ensures seamless integration with logistics and delivery workflows.
integration with logistics and delivery workflows.
This API is designed to:
- Improve operational efficiency through structured location data management.
- Enable accurate and flexible timing configurations for operations.
- Support advanced location features, such as alternate drop-off locations and service boundaries.
- Enhance customer experiences by aligning physical location capabilities with logistics services.
Built for scalability and integration, the API empowers businesses to adapt their location management to changing operational
and customer needs.
tags:
- name: "Locations"
description: "A pickup location denotes an operational unit of a business with a physical address from which a delivery partner or a customer can pick up the order"
- name: "Timings"
description: "Time is a critical factor for operations and customer experience. In-store, pick-up and delivery experience revolve around proper expectation setting of time - both for the store operations team, and the customer."
- name: "Timings-Override"
description: " Timing Overrides are used when a location wants to operate during special hours or it is closed for a particular day. For example, consider if a location is not operational on Thanksgiving day, they can create an override for that day. A particular override is valid for the mentioned dates"
- name: "Alternate-Location"
description: "These are dropoff locations made available by providers. For example, providers like FedEx, UPS provide a standard set of pickup locations where they can deliver to, instead of the customer’s address."
- name: "Boundary"
description: "A boundary illustrates the service coverage for the Pickup Location by the business. This covers both In-Service and Out-of-Service coverage areas."
servers:
- url: https://api.lynkup.com/location/{version}
description: Integration hub Production OAuth.
variables:
version:
default: v1
enum:
- v1
security:
- OAuth2ClientCredentials: []
paths:
/locations:
post:
summary: Create a new pickup location with a unique identifier to specify the physical address for order pickups.
description: |
A Pickup Location represents a physical place within a business, such as a store, warehouse, or distribution center, where a delivery partner or customer can collect an order. Each pickup location is assigned a unique `locationExternalId` used across the system to identify and manage specific locations in various API operations. During creation, you can assign multiple providers to a pickup location, allowing flexibility in managing delivery options.
Use this API to create, update, retrieve, or delete pickup locations as needed, ensuring that each location is uniquely identifiable and accurately represented for operational purposes.
operationId: createLocation
tags:
- Locations
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Location'
examples:
Required Fields Only:
value:
name: Excellent Location
locationExternalId: '152946'
contact:
name: Location Manager
phone: '+1-214-234-2232'
address:
street1: 6615 Meadowbrook Dr
city: Fort Worth
state: TX
postalCode: '76112'
countryCode: US
All Fields Filled:
value:
name: Great Location
locationExternalId: '152950'
brandExternalId: devon
contact:
name: Location Manager
phone: '+1-214-234-2232'
address:
street1: 5510 S I-35 Frontage Rd
city: Austin
state: TX
postalCode: '78745'
countryCode: US
active: true
currencyCode: USD
pickupInstructions: Park in the designated parking area, and come to the customer support desk
returnLocationId: '152946'
providers:
- name: DoorDash
- name: FedEx
providerAttributes:
FedEx:
accountNumber: test-account-number
returnStoreService: FEDEX_GROUND
additionalContacts:
- name: Location Manager 1
phone: '+12142342232'
- name: Location Manager 2
phone: '+13144345232'
responses:
'201':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/LocationResponse'
examples:
Response for Required Fields Only Request:
value:
id: "23232"
tenantId: "dummyaccount1"
active: true
name: "Excellent Location"
locationExternalId: "152946"
contact:
name: Location Manager
phone: '+1-214-234-2232'
address:
street1: 6615 Meadowbrook Dr
city: Fort Worth
state: TX
postalCode: '76112'
countryCode: US
timeZone: "America/Chicago"
createdAt: "2022-04-26T03:03:30.559Z"
lastUpdatedAt: "2022-04-26T03:03:30.559Z"
Response for All Fields Filled Request :
value:
id: "232323"
tenantId: "dummyaccount1"
active: true
name: Great Location
locationExternalId: '152950'
brandExternalId: devon
contact:
name: Location Manager
phone: '+1-214-234-2232'
address:
street1: 5510 S I-35 Frontage Rd
city: Austin
state: TX
postalCode: '78745'
countryCode: US
currencyCode: USD
pickupInstructions: Park in the designated parking area, and come to the customer support desk
returnLocationId: '152946'
providers:
- name: DoorDash
- name: FedEx
providerAttributes:
FedEx:
accountNumber: test-account-number
returnStoreService: FEDEX_GROUND
additionalContacts:
- name: Location Manager 1
phone: '+12142342232'
- name: Location Manager 2
phone: '+13144345232'
timeZone: "America/Chicago"
createdAt: "2022-04-26T03:03:30.559Z"
lastUpdatedAt: "2022-04-26T03:03:30.559Z"
"422":
description: "Processing failed as request contains invalid data"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidRequest'
examples:
Bad Request - Duplicate location ID:
value:
errors:
- type: "DUPLICATE_ID"
message: "LocationID with id, 152950, already exists"
parameter: locationExternalId
entityId: "152950"
entity: location
type: "DUPLICATE_ID"
message: "LocationID with id, 152950, already exists"
Bad Request - Provider not configured:
value:
errors:
- type: "NOT_FOUND"
message: "Walmart GoLocal DSP is not configure in system"
parameter: null
entityId: null
entity: null
type: "NOT_FOUND"
message: "Walmart GoLocal DSP is not configure in system"
"400":
description: "Bad Request"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidRequest'
examples:
Request Failed (Bad Request):
value:
errors:
- type: "INVALID_DATA"
message: "locationExternalId is a required field. The field is missing."
parameter: locationExternalId
entityId: null
entity: null
type: "INVALID_DATA"
message: "locationExternalId is a required field. The field is missing."
'500':
description: "Internal server error"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidRequest'
examples:
Internal Server Error:
value:
message: "An unexpected error occurred. Please try again later."
type: "INTERNAL_SERVER_ERROR"
errors:
- type: "SERVER_ERROR"
message: "An unexpected error occurred while processing the request."
"401":
description: Unauthorized
headers:
bkndtransid:
required: true
description: The backend transaction id.
schema:
type: string
transId:
description: The transaction id received from client
schema:
type: string
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/UPSErrorResponse'
example:
response:
errors:
- code: UJ0001
message: Invalid token or token is not present.
deprecated: false
get:
summary: "List Locations"
description: "Use this API to list all the locations that have been created for the business."
operationId: "listLocations"
tags:
- Locations
responses:
'200':
description: "Successful response with a list of locations."
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/LocationResponse'
examples:
Result:
value:
- tenantId: "NYC"
id: "23232"
name: "NYCStore"
locationExternalId: "NYCStore101"
description: "Famous Store in Times Square and Central Park 101 Area"
timeZone: "America/Chicago"
contact:
name: "Peter Brown"
phone: "214-234-2232"
pickupInstructions: "Always be smiling"
address:
street1: "7th 42nd Avenue, Times Square"
street2: ""
city: "Manhattan"
state: "NY"
postalCode: "10036"
countryCode: "US"
latitude: 29.9758379
longitude: -95.4718175
brandExternalId: "NYCBrand101"
providers:
- name: "FedEx"
- name: "Postmates"
- name: "Shipt"
providerAttributes:
Shipt:
deliverablePostalCodes: "22911, 22913, 22904"
createdAt: "2020-01-14T07:25:04.743Z"
lastUpdatedAt: "2020-01-14T07:25:04.743Z"
active: true
tags:
- "big&bulky"
additionalContacts:
- name: Location Manager 1
phone: '+12142342232'
- name: Location Manager 2
phone: '+13144345232'
'500':
description: "Internal server error"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidRequest'
examples:
Internal Server Error:
value:
message: "An unexpected error occurred. Please try again later."
type: "INTERNAL_SERVER_ERROR"
errors:
- type: "SERVER_ERROR"
message: "An unexpected error occurred while processing the request."
"401":
description: Unauthorized
headers:
bkndtransid:
required: true
description: The backend transaction id.
schema:
type: string
transId:
description: The transaction id received from client
schema:
type: string
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/UPSErrorResponse'
example:
response:
errors:
- code: UJ0001
message: Invalid token or token is not present.
deprecated: false
/locations/{location_external_id}:
get:
summary: "Get Location"
description: "Use this API to get the details of a location using the user-specified locationExternalId which is associated with a location."
operationId: "getLocationById"
tags:
- Locations
parameters:
- name: "location_external_id"
in: "path"
description: "location_external_id of the Location. A unique id that you have used for the Create Location."
required: true
schema:
type: "string"
default: "152946"
responses:
"200":
description: "Location details retrieved successfully"
content:
application/json:
schema:
$ref: "#/components/schemas/LocationResponse"
examples:
Result:
value:
id: "32323"
tenantId: "dummyaccount1"
active: true
name: "Excellent Location"
locationExternalId: "152946"
brandExternalId: "devon"
contact:
name: "Location Manager"
phone: "+1-214-234-2232"
address:
street1: "6615 Meadowbrook Dr"
city: "Fort Worth"
state: "TX"
postalCode: "76112"
countryCode: "US"
latitude: 32.7471299
longitude: -97.2155298
description: ""
pickupInstructions: ""
currencyCode: "USD"
timeZone: "America/Chicago"
createdAt: "2022-04-26T03:03:30.559Z"
lastUpdatedAt: "2022-04-26T03:03:30.559Z"
isDeleted: false
isTemporary: false
atRisk:
isCorporateAtRisk: true
tags:
- "big&bulky"
additionalContacts:
- name: Location Manager 1
phone: '+12142342232'
- name: Location Manager 2
phone: '+13144345232'
"404":
description: "Location not found"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: "#/components/schemas/InvalidRequest"
examples:
Result:
value:
message: "Location is not found"
type: "NOT_FOUND"
errors:
- type: "NOT_FOUND"
message: "Location is not found"
parameter: null
entityId: null
entity: null
"500":
description: "Internal server error"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidRequest'
examples:
Internal Server Error:
value:
message: "An unexpected error occurred. Please try again later."
type: "INTERNAL_SERVER_ERROR"
errors:
- type: "SERVER_ERROR"
message: "An unexpected error occurred while processing the request."
"401":
description: Unauthorized
headers:
bkndtransid:
required: true
description: The backend transaction id.
schema:
type: string
transId:
description: The transaction id received from client
schema:
type: string
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/UPSErrorResponse'
example:
response:
errors:
- code: UJ0001
message: Invalid token or token is not present.
deprecated: false
put:
summary: Edit Location
tags:
- Locations
description: |
Use this API to edit a location using the location external ID.
Edits a location using the location external ID assigned to a location.
operationId: editLocationUsingLocationExternalId
parameters:
- name: "location_external_id"
in: path
description: locationExternalId of the Location. A unique id which you used during the creation of Location.
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LocationPutRequest'
examples:
Modifying Description & Instructions:
value:
description: "Nice location in Austin, Texas"
pickupInstructions: "Park in the designated parking area, and come to the designated pick up desk"
responses:
'200':
description: Successful response with updated location details
content:
application/json:
schema:
$ref: "#/components/schemas/LocationResponse"
examples:
Response for Modifying Description & Instructions:
value:
id: "232323"
tenantId: "dummyaccount1"
active: true
name: "Great Location"
locationExternalId: "152950"
brandExternalId: "devon"
contact:
name: "Location Manager"
phone: "+1-214-234-2232"
address:
street1: "5510 S I-35 Frontage Rd"
city: "Austin"
state: "TX"
postalCode: "78745"
countryCode: "US"
latitude: 30.2008384
longitude: -97.7657652
currencyCode: "USD"
description: "Nice location in Austin, Texas"
pickupInstructions: "Park in the designated parking area, and come to the designated pick up desk"
returnLocationId: "152946"
providers:
- name: "DoorDash"
providerId: "62667b2cdf13f556ef23e6cd"
- name: "FedEx"
providerId: "624c3b88ceebc92a0f5d4f7b"
providerAttributes:
FedEx:
accountNumber: "test-account-number"
returnStoreService: "FEDEX_GROUND"
additionalContacts:
- name: Location Manager 1
phone: "+12142342232"
- name: Location Manager 2
phone: "+13144345232"
timeZone: "America/Chicago"
lastUpdatedAt: "2022-04-26T04:38:55.794Z"
isDeleted: false
isTemporary: false
'404':
description: Bad request error response when location is not found
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: "#/components/schemas/InvalidRequest"
examples:
Result:
value:
errors:
- type: "NOT_FOUND"
message: "Location with external id 1529500 doesn't exist."
parameter: null
entityId: null
entity: null
type: "NOT_FOUND"
message: "Location with external id 1529500 doesn't exist."
'500':
description: "Internal server error"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidRequest'
examples:
Internal Server Error:
value:
message: "An unexpected error occurred. Please try again later."
type: "INTERNAL_SERVER_ERROR"
errors:
- type: "SERVER_ERROR"
message: "An unexpected error occurred while processing the request."
"401":
description: Unauthorized
headers:
bkndtransid:
required: true
description: The backend transaction id.
schema:
type: string
transId:
description: The transaction id received from client
schema:
type: string
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/UPSErrorResponse'
example:
response:
errors:
- code: UJ0001
message: Invalid token or token is not present.
deprecated: false
/timings/{type}:
post:
summary: Define operational hours and create time windows with capacity and fee settings for a pickup location.
description: |
Efficient time management is essential for both operations and customer experience in pickup and delivery.
Use this API to set a location's operational hours and create specific time windows for various service categories. Each time window can include its own capacity and fee, allowing for effective scheduling and resource management.
operationId: createTiming
tags:
- Timings
parameters:
- name: type
in: path
description: Type of timings. Options are `location`, `pickup`, `delivery`, or `return`.
required: true
schema:
type: string
enum:
- location
- pickup
- delivery
- return
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/TimingsRequest"
examples:
Create Timings with hours provided:
value:
entity: location
locationExternalIds:
- "100983"
pickAndPack: 30
timings:
Su:
isOpen: true
is24Hrs: false
hours:
- opensAt: "10:00"
closesAt: "12:00"
capacity: 0
fee: 0
- opensAt: "12:00"
closesAt: "14:00"
capacity: 0
fee: 0
- opensAt: "14:00"
closesAt: "16:00"
capacity: 0
fee: 0
- opensAt: "16:00"
closesAt: "18:00"
capacity: 0
fee: 0
Mo:
isOpen: true
is24Hrs: false
hours:
- opensAt: "10:00"
closesAt: "12:00"
capacity: 0
fee: 0
- opensAt: "12:00"
closesAt: "14:00"
capacity: 0
fee: 0
- opensAt: "14:00"
closesAt: "16:00"
capacity: 0
fee: 0
- opensAt: "16:00"
closesAt: "18:00"
capacity: 0
fee: 0
Tu:
isOpen: true
is24Hrs: false
hours:
- opensAt: "10:00"
closesAt: "12:00"
capacity: 0
fee: 0
- opensAt: "12:00"
closesAt: "14:00"
capacity: 0
fee: 0
- opensAt: "14:00"
closesAt: "16:00"
capacity: 0
fee: 0
- opensAt: "16:00"
closesAt: "18:00"
capacity: 0
fee: 0
We:
isOpen: true
is24Hrs: false
hours:
- opensAt: "10:00"
closesAt: "12:00"
capacity: 0
fee: 0
- opensAt: "12:00"
closesAt: "14:00"
capacity: 0
fee: 0
- opensAt: "14:00"
closesAt: "16:00"
capacity: 0
fee: 0
- opensAt: "16:00"
closesAt: "18:00"
capacity: 0
fee: 0
Th:
isOpen: true
is24Hrs: false
hours:
- opensAt: "10:00"
closesAt: "12:00"
capacity: 0
fee: 0
- opensAt: "12:00"
closesAt: "14:00"
capacity: 0
fee: 0
- opensAt: "14:00"
closesAt: "16:00"
capacity: 0
fee: 0
- opensAt: "16:00"
closesAt: "18:00"
capacity: 0
fee: 0
Fr:
isOpen: true
is24Hrs: false
hours:
- opensAt: "10:00"
closesAt: "12:00"
capacity: 0
fee: 0
- opensAt: "12:00"
closesAt: "14:00"
capacity: 0
fee: 0
- opensAt: "14:00"
closesAt: "16:00"
capacity: 0
fee: 0
- opensAt: "16:00"
closesAt: "18:00"
capacity: 0
fee: 0
Sa:
isOpen: true
is24Hrs: false
hours:
- opensAt: "10:00"
closesAt: "12:00"
capacity: 0
fee: 0
- opensAt: "12:00"
closesAt: "14:00"
capacity: 0
fee: 0
- opensAt: "14:00"
closesAt: "16:00"
capacity: 0
fee: 0
- opensAt: "16:00"
closesAt: "18:00"
capacity: 0
fee: 0
category: Prime
Create Timings with opensAt & closesAt:
value:
entity: location
locationExternalIds:
- "100983"
pickAndPack: 30
timings:
Su:
isOpen: true
is24Hrs: false
opensAt: "09:00"
closesAt: "18:00"
interval: 1
Mo:
isOpen: true
is24Hrs: false
opensAt: "09:00"
closesAt: "18:00"
interval: 1
Tu:
isOpen: true
is24Hrs: false
opensAt: "09:00"
closesAt: "18:00"
interval: 1
We:
isOpen: true
is24Hrs: false
opensAt: "09:00"
closesAt: "18:00"
interval: 1
Th:
isOpen: true
is24Hrs: false
opensAt: "09:00"
closesAt: "18:00"
interval: 1
Fr:
isOpen: true
is24Hrs: false
opensAt: "09:00"
closesAt: "18:00"
interval: 1
Sa:
isOpen: true
is24Hrs: false
opensAt: "09:00"
closesAt: "18:00"
interval: 1
category: Prime-2
responses:
'207':
description: "207"
content:
application/json:
schema:
anyOf:
- $ref: "#/components/schemas/SuccessResponse"
- $ref: '#/components/schemas/InvalidRequest'
examples:
Timing created / updated successfully:
value:
message: "success"
Some are created / updated successfully and some failed:
value:
message: ""
type: INVALID_DATA
errors:
- message: "Invalid locationExternalId. Please enter a valid one."
type: INVALID_DATA
parameter: "locationExternalId[0]"
entityId: null
entity: null
"422":
description: "Processing failed as request contains invalid data"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg:
required: true
description: 'The API error message.'
schema:
type: string
content:
application/json:
examples:
Request Failed:
value:
message: "Invalid locationExternalId. Please enter a valid one."
type: INVALID_DATA
errors:
- message: "Invalid locationExternalId. Please enter a valid one."
type: INVALID_DATA
parameter: locationExternalId[0]
entityId: location-1
entity: location
schema:
$ref: "#/components/schemas/InvalidRequest"
'500':
description: "Internal server error"
headers:
apierrorcode:
required: true
description: 'The API error code'
schema:
type: string
apierrormsg: