@asstio-dev/storefront 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -2
- package/dist/account/browser.d.ts +65 -3
- package/dist/account/browser.js +79 -5
- package/dist/account/cookies.d.ts +10 -0
- package/dist/account/cookies.js +7 -0
- package/dist/account/index.d.ts +7 -1
- package/dist/account/index.js +9 -8
- package/dist/account/next.d.ts +103 -2
- package/dist/account/next.js +236 -4
- package/dist/analytics/events.d.ts +3 -1
- package/dist/analytics/events.js +3 -1
- package/dist/consent/codec.d.ts +141 -0
- package/dist/consent/codec.js +239 -0
- package/dist/consent/coordinator.d.ts +107 -0
- package/dist/consent/coordinator.js +608 -0
- package/dist/consent/index.d.ts +8 -0
- package/dist/consent/index.js +8 -0
- package/dist/consent/notice.d.ts +10 -0
- package/dist/consent/notice.js +11 -0
- package/dist/consent/server.d.ts +36 -0
- package/dist/consent/server.js +45 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/schema.d.ts +2145 -170
- package/package.json +12 -3
- package/src/schema.d.ts +2145 -170
package/dist/schema.d.ts
CHANGED
|
@@ -337,6 +337,23 @@ export interface paths {
|
|
|
337
337
|
patch?: never;
|
|
338
338
|
trace?: never;
|
|
339
339
|
};
|
|
340
|
+
"/v1/me/adopt-shopper-state": {
|
|
341
|
+
parameters: {
|
|
342
|
+
query?: never;
|
|
343
|
+
header?: never;
|
|
344
|
+
path?: never;
|
|
345
|
+
cookie?: never;
|
|
346
|
+
};
|
|
347
|
+
get?: never;
|
|
348
|
+
put?: never;
|
|
349
|
+
/** Move a guest shopper token's favorites into the signed-in consumer's account; the token's consent is not adopted. */
|
|
350
|
+
post: operations["AdoptShopperState"];
|
|
351
|
+
delete?: never;
|
|
352
|
+
options?: never;
|
|
353
|
+
head?: never;
|
|
354
|
+
patch?: never;
|
|
355
|
+
trace?: never;
|
|
356
|
+
};
|
|
340
357
|
"/v1/me/cart": {
|
|
341
358
|
parameters: {
|
|
342
359
|
query?: never;
|
|
@@ -371,6 +388,93 @@ export interface paths {
|
|
|
371
388
|
patch?: never;
|
|
372
389
|
trace?: never;
|
|
373
390
|
};
|
|
391
|
+
"/v1/me/consents": {
|
|
392
|
+
parameters: {
|
|
393
|
+
query?: never;
|
|
394
|
+
header?: never;
|
|
395
|
+
path?: never;
|
|
396
|
+
cookie?: never;
|
|
397
|
+
};
|
|
398
|
+
/** The account's current consent and the first history page, adopted guest tokens' events included as provenance device. */
|
|
399
|
+
get: operations["GetMyConsents"];
|
|
400
|
+
/** Record the account's consent decision (measurement, personalization), ordered per device by order.seq. */
|
|
401
|
+
put: operations["PutMyConsents"];
|
|
402
|
+
post?: never;
|
|
403
|
+
delete?: never;
|
|
404
|
+
options?: never;
|
|
405
|
+
head?: never;
|
|
406
|
+
patch?: never;
|
|
407
|
+
trace?: never;
|
|
408
|
+
};
|
|
409
|
+
"/v1/me/consents/history": {
|
|
410
|
+
parameters: {
|
|
411
|
+
query?: never;
|
|
412
|
+
header?: never;
|
|
413
|
+
path?: never;
|
|
414
|
+
cookie?: never;
|
|
415
|
+
};
|
|
416
|
+
/** A further page of the account's consent history, newest first. */
|
|
417
|
+
get: operations["GetMyConsentHistory"];
|
|
418
|
+
put?: never;
|
|
419
|
+
post?: never;
|
|
420
|
+
delete?: never;
|
|
421
|
+
options?: never;
|
|
422
|
+
head?: never;
|
|
423
|
+
patch?: never;
|
|
424
|
+
trace?: never;
|
|
425
|
+
};
|
|
426
|
+
"/v1/me/favorites": {
|
|
427
|
+
parameters: {
|
|
428
|
+
query?: never;
|
|
429
|
+
header?: never;
|
|
430
|
+
path?: never;
|
|
431
|
+
cookie?: never;
|
|
432
|
+
};
|
|
433
|
+
/** The signed-in account's favorites, with each item resolved against the request's catalog context. */
|
|
434
|
+
get: operations["GetMyFavorites"];
|
|
435
|
+
put?: never;
|
|
436
|
+
post?: never;
|
|
437
|
+
/** Remove every favorite from the account's list. */
|
|
438
|
+
delete: operations["ClearMyFavorites"];
|
|
439
|
+
options?: never;
|
|
440
|
+
head?: never;
|
|
441
|
+
patch?: never;
|
|
442
|
+
trace?: never;
|
|
443
|
+
};
|
|
444
|
+
"/v1/me/favorites/items": {
|
|
445
|
+
parameters: {
|
|
446
|
+
query?: never;
|
|
447
|
+
header?: never;
|
|
448
|
+
path?: never;
|
|
449
|
+
cookie?: never;
|
|
450
|
+
};
|
|
451
|
+
get?: never;
|
|
452
|
+
put?: never;
|
|
453
|
+
/** Add a favorite to the account's list; a repeat add answers 200 with the existing item. */
|
|
454
|
+
post: operations["AddMyFavorite"];
|
|
455
|
+
delete?: never;
|
|
456
|
+
options?: never;
|
|
457
|
+
head?: never;
|
|
458
|
+
patch?: never;
|
|
459
|
+
trace?: never;
|
|
460
|
+
};
|
|
461
|
+
"/v1/me/favorites/items/{itemId}": {
|
|
462
|
+
parameters: {
|
|
463
|
+
query?: never;
|
|
464
|
+
header?: never;
|
|
465
|
+
path?: never;
|
|
466
|
+
cookie?: never;
|
|
467
|
+
};
|
|
468
|
+
get?: never;
|
|
469
|
+
put?: never;
|
|
470
|
+
post?: never;
|
|
471
|
+
/** Remove one favorite from the account's list. */
|
|
472
|
+
delete: operations["RemoveMyFavorite"];
|
|
473
|
+
options?: never;
|
|
474
|
+
head?: never;
|
|
475
|
+
patch?: never;
|
|
476
|
+
trace?: never;
|
|
477
|
+
};
|
|
374
478
|
"/v1/orders/{orderId}": {
|
|
375
479
|
parameters: {
|
|
376
480
|
query?: never;
|
|
@@ -523,6 +627,111 @@ export interface paths {
|
|
|
523
627
|
patch?: never;
|
|
524
628
|
trace?: never;
|
|
525
629
|
};
|
|
630
|
+
"/v1/shopper": {
|
|
631
|
+
parameters: {
|
|
632
|
+
query?: never;
|
|
633
|
+
header?: never;
|
|
634
|
+
path?: never;
|
|
635
|
+
cookie?: never;
|
|
636
|
+
};
|
|
637
|
+
/** Everything the shopper token owns. */
|
|
638
|
+
get: operations["GetShopperState"];
|
|
639
|
+
put?: never;
|
|
640
|
+
post?: never;
|
|
641
|
+
/** Erase everything the shopper token owns; idempotent. */
|
|
642
|
+
delete: operations["DeleteShopperState"];
|
|
643
|
+
options?: never;
|
|
644
|
+
head?: never;
|
|
645
|
+
patch?: never;
|
|
646
|
+
trace?: never;
|
|
647
|
+
};
|
|
648
|
+
"/v1/shopper/consents": {
|
|
649
|
+
parameters: {
|
|
650
|
+
query?: never;
|
|
651
|
+
header?: never;
|
|
652
|
+
path?: never;
|
|
653
|
+
cookie?: never;
|
|
654
|
+
};
|
|
655
|
+
/** The guest token's current consent and the first history page. */
|
|
656
|
+
get: operations["GetShopperConsents"];
|
|
657
|
+
/** Record the guest token's consent decision (measurement, personalization), ordered per device by order.seq. */
|
|
658
|
+
put: operations["PutShopperConsents"];
|
|
659
|
+
post?: never;
|
|
660
|
+
delete?: never;
|
|
661
|
+
options?: never;
|
|
662
|
+
head?: never;
|
|
663
|
+
patch?: never;
|
|
664
|
+
trace?: never;
|
|
665
|
+
};
|
|
666
|
+
"/v1/shopper/consents/history": {
|
|
667
|
+
parameters: {
|
|
668
|
+
query?: never;
|
|
669
|
+
header?: never;
|
|
670
|
+
path?: never;
|
|
671
|
+
cookie?: never;
|
|
672
|
+
};
|
|
673
|
+
/** A further page of the guest token's consent history, newest first. */
|
|
674
|
+
get: operations["GetShopperConsentHistory"];
|
|
675
|
+
put?: never;
|
|
676
|
+
post?: never;
|
|
677
|
+
delete?: never;
|
|
678
|
+
options?: never;
|
|
679
|
+
head?: never;
|
|
680
|
+
patch?: never;
|
|
681
|
+
trace?: never;
|
|
682
|
+
};
|
|
683
|
+
"/v1/shopper/favorites": {
|
|
684
|
+
parameters: {
|
|
685
|
+
query?: never;
|
|
686
|
+
header?: never;
|
|
687
|
+
path?: never;
|
|
688
|
+
cookie?: never;
|
|
689
|
+
};
|
|
690
|
+
/** The guest token's favorites, with each item resolved against the request's catalog context. */
|
|
691
|
+
get: operations["GetShopperFavorites"];
|
|
692
|
+
put?: never;
|
|
693
|
+
post?: never;
|
|
694
|
+
/** Remove every favorite from the guest token's list. */
|
|
695
|
+
delete: operations["ClearShopperFavorites"];
|
|
696
|
+
options?: never;
|
|
697
|
+
head?: never;
|
|
698
|
+
patch?: never;
|
|
699
|
+
trace?: never;
|
|
700
|
+
};
|
|
701
|
+
"/v1/shopper/favorites/items": {
|
|
702
|
+
parameters: {
|
|
703
|
+
query?: never;
|
|
704
|
+
header?: never;
|
|
705
|
+
path?: never;
|
|
706
|
+
cookie?: never;
|
|
707
|
+
};
|
|
708
|
+
get?: never;
|
|
709
|
+
put?: never;
|
|
710
|
+
/** Add a favorite to the guest token's list; a repeat add answers 200 with the existing item. */
|
|
711
|
+
post: operations["AddShopperFavorite"];
|
|
712
|
+
delete?: never;
|
|
713
|
+
options?: never;
|
|
714
|
+
head?: never;
|
|
715
|
+
patch?: never;
|
|
716
|
+
trace?: never;
|
|
717
|
+
};
|
|
718
|
+
"/v1/shopper/favorites/items/{itemId}": {
|
|
719
|
+
parameters: {
|
|
720
|
+
query?: never;
|
|
721
|
+
header?: never;
|
|
722
|
+
path?: never;
|
|
723
|
+
cookie?: never;
|
|
724
|
+
};
|
|
725
|
+
get?: never;
|
|
726
|
+
put?: never;
|
|
727
|
+
post?: never;
|
|
728
|
+
/** Remove one favorite from the guest token's list. */
|
|
729
|
+
delete: operations["RemoveShopperFavorite"];
|
|
730
|
+
options?: never;
|
|
731
|
+
head?: never;
|
|
732
|
+
patch?: never;
|
|
733
|
+
trace?: never;
|
|
734
|
+
};
|
|
526
735
|
"/v1/site": {
|
|
527
736
|
parameters: {
|
|
528
737
|
query?: never;
|
|
@@ -583,6 +792,12 @@ export interface components {
|
|
|
583
792
|
quantity: number | string;
|
|
584
793
|
sku: string;
|
|
585
794
|
};
|
|
795
|
+
AddFavoriteRequest: {
|
|
796
|
+
/** Format: int32 */
|
|
797
|
+
productId: number | string;
|
|
798
|
+
/** Format: int32 */
|
|
799
|
+
variantId: number | null | string;
|
|
800
|
+
};
|
|
586
801
|
AddressDto: {
|
|
587
802
|
city: null | string;
|
|
588
803
|
co: null | string;
|
|
@@ -592,6 +807,21 @@ export interface components {
|
|
|
592
807
|
street: null | string;
|
|
593
808
|
street2: null | string;
|
|
594
809
|
};
|
|
810
|
+
AdoptShopperStateRequest: {
|
|
811
|
+
token: string;
|
|
812
|
+
};
|
|
813
|
+
AdoptionDto: {
|
|
814
|
+
accountConsent: components["schemas"]["ConsentCurrentDto"];
|
|
815
|
+
favorites: components["schemas"]["FavoritesDto"];
|
|
816
|
+
skipped: components["schemas"]["AdoptionSkippedDto"][];
|
|
817
|
+
};
|
|
818
|
+
AdoptionSkippedDto: {
|
|
819
|
+
/** Format: int32 */
|
|
820
|
+
productId: number | null | string;
|
|
821
|
+
reason: string;
|
|
822
|
+
/** Format: int32 */
|
|
823
|
+
variantId: number | null | string;
|
|
824
|
+
};
|
|
595
825
|
AlternateDto: {
|
|
596
826
|
bindingId: string;
|
|
597
827
|
country: string;
|
|
@@ -890,6 +1120,70 @@ export interface components {
|
|
|
890
1120
|
CompanyNameDto: {
|
|
891
1121
|
name: string;
|
|
892
1122
|
};
|
|
1123
|
+
ConsentAnswerDto: {
|
|
1124
|
+
applied: {
|
|
1125
|
+
[key: string]: boolean;
|
|
1126
|
+
};
|
|
1127
|
+
current: components["schemas"]["ConsentCurrentDto"];
|
|
1128
|
+
/** Format: int64 */
|
|
1129
|
+
seq: number | string;
|
|
1130
|
+
shopper: null | components["schemas"]["ShopperMintDto"];
|
|
1131
|
+
};
|
|
1132
|
+
ConsentCurrentDto: {
|
|
1133
|
+
measurement: string;
|
|
1134
|
+
personalization: string;
|
|
1135
|
+
};
|
|
1136
|
+
ConsentEventDto: {
|
|
1137
|
+
applied: boolean;
|
|
1138
|
+
decision: string;
|
|
1139
|
+
/** Format: int64 */
|
|
1140
|
+
id: number | string;
|
|
1141
|
+
notice: null | components["schemas"]["ConsentEventNoticeDto"];
|
|
1142
|
+
provenance: string;
|
|
1143
|
+
purpose: string;
|
|
1144
|
+
/** Format: date-time */
|
|
1145
|
+
recordedAt: string;
|
|
1146
|
+
};
|
|
1147
|
+
ConsentEventNoticeDto: {
|
|
1148
|
+
/** Format: int32 */
|
|
1149
|
+
configVersion: number | string;
|
|
1150
|
+
hash: string;
|
|
1151
|
+
language: string;
|
|
1152
|
+
};
|
|
1153
|
+
ConsentHistoryPageDto: {
|
|
1154
|
+
items: components["schemas"]["ConsentEventDto"][];
|
|
1155
|
+
nextCursor: null | string;
|
|
1156
|
+
};
|
|
1157
|
+
ConsentNoticeDto: {
|
|
1158
|
+
body: string;
|
|
1159
|
+
/** Format: int32 */
|
|
1160
|
+
configVersion: number | string;
|
|
1161
|
+
hash: string;
|
|
1162
|
+
language: string;
|
|
1163
|
+
ref: string;
|
|
1164
|
+
title: string;
|
|
1165
|
+
};
|
|
1166
|
+
ConsentNoticeRefDto: {
|
|
1167
|
+
ref: string;
|
|
1168
|
+
};
|
|
1169
|
+
ConsentOrderDto: {
|
|
1170
|
+
device: string;
|
|
1171
|
+
/** Format: int64 */
|
|
1172
|
+
seq: number | string;
|
|
1173
|
+
};
|
|
1174
|
+
ConsentPutRequest: {
|
|
1175
|
+
clientLabel: null | string;
|
|
1176
|
+
notice: null | components["schemas"]["ConsentNoticeRefDto"];
|
|
1177
|
+
order: null | components["schemas"]["ConsentOrderDto"];
|
|
1178
|
+
purposes: null | {
|
|
1179
|
+
[key: string]: string;
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
ConsentReadDto: {
|
|
1183
|
+
current: components["schemas"]["ConsentCurrentDto"];
|
|
1184
|
+
history: components["schemas"]["ConsentEventDto"][];
|
|
1185
|
+
nextCursor: null | string;
|
|
1186
|
+
};
|
|
893
1187
|
ContextDto: {
|
|
894
1188
|
country: string;
|
|
895
1189
|
currency: string;
|
|
@@ -952,6 +1246,41 @@ export interface components {
|
|
|
952
1246
|
facet: string;
|
|
953
1247
|
values: components["schemas"]["FacetValueDto"][];
|
|
954
1248
|
};
|
|
1249
|
+
FavoriteItemAnswerDto: {
|
|
1250
|
+
item: components["schemas"]["FavoriteItemDto"];
|
|
1251
|
+
shopper: null | components["schemas"]["ShopperMintDto"];
|
|
1252
|
+
};
|
|
1253
|
+
FavoriteItemDto: {
|
|
1254
|
+
/** Format: date-time */
|
|
1255
|
+
addedAt: string;
|
|
1256
|
+
/** Format: uuid */
|
|
1257
|
+
id: string;
|
|
1258
|
+
product: null | components["schemas"]["ProductCardDto"];
|
|
1259
|
+
/** Format: int32 */
|
|
1260
|
+
productId: number | string;
|
|
1261
|
+
status: components["schemas"]["FavoriteStatusDto"];
|
|
1262
|
+
variant: null | components["schemas"]["VariantDto"];
|
|
1263
|
+
/** Format: int32 */
|
|
1264
|
+
variantId: number | null | string;
|
|
1265
|
+
};
|
|
1266
|
+
FavoriteListDto: {
|
|
1267
|
+
/** Format: int32 */
|
|
1268
|
+
cap: number | string;
|
|
1269
|
+
/** Format: int32 */
|
|
1270
|
+
count: number | string;
|
|
1271
|
+
/** Format: uuid */
|
|
1272
|
+
id: null | string;
|
|
1273
|
+
kind: string;
|
|
1274
|
+
/** Format: date-time */
|
|
1275
|
+
updatedAt: null | string;
|
|
1276
|
+
};
|
|
1277
|
+
/** @enum {unknown} */
|
|
1278
|
+
FavoriteStatusDto: "available" | "loginRequired" | "notSoldHere" | "unknown";
|
|
1279
|
+
FavoritesDto: {
|
|
1280
|
+
items: components["schemas"]["FavoriteItemDto"][];
|
|
1281
|
+
list: components["schemas"]["FavoriteListDto"];
|
|
1282
|
+
shopper: null | components["schemas"]["ShopperMintDto"];
|
|
1283
|
+
};
|
|
955
1284
|
FreeShippingDto: {
|
|
956
1285
|
free: boolean;
|
|
957
1286
|
remaining: null | string;
|
|
@@ -1416,6 +1745,7 @@ export interface components {
|
|
|
1416
1745
|
quantity?: number | null;
|
|
1417
1746
|
query?: null | string;
|
|
1418
1747
|
resultId?: null | string;
|
|
1748
|
+
/** @description Deprecated. Optional, at most 64 characters, opaque. Accepted within its bounds and discarded, never stored (shopper-state spec S31); send nothing. */
|
|
1419
1749
|
sessionId?: null | string;
|
|
1420
1750
|
type: null | string;
|
|
1421
1751
|
variantId?: null | string;
|
|
@@ -1506,6 +1836,36 @@ export interface components {
|
|
|
1506
1836
|
icon: null | string;
|
|
1507
1837
|
name: string;
|
|
1508
1838
|
};
|
|
1839
|
+
ShopperFavoritesDto: {
|
|
1840
|
+
/** Format: int32 */
|
|
1841
|
+
cap: number | string;
|
|
1842
|
+
enabled: boolean;
|
|
1843
|
+
};
|
|
1844
|
+
ShopperInfoDto: {
|
|
1845
|
+
/** Format: date-time */
|
|
1846
|
+
createdAt: string;
|
|
1847
|
+
/** Format: date-time */
|
|
1848
|
+
expiresAt: string;
|
|
1849
|
+
};
|
|
1850
|
+
ShopperMintDto: {
|
|
1851
|
+
/** Format: date-time */
|
|
1852
|
+
expiresAt: string;
|
|
1853
|
+
token: string;
|
|
1854
|
+
};
|
|
1855
|
+
ShopperStateDto: {
|
|
1856
|
+
consentHistory: components["schemas"]["ConsentEventDto"][];
|
|
1857
|
+
consents: components["schemas"]["ConsentCurrentDto"];
|
|
1858
|
+
favorites: components["schemas"]["FavoritesDto"];
|
|
1859
|
+
nextCursor: null | string;
|
|
1860
|
+
shopper: null | components["schemas"]["ShopperInfoDto"];
|
|
1861
|
+
};
|
|
1862
|
+
ShopperStockWatchesDto: {
|
|
1863
|
+
enabled: boolean;
|
|
1864
|
+
};
|
|
1865
|
+
ShopperWatchesDto: {
|
|
1866
|
+
cancelPath: null | string;
|
|
1867
|
+
stock: components["schemas"]["ShopperStockWatchesDto"];
|
|
1868
|
+
};
|
|
1509
1869
|
SignInStartedDto: {
|
|
1510
1870
|
binding: string;
|
|
1511
1871
|
challengeId: string;
|
|
@@ -1550,11 +1910,18 @@ export interface components {
|
|
|
1550
1910
|
offerPolicy: components["schemas"]["OfferPolicyDto"];
|
|
1551
1911
|
preview: boolean;
|
|
1552
1912
|
sellability: components["schemas"]["SellabilityDto"];
|
|
1913
|
+
shopper: components["schemas"]["SiteShopperDto"];
|
|
1553
1914
|
suggestedLocale: null | string;
|
|
1554
1915
|
urlPatterns: components["schemas"]["UrlPatternsDto"];
|
|
1555
1916
|
};
|
|
1556
1917
|
/** @enum {unknown} */
|
|
1557
1918
|
SiteSellabilityMode: "backorder" | "onHand";
|
|
1919
|
+
SiteShopperDto: {
|
|
1920
|
+
consentNotice: null | components["schemas"]["ConsentNoticeDto"];
|
|
1921
|
+
consentPurposes: string[];
|
|
1922
|
+
favorites: components["schemas"]["ShopperFavoritesDto"];
|
|
1923
|
+
watches: components["schemas"]["ShopperWatchesDto"];
|
|
1924
|
+
};
|
|
1558
1925
|
SitemapEntryDto: {
|
|
1559
1926
|
alternates: components["schemas"]["AlternateDto"][];
|
|
1560
1927
|
id: string;
|
|
@@ -3845,7 +4212,7 @@ export interface operations {
|
|
|
3845
4212
|
};
|
|
3846
4213
|
};
|
|
3847
4214
|
};
|
|
3848
|
-
|
|
4215
|
+
AdoptShopperState: {
|
|
3849
4216
|
parameters: {
|
|
3850
4217
|
query?: never;
|
|
3851
4218
|
header: {
|
|
@@ -3863,7 +4230,11 @@ export interface operations {
|
|
|
3863
4230
|
path?: never;
|
|
3864
4231
|
cookie?: never;
|
|
3865
4232
|
};
|
|
3866
|
-
requestBody
|
|
4233
|
+
requestBody: {
|
|
4234
|
+
content: {
|
|
4235
|
+
"application/json": components["schemas"]["AdoptShopperStateRequest"];
|
|
4236
|
+
};
|
|
4237
|
+
};
|
|
3867
4238
|
responses: {
|
|
3868
4239
|
/** @description OK */
|
|
3869
4240
|
200: {
|
|
@@ -3871,10 +4242,10 @@ export interface operations {
|
|
|
3871
4242
|
[name: string]: unknown;
|
|
3872
4243
|
};
|
|
3873
4244
|
content: {
|
|
3874
|
-
"application/json": components["schemas"]["
|
|
4245
|
+
"application/json": components["schemas"]["AdoptionDto"];
|
|
3875
4246
|
};
|
|
3876
4247
|
};
|
|
3877
|
-
/** @description problem+json.
|
|
4248
|
+
/** @description problem+json. a body that is not { "token": "sft_…" } (answered by the framework, without a code); or MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
3878
4249
|
400: {
|
|
3879
4250
|
headers: {
|
|
3880
4251
|
[name: string]: unknown;
|
|
@@ -3883,7 +4254,7 @@ export interface operations {
|
|
|
3883
4254
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3884
4255
|
};
|
|
3885
4256
|
};
|
|
3886
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked
|
|
4257
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
|
|
3887
4258
|
401: {
|
|
3888
4259
|
headers: {
|
|
3889
4260
|
[name: string]: unknown;
|
|
@@ -3892,7 +4263,7 @@ export interface operations {
|
|
|
3892
4263
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3893
4264
|
};
|
|
3894
4265
|
};
|
|
3895
|
-
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
4266
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). Or PERMISSION_DENIED: only a consumer principal adopts guest state (not a company membership). */
|
|
3896
4267
|
403: {
|
|
3897
4268
|
headers: {
|
|
3898
4269
|
[name: string]: unknown;
|
|
@@ -3901,7 +4272,7 @@ export interface operations {
|
|
|
3901
4272
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3902
4273
|
};
|
|
3903
4274
|
};
|
|
3904
|
-
/** @description problem+json.
|
|
4275
|
+
/** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one) — one answer for a malformed, unknown, expired or deleted token; ACCOUNTS_DISABLED (the site has no shopper accounts) or SITE_INACTIVE. */
|
|
3905
4276
|
404: {
|
|
3906
4277
|
headers: {
|
|
3907
4278
|
[name: string]: unknown;
|
|
@@ -3910,8 +4281,8 @@ export interface operations {
|
|
|
3910
4281
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3911
4282
|
};
|
|
3912
4283
|
};
|
|
3913
|
-
/** @description problem+json.
|
|
3914
|
-
|
|
4284
|
+
/** @description problem+json. SHOPPER_TOKEN_ADOPTED: another account or principal already adopted this token. A retry by the same principal is answered with the stored result, not this. */
|
|
4285
|
+
409: {
|
|
3915
4286
|
headers: {
|
|
3916
4287
|
[name: string]: unknown;
|
|
3917
4288
|
};
|
|
@@ -3928,7 +4299,7 @@ export interface operations {
|
|
|
3928
4299
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3929
4300
|
};
|
|
3930
4301
|
};
|
|
3931
|
-
/** @description problem+json. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE. */
|
|
4302
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
3932
4303
|
503: {
|
|
3933
4304
|
headers: {
|
|
3934
4305
|
[name: string]: unknown;
|
|
@@ -3939,7 +4310,7 @@ export interface operations {
|
|
|
3939
4310
|
};
|
|
3940
4311
|
};
|
|
3941
4312
|
};
|
|
3942
|
-
|
|
4313
|
+
GetMyCart: {
|
|
3943
4314
|
parameters: {
|
|
3944
4315
|
query?: never;
|
|
3945
4316
|
header: {
|
|
@@ -3965,7 +4336,7 @@ export interface operations {
|
|
|
3965
4336
|
[name: string]: unknown;
|
|
3966
4337
|
};
|
|
3967
4338
|
content: {
|
|
3968
|
-
"application/json": components["schemas"]["
|
|
4339
|
+
"application/json": components["schemas"]["CartDto"];
|
|
3969
4340
|
};
|
|
3970
4341
|
};
|
|
3971
4342
|
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
@@ -3986,7 +4357,7 @@ export interface operations {
|
|
|
3986
4357
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3987
4358
|
};
|
|
3988
4359
|
};
|
|
3989
|
-
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header).
|
|
4360
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
3990
4361
|
403: {
|
|
3991
4362
|
headers: {
|
|
3992
4363
|
[name: string]: unknown;
|
|
@@ -3995,7 +4366,7 @@ export interface operations {
|
|
|
3995
4366
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3996
4367
|
};
|
|
3997
4368
|
};
|
|
3998
|
-
/** @description problem+json.
|
|
4369
|
+
/** @description problem+json. NOT_FOUND: the principal has no active saved cart. Or ACCOUNTS_DISABLED (the site has no shopper accounts) or SITE_INACTIVE. */
|
|
3999
4370
|
404: {
|
|
4000
4371
|
headers: {
|
|
4001
4372
|
[name: string]: unknown;
|
|
@@ -4004,8 +4375,8 @@ export interface operations {
|
|
|
4004
4375
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4005
4376
|
};
|
|
4006
4377
|
};
|
|
4007
|
-
/** @description problem+json.
|
|
4008
|
-
|
|
4378
|
+
/** @description problem+json. CART_EXPIRED: this cart token belongs to an expired cart. */
|
|
4379
|
+
410: {
|
|
4009
4380
|
headers: {
|
|
4010
4381
|
[name: string]: unknown;
|
|
4011
4382
|
};
|
|
@@ -4013,8 +4384,1371 @@ export interface operations {
|
|
|
4013
4384
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4014
4385
|
};
|
|
4015
4386
|
};
|
|
4016
|
-
/** @description problem+json.
|
|
4017
|
-
|
|
4387
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4388
|
+
429: {
|
|
4389
|
+
headers: {
|
|
4390
|
+
[name: string]: unknown;
|
|
4391
|
+
};
|
|
4392
|
+
content: {
|
|
4393
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4394
|
+
};
|
|
4395
|
+
};
|
|
4396
|
+
/** @description problem+json. SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE. */
|
|
4397
|
+
503: {
|
|
4398
|
+
headers: {
|
|
4399
|
+
[name: string]: unknown;
|
|
4400
|
+
};
|
|
4401
|
+
content: {
|
|
4402
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4403
|
+
};
|
|
4404
|
+
};
|
|
4405
|
+
};
|
|
4406
|
+
};
|
|
4407
|
+
GetMyCompany: {
|
|
4408
|
+
parameters: {
|
|
4409
|
+
query?: never;
|
|
4410
|
+
header: {
|
|
4411
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
4412
|
+
"X-Site-Key": string;
|
|
4413
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4414
|
+
"X-Market"?: string;
|
|
4415
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
4416
|
+
"X-Country"?: string;
|
|
4417
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4418
|
+
"X-Locale"?: string;
|
|
4419
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
4420
|
+
"X-Shopper-Ip"?: string;
|
|
4421
|
+
};
|
|
4422
|
+
path?: never;
|
|
4423
|
+
cookie?: never;
|
|
4424
|
+
};
|
|
4425
|
+
requestBody?: never;
|
|
4426
|
+
responses: {
|
|
4427
|
+
/** @description OK */
|
|
4428
|
+
200: {
|
|
4429
|
+
headers: {
|
|
4430
|
+
[name: string]: unknown;
|
|
4431
|
+
};
|
|
4432
|
+
content: {
|
|
4433
|
+
"application/json": components["schemas"]["MyCompanyDto"];
|
|
4434
|
+
};
|
|
4435
|
+
};
|
|
4436
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
4437
|
+
400: {
|
|
4438
|
+
headers: {
|
|
4439
|
+
[name: string]: unknown;
|
|
4440
|
+
};
|
|
4441
|
+
content: {
|
|
4442
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4443
|
+
};
|
|
4444
|
+
};
|
|
4445
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
|
|
4446
|
+
401: {
|
|
4447
|
+
headers: {
|
|
4448
|
+
[name: string]: unknown;
|
|
4449
|
+
};
|
|
4450
|
+
content: {
|
|
4451
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4452
|
+
};
|
|
4453
|
+
};
|
|
4454
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). PRINCIPAL_NOT_AVAILABLE: the current principal is the consumer, which has no company. */
|
|
4455
|
+
403: {
|
|
4456
|
+
headers: {
|
|
4457
|
+
[name: string]: unknown;
|
|
4458
|
+
};
|
|
4459
|
+
content: {
|
|
4460
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4461
|
+
};
|
|
4462
|
+
};
|
|
4463
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
|
|
4464
|
+
404: {
|
|
4465
|
+
headers: {
|
|
4466
|
+
[name: string]: unknown;
|
|
4467
|
+
};
|
|
4468
|
+
content: {
|
|
4469
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4470
|
+
};
|
|
4471
|
+
};
|
|
4472
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4473
|
+
429: {
|
|
4474
|
+
headers: {
|
|
4475
|
+
[name: string]: unknown;
|
|
4476
|
+
};
|
|
4477
|
+
content: {
|
|
4478
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4479
|
+
};
|
|
4480
|
+
};
|
|
4481
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
4482
|
+
503: {
|
|
4483
|
+
headers: {
|
|
4484
|
+
[name: string]: unknown;
|
|
4485
|
+
};
|
|
4486
|
+
content: {
|
|
4487
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4488
|
+
};
|
|
4489
|
+
};
|
|
4490
|
+
};
|
|
4491
|
+
};
|
|
4492
|
+
GetMyConsents: {
|
|
4493
|
+
parameters: {
|
|
4494
|
+
query?: never;
|
|
4495
|
+
header: {
|
|
4496
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
4497
|
+
"X-Site-Key": string;
|
|
4498
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4499
|
+
"X-Market"?: string;
|
|
4500
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
4501
|
+
"X-Country"?: string;
|
|
4502
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4503
|
+
"X-Locale"?: string;
|
|
4504
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
4505
|
+
"X-Shopper-Ip"?: string;
|
|
4506
|
+
};
|
|
4507
|
+
path?: never;
|
|
4508
|
+
cookie?: never;
|
|
4509
|
+
};
|
|
4510
|
+
requestBody?: never;
|
|
4511
|
+
responses: {
|
|
4512
|
+
/** @description OK */
|
|
4513
|
+
200: {
|
|
4514
|
+
headers: {
|
|
4515
|
+
[name: string]: unknown;
|
|
4516
|
+
};
|
|
4517
|
+
content: {
|
|
4518
|
+
"application/json": components["schemas"]["ConsentReadDto"];
|
|
4519
|
+
};
|
|
4520
|
+
};
|
|
4521
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
4522
|
+
400: {
|
|
4523
|
+
headers: {
|
|
4524
|
+
[name: string]: unknown;
|
|
4525
|
+
};
|
|
4526
|
+
content: {
|
|
4527
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4528
|
+
};
|
|
4529
|
+
};
|
|
4530
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
|
|
4531
|
+
401: {
|
|
4532
|
+
headers: {
|
|
4533
|
+
[name: string]: unknown;
|
|
4534
|
+
};
|
|
4535
|
+
content: {
|
|
4536
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4537
|
+
};
|
|
4538
|
+
};
|
|
4539
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
4540
|
+
403: {
|
|
4541
|
+
headers: {
|
|
4542
|
+
[name: string]: unknown;
|
|
4543
|
+
};
|
|
4544
|
+
content: {
|
|
4545
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4546
|
+
};
|
|
4547
|
+
};
|
|
4548
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
|
|
4549
|
+
404: {
|
|
4550
|
+
headers: {
|
|
4551
|
+
[name: string]: unknown;
|
|
4552
|
+
};
|
|
4553
|
+
content: {
|
|
4554
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4555
|
+
};
|
|
4556
|
+
};
|
|
4557
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4558
|
+
429: {
|
|
4559
|
+
headers: {
|
|
4560
|
+
[name: string]: unknown;
|
|
4561
|
+
};
|
|
4562
|
+
content: {
|
|
4563
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4564
|
+
};
|
|
4565
|
+
};
|
|
4566
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
4567
|
+
503: {
|
|
4568
|
+
headers: {
|
|
4569
|
+
[name: string]: unknown;
|
|
4570
|
+
};
|
|
4571
|
+
content: {
|
|
4572
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4573
|
+
};
|
|
4574
|
+
};
|
|
4575
|
+
};
|
|
4576
|
+
};
|
|
4577
|
+
PutMyConsents: {
|
|
4578
|
+
parameters: {
|
|
4579
|
+
query?: never;
|
|
4580
|
+
header: {
|
|
4581
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
4582
|
+
"X-Site-Key": string;
|
|
4583
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4584
|
+
"X-Market"?: string;
|
|
4585
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
4586
|
+
"X-Country"?: string;
|
|
4587
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4588
|
+
"X-Locale"?: string;
|
|
4589
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
4590
|
+
"X-Shopper-Ip"?: string;
|
|
4591
|
+
};
|
|
4592
|
+
path?: never;
|
|
4593
|
+
cookie?: never;
|
|
4594
|
+
};
|
|
4595
|
+
requestBody: {
|
|
4596
|
+
content: {
|
|
4597
|
+
"application/json": components["schemas"]["ConsentPutRequest"];
|
|
4598
|
+
};
|
|
4599
|
+
};
|
|
4600
|
+
responses: {
|
|
4601
|
+
/** @description OK */
|
|
4602
|
+
200: {
|
|
4603
|
+
headers: {
|
|
4604
|
+
[name: string]: unknown;
|
|
4605
|
+
};
|
|
4606
|
+
content: {
|
|
4607
|
+
"application/json": components["schemas"]["ConsentAnswerDto"];
|
|
4608
|
+
};
|
|
4609
|
+
};
|
|
4610
|
+
/** @description problem+json. CONSENT_INVALID (purpose, decision, notice reference or ordering fields the API does not accept). */
|
|
4611
|
+
400: {
|
|
4612
|
+
headers: {
|
|
4613
|
+
[name: string]: unknown;
|
|
4614
|
+
};
|
|
4615
|
+
content: {
|
|
4616
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4617
|
+
};
|
|
4618
|
+
};
|
|
4619
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
|
|
4620
|
+
401: {
|
|
4621
|
+
headers: {
|
|
4622
|
+
[name: string]: unknown;
|
|
4623
|
+
};
|
|
4624
|
+
content: {
|
|
4625
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4626
|
+
};
|
|
4627
|
+
};
|
|
4628
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
4629
|
+
403: {
|
|
4630
|
+
headers: {
|
|
4631
|
+
[name: string]: unknown;
|
|
4632
|
+
};
|
|
4633
|
+
content: {
|
|
4634
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4635
|
+
};
|
|
4636
|
+
};
|
|
4637
|
+
/** @description problem+json. CONSENT_DISABLED (the site publishes no consent notice); ACCOUNTS_DISABLED (the site has no shopper accounts) or SITE_INACTIVE. */
|
|
4638
|
+
404: {
|
|
4639
|
+
headers: {
|
|
4640
|
+
[name: string]: unknown;
|
|
4641
|
+
};
|
|
4642
|
+
content: {
|
|
4643
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4644
|
+
};
|
|
4645
|
+
};
|
|
4646
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4647
|
+
429: {
|
|
4648
|
+
headers: {
|
|
4649
|
+
[name: string]: unknown;
|
|
4650
|
+
};
|
|
4651
|
+
content: {
|
|
4652
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4653
|
+
};
|
|
4654
|
+
};
|
|
4655
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
4656
|
+
503: {
|
|
4657
|
+
headers: {
|
|
4658
|
+
[name: string]: unknown;
|
|
4659
|
+
};
|
|
4660
|
+
content: {
|
|
4661
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
};
|
|
4665
|
+
};
|
|
4666
|
+
GetMyConsentHistory: {
|
|
4667
|
+
parameters: {
|
|
4668
|
+
query?: {
|
|
4669
|
+
cursor?: string;
|
|
4670
|
+
};
|
|
4671
|
+
header: {
|
|
4672
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
4673
|
+
"X-Site-Key": string;
|
|
4674
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4675
|
+
"X-Market"?: string;
|
|
4676
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
4677
|
+
"X-Country"?: string;
|
|
4678
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4679
|
+
"X-Locale"?: string;
|
|
4680
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
4681
|
+
"X-Shopper-Ip"?: string;
|
|
4682
|
+
};
|
|
4683
|
+
path?: never;
|
|
4684
|
+
cookie?: never;
|
|
4685
|
+
};
|
|
4686
|
+
requestBody?: never;
|
|
4687
|
+
responses: {
|
|
4688
|
+
/** @description OK */
|
|
4689
|
+
200: {
|
|
4690
|
+
headers: {
|
|
4691
|
+
[name: string]: unknown;
|
|
4692
|
+
};
|
|
4693
|
+
content: {
|
|
4694
|
+
"application/json": components["schemas"]["ConsentHistoryPageDto"];
|
|
4695
|
+
};
|
|
4696
|
+
};
|
|
4697
|
+
/** @description problem+json. INVALID_CURSOR (a cursor this API did not issue for this account). */
|
|
4698
|
+
400: {
|
|
4699
|
+
headers: {
|
|
4700
|
+
[name: string]: unknown;
|
|
4701
|
+
};
|
|
4702
|
+
content: {
|
|
4703
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4704
|
+
};
|
|
4705
|
+
};
|
|
4706
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
|
|
4707
|
+
401: {
|
|
4708
|
+
headers: {
|
|
4709
|
+
[name: string]: unknown;
|
|
4710
|
+
};
|
|
4711
|
+
content: {
|
|
4712
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4713
|
+
};
|
|
4714
|
+
};
|
|
4715
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
4716
|
+
403: {
|
|
4717
|
+
headers: {
|
|
4718
|
+
[name: string]: unknown;
|
|
4719
|
+
};
|
|
4720
|
+
content: {
|
|
4721
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4722
|
+
};
|
|
4723
|
+
};
|
|
4724
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
|
|
4725
|
+
404: {
|
|
4726
|
+
headers: {
|
|
4727
|
+
[name: string]: unknown;
|
|
4728
|
+
};
|
|
4729
|
+
content: {
|
|
4730
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4731
|
+
};
|
|
4732
|
+
};
|
|
4733
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4734
|
+
429: {
|
|
4735
|
+
headers: {
|
|
4736
|
+
[name: string]: unknown;
|
|
4737
|
+
};
|
|
4738
|
+
content: {
|
|
4739
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4740
|
+
};
|
|
4741
|
+
};
|
|
4742
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
4743
|
+
503: {
|
|
4744
|
+
headers: {
|
|
4745
|
+
[name: string]: unknown;
|
|
4746
|
+
};
|
|
4747
|
+
content: {
|
|
4748
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4749
|
+
};
|
|
4750
|
+
};
|
|
4751
|
+
};
|
|
4752
|
+
};
|
|
4753
|
+
GetMyFavorites: {
|
|
4754
|
+
parameters: {
|
|
4755
|
+
query?: never;
|
|
4756
|
+
header: {
|
|
4757
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
4758
|
+
"X-Site-Key": string;
|
|
4759
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4760
|
+
"X-Market"?: string;
|
|
4761
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
4762
|
+
"X-Country"?: string;
|
|
4763
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4764
|
+
"X-Locale"?: string;
|
|
4765
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
4766
|
+
"X-Shopper-Ip"?: string;
|
|
4767
|
+
};
|
|
4768
|
+
path?: never;
|
|
4769
|
+
cookie?: never;
|
|
4770
|
+
};
|
|
4771
|
+
requestBody?: never;
|
|
4772
|
+
responses: {
|
|
4773
|
+
/** @description OK */
|
|
4774
|
+
200: {
|
|
4775
|
+
headers: {
|
|
4776
|
+
[name: string]: unknown;
|
|
4777
|
+
};
|
|
4778
|
+
content: {
|
|
4779
|
+
"application/json": components["schemas"]["FavoritesDto"];
|
|
4780
|
+
};
|
|
4781
|
+
};
|
|
4782
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
4783
|
+
400: {
|
|
4784
|
+
headers: {
|
|
4785
|
+
[name: string]: unknown;
|
|
4786
|
+
};
|
|
4787
|
+
content: {
|
|
4788
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4789
|
+
};
|
|
4790
|
+
};
|
|
4791
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
|
|
4792
|
+
401: {
|
|
4793
|
+
headers: {
|
|
4794
|
+
[name: string]: unknown;
|
|
4795
|
+
};
|
|
4796
|
+
content: {
|
|
4797
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4798
|
+
};
|
|
4799
|
+
};
|
|
4800
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
4801
|
+
403: {
|
|
4802
|
+
headers: {
|
|
4803
|
+
[name: string]: unknown;
|
|
4804
|
+
};
|
|
4805
|
+
content: {
|
|
4806
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4807
|
+
};
|
|
4808
|
+
};
|
|
4809
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
|
|
4810
|
+
404: {
|
|
4811
|
+
headers: {
|
|
4812
|
+
[name: string]: unknown;
|
|
4813
|
+
};
|
|
4814
|
+
content: {
|
|
4815
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4816
|
+
};
|
|
4817
|
+
};
|
|
4818
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4819
|
+
429: {
|
|
4820
|
+
headers: {
|
|
4821
|
+
[name: string]: unknown;
|
|
4822
|
+
};
|
|
4823
|
+
content: {
|
|
4824
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4827
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4828
|
+
503: {
|
|
4829
|
+
headers: {
|
|
4830
|
+
[name: string]: unknown;
|
|
4831
|
+
};
|
|
4832
|
+
content: {
|
|
4833
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4834
|
+
};
|
|
4835
|
+
};
|
|
4836
|
+
};
|
|
4837
|
+
};
|
|
4838
|
+
ClearMyFavorites: {
|
|
4839
|
+
parameters: {
|
|
4840
|
+
query?: never;
|
|
4841
|
+
header: {
|
|
4842
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
4843
|
+
"X-Site-Key": string;
|
|
4844
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4845
|
+
"X-Market"?: string;
|
|
4846
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
4847
|
+
"X-Country"?: string;
|
|
4848
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4849
|
+
"X-Locale"?: string;
|
|
4850
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
4851
|
+
"X-Shopper-Ip"?: string;
|
|
4852
|
+
};
|
|
4853
|
+
path?: never;
|
|
4854
|
+
cookie?: never;
|
|
4855
|
+
};
|
|
4856
|
+
requestBody?: never;
|
|
4857
|
+
responses: {
|
|
4858
|
+
/** @description No Content */
|
|
4859
|
+
204: {
|
|
4860
|
+
headers: {
|
|
4861
|
+
[name: string]: unknown;
|
|
4862
|
+
};
|
|
4863
|
+
content?: never;
|
|
4864
|
+
};
|
|
4865
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
4866
|
+
400: {
|
|
4867
|
+
headers: {
|
|
4868
|
+
[name: string]: unknown;
|
|
4869
|
+
};
|
|
4870
|
+
content: {
|
|
4871
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4872
|
+
};
|
|
4873
|
+
};
|
|
4874
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
|
|
4875
|
+
401: {
|
|
4876
|
+
headers: {
|
|
4877
|
+
[name: string]: unknown;
|
|
4878
|
+
};
|
|
4879
|
+
content: {
|
|
4880
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4881
|
+
};
|
|
4882
|
+
};
|
|
4883
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
4884
|
+
403: {
|
|
4885
|
+
headers: {
|
|
4886
|
+
[name: string]: unknown;
|
|
4887
|
+
};
|
|
4888
|
+
content: {
|
|
4889
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4890
|
+
};
|
|
4891
|
+
};
|
|
4892
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
|
|
4893
|
+
404: {
|
|
4894
|
+
headers: {
|
|
4895
|
+
[name: string]: unknown;
|
|
4896
|
+
};
|
|
4897
|
+
content: {
|
|
4898
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4899
|
+
};
|
|
4900
|
+
};
|
|
4901
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4902
|
+
429: {
|
|
4903
|
+
headers: {
|
|
4904
|
+
[name: string]: unknown;
|
|
4905
|
+
};
|
|
4906
|
+
content: {
|
|
4907
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4908
|
+
};
|
|
4909
|
+
};
|
|
4910
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
4911
|
+
503: {
|
|
4912
|
+
headers: {
|
|
4913
|
+
[name: string]: unknown;
|
|
4914
|
+
};
|
|
4915
|
+
content: {
|
|
4916
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4917
|
+
};
|
|
4918
|
+
};
|
|
4919
|
+
};
|
|
4920
|
+
};
|
|
4921
|
+
AddMyFavorite: {
|
|
4922
|
+
parameters: {
|
|
4923
|
+
query?: never;
|
|
4924
|
+
header: {
|
|
4925
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
4926
|
+
"X-Site-Key": string;
|
|
4927
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4928
|
+
"X-Market"?: string;
|
|
4929
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
4930
|
+
"X-Country"?: string;
|
|
4931
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4932
|
+
"X-Locale"?: string;
|
|
4933
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
4934
|
+
"X-Shopper-Ip"?: string;
|
|
4935
|
+
};
|
|
4936
|
+
path?: never;
|
|
4937
|
+
cookie?: never;
|
|
4938
|
+
};
|
|
4939
|
+
requestBody: {
|
|
4940
|
+
content: {
|
|
4941
|
+
"application/json": components["schemas"]["AddFavoriteRequest"];
|
|
4942
|
+
};
|
|
4943
|
+
};
|
|
4944
|
+
responses: {
|
|
4945
|
+
/** @description OK */
|
|
4946
|
+
200: {
|
|
4947
|
+
headers: {
|
|
4948
|
+
[name: string]: unknown;
|
|
4949
|
+
};
|
|
4950
|
+
content: {
|
|
4951
|
+
"application/json": components["schemas"]["FavoriteItemAnswerDto"];
|
|
4952
|
+
};
|
|
4953
|
+
};
|
|
4954
|
+
/** @description Created */
|
|
4955
|
+
201: {
|
|
4956
|
+
headers: {
|
|
4957
|
+
[name: string]: unknown;
|
|
4958
|
+
};
|
|
4959
|
+
content: {
|
|
4960
|
+
"application/json": components["schemas"]["FavoriteItemAnswerDto"];
|
|
4961
|
+
};
|
|
4962
|
+
};
|
|
4963
|
+
/** @description problem+json. VARIANT_NOT_OF_PRODUCT (the variantId is not a variant of the productId in the current catalog); or MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
4964
|
+
400: {
|
|
4965
|
+
headers: {
|
|
4966
|
+
[name: string]: unknown;
|
|
4967
|
+
};
|
|
4968
|
+
content: {
|
|
4969
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4970
|
+
};
|
|
4971
|
+
};
|
|
4972
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
|
|
4973
|
+
401: {
|
|
4974
|
+
headers: {
|
|
4975
|
+
[name: string]: unknown;
|
|
4976
|
+
};
|
|
4977
|
+
content: {
|
|
4978
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4979
|
+
};
|
|
4980
|
+
};
|
|
4981
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
4982
|
+
403: {
|
|
4983
|
+
headers: {
|
|
4984
|
+
[name: string]: unknown;
|
|
4985
|
+
};
|
|
4986
|
+
content: {
|
|
4987
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4988
|
+
};
|
|
4989
|
+
};
|
|
4990
|
+
/** @description problem+json. PRODUCT_NOT_FOUND (no such product in this site's catalog); ACCOUNTS_DISABLED (the site has no shopper accounts) or SITE_INACTIVE. */
|
|
4991
|
+
404: {
|
|
4992
|
+
headers: {
|
|
4993
|
+
[name: string]: unknown;
|
|
4994
|
+
};
|
|
4995
|
+
content: {
|
|
4996
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4997
|
+
};
|
|
4998
|
+
};
|
|
4999
|
+
/** @description problem+json. LIST_FULL: the list holds its cap of 250 items; the add is refused. */
|
|
5000
|
+
409: {
|
|
5001
|
+
headers: {
|
|
5002
|
+
[name: string]: unknown;
|
|
5003
|
+
};
|
|
5004
|
+
content: {
|
|
5005
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5006
|
+
};
|
|
5007
|
+
};
|
|
5008
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5009
|
+
429: {
|
|
5010
|
+
headers: {
|
|
5011
|
+
[name: string]: unknown;
|
|
5012
|
+
};
|
|
5013
|
+
content: {
|
|
5014
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5015
|
+
};
|
|
5016
|
+
};
|
|
5017
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5018
|
+
503: {
|
|
5019
|
+
headers: {
|
|
5020
|
+
[name: string]: unknown;
|
|
5021
|
+
};
|
|
5022
|
+
content: {
|
|
5023
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5024
|
+
};
|
|
5025
|
+
};
|
|
5026
|
+
};
|
|
5027
|
+
};
|
|
5028
|
+
RemoveMyFavorite: {
|
|
5029
|
+
parameters: {
|
|
5030
|
+
query?: never;
|
|
5031
|
+
header: {
|
|
5032
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
5033
|
+
"X-Site-Key": string;
|
|
5034
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5035
|
+
"X-Market"?: string;
|
|
5036
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5037
|
+
"X-Country"?: string;
|
|
5038
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5039
|
+
"X-Locale"?: string;
|
|
5040
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
5041
|
+
"X-Shopper-Ip"?: string;
|
|
5042
|
+
};
|
|
5043
|
+
path: {
|
|
5044
|
+
itemId: string;
|
|
5045
|
+
};
|
|
5046
|
+
cookie?: never;
|
|
5047
|
+
};
|
|
5048
|
+
requestBody?: never;
|
|
5049
|
+
responses: {
|
|
5050
|
+
/** @description No Content */
|
|
5051
|
+
204: {
|
|
5052
|
+
headers: {
|
|
5053
|
+
[name: string]: unknown;
|
|
5054
|
+
};
|
|
5055
|
+
content?: never;
|
|
5056
|
+
};
|
|
5057
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
5058
|
+
400: {
|
|
5059
|
+
headers: {
|
|
5060
|
+
[name: string]: unknown;
|
|
5061
|
+
};
|
|
5062
|
+
content: {
|
|
5063
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5064
|
+
};
|
|
5065
|
+
};
|
|
5066
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked — also when the session stops being valid while the write is checked under the account's lock, the authority recheck; nothing is written). Render signed-out and clear the session cookie. */
|
|
5067
|
+
401: {
|
|
5068
|
+
headers: {
|
|
5069
|
+
[name: string]: unknown;
|
|
5070
|
+
};
|
|
5071
|
+
content: {
|
|
5072
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5073
|
+
};
|
|
5074
|
+
};
|
|
5075
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
5076
|
+
403: {
|
|
5077
|
+
headers: {
|
|
5078
|
+
[name: string]: unknown;
|
|
5079
|
+
};
|
|
5080
|
+
content: {
|
|
5081
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5082
|
+
};
|
|
5083
|
+
};
|
|
5084
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
|
|
5085
|
+
404: {
|
|
5086
|
+
headers: {
|
|
5087
|
+
[name: string]: unknown;
|
|
5088
|
+
};
|
|
5089
|
+
content: {
|
|
5090
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5091
|
+
};
|
|
5092
|
+
};
|
|
5093
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5094
|
+
429: {
|
|
5095
|
+
headers: {
|
|
5096
|
+
[name: string]: unknown;
|
|
5097
|
+
};
|
|
5098
|
+
content: {
|
|
5099
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5100
|
+
};
|
|
5101
|
+
};
|
|
5102
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
5103
|
+
503: {
|
|
5104
|
+
headers: {
|
|
5105
|
+
[name: string]: unknown;
|
|
5106
|
+
};
|
|
5107
|
+
content: {
|
|
5108
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5109
|
+
};
|
|
5110
|
+
};
|
|
5111
|
+
};
|
|
5112
|
+
};
|
|
5113
|
+
GetOrder: {
|
|
5114
|
+
parameters: {
|
|
5115
|
+
query?: never;
|
|
5116
|
+
header: {
|
|
5117
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
5118
|
+
"X-Site-Key": string;
|
|
5119
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5120
|
+
"X-Market"?: string;
|
|
5121
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5122
|
+
"X-Country"?: string;
|
|
5123
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5124
|
+
"X-Locale"?: string;
|
|
5125
|
+
/** @description Optional. When it names the attempt's cart, the answer carries the order's access token (complete) or opens the order (orders). */
|
|
5126
|
+
"X-Cart-Token"?: string;
|
|
5127
|
+
/** @description The order's access token, from the completion answer. A header only — never a query parameter. */
|
|
5128
|
+
"X-Order-Token"?: string;
|
|
5129
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5130
|
+
"X-Shopper-Session"?: string;
|
|
5131
|
+
};
|
|
5132
|
+
path: {
|
|
5133
|
+
orderId: string;
|
|
5134
|
+
};
|
|
5135
|
+
cookie?: never;
|
|
5136
|
+
};
|
|
5137
|
+
requestBody?: never;
|
|
5138
|
+
responses: {
|
|
5139
|
+
/** @description OK */
|
|
5140
|
+
200: {
|
|
5141
|
+
headers: {
|
|
5142
|
+
[name: string]: unknown;
|
|
5143
|
+
};
|
|
5144
|
+
content: {
|
|
5145
|
+
"application/json": components["schemas"]["OrderDto"];
|
|
5146
|
+
};
|
|
5147
|
+
};
|
|
5148
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
5149
|
+
400: {
|
|
5150
|
+
headers: {
|
|
5151
|
+
[name: string]: unknown;
|
|
5152
|
+
};
|
|
5153
|
+
content: {
|
|
5154
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5155
|
+
};
|
|
5156
|
+
};
|
|
5157
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
5158
|
+
401: {
|
|
5159
|
+
headers: {
|
|
5160
|
+
[name: string]: unknown;
|
|
5161
|
+
};
|
|
5162
|
+
content: {
|
|
5163
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5164
|
+
};
|
|
5165
|
+
};
|
|
5166
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
5167
|
+
403: {
|
|
5168
|
+
headers: {
|
|
5169
|
+
[name: string]: unknown;
|
|
5170
|
+
};
|
|
5171
|
+
content: {
|
|
5172
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5173
|
+
};
|
|
5174
|
+
};
|
|
5175
|
+
/** @description problem+json. ORDER_NOT_FOUND: no such order, or the credential does not open it — the same answer for both. A company order opens only to a session of its own membership with orders.read.own; its order and cart tokens never open it, and no token opens an order whose cart owner was erased (the secret key's read excepted). */
|
|
5176
|
+
404: {
|
|
5177
|
+
headers: {
|
|
5178
|
+
[name: string]: unknown;
|
|
5179
|
+
};
|
|
5180
|
+
content: {
|
|
5181
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5182
|
+
};
|
|
5183
|
+
};
|
|
5184
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5185
|
+
429: {
|
|
5186
|
+
headers: {
|
|
5187
|
+
[name: string]: unknown;
|
|
5188
|
+
};
|
|
5189
|
+
content: {
|
|
5190
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5191
|
+
};
|
|
5192
|
+
};
|
|
5193
|
+
/** @description problem+json. SITE_KEYS_SYNCING (a secret key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
5194
|
+
503: {
|
|
5195
|
+
headers: {
|
|
5196
|
+
[name: string]: unknown;
|
|
5197
|
+
};
|
|
5198
|
+
content: {
|
|
5199
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5200
|
+
};
|
|
5201
|
+
};
|
|
5202
|
+
};
|
|
5203
|
+
};
|
|
5204
|
+
ListProducts: {
|
|
5205
|
+
parameters: {
|
|
5206
|
+
query?: {
|
|
5207
|
+
/** @description Free-text search. Omit to browse rather than search; a q of separators only (such as !!!) browses too. A search answers with search (how it was answered), and may set queryCorrection and redirect. */
|
|
5208
|
+
q?: string;
|
|
5209
|
+
/** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 24, max 100). */
|
|
5210
|
+
page?: number;
|
|
5211
|
+
/** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
|
|
5212
|
+
pageSize?: number;
|
|
5213
|
+
/** @description Sort key. An unknown one is not refused: it falls back to relevance with a SORT_UNKNOWN warning, because it usually comes from a stale bookmark. */
|
|
5214
|
+
sort?: "name_asc" | "newest" | "popular" | "price_asc" | "price_desc" | "recommended" | "relevance";
|
|
5215
|
+
/** @description Facet selection, sent as filter[key]=value. Several values for one facet are comma-separated; price is "min-max" and a boolean facet is "true". An unknown key is dropped with a FILTER_IGNORED warning. */
|
|
5216
|
+
filter?: {
|
|
5217
|
+
[key: string]: string;
|
|
5218
|
+
};
|
|
5219
|
+
/** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
|
|
5220
|
+
origin?: "other" | "recent" | "suggestion" | "typed";
|
|
5221
|
+
/** @description Narrow to a collection by slug path or id. An unknown one is answered with a COLLECTION_UNKNOWN warning, not a 404. */
|
|
5222
|
+
collection?: string;
|
|
5223
|
+
};
|
|
5224
|
+
header: {
|
|
5225
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
5226
|
+
"X-Site-Key": string;
|
|
5227
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5228
|
+
"X-Market"?: string;
|
|
5229
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5230
|
+
"X-Country"?: string;
|
|
5231
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5232
|
+
"X-Locale"?: string;
|
|
5233
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5234
|
+
"X-Shopper-Session"?: string;
|
|
5235
|
+
};
|
|
5236
|
+
path?: never;
|
|
5237
|
+
cookie?: never;
|
|
5238
|
+
};
|
|
5239
|
+
requestBody?: never;
|
|
5240
|
+
responses: {
|
|
5241
|
+
/** @description OK */
|
|
5242
|
+
200: {
|
|
5243
|
+
headers: {
|
|
5244
|
+
[name: string]: unknown;
|
|
5245
|
+
};
|
|
5246
|
+
content: {
|
|
5247
|
+
"application/json": components["schemas"]["ListingResponse"];
|
|
5248
|
+
};
|
|
5249
|
+
};
|
|
5250
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
|
|
5251
|
+
400: {
|
|
5252
|
+
headers: {
|
|
5253
|
+
[name: string]: unknown;
|
|
5254
|
+
};
|
|
5255
|
+
content: {
|
|
5256
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5257
|
+
};
|
|
5258
|
+
};
|
|
5259
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
5260
|
+
401: {
|
|
5261
|
+
headers: {
|
|
5262
|
+
[name: string]: unknown;
|
|
5263
|
+
};
|
|
5264
|
+
content: {
|
|
5265
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5266
|
+
};
|
|
5267
|
+
};
|
|
5268
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
5269
|
+
403: {
|
|
5270
|
+
headers: {
|
|
5271
|
+
[name: string]: unknown;
|
|
5272
|
+
};
|
|
5273
|
+
content: {
|
|
5274
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5275
|
+
};
|
|
5276
|
+
};
|
|
5277
|
+
/** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
|
|
5278
|
+
404: {
|
|
5279
|
+
headers: {
|
|
5280
|
+
[name: string]: unknown;
|
|
5281
|
+
};
|
|
5282
|
+
content: {
|
|
5283
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5284
|
+
};
|
|
5285
|
+
};
|
|
5286
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5287
|
+
429: {
|
|
5288
|
+
headers: {
|
|
5289
|
+
[name: string]: unknown;
|
|
5290
|
+
};
|
|
5291
|
+
content: {
|
|
5292
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5293
|
+
};
|
|
5294
|
+
};
|
|
5295
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5296
|
+
503: {
|
|
5297
|
+
headers: {
|
|
5298
|
+
[name: string]: unknown;
|
|
5299
|
+
};
|
|
5300
|
+
content: {
|
|
5301
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5302
|
+
};
|
|
5303
|
+
};
|
|
5304
|
+
};
|
|
5305
|
+
};
|
|
5306
|
+
GetProductBySku: {
|
|
5307
|
+
parameters: {
|
|
5308
|
+
query?: never;
|
|
5309
|
+
header: {
|
|
5310
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
5311
|
+
"X-Site-Key": string;
|
|
5312
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5313
|
+
"X-Market"?: string;
|
|
5314
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5315
|
+
"X-Country"?: string;
|
|
5316
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5317
|
+
"X-Locale"?: string;
|
|
5318
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5319
|
+
"X-Shopper-Session"?: string;
|
|
5320
|
+
};
|
|
5321
|
+
path: {
|
|
5322
|
+
sku: string;
|
|
5323
|
+
};
|
|
5324
|
+
cookie?: never;
|
|
5325
|
+
};
|
|
5326
|
+
requestBody?: never;
|
|
5327
|
+
responses: {
|
|
5328
|
+
/** @description OK */
|
|
5329
|
+
200: {
|
|
5330
|
+
headers: {
|
|
5331
|
+
[name: string]: unknown;
|
|
5332
|
+
};
|
|
5333
|
+
content: {
|
|
5334
|
+
"application/json": components["schemas"]["ProductDto"];
|
|
5335
|
+
};
|
|
5336
|
+
};
|
|
5337
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
5338
|
+
400: {
|
|
5339
|
+
headers: {
|
|
5340
|
+
[name: string]: unknown;
|
|
5341
|
+
};
|
|
5342
|
+
content: {
|
|
5343
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5344
|
+
};
|
|
5345
|
+
};
|
|
5346
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
5347
|
+
401: {
|
|
5348
|
+
headers: {
|
|
5349
|
+
[name: string]: unknown;
|
|
5350
|
+
};
|
|
5351
|
+
content: {
|
|
5352
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5353
|
+
};
|
|
5354
|
+
};
|
|
5355
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
5356
|
+
403: {
|
|
5357
|
+
headers: {
|
|
5358
|
+
[name: string]: unknown;
|
|
5359
|
+
};
|
|
5360
|
+
content: {
|
|
5361
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5362
|
+
};
|
|
5363
|
+
};
|
|
5364
|
+
/** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
|
|
5365
|
+
404: {
|
|
5366
|
+
headers: {
|
|
5367
|
+
[name: string]: unknown;
|
|
5368
|
+
};
|
|
5369
|
+
content: {
|
|
5370
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5371
|
+
};
|
|
5372
|
+
};
|
|
5373
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5374
|
+
429: {
|
|
5375
|
+
headers: {
|
|
5376
|
+
[name: string]: unknown;
|
|
5377
|
+
};
|
|
5378
|
+
content: {
|
|
5379
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5380
|
+
};
|
|
5381
|
+
};
|
|
5382
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5383
|
+
503: {
|
|
5384
|
+
headers: {
|
|
5385
|
+
[name: string]: unknown;
|
|
5386
|
+
};
|
|
5387
|
+
content: {
|
|
5388
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5389
|
+
};
|
|
5390
|
+
};
|
|
5391
|
+
};
|
|
5392
|
+
};
|
|
5393
|
+
SearchFacetValues: {
|
|
5394
|
+
parameters: {
|
|
5395
|
+
query?: {
|
|
5396
|
+
/** @description Narrows to the values whose label contains q (case-insensitively) or whose key starts with it. Omit for the facet's values as they are. Matched against the 1000 most common values of the facet, in this API — at most 50 are returned. Present but blank is a 400 (INVALID_QUERY). */
|
|
5397
|
+
q?: string;
|
|
5398
|
+
/** @description The filter context the values are counted in, sent as filter[key]=value exactly as on /products: a count is what selecting that value would leave. This facet's own selection does not narrow it (the counts are disjunctive), and a key this site has no facet for is dropped silently. */
|
|
5399
|
+
filter?: {
|
|
5400
|
+
[key: string]: string;
|
|
5401
|
+
};
|
|
5402
|
+
};
|
|
5403
|
+
header: {
|
|
5404
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
5405
|
+
"X-Site-Key": string;
|
|
5406
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5407
|
+
"X-Market"?: string;
|
|
5408
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5409
|
+
"X-Country"?: string;
|
|
5410
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5411
|
+
"X-Locale"?: string;
|
|
5412
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5413
|
+
"X-Shopper-Session"?: string;
|
|
5414
|
+
};
|
|
5415
|
+
path: {
|
|
5416
|
+
key: string;
|
|
5417
|
+
};
|
|
5418
|
+
cookie?: never;
|
|
5419
|
+
};
|
|
5420
|
+
requestBody?: never;
|
|
5421
|
+
responses: {
|
|
5422
|
+
/** @description OK */
|
|
5423
|
+
200: {
|
|
5424
|
+
headers: {
|
|
5425
|
+
[name: string]: unknown;
|
|
5426
|
+
};
|
|
5427
|
+
content: {
|
|
5428
|
+
"application/json": components["schemas"]["FacetValuesResponse"];
|
|
5429
|
+
};
|
|
5430
|
+
};
|
|
5431
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_QUERY (q present but blank, or longer than 100 characters), FACET_NOT_SEARCHABLE (the facet exists but has no list of values to search in: a range, a toggle or a tree), or PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
|
|
5432
|
+
400: {
|
|
5433
|
+
headers: {
|
|
5434
|
+
[name: string]: unknown;
|
|
5435
|
+
};
|
|
5436
|
+
content: {
|
|
5437
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5438
|
+
};
|
|
5439
|
+
};
|
|
5440
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
5441
|
+
401: {
|
|
5442
|
+
headers: {
|
|
5443
|
+
[name: string]: unknown;
|
|
5444
|
+
};
|
|
5445
|
+
content: {
|
|
5446
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5447
|
+
};
|
|
5448
|
+
};
|
|
5449
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
5450
|
+
403: {
|
|
5451
|
+
headers: {
|
|
5452
|
+
[name: string]: unknown;
|
|
5453
|
+
};
|
|
5454
|
+
content: {
|
|
5455
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5456
|
+
};
|
|
5457
|
+
};
|
|
5458
|
+
/** @description problem+json. FACET_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
|
|
5459
|
+
404: {
|
|
5460
|
+
headers: {
|
|
5461
|
+
[name: string]: unknown;
|
|
5462
|
+
};
|
|
5463
|
+
content: {
|
|
5464
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5465
|
+
};
|
|
5466
|
+
};
|
|
5467
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5468
|
+
429: {
|
|
5469
|
+
headers: {
|
|
5470
|
+
[name: string]: unknown;
|
|
5471
|
+
};
|
|
5472
|
+
content: {
|
|
5473
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5474
|
+
};
|
|
5475
|
+
};
|
|
5476
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5477
|
+
503: {
|
|
5478
|
+
headers: {
|
|
5479
|
+
[name: string]: unknown;
|
|
5480
|
+
};
|
|
5481
|
+
content: {
|
|
5482
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5483
|
+
};
|
|
5484
|
+
};
|
|
5485
|
+
};
|
|
5486
|
+
};
|
|
5487
|
+
GetProduct: {
|
|
5488
|
+
parameters: {
|
|
5489
|
+
query?: {
|
|
5490
|
+
/** @description A variant id (`VariantDto.id`) to preselect. Answered in `selectedVariantStatus`; a value that is not one of this product's variants is `unknown`, never an error. */
|
|
5491
|
+
variant?: string;
|
|
5492
|
+
};
|
|
5493
|
+
header: {
|
|
5494
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
5495
|
+
"X-Site-Key": string;
|
|
5496
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5497
|
+
"X-Market"?: string;
|
|
5498
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5499
|
+
"X-Country"?: string;
|
|
5500
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5501
|
+
"X-Locale"?: string;
|
|
5502
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5503
|
+
"X-Shopper-Session"?: string;
|
|
5504
|
+
};
|
|
5505
|
+
path: {
|
|
5506
|
+
slugOrId: string;
|
|
5507
|
+
};
|
|
5508
|
+
cookie?: never;
|
|
5509
|
+
};
|
|
5510
|
+
requestBody?: never;
|
|
5511
|
+
responses: {
|
|
5512
|
+
/** @description OK */
|
|
5513
|
+
200: {
|
|
5514
|
+
headers: {
|
|
5515
|
+
[name: string]: unknown;
|
|
5516
|
+
};
|
|
5517
|
+
content: {
|
|
5518
|
+
"application/json": components["schemas"]["ProductDto"];
|
|
5519
|
+
};
|
|
5520
|
+
};
|
|
5521
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
5522
|
+
400: {
|
|
5523
|
+
headers: {
|
|
5524
|
+
[name: string]: unknown;
|
|
5525
|
+
};
|
|
5526
|
+
content: {
|
|
5527
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5528
|
+
};
|
|
5529
|
+
};
|
|
5530
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
5531
|
+
401: {
|
|
5532
|
+
headers: {
|
|
5533
|
+
[name: string]: unknown;
|
|
5534
|
+
};
|
|
5535
|
+
content: {
|
|
5536
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5537
|
+
};
|
|
5538
|
+
};
|
|
5539
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
5540
|
+
403: {
|
|
5541
|
+
headers: {
|
|
5542
|
+
[name: string]: unknown;
|
|
5543
|
+
};
|
|
5544
|
+
content: {
|
|
5545
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5546
|
+
};
|
|
5547
|
+
};
|
|
5548
|
+
/** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
|
|
5549
|
+
404: {
|
|
5550
|
+
headers: {
|
|
5551
|
+
[name: string]: unknown;
|
|
5552
|
+
};
|
|
5553
|
+
content: {
|
|
5554
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5555
|
+
};
|
|
5556
|
+
};
|
|
5557
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5558
|
+
429: {
|
|
5559
|
+
headers: {
|
|
5560
|
+
[name: string]: unknown;
|
|
5561
|
+
};
|
|
5562
|
+
content: {
|
|
5563
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5564
|
+
};
|
|
5565
|
+
};
|
|
5566
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5567
|
+
503: {
|
|
5568
|
+
headers: {
|
|
5569
|
+
[name: string]: unknown;
|
|
5570
|
+
};
|
|
5571
|
+
content: {
|
|
5572
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5573
|
+
};
|
|
5574
|
+
};
|
|
5575
|
+
};
|
|
5576
|
+
};
|
|
5577
|
+
ListProductVariants: {
|
|
5578
|
+
parameters: {
|
|
5579
|
+
query?: {
|
|
5580
|
+
/** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 50, max 100). */
|
|
5581
|
+
page?: number;
|
|
5582
|
+
/** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
|
|
5583
|
+
pageSize?: number;
|
|
5584
|
+
/** @description Narrows by option axis: filter[<axis>]=value, one value per axis (no comma-separation). filter[in-stock]=true|false narrows to variants in stock. An axis the product does not have is a 400 (INVALID_FILTER). */
|
|
5585
|
+
filter?: {
|
|
5586
|
+
[key: string]: string;
|
|
5587
|
+
};
|
|
5588
|
+
};
|
|
5589
|
+
header: {
|
|
5590
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
5591
|
+
"X-Site-Key": string;
|
|
5592
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5593
|
+
"X-Market"?: string;
|
|
5594
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5595
|
+
"X-Country"?: string;
|
|
5596
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5597
|
+
"X-Locale"?: string;
|
|
5598
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5599
|
+
"X-Shopper-Session"?: string;
|
|
5600
|
+
};
|
|
5601
|
+
path: {
|
|
5602
|
+
slugOrId: string;
|
|
5603
|
+
};
|
|
5604
|
+
cookie?: never;
|
|
5605
|
+
};
|
|
5606
|
+
requestBody?: never;
|
|
5607
|
+
responses: {
|
|
5608
|
+
/** @description OK */
|
|
5609
|
+
200: {
|
|
5610
|
+
headers: {
|
|
5611
|
+
[name: string]: unknown;
|
|
5612
|
+
};
|
|
5613
|
+
content: {
|
|
5614
|
+
"application/json": components["schemas"]["VariantPageDto"];
|
|
5615
|
+
};
|
|
5616
|
+
};
|
|
5617
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_FILTER (an unknown option axis in filter[], or a non-boolean filter[in-stock]), or STOCK_QUERY_UNSUPPORTED (filter[in-stock] where stock is not shown to this shopper). */
|
|
5618
|
+
400: {
|
|
5619
|
+
headers: {
|
|
5620
|
+
[name: string]: unknown;
|
|
5621
|
+
};
|
|
5622
|
+
content: {
|
|
5623
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5624
|
+
};
|
|
5625
|
+
};
|
|
5626
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
5627
|
+
401: {
|
|
5628
|
+
headers: {
|
|
5629
|
+
[name: string]: unknown;
|
|
5630
|
+
};
|
|
5631
|
+
content: {
|
|
5632
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5633
|
+
};
|
|
5634
|
+
};
|
|
5635
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
5636
|
+
403: {
|
|
5637
|
+
headers: {
|
|
5638
|
+
[name: string]: unknown;
|
|
5639
|
+
};
|
|
5640
|
+
content: {
|
|
5641
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5642
|
+
};
|
|
5643
|
+
};
|
|
5644
|
+
/** @description problem+json. PRODUCT_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
|
|
5645
|
+
404: {
|
|
5646
|
+
headers: {
|
|
5647
|
+
[name: string]: unknown;
|
|
5648
|
+
};
|
|
5649
|
+
content: {
|
|
5650
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5651
|
+
};
|
|
5652
|
+
};
|
|
5653
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5654
|
+
429: {
|
|
5655
|
+
headers: {
|
|
5656
|
+
[name: string]: unknown;
|
|
5657
|
+
};
|
|
5658
|
+
content: {
|
|
5659
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5660
|
+
};
|
|
5661
|
+
};
|
|
5662
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5663
|
+
503: {
|
|
5664
|
+
headers: {
|
|
5665
|
+
[name: string]: unknown;
|
|
5666
|
+
};
|
|
5667
|
+
content: {
|
|
5668
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5669
|
+
};
|
|
5670
|
+
};
|
|
5671
|
+
};
|
|
5672
|
+
};
|
|
5673
|
+
Suggest: {
|
|
5674
|
+
parameters: {
|
|
5675
|
+
query: {
|
|
5676
|
+
/** @description What the shopper has typed so far, 1–100 characters. Blank, missing or longer is a 400 (INVALID_QUERY) — unlike a listing's q, which is truncated. */
|
|
5677
|
+
q: string;
|
|
5678
|
+
};
|
|
5679
|
+
header: {
|
|
5680
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
5681
|
+
"X-Site-Key": string;
|
|
5682
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5683
|
+
"X-Market"?: string;
|
|
5684
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5685
|
+
"X-Country"?: string;
|
|
5686
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5687
|
+
"X-Locale"?: string;
|
|
5688
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5689
|
+
"X-Shopper-Session"?: string;
|
|
5690
|
+
};
|
|
5691
|
+
path?: never;
|
|
5692
|
+
cookie?: never;
|
|
5693
|
+
};
|
|
5694
|
+
requestBody?: never;
|
|
5695
|
+
responses: {
|
|
5696
|
+
/** @description OK */
|
|
5697
|
+
200: {
|
|
5698
|
+
headers: {
|
|
5699
|
+
[name: string]: unknown;
|
|
5700
|
+
};
|
|
5701
|
+
content: {
|
|
5702
|
+
"application/json": components["schemas"]["SuggestResponse"];
|
|
5703
|
+
};
|
|
5704
|
+
};
|
|
5705
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_QUERY (q missing, blank or longer than 100 characters). */
|
|
5706
|
+
400: {
|
|
5707
|
+
headers: {
|
|
5708
|
+
[name: string]: unknown;
|
|
5709
|
+
};
|
|
5710
|
+
content: {
|
|
5711
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5712
|
+
};
|
|
5713
|
+
};
|
|
5714
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
5715
|
+
401: {
|
|
5716
|
+
headers: {
|
|
5717
|
+
[name: string]: unknown;
|
|
5718
|
+
};
|
|
5719
|
+
content: {
|
|
5720
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5721
|
+
};
|
|
5722
|
+
};
|
|
5723
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
5724
|
+
403: {
|
|
5725
|
+
headers: {
|
|
5726
|
+
[name: string]: unknown;
|
|
5727
|
+
};
|
|
5728
|
+
content: {
|
|
5729
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5730
|
+
};
|
|
5731
|
+
};
|
|
5732
|
+
/** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
|
|
5733
|
+
404: {
|
|
5734
|
+
headers: {
|
|
5735
|
+
[name: string]: unknown;
|
|
5736
|
+
};
|
|
5737
|
+
content: {
|
|
5738
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5739
|
+
};
|
|
5740
|
+
};
|
|
5741
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5742
|
+
429: {
|
|
5743
|
+
headers: {
|
|
5744
|
+
[name: string]: unknown;
|
|
5745
|
+
};
|
|
5746
|
+
content: {
|
|
5747
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5748
|
+
};
|
|
5749
|
+
};
|
|
5750
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5751
|
+
503: {
|
|
4018
5752
|
headers: {
|
|
4019
5753
|
[name: string]: unknown;
|
|
4020
5754
|
};
|
|
@@ -4024,7 +5758,181 @@ export interface operations {
|
|
|
4024
5758
|
};
|
|
4025
5759
|
};
|
|
4026
5760
|
};
|
|
4027
|
-
|
|
5761
|
+
GetSession: {
|
|
5762
|
+
parameters: {
|
|
5763
|
+
query?: never;
|
|
5764
|
+
header: {
|
|
5765
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
5766
|
+
"X-Site-Key": string;
|
|
5767
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5768
|
+
"X-Market"?: string;
|
|
5769
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5770
|
+
"X-Country"?: string;
|
|
5771
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5772
|
+
"X-Locale"?: string;
|
|
5773
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
5774
|
+
"X-Shopper-Ip"?: string;
|
|
5775
|
+
};
|
|
5776
|
+
path?: never;
|
|
5777
|
+
cookie?: never;
|
|
5778
|
+
};
|
|
5779
|
+
requestBody?: never;
|
|
5780
|
+
responses: {
|
|
5781
|
+
/** @description OK */
|
|
5782
|
+
200: {
|
|
5783
|
+
headers: {
|
|
5784
|
+
[name: string]: unknown;
|
|
5785
|
+
};
|
|
5786
|
+
content: {
|
|
5787
|
+
"application/json": components["schemas"]["SessionDto"];
|
|
5788
|
+
};
|
|
5789
|
+
};
|
|
5790
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
5791
|
+
400: {
|
|
5792
|
+
headers: {
|
|
5793
|
+
[name: string]: unknown;
|
|
5794
|
+
};
|
|
5795
|
+
content: {
|
|
5796
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5797
|
+
};
|
|
5798
|
+
};
|
|
5799
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session) or SESSION_INVALID (unknown, expired or revoked; a session is never silently dropped). Render signed-out and clear the session cookie. */
|
|
5800
|
+
401: {
|
|
5801
|
+
headers: {
|
|
5802
|
+
[name: string]: unknown;
|
|
5803
|
+
};
|
|
5804
|
+
content: {
|
|
5805
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5806
|
+
};
|
|
5807
|
+
};
|
|
5808
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). */
|
|
5809
|
+
403: {
|
|
5810
|
+
headers: {
|
|
5811
|
+
[name: string]: unknown;
|
|
5812
|
+
};
|
|
5813
|
+
content: {
|
|
5814
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5815
|
+
};
|
|
5816
|
+
};
|
|
5817
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts. Works on a paused site (no SITE_INACTIVE). */
|
|
5818
|
+
404: {
|
|
5819
|
+
headers: {
|
|
5820
|
+
[name: string]: unknown;
|
|
5821
|
+
};
|
|
5822
|
+
content: {
|
|
5823
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5824
|
+
};
|
|
5825
|
+
};
|
|
5826
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5827
|
+
429: {
|
|
5828
|
+
headers: {
|
|
5829
|
+
[name: string]: unknown;
|
|
5830
|
+
};
|
|
5831
|
+
content: {
|
|
5832
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5833
|
+
};
|
|
5834
|
+
};
|
|
5835
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
5836
|
+
503: {
|
|
5837
|
+
headers: {
|
|
5838
|
+
[name: string]: unknown;
|
|
5839
|
+
};
|
|
5840
|
+
content: {
|
|
5841
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5842
|
+
};
|
|
5843
|
+
};
|
|
5844
|
+
};
|
|
5845
|
+
};
|
|
5846
|
+
SwitchPrincipal: {
|
|
5847
|
+
parameters: {
|
|
5848
|
+
query?: never;
|
|
5849
|
+
header: {
|
|
5850
|
+
/** @description The site's server key (sfk_srv_…). Account routes answer 403 SERVER_KEY_REQUIRED to any other key; server-side only. */
|
|
5851
|
+
"X-Site-Key": string;
|
|
5852
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
5853
|
+
"X-Market"?: string;
|
|
5854
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
5855
|
+
"X-Country"?: string;
|
|
5856
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
5857
|
+
"X-Locale"?: string;
|
|
5858
|
+
/** @description The shopper's IP address as the frontend server saw it. Trusted only with a verified server key; the sign-in rate limits are per shopper IP. */
|
|
5859
|
+
"X-Shopper-Ip"?: string;
|
|
5860
|
+
};
|
|
5861
|
+
path?: never;
|
|
5862
|
+
cookie?: never;
|
|
5863
|
+
};
|
|
5864
|
+
requestBody: {
|
|
5865
|
+
content: {
|
|
5866
|
+
"application/json": components["schemas"]["SwitchPrincipalRequest"];
|
|
5867
|
+
};
|
|
5868
|
+
};
|
|
5869
|
+
responses: {
|
|
5870
|
+
/** @description OK */
|
|
5871
|
+
200: {
|
|
5872
|
+
headers: {
|
|
5873
|
+
[name: string]: unknown;
|
|
5874
|
+
};
|
|
5875
|
+
content: {
|
|
5876
|
+
"application/json": components["schemas"]["SignedInDto"];
|
|
5877
|
+
};
|
|
5878
|
+
};
|
|
5879
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
5880
|
+
400: {
|
|
5881
|
+
headers: {
|
|
5882
|
+
[name: string]: unknown;
|
|
5883
|
+
};
|
|
5884
|
+
content: {
|
|
5885
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5886
|
+
};
|
|
5887
|
+
};
|
|
5888
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_REQUIRED (no X-Shopper-Session), SESSION_INVALID (unknown, expired, revoked, or a replaced token outside a GET), or SESSION_REAUTH_REQUIRED (the target principal needs a new sign-in). */
|
|
5889
|
+
401: {
|
|
5890
|
+
headers: {
|
|
5891
|
+
[name: string]: unknown;
|
|
5892
|
+
};
|
|
5893
|
+
content: {
|
|
5894
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5895
|
+
};
|
|
5896
|
+
};
|
|
5897
|
+
/** @description problem+json. SERVER_KEY_REQUIRED (any key but the site's server key), SESSION_FROM_BROWSER (X-Shopper-Session with an Origin header) or SECRET_KEY_FROM_BROWSER (the server key with an Origin header). PRINCIPAL_NOT_AVAILABLE: the principal is not one of the session's. */
|
|
5898
|
+
403: {
|
|
5899
|
+
headers: {
|
|
5900
|
+
[name: string]: unknown;
|
|
5901
|
+
};
|
|
5902
|
+
content: {
|
|
5903
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5904
|
+
};
|
|
5905
|
+
};
|
|
5906
|
+
/** @description problem+json. ACCOUNTS_DISABLED: the site has no shopper accounts; or SITE_INACTIVE (sign-in closes with the catalogue). */
|
|
5907
|
+
404: {
|
|
5908
|
+
headers: {
|
|
5909
|
+
[name: string]: unknown;
|
|
5910
|
+
};
|
|
5911
|
+
content: {
|
|
5912
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5913
|
+
};
|
|
5914
|
+
};
|
|
5915
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
5916
|
+
429: {
|
|
5917
|
+
headers: {
|
|
5918
|
+
[name: string]: unknown;
|
|
5919
|
+
};
|
|
5920
|
+
content: {
|
|
5921
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5922
|
+
};
|
|
5923
|
+
};
|
|
5924
|
+
/** @description problem+json. SITE_KEYS_SYNCING (the server key before the site's first key sync; Retry-After) or SITE_REGISTRY_WARMING. */
|
|
5925
|
+
503: {
|
|
5926
|
+
headers: {
|
|
5927
|
+
[name: string]: unknown;
|
|
5928
|
+
};
|
|
5929
|
+
content: {
|
|
5930
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
5931
|
+
};
|
|
5932
|
+
};
|
|
5933
|
+
};
|
|
5934
|
+
};
|
|
5935
|
+
GetShopperState: {
|
|
4028
5936
|
parameters: {
|
|
4029
5937
|
query?: never;
|
|
4030
5938
|
header: {
|
|
@@ -4036,16 +5944,12 @@ export interface operations {
|
|
|
4036
5944
|
"X-Country"?: string;
|
|
4037
5945
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4038
5946
|
"X-Locale"?: string;
|
|
4039
|
-
/** @description Optional.
|
|
4040
|
-
"X-
|
|
4041
|
-
/** @description
|
|
4042
|
-
"X-Order-Token"?: string;
|
|
4043
|
-
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: it opens the principal's saved carts and orders, and is never needed for a guest cart or order. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
5947
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
5948
|
+
"X-Shopper-Token"?: string;
|
|
5949
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
4044
5950
|
"X-Shopper-Session"?: string;
|
|
4045
5951
|
};
|
|
4046
|
-
path
|
|
4047
|
-
orderId: string;
|
|
4048
|
-
};
|
|
5952
|
+
path?: never;
|
|
4049
5953
|
cookie?: never;
|
|
4050
5954
|
};
|
|
4051
5955
|
requestBody?: never;
|
|
@@ -4056,10 +5960,10 @@ export interface operations {
|
|
|
4056
5960
|
[name: string]: unknown;
|
|
4057
5961
|
};
|
|
4058
5962
|
content: {
|
|
4059
|
-
"application/json": components["schemas"]["
|
|
5963
|
+
"application/json": components["schemas"]["ShopperStateDto"];
|
|
4060
5964
|
};
|
|
4061
5965
|
};
|
|
4062
|
-
/** @description problem+json.
|
|
5966
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
4063
5967
|
400: {
|
|
4064
5968
|
headers: {
|
|
4065
5969
|
[name: string]: unknown;
|
|
@@ -4077,7 +5981,7 @@ export interface operations {
|
|
|
4077
5981
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4078
5982
|
};
|
|
4079
5983
|
};
|
|
4080
|
-
/** @description problem+json.
|
|
5984
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4081
5985
|
403: {
|
|
4082
5986
|
headers: {
|
|
4083
5987
|
[name: string]: unknown;
|
|
@@ -4086,7 +5990,7 @@ export interface operations {
|
|
|
4086
5990
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4087
5991
|
};
|
|
4088
5992
|
};
|
|
4089
|
-
/** @description problem+json.
|
|
5993
|
+
/** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
|
|
4090
5994
|
404: {
|
|
4091
5995
|
headers: {
|
|
4092
5996
|
[name: string]: unknown;
|
|
@@ -4095,6 +5999,15 @@ export interface operations {
|
|
|
4095
5999
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4096
6000
|
};
|
|
4097
6001
|
};
|
|
6002
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6003
|
+
409: {
|
|
6004
|
+
headers: {
|
|
6005
|
+
[name: string]: unknown;
|
|
6006
|
+
};
|
|
6007
|
+
content: {
|
|
6008
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6009
|
+
};
|
|
6010
|
+
};
|
|
4098
6011
|
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4099
6012
|
429: {
|
|
4100
6013
|
headers: {
|
|
@@ -4104,7 +6017,7 @@ export interface operations {
|
|
|
4104
6017
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4105
6018
|
};
|
|
4106
6019
|
};
|
|
4107
|
-
/** @description problem+json. SITE_KEYS_SYNCING (a secret key before the site's first key sync; Retry-After) or
|
|
6020
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4108
6021
|
503: {
|
|
4109
6022
|
headers: {
|
|
4110
6023
|
[name: string]: unknown;
|
|
@@ -4115,26 +6028,9 @@ export interface operations {
|
|
|
4115
6028
|
};
|
|
4116
6029
|
};
|
|
4117
6030
|
};
|
|
4118
|
-
|
|
6031
|
+
DeleteShopperState: {
|
|
4119
6032
|
parameters: {
|
|
4120
|
-
query?:
|
|
4121
|
-
/** @description Free-text search. Omit to browse rather than search; a q of separators only (such as !!!) browses too. A search answers with search (how it was answered), and may set queryCorrection and redirect. */
|
|
4122
|
-
q?: string;
|
|
4123
|
-
/** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 24, max 100). */
|
|
4124
|
-
page?: number;
|
|
4125
|
-
/** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
|
|
4126
|
-
pageSize?: number;
|
|
4127
|
-
/** @description Sort key. An unknown one is not refused: it falls back to relevance with a SORT_UNKNOWN warning, because it usually comes from a stale bookmark. */
|
|
4128
|
-
sort?: "name_asc" | "newest" | "popular" | "price_asc" | "price_desc" | "recommended" | "relevance";
|
|
4129
|
-
/** @description Facet selection, sent as filter[key]=value. Several values for one facet are comma-separated; price is "min-max" and a boolean facet is "true". An unknown key is dropped with a FILTER_IGNORED warning. */
|
|
4130
|
-
filter?: {
|
|
4131
|
-
[key: string]: string;
|
|
4132
|
-
};
|
|
4133
|
-
/** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
|
|
4134
|
-
origin?: "other" | "recent" | "suggestion" | "typed";
|
|
4135
|
-
/** @description Narrow to a collection by slug path or id. An unknown one is answered with a COLLECTION_UNKNOWN warning, not a 404. */
|
|
4136
|
-
collection?: string;
|
|
4137
|
-
};
|
|
6033
|
+
query?: never;
|
|
4138
6034
|
header: {
|
|
4139
6035
|
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
4140
6036
|
"X-Site-Key": string;
|
|
@@ -4144,24 +6040,26 @@ export interface operations {
|
|
|
4144
6040
|
"X-Country"?: string;
|
|
4145
6041
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4146
6042
|
"X-Locale"?: string;
|
|
4147
|
-
/** @description Optional. The shopper
|
|
6043
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6044
|
+
"X-Shopper-Token"?: string;
|
|
6045
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
4148
6046
|
"X-Shopper-Session"?: string;
|
|
6047
|
+
/** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
|
|
6048
|
+
"X-Shopper-Ip"?: string;
|
|
4149
6049
|
};
|
|
4150
6050
|
path?: never;
|
|
4151
6051
|
cookie?: never;
|
|
4152
6052
|
};
|
|
4153
6053
|
requestBody?: never;
|
|
4154
6054
|
responses: {
|
|
4155
|
-
/** @description
|
|
4156
|
-
|
|
6055
|
+
/** @description No Content */
|
|
6056
|
+
204: {
|
|
4157
6057
|
headers: {
|
|
4158
6058
|
[name: string]: unknown;
|
|
4159
6059
|
};
|
|
4160
|
-
content
|
|
4161
|
-
"application/json": components["schemas"]["ListingResponse"];
|
|
4162
|
-
};
|
|
6060
|
+
content?: never;
|
|
4163
6061
|
};
|
|
4164
|
-
/** @description problem+json.
|
|
6062
|
+
/** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
|
|
4165
6063
|
400: {
|
|
4166
6064
|
headers: {
|
|
4167
6065
|
[name: string]: unknown;
|
|
@@ -4179,7 +6077,7 @@ export interface operations {
|
|
|
4179
6077
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4180
6078
|
};
|
|
4181
6079
|
};
|
|
4182
|
-
/** @description problem+json.
|
|
6080
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4183
6081
|
403: {
|
|
4184
6082
|
headers: {
|
|
4185
6083
|
[name: string]: unknown;
|
|
@@ -4188,7 +6086,7 @@ export interface operations {
|
|
|
4188
6086
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4189
6087
|
};
|
|
4190
6088
|
};
|
|
4191
|
-
/** @description problem+json.
|
|
6089
|
+
/** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
|
|
4192
6090
|
404: {
|
|
4193
6091
|
headers: {
|
|
4194
6092
|
[name: string]: unknown;
|
|
@@ -4197,7 +6095,16 @@ export interface operations {
|
|
|
4197
6095
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4198
6096
|
};
|
|
4199
6097
|
};
|
|
4200
|
-
/** @description problem+json.
|
|
6098
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6099
|
+
409: {
|
|
6100
|
+
headers: {
|
|
6101
|
+
[name: string]: unknown;
|
|
6102
|
+
};
|
|
6103
|
+
content: {
|
|
6104
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6105
|
+
};
|
|
6106
|
+
};
|
|
6107
|
+
/** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4201
6108
|
429: {
|
|
4202
6109
|
headers: {
|
|
4203
6110
|
[name: string]: unknown;
|
|
@@ -4206,7 +6113,7 @@ export interface operations {
|
|
|
4206
6113
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4207
6114
|
};
|
|
4208
6115
|
};
|
|
4209
|
-
/** @description problem+json.
|
|
6116
|
+
/** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4210
6117
|
503: {
|
|
4211
6118
|
headers: {
|
|
4212
6119
|
[name: string]: unknown;
|
|
@@ -4217,7 +6124,7 @@ export interface operations {
|
|
|
4217
6124
|
};
|
|
4218
6125
|
};
|
|
4219
6126
|
};
|
|
4220
|
-
|
|
6127
|
+
GetShopperConsents: {
|
|
4221
6128
|
parameters: {
|
|
4222
6129
|
query?: never;
|
|
4223
6130
|
header: {
|
|
@@ -4229,12 +6136,12 @@ export interface operations {
|
|
|
4229
6136
|
"X-Country"?: string;
|
|
4230
6137
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4231
6138
|
"X-Locale"?: string;
|
|
4232
|
-
/** @description Optional. The shopper
|
|
6139
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6140
|
+
"X-Shopper-Token"?: string;
|
|
6141
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
4233
6142
|
"X-Shopper-Session"?: string;
|
|
4234
6143
|
};
|
|
4235
|
-
path
|
|
4236
|
-
sku: string;
|
|
4237
|
-
};
|
|
6144
|
+
path?: never;
|
|
4238
6145
|
cookie?: never;
|
|
4239
6146
|
};
|
|
4240
6147
|
requestBody?: never;
|
|
@@ -4245,10 +6152,10 @@ export interface operations {
|
|
|
4245
6152
|
[name: string]: unknown;
|
|
4246
6153
|
};
|
|
4247
6154
|
content: {
|
|
4248
|
-
"application/json": components["schemas"]["
|
|
6155
|
+
"application/json": components["schemas"]["ConsentReadDto"];
|
|
4249
6156
|
};
|
|
4250
6157
|
};
|
|
4251
|
-
/** @description problem+json.
|
|
6158
|
+
/** @description problem+json. Not answered by this route: it has no 400 of its own, and X-Market, X-Country and X-Locale play no part in it. */
|
|
4252
6159
|
400: {
|
|
4253
6160
|
headers: {
|
|
4254
6161
|
[name: string]: unknown;
|
|
@@ -4266,7 +6173,7 @@ export interface operations {
|
|
|
4266
6173
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4267
6174
|
};
|
|
4268
6175
|
};
|
|
4269
|
-
/** @description problem+json.
|
|
6176
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4270
6177
|
403: {
|
|
4271
6178
|
headers: {
|
|
4272
6179
|
[name: string]: unknown;
|
|
@@ -4275,7 +6182,7 @@ export interface operations {
|
|
|
4275
6182
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4276
6183
|
};
|
|
4277
6184
|
};
|
|
4278
|
-
/** @description problem+json.
|
|
6185
|
+
/** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
|
|
4279
6186
|
404: {
|
|
4280
6187
|
headers: {
|
|
4281
6188
|
[name: string]: unknown;
|
|
@@ -4284,6 +6191,15 @@ export interface operations {
|
|
|
4284
6191
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4285
6192
|
};
|
|
4286
6193
|
};
|
|
6194
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6195
|
+
409: {
|
|
6196
|
+
headers: {
|
|
6197
|
+
[name: string]: unknown;
|
|
6198
|
+
};
|
|
6199
|
+
content: {
|
|
6200
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6201
|
+
};
|
|
6202
|
+
};
|
|
4287
6203
|
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4288
6204
|
429: {
|
|
4289
6205
|
headers: {
|
|
@@ -4293,7 +6209,7 @@ export interface operations {
|
|
|
4293
6209
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4294
6210
|
};
|
|
4295
6211
|
};
|
|
4296
|
-
/** @description problem+json.
|
|
6212
|
+
/** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4297
6213
|
503: {
|
|
4298
6214
|
headers: {
|
|
4299
6215
|
[name: string]: unknown;
|
|
@@ -4304,16 +6220,9 @@ export interface operations {
|
|
|
4304
6220
|
};
|
|
4305
6221
|
};
|
|
4306
6222
|
};
|
|
4307
|
-
|
|
6223
|
+
PutShopperConsents: {
|
|
4308
6224
|
parameters: {
|
|
4309
|
-
query?:
|
|
4310
|
-
/** @description Narrows to the values whose label contains q (case-insensitively) or whose key starts with it. Omit for the facet's values as they are. Matched against the 1000 most common values of the facet, in this API — at most 50 are returned. Present but blank is a 400 (INVALID_QUERY). */
|
|
4311
|
-
q?: string;
|
|
4312
|
-
/** @description The filter context the values are counted in, sent as filter[key]=value exactly as on /products: a count is what selecting that value would leave. This facet's own selection does not narrow it (the counts are disjunctive), and a key this site has no facet for is dropped silently. */
|
|
4313
|
-
filter?: {
|
|
4314
|
-
[key: string]: string;
|
|
4315
|
-
};
|
|
4316
|
-
};
|
|
6225
|
+
query?: never;
|
|
4317
6226
|
header: {
|
|
4318
6227
|
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
4319
6228
|
"X-Site-Key": string;
|
|
@@ -4323,15 +6232,21 @@ export interface operations {
|
|
|
4323
6232
|
"X-Country"?: string;
|
|
4324
6233
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4325
6234
|
"X-Locale"?: string;
|
|
4326
|
-
/** @description Optional. The shopper
|
|
6235
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6236
|
+
"X-Shopper-Token"?: string;
|
|
6237
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
4327
6238
|
"X-Shopper-Session"?: string;
|
|
6239
|
+
/** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
|
|
6240
|
+
"X-Shopper-Ip"?: string;
|
|
4328
6241
|
};
|
|
4329
|
-
path
|
|
4330
|
-
key: string;
|
|
4331
|
-
};
|
|
6242
|
+
path?: never;
|
|
4332
6243
|
cookie?: never;
|
|
4333
6244
|
};
|
|
4334
|
-
requestBody
|
|
6245
|
+
requestBody: {
|
|
6246
|
+
content: {
|
|
6247
|
+
"application/json": components["schemas"]["ConsentPutRequest"];
|
|
6248
|
+
};
|
|
6249
|
+
};
|
|
4335
6250
|
responses: {
|
|
4336
6251
|
/** @description OK */
|
|
4337
6252
|
200: {
|
|
@@ -4339,10 +6254,10 @@ export interface operations {
|
|
|
4339
6254
|
[name: string]: unknown;
|
|
4340
6255
|
};
|
|
4341
6256
|
content: {
|
|
4342
|
-
"application/json": components["schemas"]["
|
|
6257
|
+
"application/json": components["schemas"]["ConsentAnswerDto"];
|
|
4343
6258
|
};
|
|
4344
6259
|
};
|
|
4345
|
-
/** @description problem+json.
|
|
6260
|
+
/** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip); or CONSENT_INVALID (purpose, decision, notice reference or ordering fields the API does not accept). */
|
|
4346
6261
|
400: {
|
|
4347
6262
|
headers: {
|
|
4348
6263
|
[name: string]: unknown;
|
|
@@ -4360,7 +6275,7 @@ export interface operations {
|
|
|
4360
6275
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4361
6276
|
};
|
|
4362
6277
|
};
|
|
4363
|
-
/** @description problem+json.
|
|
6278
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4364
6279
|
403: {
|
|
4365
6280
|
headers: {
|
|
4366
6281
|
[name: string]: unknown;
|
|
@@ -4369,7 +6284,7 @@ export interface operations {
|
|
|
4369
6284
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4370
6285
|
};
|
|
4371
6286
|
};
|
|
4372
|
-
/** @description problem+json.
|
|
6287
|
+
/** @description problem+json. CONSENT_DISABLED (the site publishes no consent notice) or SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
|
|
4373
6288
|
404: {
|
|
4374
6289
|
headers: {
|
|
4375
6290
|
[name: string]: unknown;
|
|
@@ -4378,7 +6293,16 @@ export interface operations {
|
|
|
4378
6293
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4379
6294
|
};
|
|
4380
6295
|
};
|
|
4381
|
-
/** @description problem+json.
|
|
6296
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6297
|
+
409: {
|
|
6298
|
+
headers: {
|
|
6299
|
+
[name: string]: unknown;
|
|
6300
|
+
};
|
|
6301
|
+
content: {
|
|
6302
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6303
|
+
};
|
|
6304
|
+
};
|
|
6305
|
+
/** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4382
6306
|
429: {
|
|
4383
6307
|
headers: {
|
|
4384
6308
|
[name: string]: unknown;
|
|
@@ -4387,7 +6311,7 @@ export interface operations {
|
|
|
4387
6311
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4388
6312
|
};
|
|
4389
6313
|
};
|
|
4390
|
-
/** @description problem+json.
|
|
6314
|
+
/** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4391
6315
|
503: {
|
|
4392
6316
|
headers: {
|
|
4393
6317
|
[name: string]: unknown;
|
|
@@ -4398,11 +6322,10 @@ export interface operations {
|
|
|
4398
6322
|
};
|
|
4399
6323
|
};
|
|
4400
6324
|
};
|
|
4401
|
-
|
|
6325
|
+
GetShopperConsentHistory: {
|
|
4402
6326
|
parameters: {
|
|
4403
6327
|
query?: {
|
|
4404
|
-
|
|
4405
|
-
variant?: string;
|
|
6328
|
+
cursor?: string;
|
|
4406
6329
|
};
|
|
4407
6330
|
header: {
|
|
4408
6331
|
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
@@ -4413,12 +6336,12 @@ export interface operations {
|
|
|
4413
6336
|
"X-Country"?: string;
|
|
4414
6337
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4415
6338
|
"X-Locale"?: string;
|
|
4416
|
-
/** @description Optional. The shopper
|
|
6339
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6340
|
+
"X-Shopper-Token"?: string;
|
|
6341
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
4417
6342
|
"X-Shopper-Session"?: string;
|
|
4418
6343
|
};
|
|
4419
|
-
path
|
|
4420
|
-
slugOrId: string;
|
|
4421
|
-
};
|
|
6344
|
+
path?: never;
|
|
4422
6345
|
cookie?: never;
|
|
4423
6346
|
};
|
|
4424
6347
|
requestBody?: never;
|
|
@@ -4429,10 +6352,10 @@ export interface operations {
|
|
|
4429
6352
|
[name: string]: unknown;
|
|
4430
6353
|
};
|
|
4431
6354
|
content: {
|
|
4432
|
-
"application/json": components["schemas"]["
|
|
6355
|
+
"application/json": components["schemas"]["ConsentHistoryPageDto"];
|
|
4433
6356
|
};
|
|
4434
6357
|
};
|
|
4435
|
-
/** @description problem+json.
|
|
6358
|
+
/** @description problem+json. INVALID_CURSOR (a cursor this API did not issue for this token). */
|
|
4436
6359
|
400: {
|
|
4437
6360
|
headers: {
|
|
4438
6361
|
[name: string]: unknown;
|
|
@@ -4450,7 +6373,7 @@ export interface operations {
|
|
|
4450
6373
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4451
6374
|
};
|
|
4452
6375
|
};
|
|
4453
|
-
/** @description problem+json.
|
|
6376
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4454
6377
|
403: {
|
|
4455
6378
|
headers: {
|
|
4456
6379
|
[name: string]: unknown;
|
|
@@ -4459,7 +6382,7 @@ export interface operations {
|
|
|
4459
6382
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4460
6383
|
};
|
|
4461
6384
|
};
|
|
4462
|
-
/** @description problem+json.
|
|
6385
|
+
/** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
|
|
4463
6386
|
404: {
|
|
4464
6387
|
headers: {
|
|
4465
6388
|
[name: string]: unknown;
|
|
@@ -4468,6 +6391,15 @@ export interface operations {
|
|
|
4468
6391
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4469
6392
|
};
|
|
4470
6393
|
};
|
|
6394
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6395
|
+
409: {
|
|
6396
|
+
headers: {
|
|
6397
|
+
[name: string]: unknown;
|
|
6398
|
+
};
|
|
6399
|
+
content: {
|
|
6400
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6401
|
+
};
|
|
6402
|
+
};
|
|
4471
6403
|
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4472
6404
|
429: {
|
|
4473
6405
|
headers: {
|
|
@@ -4477,7 +6409,7 @@ export interface operations {
|
|
|
4477
6409
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4478
6410
|
};
|
|
4479
6411
|
};
|
|
4480
|
-
/** @description problem+json.
|
|
6412
|
+
/** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4481
6413
|
503: {
|
|
4482
6414
|
headers: {
|
|
4483
6415
|
[name: string]: unknown;
|
|
@@ -4488,18 +6420,9 @@ export interface operations {
|
|
|
4488
6420
|
};
|
|
4489
6421
|
};
|
|
4490
6422
|
};
|
|
4491
|
-
|
|
6423
|
+
GetShopperFavorites: {
|
|
4492
6424
|
parameters: {
|
|
4493
|
-
query?:
|
|
4494
|
-
/** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 50, max 100). */
|
|
4495
|
-
page?: number;
|
|
4496
|
-
/** @description Items per page, 1–100. Out of range is a 400 with code INVALID_PAGE. */
|
|
4497
|
-
pageSize?: number;
|
|
4498
|
-
/** @description Narrows by option axis: filter[<axis>]=value, one value per axis (no comma-separation). filter[in-stock]=true|false narrows to variants in stock. An axis the product does not have is a 400 (INVALID_FILTER). */
|
|
4499
|
-
filter?: {
|
|
4500
|
-
[key: string]: string;
|
|
4501
|
-
};
|
|
4502
|
-
};
|
|
6425
|
+
query?: never;
|
|
4503
6426
|
header: {
|
|
4504
6427
|
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
4505
6428
|
"X-Site-Key": string;
|
|
@@ -4509,12 +6432,12 @@ export interface operations {
|
|
|
4509
6432
|
"X-Country"?: string;
|
|
4510
6433
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4511
6434
|
"X-Locale"?: string;
|
|
4512
|
-
/** @description Optional. The shopper
|
|
6435
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6436
|
+
"X-Shopper-Token"?: string;
|
|
6437
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
4513
6438
|
"X-Shopper-Session"?: string;
|
|
4514
6439
|
};
|
|
4515
|
-
path
|
|
4516
|
-
slugOrId: string;
|
|
4517
|
-
};
|
|
6440
|
+
path?: never;
|
|
4518
6441
|
cookie?: never;
|
|
4519
6442
|
};
|
|
4520
6443
|
requestBody?: never;
|
|
@@ -4525,10 +6448,10 @@ export interface operations {
|
|
|
4525
6448
|
[name: string]: unknown;
|
|
4526
6449
|
};
|
|
4527
6450
|
content: {
|
|
4528
|
-
"application/json": components["schemas"]["
|
|
6451
|
+
"application/json": components["schemas"]["FavoritesDto"];
|
|
4529
6452
|
};
|
|
4530
6453
|
};
|
|
4531
|
-
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country)
|
|
6454
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
4532
6455
|
400: {
|
|
4533
6456
|
headers: {
|
|
4534
6457
|
[name: string]: unknown;
|
|
@@ -4546,7 +6469,7 @@ export interface operations {
|
|
|
4546
6469
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4547
6470
|
};
|
|
4548
6471
|
};
|
|
4549
|
-
/** @description problem+json.
|
|
6472
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4550
6473
|
403: {
|
|
4551
6474
|
headers: {
|
|
4552
6475
|
[name: string]: unknown;
|
|
@@ -4555,7 +6478,7 @@ export interface operations {
|
|
|
4555
6478
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4556
6479
|
};
|
|
4557
6480
|
};
|
|
4558
|
-
/** @description problem+json.
|
|
6481
|
+
/** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
|
|
4559
6482
|
404: {
|
|
4560
6483
|
headers: {
|
|
4561
6484
|
[name: string]: unknown;
|
|
@@ -4564,6 +6487,15 @@ export interface operations {
|
|
|
4564
6487
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4565
6488
|
};
|
|
4566
6489
|
};
|
|
6490
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6491
|
+
409: {
|
|
6492
|
+
headers: {
|
|
6493
|
+
[name: string]: unknown;
|
|
6494
|
+
};
|
|
6495
|
+
content: {
|
|
6496
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6497
|
+
};
|
|
6498
|
+
};
|
|
4567
6499
|
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4568
6500
|
429: {
|
|
4569
6501
|
headers: {
|
|
@@ -4584,12 +6516,9 @@ export interface operations {
|
|
|
4584
6516
|
};
|
|
4585
6517
|
};
|
|
4586
6518
|
};
|
|
4587
|
-
|
|
6519
|
+
ClearShopperFavorites: {
|
|
4588
6520
|
parameters: {
|
|
4589
|
-
query
|
|
4590
|
-
/** @description What the shopper has typed so far, 1–100 characters. Blank, missing or longer is a 400 (INVALID_QUERY) — unlike a listing's q, which is truncated. */
|
|
4591
|
-
q: string;
|
|
4592
|
-
};
|
|
6521
|
+
query?: never;
|
|
4593
6522
|
header: {
|
|
4594
6523
|
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
4595
6524
|
"X-Site-Key": string;
|
|
@@ -4599,24 +6528,26 @@ export interface operations {
|
|
|
4599
6528
|
"X-Country"?: string;
|
|
4600
6529
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4601
6530
|
"X-Locale"?: string;
|
|
4602
|
-
/** @description Optional. The shopper
|
|
6531
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6532
|
+
"X-Shopper-Token"?: string;
|
|
6533
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
4603
6534
|
"X-Shopper-Session"?: string;
|
|
6535
|
+
/** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
|
|
6536
|
+
"X-Shopper-Ip"?: string;
|
|
4604
6537
|
};
|
|
4605
6538
|
path?: never;
|
|
4606
6539
|
cookie?: never;
|
|
4607
6540
|
};
|
|
4608
6541
|
requestBody?: never;
|
|
4609
6542
|
responses: {
|
|
4610
|
-
/** @description
|
|
4611
|
-
|
|
6543
|
+
/** @description No Content */
|
|
6544
|
+
204: {
|
|
4612
6545
|
headers: {
|
|
4613
6546
|
[name: string]: unknown;
|
|
4614
6547
|
};
|
|
4615
|
-
content
|
|
4616
|
-
"application/json": components["schemas"]["SuggestResponse"];
|
|
4617
|
-
};
|
|
6548
|
+
content?: never;
|
|
4618
6549
|
};
|
|
4619
|
-
/** @description problem+json.
|
|
6550
|
+
/** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
|
|
4620
6551
|
400: {
|
|
4621
6552
|
headers: {
|
|
4622
6553
|
[name: string]: unknown;
|
|
@@ -4634,7 +6565,7 @@ export interface operations {
|
|
|
4634
6565
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4635
6566
|
};
|
|
4636
6567
|
};
|
|
4637
|
-
/** @description problem+json.
|
|
6568
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4638
6569
|
403: {
|
|
4639
6570
|
headers: {
|
|
4640
6571
|
[name: string]: unknown;
|
|
@@ -4643,7 +6574,7 @@ export interface operations {
|
|
|
4643
6574
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4644
6575
|
};
|
|
4645
6576
|
};
|
|
4646
|
-
/** @description problem+json.
|
|
6577
|
+
/** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
|
|
4647
6578
|
404: {
|
|
4648
6579
|
headers: {
|
|
4649
6580
|
[name: string]: unknown;
|
|
@@ -4652,7 +6583,16 @@ export interface operations {
|
|
|
4652
6583
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4653
6584
|
};
|
|
4654
6585
|
};
|
|
4655
|
-
/** @description problem+json.
|
|
6586
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6587
|
+
409: {
|
|
6588
|
+
headers: {
|
|
6589
|
+
[name: string]: unknown;
|
|
6590
|
+
};
|
|
6591
|
+
content: {
|
|
6592
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6593
|
+
};
|
|
6594
|
+
};
|
|
6595
|
+
/** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4656
6596
|
429: {
|
|
4657
6597
|
headers: {
|
|
4658
6598
|
[name: string]: unknown;
|
|
@@ -4661,7 +6601,7 @@ export interface operations {
|
|
|
4661
6601
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4662
6602
|
};
|
|
4663
6603
|
};
|
|
4664
|
-
/** @description problem+json.
|
|
6604
|
+
/** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4665
6605
|
503: {
|
|
4666
6606
|
headers: {
|
|
4667
6607
|
[name: string]: unknown;
|
|
@@ -4672,11 +6612,11 @@ export interface operations {
|
|
|
4672
6612
|
};
|
|
4673
6613
|
};
|
|
4674
6614
|
};
|
|
4675
|
-
|
|
6615
|
+
AddShopperFavorite: {
|
|
4676
6616
|
parameters: {
|
|
4677
6617
|
query?: never;
|
|
4678
6618
|
header: {
|
|
4679
|
-
/** @description
|
|
6619
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
4680
6620
|
"X-Site-Key": string;
|
|
4681
6621
|
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4682
6622
|
"X-Market"?: string;
|
|
@@ -4684,13 +6624,21 @@ export interface operations {
|
|
|
4684
6624
|
"X-Country"?: string;
|
|
4685
6625
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4686
6626
|
"X-Locale"?: string;
|
|
4687
|
-
/** @description The shopper
|
|
6627
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6628
|
+
"X-Shopper-Token"?: string;
|
|
6629
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
6630
|
+
"X-Shopper-Session"?: string;
|
|
6631
|
+
/** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
|
|
4688
6632
|
"X-Shopper-Ip"?: string;
|
|
4689
6633
|
};
|
|
4690
6634
|
path?: never;
|
|
4691
6635
|
cookie?: never;
|
|
4692
6636
|
};
|
|
4693
|
-
requestBody
|
|
6637
|
+
requestBody: {
|
|
6638
|
+
content: {
|
|
6639
|
+
"application/json": components["schemas"]["AddFavoriteRequest"];
|
|
6640
|
+
};
|
|
6641
|
+
};
|
|
4694
6642
|
responses: {
|
|
4695
6643
|
/** @description OK */
|
|
4696
6644
|
200: {
|
|
@@ -4698,10 +6646,19 @@ export interface operations {
|
|
|
4698
6646
|
[name: string]: unknown;
|
|
4699
6647
|
};
|
|
4700
6648
|
content: {
|
|
4701
|
-
"application/json": components["schemas"]["
|
|
6649
|
+
"application/json": components["schemas"]["FavoriteItemAnswerDto"];
|
|
4702
6650
|
};
|
|
4703
6651
|
};
|
|
4704
|
-
/** @description
|
|
6652
|
+
/** @description Created */
|
|
6653
|
+
201: {
|
|
6654
|
+
headers: {
|
|
6655
|
+
[name: string]: unknown;
|
|
6656
|
+
};
|
|
6657
|
+
content: {
|
|
6658
|
+
"application/json": components["schemas"]["FavoriteItemAnswerDto"];
|
|
6659
|
+
};
|
|
6660
|
+
};
|
|
6661
|
+
/** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip); VARIANT_NOT_OF_PRODUCT (the variantId is not a variant of the productId in the current catalog); or MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country). */
|
|
4705
6662
|
400: {
|
|
4706
6663
|
headers: {
|
|
4707
6664
|
[name: string]: unknown;
|
|
@@ -4710,7 +6667,7 @@ export interface operations {
|
|
|
4710
6667
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4711
6668
|
};
|
|
4712
6669
|
};
|
|
4713
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID;
|
|
6670
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
4714
6671
|
401: {
|
|
4715
6672
|
headers: {
|
|
4716
6673
|
[name: string]: unknown;
|
|
@@ -4719,7 +6676,7 @@ export interface operations {
|
|
|
4719
6676
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4720
6677
|
};
|
|
4721
6678
|
};
|
|
4722
|
-
/** @description problem+json.
|
|
6679
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4723
6680
|
403: {
|
|
4724
6681
|
headers: {
|
|
4725
6682
|
[name: string]: unknown;
|
|
@@ -4728,7 +6685,7 @@ export interface operations {
|
|
|
4728
6685
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4729
6686
|
};
|
|
4730
6687
|
};
|
|
4731
|
-
/** @description problem+json.
|
|
6688
|
+
/** @description problem+json. PRODUCT_NOT_FOUND (no such product in this site's catalog) or SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
|
|
4732
6689
|
404: {
|
|
4733
6690
|
headers: {
|
|
4734
6691
|
[name: string]: unknown;
|
|
@@ -4737,7 +6694,16 @@ export interface operations {
|
|
|
4737
6694
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4738
6695
|
};
|
|
4739
6696
|
};
|
|
4740
|
-
/** @description problem+json.
|
|
6697
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. Or LIST_FULL: the list holds its cap of 250 items; the add is refused. */
|
|
6698
|
+
409: {
|
|
6699
|
+
headers: {
|
|
6700
|
+
[name: string]: unknown;
|
|
6701
|
+
};
|
|
6702
|
+
content: {
|
|
6703
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6704
|
+
};
|
|
6705
|
+
};
|
|
6706
|
+
/** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4741
6707
|
429: {
|
|
4742
6708
|
headers: {
|
|
4743
6709
|
[name: string]: unknown;
|
|
@@ -4746,7 +6712,7 @@ export interface operations {
|
|
|
4746
6712
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4747
6713
|
};
|
|
4748
6714
|
};
|
|
4749
|
-
/** @description problem+json.
|
|
6715
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4750
6716
|
503: {
|
|
4751
6717
|
headers: {
|
|
4752
6718
|
[name: string]: unknown;
|
|
@@ -4757,11 +6723,11 @@ export interface operations {
|
|
|
4757
6723
|
};
|
|
4758
6724
|
};
|
|
4759
6725
|
};
|
|
4760
|
-
|
|
6726
|
+
RemoveShopperFavorite: {
|
|
4761
6727
|
parameters: {
|
|
4762
6728
|
query?: never;
|
|
4763
6729
|
header: {
|
|
4764
|
-
/** @description
|
|
6730
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
4765
6731
|
"X-Site-Key": string;
|
|
4766
6732
|
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
4767
6733
|
"X-Market"?: string;
|
|
@@ -4769,28 +6735,28 @@ export interface operations {
|
|
|
4769
6735
|
"X-Country"?: string;
|
|
4770
6736
|
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
4771
6737
|
"X-Locale"?: string;
|
|
4772
|
-
/** @description The shopper
|
|
6738
|
+
/** @description Optional. The guest shopper token (sft_…) minted by an earlier write on /v1/shopper/*; it names the state this request reads or changes. A read without it, or with an unknown one, answers "no state"; a write without it mints a token (returned in `shopper`), a write with an unknown, expired, adopted or deleted one answers 404 SHOPPER_TOKEN_UNKNOWN. */
|
|
6739
|
+
"X-Shopper-Token"?: string;
|
|
6740
|
+
/** @description Never send it on a guest route. A signed-in shopper's state is on /v1/me/*, and a request that carries a shopper session here is refused 409 USE_ACCOUNT_ROUTE. Like on every route, the session is validated first: a session that does not validate is 401 SESSION_INVALID, and one sent with any key but the site's server key or with an Origin header is refused 403. Not in the CORS allow-list. */
|
|
6741
|
+
"X-Shopper-Session"?: string;
|
|
6742
|
+
/** @description The shopper's IP address as the frontend server saw it. Read only with the site's server key, and required on a write without X-Shopper-Token through it (400 SHOPPER_IP_REQUIRED): the tokenless write limit is per shopper IP, never one shared bucket. */
|
|
4773
6743
|
"X-Shopper-Ip"?: string;
|
|
4774
6744
|
};
|
|
4775
|
-
path
|
|
4776
|
-
|
|
4777
|
-
};
|
|
4778
|
-
requestBody: {
|
|
4779
|
-
content: {
|
|
4780
|
-
"application/json": components["schemas"]["SwitchPrincipalRequest"];
|
|
6745
|
+
path: {
|
|
6746
|
+
itemId: string;
|
|
4781
6747
|
};
|
|
6748
|
+
cookie?: never;
|
|
4782
6749
|
};
|
|
6750
|
+
requestBody?: never;
|
|
4783
6751
|
responses: {
|
|
4784
|
-
/** @description
|
|
4785
|
-
|
|
6752
|
+
/** @description No Content */
|
|
6753
|
+
204: {
|
|
4786
6754
|
headers: {
|
|
4787
6755
|
[name: string]: unknown;
|
|
4788
6756
|
};
|
|
4789
|
-
content
|
|
4790
|
-
"application/json": components["schemas"]["SignedInDto"];
|
|
4791
|
-
};
|
|
6757
|
+
content?: never;
|
|
4792
6758
|
};
|
|
4793
|
-
/** @description problem+json.
|
|
6759
|
+
/** @description problem+json. SHOPPER_IP_REQUIRED (a write without X-Shopper-Token through the server key and no parsable X-Shopper-Ip). */
|
|
4794
6760
|
400: {
|
|
4795
6761
|
headers: {
|
|
4796
6762
|
[name: string]: unknown;
|
|
@@ -4799,7 +6765,7 @@ export interface operations {
|
|
|
4799
6765
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4800
6766
|
};
|
|
4801
6767
|
};
|
|
4802
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID;
|
|
6768
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
4803
6769
|
401: {
|
|
4804
6770
|
headers: {
|
|
4805
6771
|
[name: string]: unknown;
|
|
@@ -4808,7 +6774,7 @@ export interface operations {
|
|
|
4808
6774
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4809
6775
|
};
|
|
4810
6776
|
};
|
|
4811
|
-
/** @description problem+json.
|
|
6777
|
+
/** @description problem+json. PERMISSION_DENIED (a key other than the site's publishable or server key: shopper routes take no secret or preview key), SECRET_KEY_FROM_BROWSER (the server key from a browser); with an X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). */
|
|
4812
6778
|
403: {
|
|
4813
6779
|
headers: {
|
|
4814
6780
|
[name: string]: unknown;
|
|
@@ -4817,7 +6783,7 @@ export interface operations {
|
|
|
4817
6783
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4818
6784
|
};
|
|
4819
6785
|
};
|
|
4820
|
-
/** @description problem+json.
|
|
6786
|
+
/** @description problem+json. SHOPPER_TOKEN_UNKNOWN (the X-Shopper-Token is unknown, expired, adopted or deleted: drop it and write again without one); or SITE_INACTIVE. */
|
|
4821
6787
|
404: {
|
|
4822
6788
|
headers: {
|
|
4823
6789
|
[name: string]: unknown;
|
|
@@ -4826,7 +6792,16 @@ export interface operations {
|
|
|
4826
6792
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4827
6793
|
};
|
|
4828
6794
|
};
|
|
4829
|
-
/** @description problem+json.
|
|
6795
|
+
/** @description problem+json. USE_ACCOUNT_ROUTE: the request carries a shopper session; a signed-in shopper uses /v1/me/*. */
|
|
6796
|
+
409: {
|
|
6797
|
+
headers: {
|
|
6798
|
+
[name: string]: unknown;
|
|
6799
|
+
};
|
|
6800
|
+
content: {
|
|
6801
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6802
|
+
};
|
|
6803
|
+
};
|
|
6804
|
+
/** @description problem+json. RATE_LIMITED: the write limit per shopper token, or per shopper IP for a write without a token; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
4830
6805
|
429: {
|
|
4831
6806
|
headers: {
|
|
4832
6807
|
[name: string]: unknown;
|
|
@@ -4835,7 +6810,7 @@ export interface operations {
|
|
|
4835
6810
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4836
6811
|
};
|
|
4837
6812
|
};
|
|
4838
|
-
/** @description problem+json.
|
|
6813
|
+
/** @description problem+json. SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4839
6814
|
503: {
|
|
4840
6815
|
headers: {
|
|
4841
6816
|
[name: string]: unknown;
|