Loyaltyobject: modifylinkedofferobjects

Requires authorization

Add (and remove) linked offer objects, specified by ID, to the loyalty object referenced by the resource ID.

Request

HTTP request

POST https://www.googleapis.com/walletobjects/v1/loyaltyObject/resourceId/modifyLinkedOfferObjects

Parameters

Parameter name Value Description
Path parameters
resourceId string The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. The unique identifier should only include alphanumeric characters, '.', '_', or '-'.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/wallet_object.issuer

Request body

In the request body, supply data with the following structure:

{
  "linkedOfferObjectIds": {
    "kind": "walletobjects#walletObjectModifyLinkedOfferObjects",
    "addLinkedOfferObjectIds": [
      string
    ],
    "removeLinkedOfferObjectIds": [
      string
    ]
  }
}
Property name Value Description Notes
linkedOfferObjectIds nested object
linkedOfferObjectIds.kind string Identifies what kind of resource this is. Value: the fixed string "walletobjects#walletObjectModifyLinkedOfferObjects".
linkedOfferObjectIds.addLinkedOfferObjectIds[] list The linked offer object ids to add to the loyalty object. writable
linkedOfferObjectIds.removeLinkedOfferObjectIds[] list The linked offer object ids to remove from the loyalty object. writable

Response

If successful, this method returns a response body with the following structure:

{
  "resource": loyaltyobject Resource
}
Property name Value Description Notes
resource nested object A REST resource.

Envoyer des commentaires concernant…

Google Pay for Passes