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

createPerson

POST
/rest/2.0/personWebService/createPerson
Maintainer:Martin DA COSTA NETO
Permet de créer un client avec un identifiant défini (compte Web, UUID, etc...), sans adhésion au programme de fidélité.

Exemple :#

Cas d'un client qui s'inscrit sur le site internet et ne demande pas à créer une carte de fidélité, ou d'un prospect qui participe à un jeu concours mais ne demande pas à rejoindre le programme.

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
{
    "NewIdentifierRequest": {
        "identifierType": 1,
        "identifierValue": "1110987654321"
    },
    "PersonProfilRequest": {
        "ContactsRequest": {
            "AddressRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "address1": "ADDR 2",
                "address2": "ADDR 3",
                "address3Name": "DE LA LIBERTE",
                "address3Num": 13,
                "address3Type": 5,
                "address4": "ADDR 4",
                "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
        }
    },
    "SubscriptionRequest": [
        {
            "activate": true,
            "id": 1
        },
        {
            "activate": true,
            "id": 2
        }
    ],
    "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/createPerson' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "NewIdentifierRequest": {
        "identifierType": 1,
        "identifierValue": "1110987654321"
    },
    "PersonProfilRequest": {
        "ContactsRequest": {
            "AddressRequest": {
                "allowCompanySolicitation": 1,
                "allowTrustedSolicitation": 0,
                "address1": "ADDR 2",
                "address2": "ADDR 3",
                "address3Name": "DE LA LIBERTE",
                "address3Num": 13,
                "address3Type": 5,
                "address4": "ADDR 4",
                "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
        }
    },
    "SubscriptionRequest": [
        {
            "activate": true,
            "id": 1
        },
        {
            "activate": true,
            "id": 2
        }
    ],
    "source": "API-DOG"
}'

Responses

🟢200Success
application/json
Body

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