Update Notification Subscription
PUT /sellers/v3/notification/subscription
This API helps in self-serving the process of enabling/disabling the returns and order notification provided the seller-subscription exists for the given seller and location id. Users can control notification settings for both order and returns notifications independently or together. If disable_order is set to true, order notifications will be disabled; if set to false, order notifications will be enabled. If disable_returns is set to true, returns notifications will be disabled; if set to false, returns notifications will be enabled. User can specify either disable_order, disable_returns, or both parameters. Failing to specify both parameters will make no changes in the subscription and will return a 200 response.
- application/json
Request Body required
Request body for updating notification subscription
- seller_id string required
Seller identifier
- location_id string required
Location identifier
- disable_order boolean
Set to true to disable order notifications, false to enable
- disable_returns boolean
Set to true to disable returns notifications, false to enable
- 200
- 400
- 401
- 403
- 404
- 500
successful operation
- application/json
- Schema
- Example (from schema)
Schema
- message string
Success message
{
"message": "Push notification settings updated successfully"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error type
- message string
Error message
{
"error": "string",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error type
- message string
Error message
{
"error": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error type
- message string
Error message
{
"error": "string",
"message": "string"
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error type
- message string
Error message
{
"error": "string",
"message": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- error string
Error type
- message string
Error message
{
"error": "string",
"message": "string"
}