Google Pay · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Google Pay Loyaltyobject API

8 actions 8 updates phrasing extends openapi/google-pay-loyaltyobject-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Google Pay's API. It is a proposal applied on top of the contract, not a document Google Pay publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 8

$.info
$.paths['/walletobjects/v1/loyaltyObject/{resourceId}'].get
$.paths['/walletobjects/v1/loyaltyObject/{resourceId}'].put
$.paths['/walletobjects/v1/loyaltyObject/{resourceId}'].patch
$.paths['/walletobjects/v1/loyaltyObject/{resourceId}/modifyLinkedOfferObjects'].post
$.paths['/walletobjects/v1/loyaltyObject'].get
$.paths['/walletobjects/v1/loyaltyObject'].post
$.paths['/walletobjects/v1/loyaltyObject/{resourceId}/addMessage'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Google Pay Loyaltyobject API
  version: 1.0.0
extends: openapi/google-pay-loyaltyobject-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-16'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 7
- target: $.paths['/walletobjects/v1/loyaltyObject/{resourceId}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a loyalty object
      effect: read
      questions:
      - What are the loyalty points and status of a loyalty card?
      - Can I look up a loyalty object by its ID?
      instructions:
      - text: Get loyalty object {resourceId}.
        slots:
          resourceId: path.resourceId
      - text: Show the loyalty card {resourceId} and its points.
        slots:
          resourceId: path.resourceId
      method: generated
      generated: '2026-11-16'
- target: $.paths['/walletobjects/v1/loyaltyObject/{resourceId}'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a loyalty object
      effect: write
      questions:
      - How do I change the loyalty points on a loyalty card?
      - Can I deactivate a loyalty object by setting its state?
      instructions:
      - text: Replace loyalty object {resourceId} with {loyaltyPoints} points.
        slots:
          resourceId: path.resourceId
          loyaltyPoints: requestBody.loyaltyPoints
      - text: Set loyalty object {resourceId} state to {state}.
        slots:
          resourceId: path.resourceId
          state: requestBody.state
      method: generated
      generated: '2026-11-16'
- target: $.paths['/walletobjects/v1/loyaltyObject/{resourceId}'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a loyalty card object
      effect: write
      questions:
      - How do I change the state of a loyalty card on a user's phone?
      - Can I stop notifications about a loyalty card?
      instructions:
      - text: Update loyalty card {card} to state {state}.
        slots:
          card: path.resourceId
          state: requestBody.state
      - text: Set loyalty card {card} with {messages}.
        slots:
          card: path.resourceId
          messages: requestBody.messages
      method: generated
      generated: '2026-11-16'
- target: $.paths['/walletobjects/v1/loyaltyObject/{resourceId}/modifyLinkedOfferObjects'].post
  update:
    x-apievangelist-phrasing:
      intent: Link offers to a loyalty card (deprecated)
      effect: write
      questions:
      - Can I still link offers to a loyalty card with the old modify-linked-offers call?
      - Is the linked-offers modification endpoint deprecated?
      instructions:
      - text: Modify linked offers on loyalty object {resourceId} to {linkedOfferObjectIds}.
        slots:
          resourceId: path.resourceId
          linkedOfferObjectIds: requestBody.linkedOfferObjectIds
      - text: Use the deprecated call to link offers {linkedOfferObjectIds} to loyalty card {resourceId}.
        slots:
          linkedOfferObjectIds: requestBody.linkedOfferObjectIds
          resourceId: path.resourceId
      method: generated
      generated: '2026-11-16'
- target: $.paths['/walletobjects/v1/loyaltyObject'].get
  update:
    x-apievangelist-phrasing:
      intent: List loyalty objects
      effect: read
      questions:
      - Which loyalty cards does a given issuer ID have?
      - Can I list loyalty objects for one class?
      instructions:
      - text: List loyalty objects for issuer ID {classId}.
        slots:
          classId: query.classId
      - text: Show up to {maxResults} loyalty cards.
        slots:
          maxResults: query.maxResults
      method: generated
      generated: '2026-11-16'
- target: $.paths['/walletobjects/v1/loyaltyObject'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a loyalty object
      effect: write
      questions:
      - How do I create a new loyalty card for a customer?
      - What fields are required to insert a loyalty object?
      instructions:
      - text: Insert loyalty object {id} for class {classId} with {loyaltyPoints} points.
        slots:
          id: requestBody.id
          classId: requestBody.classId
          loyaltyPoints: requestBody.loyaltyPoints
      - text: Create a new loyalty card {id} for account {accountName}.
        slots:
          id: requestBody.id
          accountName: requestBody.accountName
      method: generated
      generated: '2026-11-16'
- target: $.paths['/walletobjects/v1/loyaltyObject/{resourceId}/addMessage'].post
  update:
    x-apievangelist-phrasing:
      intent: Add a message to a loyalty object
      effect: write
      questions:
      - How do I send a message to users of a loyalty card?
      - Can I add a message to a loyalty object without replacing it?
      instructions:
      - text: Add message {message} to loyalty object {resourceId}.
        slots:
          message: requestBody.message
          resourceId: path.resourceId
      - text: Send a message to the users of loyalty card {resourceId}.
        slots:
          resourceId: path.resourceId
      method: generated
      generated: '2026-11-16'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/google-pay-loyaltyobject-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.