# New Merchant Update Notification

> POST /v1/merchantUpdate/{merchantId} 


Information about a update in the systems.

This endpoint can be used in the following ways:

1 - Sent with an empty body:  
This will force Keeta to make a new request to the GET /v1/merchant endpoint to update all the merchant information.

2 - Sent with only the merchantStatus field:  
This will force the opening or closing of the merchant within Keeta, without forcing a new GET /v1/merchant call.

3 - Sent with only the entityType and updatedObjects fields:  
This will force  Keeta to update only the sent objects, without forcing a new GET /v1/merchant call.
> IMPORTANT:
> 1- Please do not pass merchantStatus and entityType&updatedObjects at the same time. When merchantStatus has a value, the request will be regarded as updating only merchant status, and entityType&updatedObjects will be ignored.Please update merchant status and other entity separately. 
> 2- When the entityType field is populated, the updatedObjects field cannot be empty.
> 3- It is recommended not to pass an empty body, but to pass a specific entity to be updated to avoid invalid update operations.
> 4- An item must have either a delivery price or a pickup price. Currently, item with only indoor price is not permitted.
> 5- The business status of a store is determined by many factors (business hours, number of items available for sale, merchant status, etc.).
> 6- Please do note that the number of available Options under the Option Group must meet the Option Group's minPermitted requirement. If not, the Option Group will become unfufillable, causing all items using this Option Group to be hidden on the APP.

  
HOST: Keeta  

DIRECTION:

Endpoint: POST /v1/merchantUpdate/{merchantId}
Version: v.1.0.7
Security: OAuth2, Sig

## Path parameters:

  - `merchantId` (string, required)
    The unique identifier of the merchant. The merchantId is generated by the Software Service.

## Request fields (application/json):

  - `merchantStatus` (string)
    Indicates if the Merchant is Avaliable or Unavaliable. Only use this type when you must close (disable) the merchant due to an unexpected event and you don't know when the service will be re-established (e.g. do not use for holidays).
    Enum: "AVAILABLE", "UNAVAILABLE"

  - `entityType` (string)
    The entity type of the updated object.

## Response 400 fields (application/problem+json):

  - `title` (string, required)
    Short description of the problem.
    Example: "Unexpected error"

  - `status` (integer, required)
    HTTP code of the returned status.
    Example: 500


## Response 204 fields
