The resource lets you retrieve information about the account but doesn't let you update any information. Only the merchant can update this information from inside the Shirtplatform admin.
/accounts/session
Get the account that belongs to the current logged user.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token |
<account>
<id>...</id>
<name>...</name>
<fullName>...</fullName>
<affiliateId>...</affiliateId>
<accountDataRetention>
<id>...</id>
<keepPersonalDataMonths>...</keepPersonalDataMonths>
<keepPrintDataMonths>...</keepPrintDataMonths>
</accountDataRetention>
<persitenceConfig>
<id>...</id>
<archiveDays>...</archiveDays>
<deleteDays>...</deleteDays>
</persitenceConfig>
</account>
{
"account" : {
"id" : 12345,
"name" : "...",
"fullName" : "...",
"affiliateId" : "...",
"accountDataRetention" : {
"id" : 12345,
"keepPersonalDataMonths" : 12345,
"keepPrintDataMonths" : 12345
},
"persitenceConfig" : { }
}
}
/accounts/{accountId}
Get a single account by its id.
| Name | In | Default | Constraints | Description | |
|---|---|---|---|---|---|
x-auth-token |
header | The authentication token | |||
accountId |
required | path | int | the unique identifier of the account |
<account>
<id>...</id>
<name>...</name>
<fullName>...</fullName>
<affiliateId>...</affiliateId>
<accountDataRetention>
<id>...</id>
<keepPersonalDataMonths>...</keepPersonalDataMonths>
<keepPrintDataMonths>...</keepPrintDataMonths>
</accountDataRetention>
<persitenceConfig>
<id>...</id>
<archiveDays>...</archiveDays>
<deleteDays>...</deleteDays>
</persitenceConfig>
</account>
{
"account" : {
"id" : 12345,
"name" : "...",
"fullName" : "...",
"affiliateId" : "...",
"accountDataRetention" : {
"id" : 12345,
"keepPersonalDataMonths" : 12345,
"keepPrintDataMonths" : 12345
},
"persitenceConfig" : { }
}
}