WsOne
  1. Création
WsOne
  • 🏠 Accueil
  • 👋 Introduction
  • ⚙️ Workflows / Use Cases
  • 📚 Dictionnaire de données
  • ❌ Codes erreurs
  • WS Person
    • Clients
      • Création
        • createPersonAndIdentifier
          POST
        • createPerson
          POST
        • createIdentifier
          POST
        • associateNewIdentifier
          POST
        • associateIdentifier
          POST
        • replaceIdentifier
          POST
      • Consultation / Recherche
        • getPerson
        • searchPerson
        • getAccounts
        • getFullPerson
        • searchPersonLite
        • getBadge
      • Update
        • updatePerson
    • Offres
      • getAvailableOffers
      • getEnableOffers
      • editOffer
    • Formulaires
      • getForm
      • updateForm
    • Magasins
      • getEntities
      • getEntityParents
  • WS Transaction
    • sendTransaction
    • validTransaction
    • sendAndValidTransaction
    • sendAndValidFullTransaction
    • verifyTransaction
    • cancelTransactionsNotValidated
    • sendSimpleTransaction
    • refundTransaction
    • getLastTransaction
  • Schemas
    • Response
      • AccountResponse
      • NewIdentifierResponse
      • PersonResponse
      • IdentifierResponse
      • SegmentationResponse
      • SubscriptionResponse
      • EntityResponse
      • EmailResponse
      • CellPhoneResponse
      • ContactsReponse
      • InfoPersonResponse
      • GetPersonReponse
      • AccountResponse
      • classifications
      • OfferReponse
      • AddressResponse
    • Request
      • IdentifierRequest
      • EntityRequest
      • ContactRequest
      • PersonRequest
      • PersonProfilRequest
      • NewIdentifierRequest
      • AdressRequest
      • EmailRequest
      • CellPhoneRequest
      • FullPersonRequest
      • SubscriptionRequest
      • FormAnsweredRequest
      • AssociatedIdentifierRequest
      • AccountAdvantageRequest
      • ReceiptRequest
      • DetailsRequest
  1. Création

associateNewIdentifier

POST
/rest/2.0/personWebService/associateNewIdentifier
Maintainer:Martin DA COSTA NETO
Permet d'ajouter un identifiant défini (compte web, UUID, etc...) sur un compte client déjà existant.

Exemple :#

Un client ayant créé un compte avec carte dématérialisée en magasin souhaite désormais s'inscrire sur le site internet de l'enseigne.
Au moment de la création de son compte web, il renseigne son n° de carte de fidélité. Il faut ensuite utiliser cet endpoint pour nous demander de créer son identifiant web (email + type 10) sur son n° de carte déjà existant.

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Header Params

Body Params application/json

Example
{
    "IdentifierRequest": {
        "identifierType": 10,
        "identifierValue": "email-test@email.fr"
    },
    "NewIdentifierRequest": {
        "identifierType": 30,
        "identifierValue": "9876543212345"
    },
    "PersonProfilRequest": {
        "ContactsRequest": {
            "AddressRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "address1": "ETAGE 2",
                "address2": "APPT 17",
                "address3Name": "DE LA LIBERTE",
                "address3Num": 13,
                "address3Type": 5,
                "address4": "",
                "city": "LILLE",
                "country": "FRANCE",
                "zipCode": "59000"
            },
            "EmailRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "emailValue": "email-test@email.fr"
            },
            "CellPhoneRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "model": "S24",
                "brand": "Samsung",
                "dialingCode": "33",
                "number": "0612345678"
            }
        },
        "EntityRequest": {
            "entityIdentifier": "123456"
        },
        "PersonRequest": {
            "birthDate": "01/01/2000",
            "firstName": "JEAN",
            "lastName": "DUPOND",
            "title": 1
        }
    },
    "source": "API-DOG"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/rest/2.0/personWebService/associateNewIdentifier' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "IdentifierRequest": {
        "identifierType": 10,
        "identifierValue": "email-test@email.fr"
    },
    "NewIdentifierRequest": {
        "identifierType": 30,
        "identifierValue": "9876543212345"
    },
    "PersonProfilRequest": {
        "ContactsRequest": {
            "AddressRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "address1": "ETAGE 2",
                "address2": "APPT 17",
                "address3Name": "DE LA LIBERTE",
                "address3Num": 13,
                "address3Type": 5,
                "address4": "",
                "city": "LILLE",
                "country": "FRANCE",
                "zipCode": "59000"
            },
            "EmailRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "emailValue": "email-test@email.fr"
            },
            "CellPhoneRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "model": "S24",
                "brand": "Samsung",
                "dialingCode": "33",
                "number": "0612345678"
            }
        },
        "EntityRequest": {
            "entityIdentifier": "123456"
        },
        "PersonRequest": {
            "birthDate": "01/01/2000",
            "firstName": "JEAN",
            "lastName": "DUPOND",
            "title": 1
        }
    },
    "source": "API-DOG"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "responseCode": "000",
    "infos": "Request successfully processed",
    "NewIdentifierResponse": null
}
Modified at 2025-09-30 09:30:46
Previous
createIdentifier
Next
associateIdentifier
Built with