# Update Income

## Get Cakes

<mark style="color:green;">`POST`</mark> `http://node-staging.billeasy.in/api/v1/customers/updateIncomes`

This endpoint allows you to get free cakes.

#### Headers

| Name              | Type   | Description |
| ----------------- | ------ | ----------- |
| x-customer-number | string |             |
| x-customer-token  | string |             |
| x-api-secret      | string |             |
| x-api-access      | string |             |
| Content-Type      | string |             |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
Request:
{
  "amount": 10,
  "customer_bill_id": 25968,
  "customer_id": 551,
  "metadata": {
    "add_more_info": "Demo test",
    "date": "11/2/2020",
    "payment_type": "Cash",
    "recurring": false,
    "set_a_monthly": true
  },
  "name": "Test demo"
}

Response:

{
  "success": true,
  "msg": "income are updated.",
  "data": {
    "affectedRows": 1,
    "count": 1,
    "rows": []
  }
}

```

{% endtab %}

{% tab title="404 Could not find a cake matching this query." %}

```
{
  "success": false,
  "msg": "Error msg",
  "data": {}
}

```

{% endtab %}
{% endtabs %}
