> ## Documentation Index
> Fetch the complete documentation index at: https://docs.masivo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Send a message to a loyalty card

> Write a message in the Novedades field of a customer's loyalty card and announce it. Apple Wallet shows it on the lock screen because the field changes; Google Wallet sends it through its messages API, which allows about 3 notifications per card a day. Sending the same text twice still notifies.



## OpenAPI

````yaml POST /customers/{id}/loyalty-wallet-passes/news
openapi: 3.0.1
info:
  title: Masivo's REST API
  description: Learn how to use Masivo's REST API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.masivo.ai/api/storefront/v1
security:
  - bearerAuth: []
paths:
  /customers/{id}/loyalty-wallet-passes/news:
    post:
      tags:
        - Loyalty wallet passes
      description: >-
        Write a message in the Novedades field of a customer's loyalty card and
        announce it. Apple Wallet shows it on the lock screen because the field
        changes; Google Wallet sends it through its messages API, which allows
        about 3 notifications per card a day. Sending the same text twice still
        notifies.
      operationId: sendLoyaltyWalletPassNews
      parameters:
        - name: id
          in: path
          required: true
          description: The customer external id
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - message
              properties:
                message:
                  type: string
                  minLength: 1
                  maxLength: 300
                  description: Text shown in the Novedades field and in the notification.
      responses:
        '200':
          description: Message sent
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    required:
                      - pass_id
                      - apple_devices
                      - google
                      - google_notified
                    properties:
                      pass_id:
                        type: string
                        format: uuid
                      apple_devices:
                        type: integer
                        description: Apple devices that hold the card and were pushed.
                      google:
                        type: boolean
                        description: Whether the card is saved in Google Wallet.
                      google_notified:
                        type: boolean
                        description: >-
                          Whether Google accepted the notification. False past
                          its daily limit; the text still updates.
        '400':
          description: Wallet pass is not configured
        '404':
          description: Loyalty wallet pass not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.