@wevion/cli 1.0.4452 → 1.0.4458
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/openapi.json +576 -34
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -352910,7 +352910,7 @@
|
|
|
352910
352910
|
"tags": [
|
|
352911
352911
|
"shopify"
|
|
352912
352912
|
],
|
|
352913
|
-
"description": "Creates a Shopify OAuth install URL for the explicit destination workspace (x-team-id or active team scope) and requested shop domain. A store already connected to another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED unless confirm_move=true, and only to a caller who can manage stores in that workspace (manager or higher there, raised by the backoffice lever asset_permission_floors): to anyone else it answers 403 STORE_MOVE_FORBIDDEN, which names no workspace, with or without confirm_move. A
|
|
352913
|
+
"description": "Creates a Shopify OAuth install URL for the explicit destination workspace (x-team-id or active team scope) and requested shop domain. A store already connected to another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED unless confirm_move=true, and only to a caller who can manage stores in that workspace (manager or higher there, raised by the backoffice lever asset_permission_floors): to anyone else it answers 403 STORE_MOVE_FORBIDDEN, which names no workspace, with or without confirm_move. A workspace holds the stores of one domain (Shopify and WooCommerce together): a store on another registrable domain than the stores already there answers 409 STORE_SECOND_IN_WORKSPACE with reason=different_domain (it goes in another workspace, nothing lets it in); the same name on another extension (marchio.de next to marchio.it) answers reason=owner_choice to the owner of the organization, who keeps it here with store_relation=same_workspace, and reason=owner_required to anyone else. The backoffice can switch the check off (lever store_workspace_rule) or exempt a workspace. When the domain of the shop is not known yet (never connected, storefront without a redirect) the OAuth starts and the callback decides. store_relation=same_brand was retired: 400 STORE_RELATION_RETIRED. A store another organization already reads answers 409 STORE_CONSENT_REQUIRED (ask the merchant's consent instead). A new store counts against the plan's catalog quota (403 PLAN_LIMIT_EXCEEDED). With app_store_arrival on a store already connected here the response is an opening (opened=true) and no OAuth happens; the ticket stays valid after a 409. The optional return_to (a same-origin relative path) is where the callback sends the browser back; unsafe values fall back to the Shopify integration page. A shop domain that is not *.myshopify.com answers 400 SHOPIFY_INVALID_SHOP_DOMAIN, an App Store ticket not valid for this shop 400 SHOPIFY_STORE_ARRIVAL_INVALID; a failure on our side answers 500 SHOPIFY_INSTALL_FAILED with a fixed message.",
|
|
352914
352914
|
"requestBody": {
|
|
352915
352915
|
"required": true,
|
|
352916
352916
|
"content": {
|
|
@@ -352945,10 +352945,23 @@
|
|
|
352945
352945
|
"type": "string"
|
|
352946
352946
|
},
|
|
352947
352947
|
"store_relation": {
|
|
352948
|
-
"description": "
|
|
352949
|
-
"
|
|
352950
|
-
|
|
352951
|
-
|
|
352948
|
+
"description": "Without it, a store whose domain differs from the stores already in the destination workspace answers 409 STORE_SECOND_IN_WORKSPACE. Another workspace has no value here: connect the store to another workspace.",
|
|
352949
|
+
"anyOf": [
|
|
352950
|
+
{
|
|
352951
|
+
"description": "Regola B per dominio: the owner of the organization keeps the store in this workspace although its domain has the same name as a store already here on another extension (for example marchio.de next to marchio.it). Only the owner (or platform staff) can give it: anyone else gets 409 STORE_SECOND_IN_WORKSPACE with reason owner_required.",
|
|
352952
|
+
"type": "string",
|
|
352953
|
+
"enum": [
|
|
352954
|
+
"same_workspace"
|
|
352955
|
+
]
|
|
352956
|
+
},
|
|
352957
|
+
{
|
|
352958
|
+
"deprecated": true,
|
|
352959
|
+
"description": "Retired on 29/10/2026: answers 400 STORE_RELATION_RETIRED and connects nothing.",
|
|
352960
|
+
"type": "string",
|
|
352961
|
+
"enum": [
|
|
352962
|
+
"same_brand"
|
|
352963
|
+
]
|
|
352964
|
+
}
|
|
352952
352965
|
]
|
|
352953
352966
|
}
|
|
352954
352967
|
}
|
|
@@ -352996,6 +353009,34 @@
|
|
|
352996
353009
|
"application/json": {
|
|
352997
353010
|
"schema": {
|
|
352998
353011
|
"anyOf": [
|
|
353012
|
+
{
|
|
353013
|
+
"additionalProperties": false,
|
|
353014
|
+
"description": "store_relation=same_brand was retired on 29/10/2026: a workspace now holds the stores of one domain. Nothing was connected. Retry without it to read the answer for this store (409 STORE_SECOND_IN_WORKSPACE says what is possible).",
|
|
353015
|
+
"type": "object",
|
|
353016
|
+
"required": [
|
|
353017
|
+
"statusCode",
|
|
353018
|
+
"error",
|
|
353019
|
+
"message",
|
|
353020
|
+
"code"
|
|
353021
|
+
],
|
|
353022
|
+
"properties": {
|
|
353023
|
+
"statusCode": {
|
|
353024
|
+
"type": "number"
|
|
353025
|
+
},
|
|
353026
|
+
"error": {
|
|
353027
|
+
"type": "string"
|
|
353028
|
+
},
|
|
353029
|
+
"message": {
|
|
353030
|
+
"type": "string"
|
|
353031
|
+
},
|
|
353032
|
+
"code": {
|
|
353033
|
+
"type": "string",
|
|
353034
|
+
"enum": [
|
|
353035
|
+
"STORE_RELATION_RETIRED"
|
|
353036
|
+
]
|
|
353037
|
+
}
|
|
353038
|
+
}
|
|
353039
|
+
},
|
|
352999
353040
|
{
|
|
353000
353041
|
"type": "object",
|
|
353001
353042
|
"required": [
|
|
@@ -353194,19 +353235,23 @@
|
|
|
353194
353235
|
},
|
|
353195
353236
|
{
|
|
353196
353237
|
"additionalProperties": false,
|
|
353197
|
-
"description": "The destination workspace already has
|
|
353238
|
+
"description": "The destination workspace already has stores, and a workspace holds the stores of one domain. reason=different_domain: the store has another name, it goes in another workspace of the organization (domain_workspace when one already has that domain and the caller can connect stores there, else a new one); no value of the body lets it in. reason=owner_choice: the same name on another extension (marchio.de next to marchio.it), the caller owns the organization: retry with store_relation=same_workspace to keep it here, or connect it to another workspace. reason=owner_required: the same case, but only the owner of the organization can choose: nothing lets the caller in.",
|
|
353198
353239
|
"type": "object",
|
|
353199
353240
|
"required": [
|
|
353200
353241
|
"statusCode",
|
|
353201
353242
|
"error",
|
|
353202
353243
|
"message",
|
|
353203
353244
|
"code",
|
|
353245
|
+
"reason",
|
|
353204
353246
|
"choices",
|
|
353247
|
+
"domain_workspace",
|
|
353248
|
+
"existing_domain",
|
|
353205
353249
|
"existing_platform",
|
|
353206
353250
|
"existing_store",
|
|
353207
353251
|
"organization_id",
|
|
353208
353252
|
"platform",
|
|
353209
353253
|
"store",
|
|
353254
|
+
"store_domain",
|
|
353210
353255
|
"team_id",
|
|
353211
353256
|
"workspace_name"
|
|
353212
353257
|
],
|
|
@@ -353226,6 +353271,28 @@
|
|
|
353226
353271
|
"STORE_SECOND_IN_WORKSPACE"
|
|
353227
353272
|
]
|
|
353228
353273
|
},
|
|
353274
|
+
"reason": {
|
|
353275
|
+
"anyOf": [
|
|
353276
|
+
{
|
|
353277
|
+
"type": "string",
|
|
353278
|
+
"enum": [
|
|
353279
|
+
"different_domain"
|
|
353280
|
+
]
|
|
353281
|
+
},
|
|
353282
|
+
{
|
|
353283
|
+
"type": "string",
|
|
353284
|
+
"enum": [
|
|
353285
|
+
"owner_choice"
|
|
353286
|
+
]
|
|
353287
|
+
},
|
|
353288
|
+
{
|
|
353289
|
+
"type": "string",
|
|
353290
|
+
"enum": [
|
|
353291
|
+
"owner_required"
|
|
353292
|
+
]
|
|
353293
|
+
}
|
|
353294
|
+
]
|
|
353295
|
+
},
|
|
353229
353296
|
"choices": {
|
|
353230
353297
|
"type": "array",
|
|
353231
353298
|
"items": {
|
|
@@ -353233,7 +353300,7 @@
|
|
|
353233
353300
|
{
|
|
353234
353301
|
"type": "string",
|
|
353235
353302
|
"enum": [
|
|
353236
|
-
"
|
|
353303
|
+
"same_workspace"
|
|
353237
353304
|
]
|
|
353238
353305
|
},
|
|
353239
353306
|
{
|
|
@@ -353245,6 +353312,40 @@
|
|
|
353245
353312
|
]
|
|
353246
353313
|
}
|
|
353247
353314
|
},
|
|
353315
|
+
"domain_workspace": {
|
|
353316
|
+
"anyOf": [
|
|
353317
|
+
{
|
|
353318
|
+
"additionalProperties": false,
|
|
353319
|
+
"type": "object",
|
|
353320
|
+
"required": [
|
|
353321
|
+
"team_id",
|
|
353322
|
+
"workspace_name"
|
|
353323
|
+
],
|
|
353324
|
+
"properties": {
|
|
353325
|
+
"team_id": {
|
|
353326
|
+
"format": "uuid",
|
|
353327
|
+
"type": "string"
|
|
353328
|
+
},
|
|
353329
|
+
"workspace_name": {
|
|
353330
|
+
"anyOf": [
|
|
353331
|
+
{
|
|
353332
|
+
"type": "string"
|
|
353333
|
+
},
|
|
353334
|
+
{
|
|
353335
|
+
"type": "null"
|
|
353336
|
+
}
|
|
353337
|
+
]
|
|
353338
|
+
}
|
|
353339
|
+
}
|
|
353340
|
+
},
|
|
353341
|
+
{
|
|
353342
|
+
"type": "null"
|
|
353343
|
+
}
|
|
353344
|
+
]
|
|
353345
|
+
},
|
|
353346
|
+
"existing_domain": {
|
|
353347
|
+
"type": "string"
|
|
353348
|
+
},
|
|
353248
353349
|
"existing_platform": {
|
|
353249
353350
|
"anyOf": [
|
|
353250
353351
|
{
|
|
@@ -353287,6 +353388,9 @@
|
|
|
353287
353388
|
"store": {
|
|
353288
353389
|
"type": "string"
|
|
353289
353390
|
},
|
|
353391
|
+
"store_domain": {
|
|
353392
|
+
"type": "string"
|
|
353393
|
+
},
|
|
353290
353394
|
"team_id": {
|
|
353291
353395
|
"format": "uuid",
|
|
353292
353396
|
"type": "string"
|
|
@@ -353693,19 +353797,23 @@
|
|
|
353693
353797
|
},
|
|
353694
353798
|
{
|
|
353695
353799
|
"additionalProperties": false,
|
|
353696
|
-
"description": "The destination workspace already has
|
|
353800
|
+
"description": "The destination workspace already has stores, and a workspace holds the stores of one domain. reason=different_domain: the store has another name, it goes in another workspace of the organization (domain_workspace when one already has that domain and the caller can connect stores there, else a new one); no value of the body lets it in. reason=owner_choice: the same name on another extension (marchio.de next to marchio.it), the caller owns the organization: retry with store_relation=same_workspace to keep it here, or connect it to another workspace. reason=owner_required: the same case, but only the owner of the organization can choose: nothing lets the caller in.",
|
|
353697
353801
|
"type": "object",
|
|
353698
353802
|
"required": [
|
|
353699
353803
|
"statusCode",
|
|
353700
353804
|
"error",
|
|
353701
353805
|
"message",
|
|
353702
353806
|
"code",
|
|
353807
|
+
"reason",
|
|
353703
353808
|
"choices",
|
|
353809
|
+
"domain_workspace",
|
|
353810
|
+
"existing_domain",
|
|
353704
353811
|
"existing_platform",
|
|
353705
353812
|
"existing_store",
|
|
353706
353813
|
"organization_id",
|
|
353707
353814
|
"platform",
|
|
353708
353815
|
"store",
|
|
353816
|
+
"store_domain",
|
|
353709
353817
|
"team_id",
|
|
353710
353818
|
"workspace_name"
|
|
353711
353819
|
],
|
|
@@ -353725,6 +353833,28 @@
|
|
|
353725
353833
|
"STORE_SECOND_IN_WORKSPACE"
|
|
353726
353834
|
]
|
|
353727
353835
|
},
|
|
353836
|
+
"reason": {
|
|
353837
|
+
"anyOf": [
|
|
353838
|
+
{
|
|
353839
|
+
"type": "string",
|
|
353840
|
+
"enum": [
|
|
353841
|
+
"different_domain"
|
|
353842
|
+
]
|
|
353843
|
+
},
|
|
353844
|
+
{
|
|
353845
|
+
"type": "string",
|
|
353846
|
+
"enum": [
|
|
353847
|
+
"owner_choice"
|
|
353848
|
+
]
|
|
353849
|
+
},
|
|
353850
|
+
{
|
|
353851
|
+
"type": "string",
|
|
353852
|
+
"enum": [
|
|
353853
|
+
"owner_required"
|
|
353854
|
+
]
|
|
353855
|
+
}
|
|
353856
|
+
]
|
|
353857
|
+
},
|
|
353728
353858
|
"choices": {
|
|
353729
353859
|
"type": "array",
|
|
353730
353860
|
"items": {
|
|
@@ -353732,7 +353862,7 @@
|
|
|
353732
353862
|
{
|
|
353733
353863
|
"type": "string",
|
|
353734
353864
|
"enum": [
|
|
353735
|
-
"
|
|
353865
|
+
"same_workspace"
|
|
353736
353866
|
]
|
|
353737
353867
|
},
|
|
353738
353868
|
{
|
|
@@ -353744,6 +353874,40 @@
|
|
|
353744
353874
|
]
|
|
353745
353875
|
}
|
|
353746
353876
|
},
|
|
353877
|
+
"domain_workspace": {
|
|
353878
|
+
"anyOf": [
|
|
353879
|
+
{
|
|
353880
|
+
"additionalProperties": false,
|
|
353881
|
+
"type": "object",
|
|
353882
|
+
"required": [
|
|
353883
|
+
"team_id",
|
|
353884
|
+
"workspace_name"
|
|
353885
|
+
],
|
|
353886
|
+
"properties": {
|
|
353887
|
+
"team_id": {
|
|
353888
|
+
"format": "uuid",
|
|
353889
|
+
"type": "string"
|
|
353890
|
+
},
|
|
353891
|
+
"workspace_name": {
|
|
353892
|
+
"anyOf": [
|
|
353893
|
+
{
|
|
353894
|
+
"type": "string"
|
|
353895
|
+
},
|
|
353896
|
+
{
|
|
353897
|
+
"type": "null"
|
|
353898
|
+
}
|
|
353899
|
+
]
|
|
353900
|
+
}
|
|
353901
|
+
}
|
|
353902
|
+
},
|
|
353903
|
+
{
|
|
353904
|
+
"type": "null"
|
|
353905
|
+
}
|
|
353906
|
+
]
|
|
353907
|
+
},
|
|
353908
|
+
"existing_domain": {
|
|
353909
|
+
"type": "string"
|
|
353910
|
+
},
|
|
353747
353911
|
"existing_platform": {
|
|
353748
353912
|
"anyOf": [
|
|
353749
353913
|
{
|
|
@@ -353786,6 +353950,9 @@
|
|
|
353786
353950
|
"store": {
|
|
353787
353951
|
"type": "string"
|
|
353788
353952
|
},
|
|
353953
|
+
"store_domain": {
|
|
353954
|
+
"type": "string"
|
|
353955
|
+
},
|
|
353789
353956
|
"team_id": {
|
|
353790
353957
|
"format": "uuid",
|
|
353791
353958
|
"type": "string"
|
|
@@ -353888,7 +354055,7 @@
|
|
|
353888
354055
|
"tags": [
|
|
353889
354056
|
"shopify"
|
|
353890
354057
|
],
|
|
353891
|
-
"description": "Validates Shopify OAuth callback parameters and completes the flow the state was minted for. Install: the token is stored on the shop's installation (one per app and shop), the workspace is attached unless another workspace of the organization holds the store (code=STORE_ALREADY_ASSIGNED without a confirmed move, code=STORE_MOVE_FORBIDDEN when the person who started the install cannot manage stores there any more), the
|
|
354058
|
+
"description": "Validates Shopify OAuth callback parameters and completes the flow the state was minted for. Install: the token is stored on the shop's installation (one per app and shop), the workspace is attached unless another workspace of the organization holds the store (code=STORE_ALREADY_ASSIGNED without a confirmed move, code=STORE_MOVE_FORBIDDEN when the person who started the install cannot manage stores there any more), the store's domain (shop.domain of /shop.json, the authoritative check) does not fit the stores of the workspace (code=STORE_SECOND_IN_WORKSPACE with reason=different_domain|owner_choice|owner_required, or domain_unknown when /shop.json did not answer, and team=the destination workspace), or another organization reads it without consent (code=STORE_CONSENT_REQUIRED); a Shopify-billed organization without a contract goes to the billing notice page. Consent verification (online mode): the merchant is identified and sent to the consent page. Redirects the browser with shopify=connected|error.",
|
|
353892
354059
|
"parameters": [
|
|
353893
354060
|
{
|
|
353894
354061
|
"schema": {
|
|
@@ -356229,7 +356396,7 @@
|
|
|
356229
356396
|
"tags": [
|
|
356230
356397
|
"shopify"
|
|
356231
356398
|
],
|
|
356232
|
-
"description": "Opens a consent request for a Shopify store that another Wevion organization already reads. No OAuth and no access until the store owner or store staff approves it from the Shopify admin. Idempotent: the open request of the organization is returned. status=install_directly when no other organization reads the store (use POST /api/v1/shopify/install); status=already_connected when the store is already in this workspace. A store already in another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED when the caller can manage stores there (manager or higher), 403 STORE_MOVE_FORBIDDEN otherwise, which names no workspace; a
|
|
356399
|
+
"description": "Opens a consent request for a Shopify store that another Wevion organization already reads. No OAuth and no access until the store owner or store staff approves it from the Shopify admin. Idempotent: the open request of the organization is returned. status=install_directly when no other organization reads the store (use POST /api/v1/shopify/install); status=already_connected when the store is already in this workspace. A store already in another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED when the caller can manage stores there (manager or higher), 403 STORE_MOVE_FORBIDDEN otherwise, which names no workspace; a store whose domain does not fit the stores already in the workspace answers 409 STORE_SECOND_IN_WORKSPACE with its reason (different_domain, owner_choice, owner_required), and the owner of the organization keeps a store with the same name on another extension with store_relation=same_workspace (asked here: the merchant who grants cannot answer it; the grant checks again, and refuses a store that no longer fits). store_relation=same_brand was retired: 400 STORE_RELATION_RETIRED.",
|
|
356233
356400
|
"requestBody": {
|
|
356234
356401
|
"required": true,
|
|
356235
356402
|
"content": {
|
|
@@ -356246,10 +356413,23 @@
|
|
|
356246
356413
|
"type": "string"
|
|
356247
356414
|
},
|
|
356248
356415
|
"store_relation": {
|
|
356249
|
-
"description": "
|
|
356250
|
-
"
|
|
356251
|
-
|
|
356252
|
-
|
|
356416
|
+
"description": "Without it, a store whose domain differs from the stores already in the destination workspace answers 409 STORE_SECOND_IN_WORKSPACE. Another workspace has no value here: connect the store to another workspace.",
|
|
356417
|
+
"anyOf": [
|
|
356418
|
+
{
|
|
356419
|
+
"description": "Regola B per dominio: the owner of the organization keeps the store in this workspace although its domain has the same name as a store already here on another extension (for example marchio.de next to marchio.it). Only the owner (or platform staff) can give it: anyone else gets 409 STORE_SECOND_IN_WORKSPACE with reason owner_required.",
|
|
356420
|
+
"type": "string",
|
|
356421
|
+
"enum": [
|
|
356422
|
+
"same_workspace"
|
|
356423
|
+
]
|
|
356424
|
+
},
|
|
356425
|
+
{
|
|
356426
|
+
"deprecated": true,
|
|
356427
|
+
"description": "Retired on 29/10/2026: answers 400 STORE_RELATION_RETIRED and connects nothing.",
|
|
356428
|
+
"type": "string",
|
|
356429
|
+
"enum": [
|
|
356430
|
+
"same_brand"
|
|
356431
|
+
]
|
|
356432
|
+
}
|
|
356253
356433
|
]
|
|
356254
356434
|
}
|
|
356255
356435
|
}
|
|
@@ -356423,6 +356603,34 @@
|
|
|
356423
356603
|
"application/json": {
|
|
356424
356604
|
"schema": {
|
|
356425
356605
|
"anyOf": [
|
|
356606
|
+
{
|
|
356607
|
+
"additionalProperties": false,
|
|
356608
|
+
"description": "store_relation=same_brand was retired on 29/10/2026: a workspace now holds the stores of one domain. Nothing was connected. Retry without it to read the answer for this store (409 STORE_SECOND_IN_WORKSPACE says what is possible).",
|
|
356609
|
+
"type": "object",
|
|
356610
|
+
"required": [
|
|
356611
|
+
"statusCode",
|
|
356612
|
+
"error",
|
|
356613
|
+
"message",
|
|
356614
|
+
"code"
|
|
356615
|
+
],
|
|
356616
|
+
"properties": {
|
|
356617
|
+
"statusCode": {
|
|
356618
|
+
"type": "number"
|
|
356619
|
+
},
|
|
356620
|
+
"error": {
|
|
356621
|
+
"type": "string"
|
|
356622
|
+
},
|
|
356623
|
+
"message": {
|
|
356624
|
+
"type": "string"
|
|
356625
|
+
},
|
|
356626
|
+
"code": {
|
|
356627
|
+
"type": "string",
|
|
356628
|
+
"enum": [
|
|
356629
|
+
"STORE_RELATION_RETIRED"
|
|
356630
|
+
]
|
|
356631
|
+
}
|
|
356632
|
+
}
|
|
356633
|
+
},
|
|
356426
356634
|
{
|
|
356427
356635
|
"additionalProperties": false,
|
|
356428
356636
|
"type": "object",
|
|
@@ -356590,19 +356798,23 @@
|
|
|
356590
356798
|
},
|
|
356591
356799
|
{
|
|
356592
356800
|
"additionalProperties": false,
|
|
356593
|
-
"description": "The destination workspace already has
|
|
356801
|
+
"description": "The destination workspace already has stores, and a workspace holds the stores of one domain. reason=different_domain: the store has another name, it goes in another workspace of the organization (domain_workspace when one already has that domain and the caller can connect stores there, else a new one); no value of the body lets it in. reason=owner_choice: the same name on another extension (marchio.de next to marchio.it), the caller owns the organization: retry with store_relation=same_workspace to keep it here, or connect it to another workspace. reason=owner_required: the same case, but only the owner of the organization can choose: nothing lets the caller in.",
|
|
356594
356802
|
"type": "object",
|
|
356595
356803
|
"required": [
|
|
356596
356804
|
"statusCode",
|
|
356597
356805
|
"error",
|
|
356598
356806
|
"message",
|
|
356599
356807
|
"code",
|
|
356808
|
+
"reason",
|
|
356600
356809
|
"choices",
|
|
356810
|
+
"domain_workspace",
|
|
356811
|
+
"existing_domain",
|
|
356601
356812
|
"existing_platform",
|
|
356602
356813
|
"existing_store",
|
|
356603
356814
|
"organization_id",
|
|
356604
356815
|
"platform",
|
|
356605
356816
|
"store",
|
|
356817
|
+
"store_domain",
|
|
356606
356818
|
"team_id",
|
|
356607
356819
|
"workspace_name"
|
|
356608
356820
|
],
|
|
@@ -356622,6 +356834,28 @@
|
|
|
356622
356834
|
"STORE_SECOND_IN_WORKSPACE"
|
|
356623
356835
|
]
|
|
356624
356836
|
},
|
|
356837
|
+
"reason": {
|
|
356838
|
+
"anyOf": [
|
|
356839
|
+
{
|
|
356840
|
+
"type": "string",
|
|
356841
|
+
"enum": [
|
|
356842
|
+
"different_domain"
|
|
356843
|
+
]
|
|
356844
|
+
},
|
|
356845
|
+
{
|
|
356846
|
+
"type": "string",
|
|
356847
|
+
"enum": [
|
|
356848
|
+
"owner_choice"
|
|
356849
|
+
]
|
|
356850
|
+
},
|
|
356851
|
+
{
|
|
356852
|
+
"type": "string",
|
|
356853
|
+
"enum": [
|
|
356854
|
+
"owner_required"
|
|
356855
|
+
]
|
|
356856
|
+
}
|
|
356857
|
+
]
|
|
356858
|
+
},
|
|
356625
356859
|
"choices": {
|
|
356626
356860
|
"type": "array",
|
|
356627
356861
|
"items": {
|
|
@@ -356629,7 +356863,7 @@
|
|
|
356629
356863
|
{
|
|
356630
356864
|
"type": "string",
|
|
356631
356865
|
"enum": [
|
|
356632
|
-
"
|
|
356866
|
+
"same_workspace"
|
|
356633
356867
|
]
|
|
356634
356868
|
},
|
|
356635
356869
|
{
|
|
@@ -356641,6 +356875,40 @@
|
|
|
356641
356875
|
]
|
|
356642
356876
|
}
|
|
356643
356877
|
},
|
|
356878
|
+
"domain_workspace": {
|
|
356879
|
+
"anyOf": [
|
|
356880
|
+
{
|
|
356881
|
+
"additionalProperties": false,
|
|
356882
|
+
"type": "object",
|
|
356883
|
+
"required": [
|
|
356884
|
+
"team_id",
|
|
356885
|
+
"workspace_name"
|
|
356886
|
+
],
|
|
356887
|
+
"properties": {
|
|
356888
|
+
"team_id": {
|
|
356889
|
+
"format": "uuid",
|
|
356890
|
+
"type": "string"
|
|
356891
|
+
},
|
|
356892
|
+
"workspace_name": {
|
|
356893
|
+
"anyOf": [
|
|
356894
|
+
{
|
|
356895
|
+
"type": "string"
|
|
356896
|
+
},
|
|
356897
|
+
{
|
|
356898
|
+
"type": "null"
|
|
356899
|
+
}
|
|
356900
|
+
]
|
|
356901
|
+
}
|
|
356902
|
+
}
|
|
356903
|
+
},
|
|
356904
|
+
{
|
|
356905
|
+
"type": "null"
|
|
356906
|
+
}
|
|
356907
|
+
]
|
|
356908
|
+
},
|
|
356909
|
+
"existing_domain": {
|
|
356910
|
+
"type": "string"
|
|
356911
|
+
},
|
|
356644
356912
|
"existing_platform": {
|
|
356645
356913
|
"anyOf": [
|
|
356646
356914
|
{
|
|
@@ -356683,6 +356951,9 @@
|
|
|
356683
356951
|
"store": {
|
|
356684
356952
|
"type": "string"
|
|
356685
356953
|
},
|
|
356954
|
+
"store_domain": {
|
|
356955
|
+
"type": "string"
|
|
356956
|
+
},
|
|
356686
356957
|
"team_id": {
|
|
356687
356958
|
"format": "uuid",
|
|
356688
356959
|
"type": "string"
|
|
@@ -468643,7 +468914,7 @@
|
|
|
468643
468914
|
"tags": [
|
|
468644
468915
|
"woocommerce"
|
|
468645
468916
|
],
|
|
468646
|
-
"description": "Creates a WooCommerce authorization URL for the explicit destination workspace (x-team-id or active team scope) and requested site URL. A store already connected to another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED unless confirm_move=true, and only to a caller who can manage stores in that workspace (manager or higher there, raised by the backoffice lever asset_permission_floors): to anyone else it answers 403 STORE_MOVE_FORBIDDEN, which names no workspace. A
|
|
468917
|
+
"description": "Creates a WooCommerce authorization URL for the explicit destination workspace (x-team-id or active team scope) and requested site URL. A store already connected to another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED unless confirm_move=true, and only to a caller who can manage stores in that workspace (manager or higher there, raised by the backoffice lever asset_permission_floors): to anyone else it answers 403 STORE_MOVE_FORBIDDEN, which names no workspace. A workspace holds the stores of one domain (WooCommerce and Shopify together): a site on another registrable domain than the stores already there answers 409 STORE_SECOND_IN_WORKSPACE with reason=different_domain (it goes in another workspace, nothing lets it in); the same name on another extension (marchio.de next to marchio.it) answers reason=owner_choice to the owner of the organization, who keeps it here with store_relation=same_workspace, and reason=owner_required to anyone else. The backoffice can switch the check off (lever store_workspace_rule) or exempt a workspace. store_relation=same_brand was retired: 400 STORE_RELATION_RETIRED. A store new to the organization counts against the catalog quota. The optional return_to (a same-origin relative path) is where the browser lands after authorizing; unsafe values fall back to the WooCommerce integration page.",
|
|
468647
468918
|
"requestBody": {
|
|
468648
468919
|
"required": true,
|
|
468649
468920
|
"content": {
|
|
@@ -468668,10 +468939,23 @@
|
|
|
468668
468939
|
"type": "string"
|
|
468669
468940
|
},
|
|
468670
468941
|
"store_relation": {
|
|
468671
|
-
"description": "
|
|
468672
|
-
"
|
|
468673
|
-
|
|
468674
|
-
|
|
468942
|
+
"description": "Without it, a store whose domain differs from the stores already in the destination workspace answers 409 STORE_SECOND_IN_WORKSPACE. Another workspace has no value here: connect the store to another workspace.",
|
|
468943
|
+
"anyOf": [
|
|
468944
|
+
{
|
|
468945
|
+
"description": "Regola B per dominio: the owner of the organization keeps the store in this workspace although its domain has the same name as a store already here on another extension (for example marchio.de next to marchio.it). Only the owner (or platform staff) can give it: anyone else gets 409 STORE_SECOND_IN_WORKSPACE with reason owner_required.",
|
|
468946
|
+
"type": "string",
|
|
468947
|
+
"enum": [
|
|
468948
|
+
"same_workspace"
|
|
468949
|
+
]
|
|
468950
|
+
},
|
|
468951
|
+
{
|
|
468952
|
+
"deprecated": true,
|
|
468953
|
+
"description": "Retired on 29/10/2026: answers 400 STORE_RELATION_RETIRED and connects nothing.",
|
|
468954
|
+
"type": "string",
|
|
468955
|
+
"enum": [
|
|
468956
|
+
"same_brand"
|
|
468957
|
+
]
|
|
468958
|
+
}
|
|
468675
468959
|
]
|
|
468676
468960
|
}
|
|
468677
468961
|
}
|
|
@@ -468716,6 +469000,34 @@
|
|
|
468716
469000
|
"application/json": {
|
|
468717
469001
|
"schema": {
|
|
468718
469002
|
"anyOf": [
|
|
469003
|
+
{
|
|
469004
|
+
"additionalProperties": false,
|
|
469005
|
+
"description": "store_relation=same_brand was retired on 29/10/2026: a workspace now holds the stores of one domain. Nothing was connected. Retry without it to read the answer for this store (409 STORE_SECOND_IN_WORKSPACE says what is possible).",
|
|
469006
|
+
"type": "object",
|
|
469007
|
+
"required": [
|
|
469008
|
+
"statusCode",
|
|
469009
|
+
"error",
|
|
469010
|
+
"message",
|
|
469011
|
+
"code"
|
|
469012
|
+
],
|
|
469013
|
+
"properties": {
|
|
469014
|
+
"statusCode": {
|
|
469015
|
+
"type": "number"
|
|
469016
|
+
},
|
|
469017
|
+
"error": {
|
|
469018
|
+
"type": "string"
|
|
469019
|
+
},
|
|
469020
|
+
"message": {
|
|
469021
|
+
"type": "string"
|
|
469022
|
+
},
|
|
469023
|
+
"code": {
|
|
469024
|
+
"type": "string",
|
|
469025
|
+
"enum": [
|
|
469026
|
+
"STORE_RELATION_RETIRED"
|
|
469027
|
+
]
|
|
469028
|
+
}
|
|
469029
|
+
}
|
|
469030
|
+
},
|
|
468719
469031
|
{
|
|
468720
469032
|
"type": "object",
|
|
468721
469033
|
"required": [
|
|
@@ -468879,19 +469191,23 @@
|
|
|
468879
469191
|
},
|
|
468880
469192
|
{
|
|
468881
469193
|
"additionalProperties": false,
|
|
468882
|
-
"description": "The destination workspace already has
|
|
469194
|
+
"description": "The destination workspace already has stores, and a workspace holds the stores of one domain. reason=different_domain: the store has another name, it goes in another workspace of the organization (domain_workspace when one already has that domain and the caller can connect stores there, else a new one); no value of the body lets it in. reason=owner_choice: the same name on another extension (marchio.de next to marchio.it), the caller owns the organization: retry with store_relation=same_workspace to keep it here, or connect it to another workspace. reason=owner_required: the same case, but only the owner of the organization can choose: nothing lets the caller in.",
|
|
468883
469195
|
"type": "object",
|
|
468884
469196
|
"required": [
|
|
468885
469197
|
"statusCode",
|
|
468886
469198
|
"error",
|
|
468887
469199
|
"message",
|
|
468888
469200
|
"code",
|
|
469201
|
+
"reason",
|
|
468889
469202
|
"choices",
|
|
469203
|
+
"domain_workspace",
|
|
469204
|
+
"existing_domain",
|
|
468890
469205
|
"existing_platform",
|
|
468891
469206
|
"existing_store",
|
|
468892
469207
|
"organization_id",
|
|
468893
469208
|
"platform",
|
|
468894
469209
|
"store",
|
|
469210
|
+
"store_domain",
|
|
468895
469211
|
"team_id",
|
|
468896
469212
|
"workspace_name"
|
|
468897
469213
|
],
|
|
@@ -468911,6 +469227,28 @@
|
|
|
468911
469227
|
"STORE_SECOND_IN_WORKSPACE"
|
|
468912
469228
|
]
|
|
468913
469229
|
},
|
|
469230
|
+
"reason": {
|
|
469231
|
+
"anyOf": [
|
|
469232
|
+
{
|
|
469233
|
+
"type": "string",
|
|
469234
|
+
"enum": [
|
|
469235
|
+
"different_domain"
|
|
469236
|
+
]
|
|
469237
|
+
},
|
|
469238
|
+
{
|
|
469239
|
+
"type": "string",
|
|
469240
|
+
"enum": [
|
|
469241
|
+
"owner_choice"
|
|
469242
|
+
]
|
|
469243
|
+
},
|
|
469244
|
+
{
|
|
469245
|
+
"type": "string",
|
|
469246
|
+
"enum": [
|
|
469247
|
+
"owner_required"
|
|
469248
|
+
]
|
|
469249
|
+
}
|
|
469250
|
+
]
|
|
469251
|
+
},
|
|
468914
469252
|
"choices": {
|
|
468915
469253
|
"type": "array",
|
|
468916
469254
|
"items": {
|
|
@@ -468918,7 +469256,7 @@
|
|
|
468918
469256
|
{
|
|
468919
469257
|
"type": "string",
|
|
468920
469258
|
"enum": [
|
|
468921
|
-
"
|
|
469259
|
+
"same_workspace"
|
|
468922
469260
|
]
|
|
468923
469261
|
},
|
|
468924
469262
|
{
|
|
@@ -468930,6 +469268,40 @@
|
|
|
468930
469268
|
]
|
|
468931
469269
|
}
|
|
468932
469270
|
},
|
|
469271
|
+
"domain_workspace": {
|
|
469272
|
+
"anyOf": [
|
|
469273
|
+
{
|
|
469274
|
+
"additionalProperties": false,
|
|
469275
|
+
"type": "object",
|
|
469276
|
+
"required": [
|
|
469277
|
+
"team_id",
|
|
469278
|
+
"workspace_name"
|
|
469279
|
+
],
|
|
469280
|
+
"properties": {
|
|
469281
|
+
"team_id": {
|
|
469282
|
+
"format": "uuid",
|
|
469283
|
+
"type": "string"
|
|
469284
|
+
},
|
|
469285
|
+
"workspace_name": {
|
|
469286
|
+
"anyOf": [
|
|
469287
|
+
{
|
|
469288
|
+
"type": "string"
|
|
469289
|
+
},
|
|
469290
|
+
{
|
|
469291
|
+
"type": "null"
|
|
469292
|
+
}
|
|
469293
|
+
]
|
|
469294
|
+
}
|
|
469295
|
+
}
|
|
469296
|
+
},
|
|
469297
|
+
{
|
|
469298
|
+
"type": "null"
|
|
469299
|
+
}
|
|
469300
|
+
]
|
|
469301
|
+
},
|
|
469302
|
+
"existing_domain": {
|
|
469303
|
+
"type": "string"
|
|
469304
|
+
},
|
|
468933
469305
|
"existing_platform": {
|
|
468934
469306
|
"anyOf": [
|
|
468935
469307
|
{
|
|
@@ -468972,6 +469344,9 @@
|
|
|
468972
469344
|
"store": {
|
|
468973
469345
|
"type": "string"
|
|
468974
469346
|
},
|
|
469347
|
+
"store_domain": {
|
|
469348
|
+
"type": "string"
|
|
469349
|
+
},
|
|
468975
469350
|
"team_id": {
|
|
468976
469351
|
"format": "uuid",
|
|
468977
469352
|
"type": "string"
|
|
@@ -469026,7 +469401,7 @@
|
|
|
469026
469401
|
"tags": [
|
|
469027
469402
|
"woocommerce"
|
|
469028
469403
|
],
|
|
469029
|
-
"description": "Receives the WooCommerce authorization callback payload and stores the resulting API credentials. The two rules are checked again: 409 STORE_ALREADY_ASSIGNED when another workspace of the organization has the store and the move was not confirmed, or took it after the check of this request; 403 STORE_MOVE_FORBIDDEN when the person who started the install cannot manage stores in the workspace that has it (no workspace named); 409 STORE_SECOND_IN_WORKSPACE when the workspace
|
|
469404
|
+
"description": "Receives the WooCommerce authorization callback payload and stores the resulting API credentials. The two rules are checked again: 409 STORE_ALREADY_ASSIGNED when another workspace of the organization has the store and the move was not confirmed, or took it after the check of this request; 403 STORE_MOVE_FORBIDDEN when the person who started the install cannot manage stores in the workspace that has it (no workspace named); 409 STORE_SECOND_IN_WORKSPACE when the domain of the site does not fit the stores of the workspace (another store entered meanwhile, or the answer of the owner is missing).",
|
|
469030
469405
|
"requestBody": {
|
|
469031
469406
|
"required": true,
|
|
469032
469407
|
"content": {
|
|
@@ -469216,19 +469591,23 @@
|
|
|
469216
469591
|
},
|
|
469217
469592
|
{
|
|
469218
469593
|
"additionalProperties": false,
|
|
469219
|
-
"description": "The destination workspace already has
|
|
469594
|
+
"description": "The destination workspace already has stores, and a workspace holds the stores of one domain. reason=different_domain: the store has another name, it goes in another workspace of the organization (domain_workspace when one already has that domain and the caller can connect stores there, else a new one); no value of the body lets it in. reason=owner_choice: the same name on another extension (marchio.de next to marchio.it), the caller owns the organization: retry with store_relation=same_workspace to keep it here, or connect it to another workspace. reason=owner_required: the same case, but only the owner of the organization can choose: nothing lets the caller in.",
|
|
469220
469595
|
"type": "object",
|
|
469221
469596
|
"required": [
|
|
469222
469597
|
"statusCode",
|
|
469223
469598
|
"error",
|
|
469224
469599
|
"message",
|
|
469225
469600
|
"code",
|
|
469601
|
+
"reason",
|
|
469226
469602
|
"choices",
|
|
469603
|
+
"domain_workspace",
|
|
469604
|
+
"existing_domain",
|
|
469227
469605
|
"existing_platform",
|
|
469228
469606
|
"existing_store",
|
|
469229
469607
|
"organization_id",
|
|
469230
469608
|
"platform",
|
|
469231
469609
|
"store",
|
|
469610
|
+
"store_domain",
|
|
469232
469611
|
"team_id",
|
|
469233
469612
|
"workspace_name"
|
|
469234
469613
|
],
|
|
@@ -469248,6 +469627,28 @@
|
|
|
469248
469627
|
"STORE_SECOND_IN_WORKSPACE"
|
|
469249
469628
|
]
|
|
469250
469629
|
},
|
|
469630
|
+
"reason": {
|
|
469631
|
+
"anyOf": [
|
|
469632
|
+
{
|
|
469633
|
+
"type": "string",
|
|
469634
|
+
"enum": [
|
|
469635
|
+
"different_domain"
|
|
469636
|
+
]
|
|
469637
|
+
},
|
|
469638
|
+
{
|
|
469639
|
+
"type": "string",
|
|
469640
|
+
"enum": [
|
|
469641
|
+
"owner_choice"
|
|
469642
|
+
]
|
|
469643
|
+
},
|
|
469644
|
+
{
|
|
469645
|
+
"type": "string",
|
|
469646
|
+
"enum": [
|
|
469647
|
+
"owner_required"
|
|
469648
|
+
]
|
|
469649
|
+
}
|
|
469650
|
+
]
|
|
469651
|
+
},
|
|
469251
469652
|
"choices": {
|
|
469252
469653
|
"type": "array",
|
|
469253
469654
|
"items": {
|
|
@@ -469255,7 +469656,7 @@
|
|
|
469255
469656
|
{
|
|
469256
469657
|
"type": "string",
|
|
469257
469658
|
"enum": [
|
|
469258
|
-
"
|
|
469659
|
+
"same_workspace"
|
|
469259
469660
|
]
|
|
469260
469661
|
},
|
|
469261
469662
|
{
|
|
@@ -469267,6 +469668,40 @@
|
|
|
469267
469668
|
]
|
|
469268
469669
|
}
|
|
469269
469670
|
},
|
|
469671
|
+
"domain_workspace": {
|
|
469672
|
+
"anyOf": [
|
|
469673
|
+
{
|
|
469674
|
+
"additionalProperties": false,
|
|
469675
|
+
"type": "object",
|
|
469676
|
+
"required": [
|
|
469677
|
+
"team_id",
|
|
469678
|
+
"workspace_name"
|
|
469679
|
+
],
|
|
469680
|
+
"properties": {
|
|
469681
|
+
"team_id": {
|
|
469682
|
+
"format": "uuid",
|
|
469683
|
+
"type": "string"
|
|
469684
|
+
},
|
|
469685
|
+
"workspace_name": {
|
|
469686
|
+
"anyOf": [
|
|
469687
|
+
{
|
|
469688
|
+
"type": "string"
|
|
469689
|
+
},
|
|
469690
|
+
{
|
|
469691
|
+
"type": "null"
|
|
469692
|
+
}
|
|
469693
|
+
]
|
|
469694
|
+
}
|
|
469695
|
+
}
|
|
469696
|
+
},
|
|
469697
|
+
{
|
|
469698
|
+
"type": "null"
|
|
469699
|
+
}
|
|
469700
|
+
]
|
|
469701
|
+
},
|
|
469702
|
+
"existing_domain": {
|
|
469703
|
+
"type": "string"
|
|
469704
|
+
},
|
|
469270
469705
|
"existing_platform": {
|
|
469271
469706
|
"anyOf": [
|
|
469272
469707
|
{
|
|
@@ -469309,6 +469744,9 @@
|
|
|
469309
469744
|
"store": {
|
|
469310
469745
|
"type": "string"
|
|
469311
469746
|
},
|
|
469747
|
+
"store_domain": {
|
|
469748
|
+
"type": "string"
|
|
469749
|
+
},
|
|
469312
469750
|
"team_id": {
|
|
469313
469751
|
"format": "uuid",
|
|
469314
469752
|
"type": "string"
|
|
@@ -469363,7 +469801,7 @@
|
|
|
469363
469801
|
"tags": [
|
|
469364
469802
|
"woocommerce"
|
|
469365
469803
|
],
|
|
469366
|
-
"description": "Stores manually supplied WooCommerce API credentials in the explicit destination workspace (x-team-id or active team scope) and returns the resulting connection configuration. A store already connected to another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED unless confirm_move=true, and only to a caller who can manage stores in that workspace (manager or higher there, raised by the backoffice lever asset_permission_floors): to anyone else it answers 403 STORE_MOVE_FORBIDDEN, which names no workspace, before the keys are tried. A
|
|
469804
|
+
"description": "Stores manually supplied WooCommerce API credentials in the explicit destination workspace (x-team-id or active team scope) and returns the resulting connection configuration. A store already connected to another workspace of the organization answers 409 STORE_ALREADY_ASSIGNED unless confirm_move=true, and only to a caller who can manage stores in that workspace (manager or higher there, raised by the backoffice lever asset_permission_floors): to anyone else it answers 403 STORE_MOVE_FORBIDDEN, which names no workspace, before the keys are tried. A workspace holds the stores of one domain (WooCommerce and Shopify together): a site on another registrable domain than the stores already there answers 409 STORE_SECOND_IN_WORKSPACE with reason=different_domain (it goes in another workspace, nothing lets it in); the same name on another extension (marchio.de next to marchio.it) answers reason=owner_choice to the owner of the organization, who keeps it here with store_relation=same_workspace, and reason=owner_required to anyone else. The backoffice can switch the check off (lever store_workspace_rule) or exempt a workspace. store_relation=same_brand was retired: 400 STORE_RELATION_RETIRED. A store new to the organization counts against the catalog quota.",
|
|
469367
469805
|
"requestBody": {
|
|
469368
469806
|
"required": true,
|
|
469369
469807
|
"content": {
|
|
@@ -469407,10 +469845,23 @@
|
|
|
469407
469845
|
"type": "string"
|
|
469408
469846
|
},
|
|
469409
469847
|
"store_relation": {
|
|
469410
|
-
"description": "
|
|
469411
|
-
"
|
|
469412
|
-
|
|
469413
|
-
|
|
469848
|
+
"description": "Without it, a store whose domain differs from the stores already in the destination workspace answers 409 STORE_SECOND_IN_WORKSPACE. Another workspace has no value here: connect the store to another workspace.",
|
|
469849
|
+
"anyOf": [
|
|
469850
|
+
{
|
|
469851
|
+
"description": "Regola B per dominio: the owner of the organization keeps the store in this workspace although its domain has the same name as a store already here on another extension (for example marchio.de next to marchio.it). Only the owner (or platform staff) can give it: anyone else gets 409 STORE_SECOND_IN_WORKSPACE with reason owner_required.",
|
|
469852
|
+
"type": "string",
|
|
469853
|
+
"enum": [
|
|
469854
|
+
"same_workspace"
|
|
469855
|
+
]
|
|
469856
|
+
},
|
|
469857
|
+
{
|
|
469858
|
+
"deprecated": true,
|
|
469859
|
+
"description": "Retired on 29/10/2026: answers 400 STORE_RELATION_RETIRED and connects nothing.",
|
|
469860
|
+
"type": "string",
|
|
469861
|
+
"enum": [
|
|
469862
|
+
"same_brand"
|
|
469863
|
+
]
|
|
469864
|
+
}
|
|
469414
469865
|
]
|
|
469415
469866
|
},
|
|
469416
469867
|
"utm_meta_mapping": {
|
|
@@ -469573,6 +470024,34 @@
|
|
|
469573
470024
|
"application/json": {
|
|
469574
470025
|
"schema": {
|
|
469575
470026
|
"anyOf": [
|
|
470027
|
+
{
|
|
470028
|
+
"additionalProperties": false,
|
|
470029
|
+
"description": "store_relation=same_brand was retired on 29/10/2026: a workspace now holds the stores of one domain. Nothing was connected. Retry without it to read the answer for this store (409 STORE_SECOND_IN_WORKSPACE says what is possible).",
|
|
470030
|
+
"type": "object",
|
|
470031
|
+
"required": [
|
|
470032
|
+
"statusCode",
|
|
470033
|
+
"error",
|
|
470034
|
+
"message",
|
|
470035
|
+
"code"
|
|
470036
|
+
],
|
|
470037
|
+
"properties": {
|
|
470038
|
+
"statusCode": {
|
|
470039
|
+
"type": "number"
|
|
470040
|
+
},
|
|
470041
|
+
"error": {
|
|
470042
|
+
"type": "string"
|
|
470043
|
+
},
|
|
470044
|
+
"message": {
|
|
470045
|
+
"type": "string"
|
|
470046
|
+
},
|
|
470047
|
+
"code": {
|
|
470048
|
+
"type": "string",
|
|
470049
|
+
"enum": [
|
|
470050
|
+
"STORE_RELATION_RETIRED"
|
|
470051
|
+
]
|
|
470052
|
+
}
|
|
470053
|
+
}
|
|
470054
|
+
},
|
|
469576
470055
|
{
|
|
469577
470056
|
"type": "object",
|
|
469578
470057
|
"required": [
|
|
@@ -469736,19 +470215,23 @@
|
|
|
469736
470215
|
},
|
|
469737
470216
|
{
|
|
469738
470217
|
"additionalProperties": false,
|
|
469739
|
-
"description": "The destination workspace already has
|
|
470218
|
+
"description": "The destination workspace already has stores, and a workspace holds the stores of one domain. reason=different_domain: the store has another name, it goes in another workspace of the organization (domain_workspace when one already has that domain and the caller can connect stores there, else a new one); no value of the body lets it in. reason=owner_choice: the same name on another extension (marchio.de next to marchio.it), the caller owns the organization: retry with store_relation=same_workspace to keep it here, or connect it to another workspace. reason=owner_required: the same case, but only the owner of the organization can choose: nothing lets the caller in.",
|
|
469740
470219
|
"type": "object",
|
|
469741
470220
|
"required": [
|
|
469742
470221
|
"statusCode",
|
|
469743
470222
|
"error",
|
|
469744
470223
|
"message",
|
|
469745
470224
|
"code",
|
|
470225
|
+
"reason",
|
|
469746
470226
|
"choices",
|
|
470227
|
+
"domain_workspace",
|
|
470228
|
+
"existing_domain",
|
|
469747
470229
|
"existing_platform",
|
|
469748
470230
|
"existing_store",
|
|
469749
470231
|
"organization_id",
|
|
469750
470232
|
"platform",
|
|
469751
470233
|
"store",
|
|
470234
|
+
"store_domain",
|
|
469752
470235
|
"team_id",
|
|
469753
470236
|
"workspace_name"
|
|
469754
470237
|
],
|
|
@@ -469768,6 +470251,28 @@
|
|
|
469768
470251
|
"STORE_SECOND_IN_WORKSPACE"
|
|
469769
470252
|
]
|
|
469770
470253
|
},
|
|
470254
|
+
"reason": {
|
|
470255
|
+
"anyOf": [
|
|
470256
|
+
{
|
|
470257
|
+
"type": "string",
|
|
470258
|
+
"enum": [
|
|
470259
|
+
"different_domain"
|
|
470260
|
+
]
|
|
470261
|
+
},
|
|
470262
|
+
{
|
|
470263
|
+
"type": "string",
|
|
470264
|
+
"enum": [
|
|
470265
|
+
"owner_choice"
|
|
470266
|
+
]
|
|
470267
|
+
},
|
|
470268
|
+
{
|
|
470269
|
+
"type": "string",
|
|
470270
|
+
"enum": [
|
|
470271
|
+
"owner_required"
|
|
470272
|
+
]
|
|
470273
|
+
}
|
|
470274
|
+
]
|
|
470275
|
+
},
|
|
469771
470276
|
"choices": {
|
|
469772
470277
|
"type": "array",
|
|
469773
470278
|
"items": {
|
|
@@ -469775,7 +470280,7 @@
|
|
|
469775
470280
|
{
|
|
469776
470281
|
"type": "string",
|
|
469777
470282
|
"enum": [
|
|
469778
|
-
"
|
|
470283
|
+
"same_workspace"
|
|
469779
470284
|
]
|
|
469780
470285
|
},
|
|
469781
470286
|
{
|
|
@@ -469787,6 +470292,40 @@
|
|
|
469787
470292
|
]
|
|
469788
470293
|
}
|
|
469789
470294
|
},
|
|
470295
|
+
"domain_workspace": {
|
|
470296
|
+
"anyOf": [
|
|
470297
|
+
{
|
|
470298
|
+
"additionalProperties": false,
|
|
470299
|
+
"type": "object",
|
|
470300
|
+
"required": [
|
|
470301
|
+
"team_id",
|
|
470302
|
+
"workspace_name"
|
|
470303
|
+
],
|
|
470304
|
+
"properties": {
|
|
470305
|
+
"team_id": {
|
|
470306
|
+
"format": "uuid",
|
|
470307
|
+
"type": "string"
|
|
470308
|
+
},
|
|
470309
|
+
"workspace_name": {
|
|
470310
|
+
"anyOf": [
|
|
470311
|
+
{
|
|
470312
|
+
"type": "string"
|
|
470313
|
+
},
|
|
470314
|
+
{
|
|
470315
|
+
"type": "null"
|
|
470316
|
+
}
|
|
470317
|
+
]
|
|
470318
|
+
}
|
|
470319
|
+
}
|
|
470320
|
+
},
|
|
470321
|
+
{
|
|
470322
|
+
"type": "null"
|
|
470323
|
+
}
|
|
470324
|
+
]
|
|
470325
|
+
},
|
|
470326
|
+
"existing_domain": {
|
|
470327
|
+
"type": "string"
|
|
470328
|
+
},
|
|
469790
470329
|
"existing_platform": {
|
|
469791
470330
|
"anyOf": [
|
|
469792
470331
|
{
|
|
@@ -469829,6 +470368,9 @@
|
|
|
469829
470368
|
"store": {
|
|
469830
470369
|
"type": "string"
|
|
469831
470370
|
},
|
|
470371
|
+
"store_domain": {
|
|
470372
|
+
"type": "string"
|
|
470373
|
+
},
|
|
469832
470374
|
"team_id": {
|
|
469833
470375
|
"format": "uuid",
|
|
469834
470376
|
"type": "string"
|