api/v1/customer/stores/{id}/update-prefs

POST

/api/v1/customer/stores/{id}/update-prefs

This API method will update store preferences, including notification settings and friend sharing settings.

Sample Request body

Parameter

Type

Required

disable_notifications

INTEGER (0/1)

false

allow_see_store

INTEGER (0/1)

false

show_store_updates

INTEGER (0/1)

false

interests[]

ARRAY

false

show_receipts

INTEGER (0/1)

false

Sample Response

{
  "status": true,
  "message": "Successfully updated preferences for this store"
}
{
  "status": false,
  "message": "This store cannot be found in the system"
}
{
  "status": false,
  "errorCode": "VALIDATION_EXCEPTION",
  "messages": {
    "disable_notifications": [
      "disable_notifications is required when allow_see_store or show_store_updates is not present"
    ],
    "allow_see_store": [
      "allow_see_store is required when disable_notifications or show_store_updates is not present"
    ],
    "show_store_updates": [
      "show_store_updates is required when disable_notifications or allow_see_store is not present"
    ]
  }
}