# Setting

## Get all Setting

```shell
curl -X GET https://vedaay-api.mulika.in/settings \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
{
    "status": "success",
    "code": 200,
    "message": "Settings fetched successfully",
    "data": [
        {
            "key": "superadmin_percentage",
            "value": 15
        },
        {
            "key": "distributor_percentage",
            "value": 10
        },
        {
            "key": "software_vendor_percentage",
            "value": 10
        },
        {
            "key": "software_vendor_user_id",
            "value": 9
        },
        {
            "key": "payment_vendor_percentage",
            "value": 2.5
        },
    ]
}
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #42c253; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /settings
</span>

## Update setting
```shell
curl -X PUT https://vedaay-api.mulika.in/settings \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
        "key": "software_vendor_percentage",
        "value": 15
    },`
```
> Responce:

```json
   {
    "status": "success",
    "code": 200,
    "message": "Setting updated successfully",
    "data": {
        "key": "software_vendor_percentage",
        "value": 15
    }
}
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #4e92d7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">PUT</span> /settings
</span>

### note
`Super admin only value change`






