Skip to content

Commit 7174854

Browse files
authored
DEVDOCS-6566 - Updated to put Store Hash into auth info rather than p… (#1132)
…arameters for clarity <!-- Ticket number or summary of work --> # [DEVDOCS-6566] ## What changed? * Adjusted placement of X-Store-Hash for clarity ## Release notes draft * We've moved X-Store-Hash into authentication info rather than parameters to clarify its usage. ## Anything else? <!-- Add related PRs, salient notes, additional ticket numbers, etc. --> ping { @bigcommerce/dev-docs-team } [DEVDOCS-6566]: https://bigcommercecloud.atlassian.net/browse/DEVDOCS-6566?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent ede7486 commit 7174854

File tree

11 files changed

+122
-204
lines changed

11 files changed

+122
-204
lines changed

docs/b2b-edition/specs/api-v3/address/address.yaml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ tags:
2222
- name: Addresses
2323
security:
2424
- X-Auth-Token: []
25+
X-Store-Hash: []
2526
paths:
2627
/countries:
27-
parameters:
28-
- $ref: "#/components/parameters/X-Store-Hash"
2928
get:
3029
summary: Get a Country
3130
tags:
@@ -121,8 +120,6 @@ paths:
121120
meta:
122121
message: Resource not found
123122
/states:
124-
parameters:
125-
- $ref: "#/components/parameters/X-Store-Hash"
126123
get:
127124
summary: Get a State
128125
tags:
@@ -395,8 +392,6 @@ paths:
395392
- code
396393
- data
397394
- meta
398-
parameters:
399-
- $ref: "#/components/parameters/X-Store-Hash"
400395
post:
401396
summary: Create a Company Address
402397
operationId: post-companies-companyId-addresses
@@ -515,7 +510,6 @@ paths:
515510
message: "Parameter Error"
516511
'/addresses/{addressId}':
517512
parameters:
518-
- $ref: "#/components/parameters/X-Store-Hash"
519513
- schema:
520514
type: string
521515
name: addressId
@@ -652,8 +646,6 @@ paths:
652646
schema:
653647
$ref: '#/components/schemas/responseNotFound'
654648
/addresses/bulk:
655-
parameters:
656-
- $ref: "#/components/parameters/X-Store-Hash"
657649
post:
658650
summary: Bulk Create Addresses
659651
operationId: post-addresses
@@ -887,8 +879,6 @@ paths:
887879
meta:
888880
message: "Parameter Error"
889881
/addresses/extra-fields:
890-
parameters:
891-
- $ref: "#/components/parameters/X-Store-Hash"
892882
get:
893883
summary: Get Address Extra Field Configs
894884
tags:
@@ -988,14 +978,6 @@ paths:
988978
- meta
989979
components:
990980
parameters:
991-
X-Store-Hash:
992-
name: X-Store-Hash
993-
in: header
994-
required: true
995-
schema:
996-
type: string
997-
example: abc123
998-
description: The unique store hash associated with a BigCommerce store that has B2B Edition enabled.
999981
limit:
1000982
name: limit
1001983
in: query
@@ -1305,6 +1287,16 @@ components:
13051287
- data
13061288
- meta
13071289
securitySchemes:
1290+
X-Store-Hash:
1291+
name: X-Store-Hash
1292+
description: |-
1293+
### Authentication header
1294+
1295+
| Header | Argument | Description |
1296+
|:-------|:---------|:------------|
1297+
| `X-Store-Hash` | `store_hash` | The unique store hash associated with a BigCommerce store that has B2B Edition enabled. |
1298+
type: apiKey
1299+
in: header
13081300
X-Auth-Token:
13091301
name: X-Auth-Token
13101302
description: |-

docs/b2b-edition/specs/api-v3/channel/channel.yaml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ servers:
2121
- url: 'https://api-b2b.bigcommerce.com/api/v3/io'
2222
security:
2323
- X-Auth-Token: []
24+
X-Store-Hash: []
2425
tags:
2526
- name: Channels
2627
paths:
2728
/channels:
28-
parameters:
29-
- $ref: "#/components/parameters/X-Store-Hash"
3029
get:
3130
summary: "Get all Channels"
3231
tags:
@@ -72,7 +71,6 @@ paths:
7271
example: "Multi storefront is not enabled"
7372
/channels/{channel_id}:
7473
parameters:
75-
- $ref: "#/components/parameters/X-Store-Hash"
7674
- name: channel_id
7775
in: path
7876
required: true
@@ -137,15 +135,6 @@ paths:
137135
description: Error message.
138136
example: "Channel does not exist"
139137
components:
140-
parameters:
141-
X-Store-Hash:
142-
name: X-Store-Hash
143-
in: header
144-
required: true
145-
schema:
146-
type: string
147-
example: abc123
148-
description: The unique store hash associated with a BigCommerce store that has B2B Edition enabled.
149138
schemas:
150139
Channel:
151140
type: object
@@ -213,6 +202,16 @@ components:
213202
description: "The [Unix Timestap](https://www.unixtimestamp.com/) last update date for the channel."
214203
example: "1750437336"
215204
securitySchemes:
205+
X-Store-Hash:
206+
name: X-Store-Hash
207+
description: |-
208+
### Authentication header
209+
210+
| Header | Argument | Description |
211+
|:-------|:---------|:------------|
212+
| `X-Store-Hash` | `store_hash` | The unique store hash associated with a BigCommerce store that has B2B Edition enabled. |
213+
type: apiKey
214+
in: header
216215
X-Auth-Token:
217216
name: X-Auth-Token
218217
description: |-

docs/b2b-edition/specs/api-v3/company/company.yaml

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,14 @@ servers:
110110
- url: "https://api-b2b.bigcommerce.com/api/v3/io"
111111
security:
112112
- X-Auth-Token: []
113+
- X-Store-Hash: []
113114
tags:
114115
- name: Companies
115116
- name: Company Roles and Permissions
116117
- name: Account Hierarchies
117118

118119
paths:
119120
/companies:
120-
parameters:
121-
- $ref: "#/components/parameters/X-Store-Hash"
122121
get:
123122
tags:
124123
- Companies
@@ -487,7 +486,6 @@ paths:
487486
x-codegen-request-body-name: body
488487
/companies/{companyId}:
489488
parameters:
490-
- $ref: "#/components/parameters/X-Store-Hash"
491489
- $ref: "#/components/parameters/companyId"
492490
get:
493491
tags:
@@ -631,7 +629,6 @@ paths:
631629
message: This resource is not found.
632630
/customer-groups/{customerGroupId}/companies:
633631
parameters:
634-
- $ref: "#/components/parameters/X-Store-Hash"
635632
- name: customerGroupId
636633
in: path
637634
required: true
@@ -777,8 +774,6 @@ paths:
777774
"404":
778775
$ref: "#/components/responses/ERROR_404_Data"
779776
/companies/bulk:
780-
parameters:
781-
- $ref: "#/components/parameters/X-Store-Hash"
782777
post:
783778
tags:
784779
- Companies
@@ -1064,7 +1059,6 @@ paths:
10641059
x-codegen-request-body-name: body
10651060
/companies/{companyId}/catalogs:
10661061
parameters:
1067-
- $ref: "#/components/parameters/X-Store-Hash"
10681062
- $ref: "#/components/parameters/companyId"
10691063
put:
10701064
tags:
@@ -1090,7 +1084,6 @@ paths:
10901084
description: "Not Allowed; occurs if the store is using Independent Companies behavior"
10911085
/companies/{companyId}/status:
10921086
parameters:
1093-
- $ref: "#/components/parameters/X-Store-Hash"
10941087
- $ref: "#/components/parameters/companyId"
10951088
put:
10961089
tags:
@@ -1118,8 +1111,6 @@ paths:
11181111
"200":
11191112
$ref: "#/components/responses/RESPONSE_200_UPDATE"
11201113
/companies/extra-fields:
1121-
parameters:
1122-
- $ref: "#/components/parameters/X-Store-Hash"
11231114
get:
11241115
tags:
11251116
- Companies
@@ -1273,8 +1264,6 @@ paths:
12731264
- Manufacturing
12741265
x-internal: false
12751266
/companies/permissions:
1276-
parameters:
1277-
- $ref: "#/components/parameters/X-Store-Hash"
12781267
get:
12791268
tags:
12801269
- Company Roles and Permissions
@@ -1379,7 +1368,6 @@ paths:
13791368
x-internal: false
13801369
/companies/permissions/{permissionId}:
13811370
parameters:
1382-
- $ref: "#/components/parameters/X-Store-Hash"
13831371
- name: permissionId
13841372
in: path
13851373
required: true
@@ -1458,8 +1446,6 @@ paths:
14581446
$ref: "#/components/responses/RESPONSE_200_Base"
14591447
x-internal: false
14601448
/companies/roles:
1461-
parameters:
1462-
- $ref: "#/components/parameters/X-Store-Hash"
14631449
get:
14641450
tags:
14651451
- Company Roles and Permissions
@@ -1565,7 +1551,6 @@ paths:
15651551
x-internal: false
15661552
/companies/roles/{roleId}:
15671553
parameters:
1568-
- $ref: "#/components/parameters/X-Store-Hash"
15691554
- name: roleId
15701555
in: path
15711556
required: true
@@ -1661,7 +1646,6 @@ paths:
16611646
x-internal: false
16621647
/companies/{companyId}/attachments:
16631648
parameters:
1664-
- $ref: "#/components/parameters/X-Store-Hash"
16651649
- $ref: "#/components/parameters/companyId"
16661650
get:
16671651
tags:
@@ -1711,7 +1695,6 @@ paths:
17111695
$ref: "#/components/responses/RESPONSE_200_ATTACHMENT"
17121696
/companies/{companyId}/attachments/{attachmentId}:
17131697
parameters:
1714-
- $ref: "#/components/parameters/X-Store-Hash"
17151698
- $ref: "#/components/parameters/companyId"
17161699
- name: attachmentId
17171700
in: path
@@ -1732,7 +1715,6 @@ paths:
17321715
$ref: "#/components/responses/RESPONSE_200_Base"
17331716
/companies/{companyId}/subsidiaries:
17341717
parameters:
1735-
- $ref: "#/components/parameters/X-Store-Hash"
17361718
- $ref: "#/components/parameters/companyId"
17371719
get:
17381720
tags:
@@ -1821,7 +1803,6 @@ paths:
18211803
$ref: "#/components/responses/ERROR_404_Parameter"
18221804
/companies/{companyId}/subsidiaries/{childCompanyId}:
18231805
parameters:
1824-
- $ref: "#/components/parameters/X-Store-Hash"
18251806
- $ref: "#/components/parameters/companyId"
18261807
- name: childCompanyId
18271808
in: path
@@ -1868,7 +1849,6 @@ paths:
18681849
"1": Invalid child company ID.
18691850
/companies/{companyId}/parent:
18701851
parameters:
1871-
- $ref: "#/components/parameters/X-Store-Hash"
18721852
- $ref: "#/components/parameters/companyId"
18731853
post:
18741854
tags:
@@ -1948,7 +1928,6 @@ paths:
19481928
"1": The parent company has reached the maximum layer.
19491929
/companies/{companyId}/hierarchy:
19501930
parameters:
1951-
- $ref: "#/components/parameters/X-Store-Hash"
19521931
- $ref: "#/components/parameters/companyId"
19531932
- $ref: "#/components/parameters/paginationOffset"
19541933
- $ref: "#/components/parameters/paginationLimit"
@@ -2659,14 +2638,6 @@ components:
26592638
meta:
26602639
message: SUCCESS
26612640
parameters:
2662-
X-Store-Hash:
2663-
name: X-Store-Hash
2664-
in: header
2665-
required: true
2666-
schema:
2667-
type: string
2668-
example: abc123
2669-
description: The unique store hash associated with a BigCommerce store that has B2B Edition enabled.
26702641
paginationLimit:
26712642
name: limit
26722643
in: query
@@ -2692,6 +2663,16 @@ components:
26922663
description: Unique numeric ID of the Company account.
26932664
example: 123456
26942665
securitySchemes:
2666+
X-Store-Hash:
2667+
name: X-Store-Hash
2668+
description: |-
2669+
### Authentication header
2670+
2671+
| Header | Argument | Description |
2672+
|:-------|:---------|:------------|
2673+
| `X-Store-Hash` | `store_hash` | The unique store hash associated with a BigCommerce store that has B2B Edition enabled. |
2674+
type: apiKey
2675+
in: header
26952676
X-Auth-Token:
26962677
name: X-Auth-Token
26972678
description: |-

0 commit comments

Comments
 (0)