@authorizedretailers/spec 0.1.1 → 0.2.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 +66 -47
- package/dist/constants.d.ts +25 -6
- package/dist/constants.js +41 -7
- package/dist/identity.d.ts +29 -14
- package/dist/identity.js +79 -39
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/jws.d.ts +36 -5
- package/dist/jws.js +48 -14
- package/dist/match.d.ts +21 -0
- package/dist/match.js +89 -0
- package/dist/product.d.ts +34 -0
- package/dist/product.js +75 -0
- package/dist/published.d.ts +14 -8
- package/dist/published.js +32 -10
- package/dist/schemas.d.ts +366 -91
- package/dist/schemas.js +802 -181
- package/dist/types.d.ts +121 -47
- package/dist/types.js +2 -2
- package/dist/validate.d.ts +24 -10
- package/dist/validate.js +300 -107
- package/fixtures/list/invalid/list-all-mixed.json +53 -0
- package/fixtures/list/invalid/list-amazon-missing-seller-id.json +51 -0
- package/fixtures/list/invalid/list-amazon-on-walmart-domain.json +52 -0
- package/fixtures/{file/invalid/full-attached-jws.json → list/invalid/list-attached-jws.json} +14 -12
- package/fixtures/list/invalid/list-bad-asin.json +102 -0
- package/fixtures/list/invalid/list-bad-gtin.json +102 -0
- package/fixtures/list/invalid/list-brand-exclusion-no-catalog.json +57 -0
- package/fixtures/list/invalid/list-duplicate-asin.json +102 -0
- package/fixtures/{file/invalid/full-duplicate-authorization-id.json → list/invalid/list-duplicate-authorization-id.json} +23 -18
- package/fixtures/list/invalid/list-duplicate-gtin.json +102 -0
- package/fixtures/list/invalid/list-duplicate-product-id.json +102 -0
- package/fixtures/{file/invalid/full-empty-territories.json → list/invalid/list-empty-territories.json} +17 -10
- package/fixtures/list/invalid/list-exclude-unknown-product.json +105 -0
- package/fixtures/list/invalid/list-expires-field.json +53 -0
- package/fixtures/list/invalid/list-extra-property.json +53 -0
- package/fixtures/list/invalid/list-generic-web-no-territories.json +39 -0
- package/fixtures/list/invalid/list-gtin-11-digits.json +102 -0
- package/fixtures/list/invalid/list-impossible-date.json +53 -0
- package/fixtures/list/invalid/list-lowercase-territory.json +52 -0
- package/fixtures/{file/invalid/full-signature-missing-kid.json → list/invalid/list-marketplace-field.json} +14 -11
- package/fixtures/list/invalid/list-marketplace-territory-mismatch.json +52 -0
- package/fixtures/list/invalid/list-missing-revocation-id.json +51 -0
- package/fixtures/list/invalid/list-missing-scope.json +44 -0
- package/fixtures/list/invalid/list-missing-stale-until.json +51 -0
- package/fixtures/list/invalid/list-name-only-retailer.json +36 -0
- package/fixtures/list/invalid/list-no-channels.json +37 -0
- package/fixtures/list/invalid/list-non-utc-timestamp.json +52 -0
- package/fixtures/list/invalid/list-not-public-with-authorizations.json +18 -0
- package/fixtures/list/invalid/list-not-public-with-catalog.json +18 -0
- package/fixtures/{file/invalid/full-physical-only.json → list/invalid/list-physical.json} +16 -10
- package/fixtures/list/invalid/list-product-no-identifier.json +98 -0
- package/fixtures/list/invalid/list-scope-no-products.json +49 -0
- package/fixtures/{file/valid/full-signed.json → list/invalid/list-single-domain.json} +12 -12
- package/fixtures/list/invalid/list-stale-over-24-hours.json +52 -0
- package/fixtures/list/invalid/list-territory-uk.json +52 -0
- package/fixtures/{file/invalid/full-unknown-channel-type.json → list/invalid/list-unknown-channel-type.json} +18 -12
- package/fixtures/list/invalid/list-unknown-line.json +102 -0
- package/fixtures/list/invalid/list-unknown-product.json +105 -0
- package/fixtures/{file/invalid/full-missing-authorization-expires.json → list/invalid/list-unsigned.json} +12 -9
- package/fixtures/list/invalid/list-valid-over-15-minutes.json +52 -0
- package/fixtures/{file/invalid/full-web-domain-is-url.json → list/invalid/list-web-domain-is-url.json} +18 -12
- package/fixtures/list/invalid/list-web-on-marketplace-domain.json +52 -0
- package/fixtures/{file/invalid/full-wildcard-mixed.json → list/invalid/list-wildcard-mixed.json} +17 -10
- package/fixtures/list/valid/list-catalog-line-scope.json +102 -0
- package/fixtures/list/valid/list-cctld-web.json +39 -0
- package/fixtures/list/valid/list-fractional-seconds.json +52 -0
- package/fixtures/{file/invalid/full-amazon-missing-seller-id.json → list/valid/list-generic-web-territories.json} +15 -17
- package/fixtures/list/valid/list-marketplace-no-territories.json +40 -0
- package/fixtures/list/valid/list-no-authorizations.json +18 -0
- package/fixtures/list/valid/list-no-catalog.json +52 -0
- package/fixtures/list/valid/list-no-expires.json +52 -0
- package/fixtures/list/valid/list-not-public.json +17 -0
- package/fixtures/list/valid/list-product-scope.json +103 -0
- package/fixtures/list/valid/list-proposed-by.json +55 -0
- package/fixtures/list/valid/list-with-expires.json +53 -0
- package/fixtures/list/valid/list-worldwide.json +52 -0
- package/fixtures/manifest.json +606 -158
- package/fixtures/match/all-scope-excluded-line.json +194 -0
- package/fixtures/match/all-scope-not-in-catalog.json +194 -0
- package/fixtures/match/as-of-before-end-date.json +194 -0
- package/fixtures/match/brand-exclusion-beats-named-product.json +194 -0
- package/fixtures/match/duplicate-asin-authorized-seller.json +192 -0
- package/fixtures/match/duplicate-asin-unauthorized-seller.json +191 -0
- package/fixtures/match/expired-end-date.json +193 -0
- package/fixtures/match/marketplace-territory-default.json +186 -0
- package/fixtures/match/marketplace-territory-mismatch.json +187 -0
- package/fixtures/match/match-by-channel-key.json +186 -0
- package/fixtures/match/product-excluded-by-authorization.json +194 -0
- package/fixtures/match/product-line-request.json +186 -0
- package/fixtures/match/product-not-in-scope.json +194 -0
- package/fixtures/match/seller-authorized-by-gtin.json +194 -0
- package/fixtures/match/seller-authorized-for-line.json +194 -0
- package/fixtures/match/worldwide-web.json +186 -0
- package/fixtures/pointer/invalid/full-form.json +11 -0
- package/fixtures/pointer/invalid/pointer-domain-mismatch.json +10 -0
- package/fixtures/{file → pointer}/invalid/pointer-http-url.json +2 -1
- package/fixtures/pointer/invalid/pointer-missing-verify-token.json +9 -0
- package/fixtures/pointer/invalid/pointer-other-host.json +10 -0
- package/fixtures/{file/valid/pointer.json → pointer/invalid/pointer-wrong-spec.json} +1 -0
- package/fixtures/pointer/invalid/private-form.json +10 -0
- package/fixtures/pointer/invalid/unknown-form.json +10 -0
- package/fixtures/pointer/valid/pointer-fetched-via-www.json +10 -0
- package/fixtures/pointer/valid/pointer.json +10 -0
- package/fixtures/revocation-feed/invalid/feed-hashed-entry.json +17 -0
- package/fixtures/revocation-feed/invalid/feed-valid-over-15-minutes.json +17 -0
- package/fixtures/revocation-feed/valid/feed-empty.json +12 -0
- package/fixtures/revocation-feed/valid/feed.json +17 -0
- package/fixtures/verify-request/invalid/bad-as-of.json +9 -0
- package/fixtures/verify-request/invalid/bad-gtin.json +11 -0
- package/fixtures/verify-request/invalid/domain-with-scheme.json +2 -4
- package/fixtures/verify-request/{valid/web-no-product-line.json → invalid/generic-web-no-territory.json} +1 -2
- package/fixtures/verify-request/invalid/gtin-and-asin.json +12 -0
- package/fixtures/verify-request/{valid/amazon.json → invalid/marketplace-field.json} +1 -3
- package/fixtures/verify-request/invalid/missing-channel.json +1 -3
- package/fixtures/verify-request/invalid/physical-channel.json +1 -3
- package/fixtures/verify-request/invalid/retailer-name-only.json +0 -2
- package/fixtures/verify-request/invalid/territory-uk.json +9 -0
- package/fixtures/verify-request/invalid/wildcard-territory.json +2 -3
- package/fixtures/verify-request/valid/as-of-datetime.json +9 -0
- package/fixtures/verify-request/valid/full.json +13 -0
- package/fixtures/verify-request/valid/gtin.json +11 -0
- package/fixtures/verify-request/valid/minimal-marketplace.json +8 -0
- package/fixtures/verify-request/valid/web-cctld-no-territory.json +7 -0
- package/fixtures/verify-request/valid/web-generic-with-territory.json +9 -0
- package/fixtures/verify-response/invalid/authorized-missing-revocation-id.json +18 -0
- package/fixtures/verify-response/invalid/authorized-with-reason.json +20 -0
- package/fixtures/verify-response/invalid/brand-unverified.json +13 -0
- package/fixtures/verify-response/invalid/expired-without-expires.json +18 -0
- package/fixtures/verify-response/invalid/missing-observed.json +11 -5
- package/fixtures/verify-response/invalid/missing-signature.json +9 -3
- package/fixtures/verify-response/invalid/missing-stale-until.json +18 -0
- package/fixtures/verify-response/invalid/not-in-catalog-with-id.json +17 -0
- package/fixtures/verify-response/invalid/not-registered-with-unlisted-reason.json +13 -0
- package/fixtures/verify-response/invalid/stale-until-over-24-hours.json +19 -0
- package/fixtures/verify-response/invalid/unlisted-observed.json +5 -4
- package/fixtures/verify-response/invalid/unlisted-with-authorization-id.json +5 -4
- package/fixtures/verify-response/invalid/unlisted-with-not-registered-reason.json +13 -0
- package/fixtures/verify-response/invalid/unlisted-with-revocation-id.json +13 -0
- package/fixtures/verify-response/invalid/valid-until-before-checked.json +11 -5
- package/fixtures/verify-response/invalid/valid-until-over-15-minutes.json +19 -0
- package/fixtures/verify-response/invalid/with-stale-flag.json +20 -0
- package/fixtures/verify-response/invalid/with-tier.json +11 -5
- package/fixtures/verify-response/valid/authorized-no-product.json +14 -0
- package/fixtures/verify-response/valid/authorized-not-in-catalog.json +22 -0
- package/fixtures/verify-response/valid/authorized-observed.json +11 -5
- package/fixtures/verify-response/valid/authorized-private-product.json +17 -0
- package/fixtures/verify-response/valid/authorized-with-end-date.json +20 -0
- package/fixtures/verify-response/valid/authorized.json +11 -5
- package/fixtures/verify-response/valid/disputed.json +10 -5
- package/fixtures/verify-response/valid/expired.json +12 -6
- package/fixtures/verify-response/valid/not-registered-no-reason.json +12 -0
- package/fixtures/verify-response/valid/not-registered-reason.json +13 -0
- package/fixtures/verify-response/valid/unlisted-product-excluded.json +18 -0
- package/fixtures/verify-response/valid/unlisted-product-not-in-catalog.json +16 -0
- package/fixtures/verify-response/valid/unlisted-territory-mismatch.json +13 -0
- package/fixtures/verify-response/valid/unlisted.json +5 -4
- package/fixtures/verify-response/valid/with-as-of.json +20 -0
- package/fixtures/verify-response/valid/with-signal.json +11 -5
- package/package.json +5 -4
- package/schemas/0.2/common.json +761 -0
- package/schemas/0.2/list.json +87 -0
- package/schemas/0.2/pointer.json +33 -0
- package/schemas/0.2/revocation-feed.json +55 -0
- package/schemas/0.2/verify-request.json +65 -0
- package/schemas/0.2/verify-response.json +284 -0
- package/spec/spec-v0.2.md +531 -0
- package/fixtures/file/invalid/full-all-mixed.json +0 -47
- package/fixtures/file/invalid/full-authorization-expires-after-file.json +0 -46
- package/fixtures/file/invalid/full-expires-before-issued.json +0 -46
- package/fixtures/file/invalid/full-expiry-over-180-days.json +0 -46
- package/fixtures/file/invalid/full-extra-property.json +0 -47
- package/fixtures/file/invalid/full-impossible-date.json +0 -46
- package/fixtures/file/invalid/full-lowercase-territory.json +0 -45
- package/fixtures/file/invalid/full-missing-file-expires.json +0 -45
- package/fixtures/file/invalid/full-missing-product-lines.json +0 -43
- package/fixtures/file/invalid/full-missing-scope.json +0 -37
- package/fixtures/file/invalid/full-missing-territories.json +0 -42
- package/fixtures/file/invalid/full-name-only-retailer.json +0 -30
- package/fixtures/file/invalid/full-no-channels.json +0 -31
- package/fixtures/file/invalid/full-non-utc-timestamp.json +0 -46
- package/fixtures/file/invalid/full-physical-missing-country.json +0 -50
- package/fixtures/file/invalid/full-web-missing-domain.json +0 -45
- package/fixtures/file/invalid/full-wrong-spec.json +0 -46
- package/fixtures/file/invalid/private-missing-verify.json +0 -8
- package/fixtures/file/invalid/private-with-authorizations.json +0 -45
- package/fixtures/file/invalid/unknown-form.json +0 -9
- package/fixtures/file/valid/full-fractional-seconds.json +0 -46
- package/fixtures/file/valid/full-max-expiry.json +0 -46
- package/fixtures/file/valid/full-no-authorizations.json +0 -11
- package/fixtures/file/valid/full-unsigned-handwritten.json +0 -46
- package/fixtures/file/valid/full-worldwide-physical-proposed.json +0 -82
- package/fixtures/file/valid/private.json +0 -9
- package/fixtures/verify-response/invalid/authorized-missing-authorization-id.json +0 -12
- package/fixtures/verify-response/invalid/missing-valid-until.json +0 -12
- package/fixtures/verify-response/invalid/observed-without-last-seen.json +0 -13
- package/fixtures/verify-response/invalid/unknown-status.json +0 -13
- package/fixtures/verify-response/invalid/unlisted-with-reason.json +0 -12
- package/fixtures/verify-response/invalid/valid-until-over-24h.json +0 -13
- package/fixtures/verify-response/valid/brand-unverified-no-reason.json +0 -11
- package/fixtures/verify-response/valid/brand-unverified-reason.json +0 -12
- /package/schemas/{common.json → 0.1/common.json} +0 -0
- /package/schemas/{file-full.json → 0.1/file-full.json} +0 -0
- /package/schemas/{file-pointer.json → 0.1/file-pointer.json} +0 -0
- /package/schemas/{file-private.json → 0.1/file-private.json} +0 -0
- /package/schemas/{file.json → 0.1/file.json} +0 -0
- /package/schemas/{verify-request.json → 0.1/verify-request.json} +0 -0
- /package/schemas/{verify-response.json → 0.1/verify-response.json} +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"list": {
|
|
3
|
+
"spec": "authorized-retailers/0.2",
|
|
4
|
+
"brand": {
|
|
5
|
+
"name": "Example Brand",
|
|
6
|
+
"domains": [
|
|
7
|
+
"brand.example",
|
|
8
|
+
"brand.co.uk"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"public": true,
|
|
12
|
+
"issued": "2026-09-28T14:00:00Z",
|
|
13
|
+
"valid_until": "2026-09-28T14:15:00Z",
|
|
14
|
+
"stale_until": "2026-09-29T14:00:00Z",
|
|
15
|
+
"authorizations": [
|
|
16
|
+
{
|
|
17
|
+
"id": "auth_01J9X2",
|
|
18
|
+
"revocation_id": "rv_Q2l8dX4bT0aN5kPw",
|
|
19
|
+
"retailer": {
|
|
20
|
+
"name": "Example Retail LLC",
|
|
21
|
+
"entity_id": "ent_7Q4M"
|
|
22
|
+
},
|
|
23
|
+
"channels": [
|
|
24
|
+
{
|
|
25
|
+
"type": "amazon",
|
|
26
|
+
"domain": "amazon.com",
|
|
27
|
+
"seller_id": "A1B2C3D4E5F6G7"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "walmart",
|
|
31
|
+
"domain": "walmart.com",
|
|
32
|
+
"seller_id": "101234567"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "web",
|
|
36
|
+
"domain": "retailer.example"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"scope": {
|
|
40
|
+
"territories": [
|
|
41
|
+
"US"
|
|
42
|
+
],
|
|
43
|
+
"product_lines": [
|
|
44
|
+
"Classic Tee"
|
|
45
|
+
],
|
|
46
|
+
"exclude_products": [
|
|
47
|
+
"EB-TEE-WHT-M"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"proposed_by": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "auth_02",
|
|
54
|
+
"revocation_id": "rv_A1b2C3d4E5f6G7h8",
|
|
55
|
+
"retailer": {
|
|
56
|
+
"name": "Global Shoes"
|
|
57
|
+
},
|
|
58
|
+
"channels": [
|
|
59
|
+
{
|
|
60
|
+
"type": "web",
|
|
61
|
+
"domain": "globalshoes.example"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"scope": {
|
|
65
|
+
"territories": [
|
|
66
|
+
"*"
|
|
67
|
+
],
|
|
68
|
+
"product_lines": [
|
|
69
|
+
"all"
|
|
70
|
+
],
|
|
71
|
+
"exclude_product_lines": [
|
|
72
|
+
"Running"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "auth_03",
|
|
78
|
+
"revocation_id": "rv_J9k8L7m6N5o4P3q2",
|
|
79
|
+
"retailer": {
|
|
80
|
+
"name": "UK Runners"
|
|
81
|
+
},
|
|
82
|
+
"channels": [
|
|
83
|
+
{
|
|
84
|
+
"type": "web",
|
|
85
|
+
"domain": "ukrunners.co.uk"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"scope": {
|
|
89
|
+
"products": [
|
|
90
|
+
"EB-RUN-V3"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"expires": "2026-09-01T00:00:00Z"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "auth_04",
|
|
97
|
+
"revocation_id": "rv_R1s2T3u4V5w6X7y8",
|
|
98
|
+
"retailer": {
|
|
99
|
+
"name": "Brit Retail"
|
|
100
|
+
},
|
|
101
|
+
"channels": [
|
|
102
|
+
{
|
|
103
|
+
"type": "amazon",
|
|
104
|
+
"domain": "amazon.co.uk",
|
|
105
|
+
"seller_id": "A9Z8Y7X6W5V4U3"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"scope": {
|
|
109
|
+
"product_lines": [
|
|
110
|
+
"all"
|
|
111
|
+
],
|
|
112
|
+
"products": [
|
|
113
|
+
"EB-DTC-1"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"signature": {
|
|
119
|
+
"kid": "ar-20260928-6e37",
|
|
120
|
+
"jws": "eyJhbGciOiJFZERTQSIsImtpZCI6ImFyLTIwMjYwOTI4LTZlMzcifQ..c2lnbmF0dXJlLXBsYWNlaG9sZGVy"
|
|
121
|
+
},
|
|
122
|
+
"catalog": [
|
|
123
|
+
{
|
|
124
|
+
"id": "EB-TEE-BLK-M",
|
|
125
|
+
"name": "Classic Tee, Black, M",
|
|
126
|
+
"product_line": "Classic Tee",
|
|
127
|
+
"attributes": {
|
|
128
|
+
"color": "Black",
|
|
129
|
+
"size": "M"
|
|
130
|
+
},
|
|
131
|
+
"gtin": "00012345678905",
|
|
132
|
+
"asins": [
|
|
133
|
+
"B0EXAMPLE1"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "EB-TEE-WHT-M",
|
|
138
|
+
"name": "Classic Tee, White, M",
|
|
139
|
+
"product_line": "Classic Tee",
|
|
140
|
+
"gtin": "4006381333931",
|
|
141
|
+
"asins": [
|
|
142
|
+
"B0EXAMPLE2"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "EB-RUN-V2",
|
|
147
|
+
"name": "Runner V2",
|
|
148
|
+
"product_line": "Running",
|
|
149
|
+
"gtin": "96385074"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "EB-RUN-V3",
|
|
153
|
+
"name": "Runner V3",
|
|
154
|
+
"product_line": "Running",
|
|
155
|
+
"asins": [
|
|
156
|
+
"B0EXAMPLE3"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "EB-DTC-1",
|
|
161
|
+
"name": "Founders Edition",
|
|
162
|
+
"product_line": "Limited",
|
|
163
|
+
"gtin": "12345678901231"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"exclusions": {
|
|
167
|
+
"products": [
|
|
168
|
+
"EB-DTC-1"
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"request": {
|
|
173
|
+
"brand_domain": "brand.example",
|
|
174
|
+
"channel": {
|
|
175
|
+
"type": "amazon",
|
|
176
|
+
"domain": "amazon.com",
|
|
177
|
+
"seller_id": "A1B2C3D4E5F6G7"
|
|
178
|
+
},
|
|
179
|
+
"product": {
|
|
180
|
+
"gtin": "96385074"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"now": "2026-09-28T14:05:00Z",
|
|
184
|
+
"expect": {
|
|
185
|
+
"status": "unlisted",
|
|
186
|
+
"reason": "product_not_in_scope",
|
|
187
|
+
"product": {
|
|
188
|
+
"in_catalog": true,
|
|
189
|
+
"id": "EB-RUN-V2",
|
|
190
|
+
"product_line": "Running"
|
|
191
|
+
},
|
|
192
|
+
"signals": []
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"list": {
|
|
3
|
+
"spec": "authorized-retailers/0.2",
|
|
4
|
+
"brand": {
|
|
5
|
+
"name": "Example Brand",
|
|
6
|
+
"domains": [
|
|
7
|
+
"brand.example",
|
|
8
|
+
"brand.co.uk"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"public": true,
|
|
12
|
+
"issued": "2026-09-28T14:00:00Z",
|
|
13
|
+
"valid_until": "2026-09-28T14:15:00Z",
|
|
14
|
+
"stale_until": "2026-09-29T14:00:00Z",
|
|
15
|
+
"authorizations": [
|
|
16
|
+
{
|
|
17
|
+
"id": "auth_01J9X2",
|
|
18
|
+
"revocation_id": "rv_Q2l8dX4bT0aN5kPw",
|
|
19
|
+
"retailer": {
|
|
20
|
+
"name": "Example Retail LLC",
|
|
21
|
+
"entity_id": "ent_7Q4M"
|
|
22
|
+
},
|
|
23
|
+
"channels": [
|
|
24
|
+
{
|
|
25
|
+
"type": "amazon",
|
|
26
|
+
"domain": "amazon.com",
|
|
27
|
+
"seller_id": "A1B2C3D4E5F6G7"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "walmart",
|
|
31
|
+
"domain": "walmart.com",
|
|
32
|
+
"seller_id": "101234567"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "web",
|
|
36
|
+
"domain": "retailer.example"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"scope": {
|
|
40
|
+
"territories": [
|
|
41
|
+
"US"
|
|
42
|
+
],
|
|
43
|
+
"product_lines": [
|
|
44
|
+
"Classic Tee"
|
|
45
|
+
],
|
|
46
|
+
"exclude_products": [
|
|
47
|
+
"EB-TEE-WHT-M"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"proposed_by": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "auth_02",
|
|
54
|
+
"revocation_id": "rv_A1b2C3d4E5f6G7h8",
|
|
55
|
+
"retailer": {
|
|
56
|
+
"name": "Global Shoes"
|
|
57
|
+
},
|
|
58
|
+
"channels": [
|
|
59
|
+
{
|
|
60
|
+
"type": "web",
|
|
61
|
+
"domain": "globalshoes.example"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"scope": {
|
|
65
|
+
"territories": [
|
|
66
|
+
"*"
|
|
67
|
+
],
|
|
68
|
+
"product_lines": [
|
|
69
|
+
"all"
|
|
70
|
+
],
|
|
71
|
+
"exclude_product_lines": [
|
|
72
|
+
"Running"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "auth_03",
|
|
78
|
+
"revocation_id": "rv_J9k8L7m6N5o4P3q2",
|
|
79
|
+
"retailer": {
|
|
80
|
+
"name": "UK Runners"
|
|
81
|
+
},
|
|
82
|
+
"channels": [
|
|
83
|
+
{
|
|
84
|
+
"type": "web",
|
|
85
|
+
"domain": "ukrunners.co.uk"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"scope": {
|
|
89
|
+
"products": [
|
|
90
|
+
"EB-RUN-V3"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"expires": "2026-09-01T00:00:00Z"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "auth_04",
|
|
97
|
+
"revocation_id": "rv_R1s2T3u4V5w6X7y8",
|
|
98
|
+
"retailer": {
|
|
99
|
+
"name": "Brit Retail"
|
|
100
|
+
},
|
|
101
|
+
"channels": [
|
|
102
|
+
{
|
|
103
|
+
"type": "amazon",
|
|
104
|
+
"domain": "amazon.co.uk",
|
|
105
|
+
"seller_id": "A9Z8Y7X6W5V4U3"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"scope": {
|
|
109
|
+
"product_lines": [
|
|
110
|
+
"all"
|
|
111
|
+
],
|
|
112
|
+
"products": [
|
|
113
|
+
"EB-DTC-1"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"signature": {
|
|
119
|
+
"kid": "ar-20260928-6e37",
|
|
120
|
+
"jws": "eyJhbGciOiJFZERTQSIsImtpZCI6ImFyLTIwMjYwOTI4LTZlMzcifQ..c2lnbmF0dXJlLXBsYWNlaG9sZGVy"
|
|
121
|
+
},
|
|
122
|
+
"catalog": [
|
|
123
|
+
{
|
|
124
|
+
"id": "EB-TEE-BLK-M",
|
|
125
|
+
"name": "Classic Tee, Black, M",
|
|
126
|
+
"product_line": "Classic Tee",
|
|
127
|
+
"attributes": {
|
|
128
|
+
"color": "Black",
|
|
129
|
+
"size": "M"
|
|
130
|
+
},
|
|
131
|
+
"gtin": "00012345678905",
|
|
132
|
+
"asins": [
|
|
133
|
+
"B0EXAMPLE1"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "EB-TEE-WHT-M",
|
|
138
|
+
"name": "Classic Tee, White, M",
|
|
139
|
+
"product_line": "Classic Tee",
|
|
140
|
+
"gtin": "4006381333931",
|
|
141
|
+
"asins": [
|
|
142
|
+
"B0EXAMPLE2"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "EB-RUN-V2",
|
|
147
|
+
"name": "Runner V2",
|
|
148
|
+
"product_line": "Running",
|
|
149
|
+
"gtin": "96385074"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "EB-RUN-V3",
|
|
153
|
+
"name": "Runner V3",
|
|
154
|
+
"product_line": "Running",
|
|
155
|
+
"asins": [
|
|
156
|
+
"B0EXAMPLE3"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "EB-DTC-1",
|
|
161
|
+
"name": "Founders Edition",
|
|
162
|
+
"product_line": "Limited",
|
|
163
|
+
"gtin": "12345678901231"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"exclusions": {
|
|
167
|
+
"products": [
|
|
168
|
+
"EB-DTC-1"
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"request": {
|
|
173
|
+
"brand_domain": "brand.example",
|
|
174
|
+
"channel": {
|
|
175
|
+
"type": "amazon",
|
|
176
|
+
"domain": "amazon.com",
|
|
177
|
+
"seller_id": "A1B2C3D4E5F6G7"
|
|
178
|
+
},
|
|
179
|
+
"product": {
|
|
180
|
+
"gtin": "012345678905"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"now": "2026-09-28T14:05:00Z",
|
|
184
|
+
"expect": {
|
|
185
|
+
"status": "authorized",
|
|
186
|
+
"authorization_id": "auth_01J9X2",
|
|
187
|
+
"product": {
|
|
188
|
+
"in_catalog": true,
|
|
189
|
+
"id": "EB-TEE-BLK-M",
|
|
190
|
+
"product_line": "Classic Tee"
|
|
191
|
+
},
|
|
192
|
+
"signals": []
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"list": {
|
|
3
|
+
"spec": "authorized-retailers/0.2",
|
|
4
|
+
"brand": {
|
|
5
|
+
"name": "Example Brand",
|
|
6
|
+
"domains": [
|
|
7
|
+
"brand.example",
|
|
8
|
+
"brand.co.uk"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"public": true,
|
|
12
|
+
"issued": "2026-09-28T14:00:00Z",
|
|
13
|
+
"valid_until": "2026-09-28T14:15:00Z",
|
|
14
|
+
"stale_until": "2026-09-29T14:00:00Z",
|
|
15
|
+
"authorizations": [
|
|
16
|
+
{
|
|
17
|
+
"id": "auth_01J9X2",
|
|
18
|
+
"revocation_id": "rv_Q2l8dX4bT0aN5kPw",
|
|
19
|
+
"retailer": {
|
|
20
|
+
"name": "Example Retail LLC",
|
|
21
|
+
"entity_id": "ent_7Q4M"
|
|
22
|
+
},
|
|
23
|
+
"channels": [
|
|
24
|
+
{
|
|
25
|
+
"type": "amazon",
|
|
26
|
+
"domain": "amazon.com",
|
|
27
|
+
"seller_id": "A1B2C3D4E5F6G7"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "walmart",
|
|
31
|
+
"domain": "walmart.com",
|
|
32
|
+
"seller_id": "101234567"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "web",
|
|
36
|
+
"domain": "retailer.example"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"scope": {
|
|
40
|
+
"territories": [
|
|
41
|
+
"US"
|
|
42
|
+
],
|
|
43
|
+
"product_lines": [
|
|
44
|
+
"Classic Tee"
|
|
45
|
+
],
|
|
46
|
+
"exclude_products": [
|
|
47
|
+
"EB-TEE-WHT-M"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"proposed_by": null
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "auth_02",
|
|
54
|
+
"revocation_id": "rv_A1b2C3d4E5f6G7h8",
|
|
55
|
+
"retailer": {
|
|
56
|
+
"name": "Global Shoes"
|
|
57
|
+
},
|
|
58
|
+
"channels": [
|
|
59
|
+
{
|
|
60
|
+
"type": "web",
|
|
61
|
+
"domain": "globalshoes.example"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"scope": {
|
|
65
|
+
"territories": [
|
|
66
|
+
"*"
|
|
67
|
+
],
|
|
68
|
+
"product_lines": [
|
|
69
|
+
"all"
|
|
70
|
+
],
|
|
71
|
+
"exclude_product_lines": [
|
|
72
|
+
"Running"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "auth_03",
|
|
78
|
+
"revocation_id": "rv_J9k8L7m6N5o4P3q2",
|
|
79
|
+
"retailer": {
|
|
80
|
+
"name": "UK Runners"
|
|
81
|
+
},
|
|
82
|
+
"channels": [
|
|
83
|
+
{
|
|
84
|
+
"type": "web",
|
|
85
|
+
"domain": "ukrunners.co.uk"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"scope": {
|
|
89
|
+
"products": [
|
|
90
|
+
"EB-RUN-V3"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"expires": "2026-09-01T00:00:00Z"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "auth_04",
|
|
97
|
+
"revocation_id": "rv_R1s2T3u4V5w6X7y8",
|
|
98
|
+
"retailer": {
|
|
99
|
+
"name": "Brit Retail"
|
|
100
|
+
},
|
|
101
|
+
"channels": [
|
|
102
|
+
{
|
|
103
|
+
"type": "amazon",
|
|
104
|
+
"domain": "amazon.co.uk",
|
|
105
|
+
"seller_id": "A9Z8Y7X6W5V4U3"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"scope": {
|
|
109
|
+
"product_lines": [
|
|
110
|
+
"all"
|
|
111
|
+
],
|
|
112
|
+
"products": [
|
|
113
|
+
"EB-DTC-1"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"signature": {
|
|
119
|
+
"kid": "ar-20260928-6e37",
|
|
120
|
+
"jws": "eyJhbGciOiJFZERTQSIsImtpZCI6ImFyLTIwMjYwOTI4LTZlMzcifQ..c2lnbmF0dXJlLXBsYWNlaG9sZGVy"
|
|
121
|
+
},
|
|
122
|
+
"catalog": [
|
|
123
|
+
{
|
|
124
|
+
"id": "EB-TEE-BLK-M",
|
|
125
|
+
"name": "Classic Tee, Black, M",
|
|
126
|
+
"product_line": "Classic Tee",
|
|
127
|
+
"attributes": {
|
|
128
|
+
"color": "Black",
|
|
129
|
+
"size": "M"
|
|
130
|
+
},
|
|
131
|
+
"gtin": "00012345678905",
|
|
132
|
+
"asins": [
|
|
133
|
+
"B0EXAMPLE1"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "EB-TEE-WHT-M",
|
|
138
|
+
"name": "Classic Tee, White, M",
|
|
139
|
+
"product_line": "Classic Tee",
|
|
140
|
+
"gtin": "4006381333931",
|
|
141
|
+
"asins": [
|
|
142
|
+
"B0EXAMPLE2"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "EB-RUN-V2",
|
|
147
|
+
"name": "Runner V2",
|
|
148
|
+
"product_line": "Running",
|
|
149
|
+
"gtin": "96385074"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "EB-RUN-V3",
|
|
153
|
+
"name": "Runner V3",
|
|
154
|
+
"product_line": "Running",
|
|
155
|
+
"asins": [
|
|
156
|
+
"B0EXAMPLE3"
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "EB-DTC-1",
|
|
161
|
+
"name": "Founders Edition",
|
|
162
|
+
"product_line": "Limited",
|
|
163
|
+
"gtin": "12345678901231"
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"exclusions": {
|
|
167
|
+
"products": [
|
|
168
|
+
"EB-DTC-1"
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"request": {
|
|
173
|
+
"brand_domain": "brand.example",
|
|
174
|
+
"channel": {
|
|
175
|
+
"type": "amazon",
|
|
176
|
+
"domain": "amazon.com",
|
|
177
|
+
"seller_id": "A1B2C3D4E5F6G7"
|
|
178
|
+
},
|
|
179
|
+
"product": {
|
|
180
|
+
"asin": "B0EXAMPLE1"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"now": "2026-09-28T14:05:00Z",
|
|
184
|
+
"expect": {
|
|
185
|
+
"status": "authorized",
|
|
186
|
+
"authorization_id": "auth_01J9X2",
|
|
187
|
+
"product": {
|
|
188
|
+
"in_catalog": true,
|
|
189
|
+
"id": "EB-TEE-BLK-M",
|
|
190
|
+
"product_line": "Classic Tee"
|
|
191
|
+
},
|
|
192
|
+
"signals": []
|
|
193
|
+
}
|
|
194
|
+
}
|