The resource lets you retrieve information about the store but doesn't let you update any information. Only the merchant can update this information from inside the Shirtplatform admin.
/accounts/{accountId}/shops
Get a list of shops for your account. A full account administrator sees every shop of the account; a restricted user sees only the shops they have been granted access to.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
filterId |
query | |
optional saved Filter.Shop ID; empty string for all | ||
page |
query | 0 |
int | zero-based page index | |
size |
query | 10 |
int | number of items per page |
| Code | Condition |
|---|---|
| 200 | the shops were successfully retrieved |
<pagedData>
<records>...</records>
<totalElements>...</totalElements>
</pagedData>
{
"pagedData" : {
"records" : [ { }, { } ],
"totalElements" : 12345
}
}
/accounts/{accountId}/shops/{shopId}
Get a single shop by its id. The shop must belong to your account and, for a restricted user, be one you have been granted access to; an unknown or foreign shop id is rejected by the ownership check. The shop is read-only over the API — it can only be updated by the merchant from the Shirtplatform admin.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account | |
shopId |
required | path | int | the unique identifier of the shop |
| Code | Condition |
|---|---|
| 200 | the shop was successfully retrieved |
<shop>
<id>...</id>
<name>...</name>
<type>...</type>
<default>...</default>
</shop>
{
"shop" : {
"id" : 12345,
"name" : "...",
"type" : "PUBLISH",
"default" : true
}
}