Identifiant unique d'un objet. Cet identifiant doit être unique pour tous les objets d'un émetteur. Cette valeur doit respecter le format issuer ID.identifier, où le premier est émis par Google et le deuxième est choisi par vous. Votre identifiant unique ne doit contenir que des caractères alphanumériques, ainsi que des symboles ".", "_" et "-".
Corps de la requête
Le corps de la requête contient une instance de GiftCardObject.
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient une instance de GiftCardObject.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eUpdates a gift card object with patch semantics using the provided object ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body and successful response both contain a \u003ccode\u003eGiftCardObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe object ID in the path follows a specific format: \u003ccode\u003e<issuer ID>.<identifier>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires \u003ccode\u003ehttps://www.googleapis.com/auth/wallet_object.issuer\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],["This content describes updating a gift card object using a PATCH request. The target URL is `PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`, where `resourceId` is a unique identifier composed of an issuer ID and a chosen identifier. The request body uses the `GiftCardObject` schema, and successful responses also return a `GiftCardObject` instance. The method requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nUpdates the gift card object referenced by the given object ID. This method supports patch semantics.\n\nHTTP request\n\n`PATCH https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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 \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |\n\nRequest body\n\nThe request body contains an instance of [GiftCardObject](/wallet/reference/rest/v1/giftcardobject#GiftCardObject).\n\nResponse body\n\nIf successful, the response body contains an instance of [GiftCardObject](/wallet/reference/rest/v1/giftcardobject#GiftCardObject).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/wallet_object.issuer`"]]