# Create Notification

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/products/{product_id}/notifications/:
    post:
      summary: Create Notification
      deprecated: false
      description: >-
        Sign up to receive a notification by email when the specified product
        becomes available again in the store.


        <Accordion title="🔑Scopes" defaultOpen>
            
          `products.read_write` - Products Read & Write
         
        </Accordion>
      operationId: post-notification
      tags:
        - >-
          Default module/Apps/Merchant APIs/Products/Product Availability
          Notifications
        - Product Notifications
      parameters:
        - name: product_id
          in: path
          description: ''
          required: true
          example: a7ad89d0-03e2-430f-b6e4-0624ef05e571
          schema:
            type: string
            examples:
              - 107c2ff5-5c70-4749-b9bd-56dc1793013b
        - name: Access-Token
          in: header
          description: >-
            This token is used to authenticate and access information related to
            the store. It is obtained through an OAuth mechanism and is required
            to perform operations on the store's data. The `X-Manager-Token`
            should be included in the header of API requests that require
            store-related information.
          required: true
          example: '{{Access-Token}}'
          schema:
            type: string
        - name: Store-Id
          in: header
          description: ''
          required: true
          example: '{{StoreId}}'
          schema:
            type: number
            examples:
              - 37213
        - name: Accept-Language
          in: header
          description: ''
          required: false
          example: en
          schema:
            type: string
            enum:
              - ar
              - en
            x-apidog-enum:
              - value: ar
                name: ''
                description: ''
              - value: en
                name: ''
                description: ''
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                email:
                  type: string
                  description: Email address of the customer.
                  examples:
                    - test@test.com
                  example: example@test.com
                language:
                  type: string
                  description: Language preference of the customer.
                  examples:
                    - ar
                  example: ar
                name:
                  type: string
                  x-stoplight:
                    id: wv5iwcgfz67w6
                  examples:
                    - maira
                  example: Test Customer
                phone:
                  type: string
                  x-stoplight:
                    id: wkxf13yo32kxp
                  examples:
                    - '+966500000000'
                  example: '+966500000005'
                customer_id:
                  type: string
                  x-stoplight:
                    id: e9tsf5skyxvs9
                  description: ID of the customer.
                  examples:
                    - '1'
                  example: '15141670'
                customer_phone_number:
                  type: string
                  x-stoplight:
                    id: x1z2pljvh7gar
                  description: Phone number of the customer.
                  examples:
                    - '+966700000000'
                  example: '+966500000005'
                customer_name:
                  type: string
                  x-stoplight:
                    id: tix3r4vgw5cx1
                  description: Name of the customer.
                  examples:
                    - مازن الضراب
                  example: Test Customer
              required:
                - email
            examples: {}
      responses:
        '201':
          description: ''
          headers: {}
          x-apidog-name: Created
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Response returned when the request cannot be authenticated
                  because the required credentials are missing, invalid, or
                  expired.
                properties:
                  status:
                    type: string
                    description: Indicates the overall status of the API response.
                    examples:
                      - error
                  message:
                    type: object
                    description: >-
                      Contains structured details explaining why the request
                      could not be authenticated.
                    properties:
                      type:
                        type: string
                        description: Indicates the category of the response message.
                        examples:
                          - error
                      code:
                        type: string
                        description: >-
                          A machine-readable code identifying the authentication
                          error. Returns null when no specific code is
                          available.
                        examples:
                          - UNAUTHORIZED
                        nullable: true
                      name:
                        type: string
                        description: >-
                          A short, human-readable title describing the
                          authentication error. Returns null when no title is
                          available.
                        examples:
                          - Unauthorized
                        nullable: true
                      description:
                        type: string
                        description: >-
                          A human-readable explanation of why the request could
                          not be authenticated. Returns null when no detailed
                          explanation is available.
                        examples:
                          - >-
                            Authentication credentials are missing, invalid, or
                            expired.
                        nullable: true
                    required:
                      - type
                      - code
                      - name
                      - description
                    x-apidog-orders:
                      - type
                      - code
                      - name
                      - description
                    x-apidog-ignore-properties: []
                required:
                  - status
                  - message
                x-apidog-orders:
                  - status
                  - message
                examples:
                  - status: error
                    message:
                      type: error
                      code: UNAUTHORIZED
                      name: Unauthorized
                      description: >-
                        Authentication credentials are missing, invalid, or
                        expired.
                x-apidog-ignore-properties: []
              examples:
                '2':
                  summary: Example 1
                  value:
                    status: error
                    message:
                      type: error
                      code: ERROR_SESSION_MISSING
                      name: Sorry
                      description: Please login first.
                '3':
                  summary: Example 2
                  value:
                    status: error
                    message:
                      type: error
                      code: ERROR_SESSION_INVALID
                      name: Sorry
                      description: Login session expired. Please login again.
                '4':
                  summary: Example 3
                  value:
                    status: error
                    message:
                      type: error
                      code: ERROR_SESSION_INVALID
                      name: Sorry
                      description: Invalid authentication
          headers: {}
          x-apidog-name: Unauthorized
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-examples:
                  Example 1:
                    status: error
                    message:
                      type: error
                      code: ERROR_POPUP_OK
                      name: عذراً
                      description: لم يتم إيجاد هذه الصفحة
                properties:
                  status:
                    type: string
                    description: >-
                      The status of the response, indicating whether the request
                      was successful or encountered an error.
                    examples:
                      - '"error"'
                  message:
                    type: object
                    description: >-
                      An object containing detailed information about the
                      message.
                    properties:
                      type:
                        type: string
                        description: >-
                          The type of message, indicating the nature of the
                          message.
                        examples:
                          - '"error"'
                      code:
                        type: string
                        description: A specific code identifying the type of error.
                        examples:
                          - '"ERROR_POPUP_OK"'
                      name:
                        type: string
                        description: A short name or title for the error message.
                        examples:
                          - '"عذراً"'
                      description:
                        type: string
                        description: >-
                          A detailed description of the error message, providing
                          more context about the error.
                        examples:
                          - '"لم يتم إيجاد هذه الصفحة"'
                    x-apidog-orders:
                      - type
                      - code
                      - name
                      - description
                    x-apidog-ignore-properties: []
                x-apidog-orders:
                  - status
                  - message
                x-apidog-ignore-properties: []
              example:
                email:
                  - This field is required.
          headers: {}
          x-apidog-name: Not Found
        '500':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Status of the error.
                  message:
                    $ref: '#/components/schemas/ResponseEnvelopMessage'
                required:
                  - status
                  - message
                x-apidog-orders:
                  - status
                  - message
                x-apidog-ignore-properties: []
              example:
                status: error
                message:
                  type: error
                  code: MSG_HIDDEN
                  name: Error
                  description: Internal Server Error
          headers: {}
          x-apidog-name: Internal Server error
      security: []
      x-apidog-folder: >-
        Default module/Apps/Merchant APIs/Products/Product Availability
        Notifications
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/613905/apis/api-9148669-run
components:
  schemas:
    ResponseEnvelopMessage:
      type: object
      properties:
        type:
          type: string
          description: Type of response message returned by the API.
          examples:
            - success
        code:
          type: string
          description: Response code returned by the API, if available.
          examples:
            - MSG_POPUP_OK
          nullable: true
        name:
          type: string
          description: Name or title of the response message, if available.
          examples:
            - Coupons
          nullable: true
        description:
          type: string
          description: Detailed description of the response message, if available.
          examples:
            - Coupons created successfully
          nullable: true
      required:
        - type
        - code
        - name
        - description
      description: Additional response metadata.
      x-apidog-orders:
        - type
        - code
        - name
        - description
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.zid.sa/
    description: Prod Env
security: []

```
