Notifications
Update notification preference
PUT
/api/v1/notifications/preferencesUpdates channel settings for one notification type.
Requires Authorization
Session
Body parameters
typestringrequired | ORDER_STATUS, ORDER_MESSAGE, PAYMENT, ACCOUNT_SECURITY, PROMO, SELLER_ONBOARDING, SUPPORT, or SYSTEM. |
inAppboolean | |
emailboolean | |
smsboolean | |
pushboolean |
Notes
- ACCOUNT_SECURITY notifications can't be fully disabled — critical security alerts always deliver regardless of preference.
Request
curl --request PUT \
--url https://api.swiftgoma.com/api/v1/notifications/preferences \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "<type>",
"inApp": "<inApp>",
"email": "aline@example.com",
"sms": "<sms>",
"push": "<push>"
}'200Example response
{
"success": true,
"data": {
"inApp": true,
"email": true,
"sms": false,
"push": true
}
}