Appearance
Portal Settings
Read and update your customer-portal configuration: the portal "Account" URL and a count of customers blocked from the portal.
GET /v1/portal/settings
PATCH /v1/portal/settingsGet settings
GET /v1/portal/settingsjson
{
"data": {
"accountUrl": "https://my-store.com/account",
"blockedCount": 2
}
}Update settings
PATCH /v1/portal/settings| Field | Required | Type | Description |
|---|---|---|---|
accountUrl | Yes | string | Absolute http(s) URL for the portal "Account" link (under 2048 chars), or "" to clear it |
json
{
"data": {
"ok": true,
"accountUrl": "https://my-store.com/account"
}
}Example
bash
curl -X PATCH "https://api.packedge.dev/v1/portal/settings" \
-H "Authorization: Bearer pk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"accountUrl": "https://my-store.com/account"
}'Related
- Blocked Customers — the current block list
- Block / Unblock Portal Access — manage individual customers
