# Store Authorization Notification

This webhook is sent by Keeta to notify the vendor's system when a merchant grants authorization for a store. This event is triggered when a new store is added to the merchant's authorized store list. This event is triggered when a merchant adds one or more stores to an existing brand authorization. For example, when stores were not fully included during the initial authorization and are subsequently added.
**Event ID:** 1301
**Notes:** Authorization in Keeta is managed at the brand level, and each brand has a single access token. Expanding the store scope does not affect the existing token.

Endpoint: POST storeAuthorizationNotification
Version: v.1.0.0

## Request fields (application/json):

  - `appId` (integer, required)
    Unique application ID assigned by Keeta.
    Example: 3762772727

  - `shopId` (integer, required)
    Unique identifier of the store that has been added to the authorization scope.
    Example: 145541

  - `shopName` (string, required)
    Name of the shop, provided for identification purposes.
    Example: Downtown Store

  - `authId` (string, required)
    Authorization record ID, which can be used for batch store mappings. When a merchant authorizes multiple stores in a single operation, Keeta sends one notification per store. The authId is shared across all notifications from the same authorization batch, allowing the developer to identify which stores were authorized together.
    Example: auth_20240324_001

  - `createTime` (integer, required)
    Time when the event occurred, specified as milliseconds since Jan 1, 1970 (Unix epoch).
    Example: 1711267200000

  - `opType` (integer, required)
    Operation type. Always 0 for this event (store authorization added).
    Example: 0

## Response 200 fields (application/json):

  - `code` (integer, required)
    A numeric status identifier indicating the result of the interface call, used to determine whether the operation executed successfully.
    Example: 0

  - `message` (string, required)
    Text description corresponding to the status code, explaining the operation result or error cause to users.
    Example: Success

