---
# System prepended metadata

title: Sancus Create Benefit

---

# Sancus Create Benefit

## Create Benefit
### Payload

```json=

{
   "title":"BK Gulsan",
   "level":[
      "silver",
      "gold"
   ],
   "status":"published",
   "city":[
      "dhaka"
   ],
   "partner_type":"Clothing",
   "benefit_modality":{
      "silver":{
         "amount":10,
         "max_discount_amount": 100000,
         "description":"Deatils...This modality only works for silver user",
         "short_description":"Buy-1/Get-1"
      },
      "gold":{
         "amount":20,
         "max_discount_amount":100000,
         "description":"Deatils...This modality only works for gold user",
         "short_description":"This modality only works for gold user"
      }
   },
   "partner_mobile_number":"01675450155",
   "thumbnail_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "banner_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "cover_image_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "short_description":"Upto 20% discount",
   "description":"Upto 5% for Silver, 10% for Gold, 20% for Platinum users",
   "created_by":"team sancus",
   "visibility":true,
   "address":"Gulshan-1, Dhaka",
   "map_link":"",
   "socials":{
      "twitter":"www.artisan.com",
      "facebook":"www.facebook.com"
   },
   "benefit_type":"percentage",
   "expires_at": "2021-11-23T11:27:29.538Z"
}
```

##### Expected output
```json=
{
    "id": "5ff14ffd4a622e0001b31d20",
    "message": "Benefit created"
}
```

## Update Benefit

### Paylaod

```json=

{
    "id": "5fdf3521ca78db001b6607b8",
   "title":"Artisan Banani 4",
   "level":[
      "silver",
      "gold"
   ],
   "city":[
      "dhaka"
   ],
   "partner_type":"Clothing",
   "benefit_modality":{
      "silver":{
         "amount":10,
         "max_discount_amount": 100000,
         "description":"Deatils...This modality only works for silver user",
         "short_description":"Buy-1/Get-1"
      },
      "gold":{
         "amount":20,
         "max_discount_amount":100000,
         "description":"Deatils...This modality only works for gold user",
         "short_description":"This modality only works for gold user"
      }
   },
   "partner_mobile_number":"01675450159",
   "thumbnail_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "banner_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "cover_image_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "short_description":"Upto 20% discount",
   "description":"Upto 5% for Silver, 10% for Gold, 20% for Platinum users",
   "created_by":"team sancus",
   "visibility":true,
   "address":"Gulshan-1, Dhaka",
   "map_link":"",
   "socials":{
      "twitter":"www.artisan.com",
      "facebook":"www.facebook.com"
   },
   "benefit_type":"percentage",
   "expires_at": "2021-11-23T11:27:29.538Z"
}
```
##### Expected output
```json=
{
    "message": "Published benefits already exists for this number/merchant"
}
```
*Since the benefit is already published this can not be updated anymore.


## Publish Benefit
### Paylaod

```json=

{
    "id": "5fdf3521ca78db001b6607b8",
    "title":"Artisan Banani 4",
   "level":[
      "silver",
      "gold"
   ],
   "city":[
      "dhaka"
   ],
   "partner_type":"Clothing",
   "benefit_modality":{
      "silver":{
         "amount":10,
         "max_discount_amount": 100000,
         "description":"Deatils...This modality only works for silver user",
         "short_description":"Buy-1/Get-1"
      },
      "gold":{
         "amount":20,
         "max_discount_amount":100000,
         "description":"Deatils...This modality only works for gold user",
         "short_description":"This modality only works for gold user"
      }
   },
   "partner_mobile_number":"01675450159",
   "thumbnail_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "banner_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "cover_image_url":"https://quicksilver-qa.pathaopay.xyz/images/sampleImage.jpeg",
   "short_description":"Upto 20% discount",
   "description":"Upto 5% for Silver, 10% for Gold, 20% for Platinum users",
   "created_by":"team sancus",
   "visibility":true,
   "address":"Gulshan-1, Dhaka",
   "map_link":"",
   "socials":{
      "twitter":"www.artisan.com",
      "facebook":"www.facebook.com"
   },
   "benefit_type":"percentage",
   "expires_at": "2021-11-23T11:27:29.538Z",
    "status":"published"
}
```
##### Expected Output
```json=
{
    "message": "The Benefit is already been published"
}
```