Référence de l'entreprise du client auquel l'appareil est attribué.
orderNumber
string
Non
Numéro de la commande
vendorParams
map
Non
Champs supplémentaires, paire clé-valeur spécifiée par le fournisseur.
ClaimDeviceResponse
Nom de propriété
Valeur
Description
deviceId
string
ID de l'appareil, précédé du préfixe "samsung/" ou "google/".
Comportement en cas d'erreur
Si une erreur se produit, la bibliothèque génère une CommonException contenant l'un des codes d'erreur suivants:
Code d'erreur
AUTHORIZATION_FAIL
DUPLICATE_DEVICES
INVALID_CUSTOMER_ID
INVALID_DEVICE_IMEI
INVALID_DEVICE_MEID
INVALID_DEVICE_SERIAL
INVALID_IDENTIFIER_SET
INVALID_MANUFACTURER
INVALID_MODEL
NOT_IMPLEMENTED
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/05/08 (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/05/08 (UTC)."],[[["This API allows a synchronous request to claim a single device for a specific customer, utilizing the `claimDevice` method."],["The `claimDevice` method requires a `ClaimDeviceRequest` object, which must include a `DeviceClaim` object containing the device identifier and customer details."],["The `DeviceClaim` object necessitates a `DeviceIdentifier` and a `CompanyReference` object, optionally accepting an order number and vendor-specific parameters."],["The `claimDevice` method returns a `ClaimDeviceResponse` containing the device ID, prefixed with either 'samsung/' or 'google/'."],["The API can throw a `CommonException` with various error codes, including `AUTHORIZATION_FAIL`, `DUPLICATE_DEVICES`, and several `INVALID_*` errors, indicating potential issues with the request."]]],["This describes the `claimDevice` method, which synchronously claims a single device for a customer. It requires a `DeviceClaim` object containing the `deviceIdentifier` and `customer` details. Optional fields include `orderNumber` and `vendorParams`. The method returns a `ClaimDeviceResponse` containing the `deviceId`. Errors are handled by a `CommonException` with codes like `AUTHORIZATION_FAIL`, `INVALID_CUSTOMER_ID`, and `DUPLICATE_DEVICES`. This API is not supported by the `ResellerService` class.\n"]]