Booster.Microservices

<back to all web services

CreateAndConnectCustomerRequest

Requires Authentication
The following routes are available for this service:
POST/warranty/v1/card/{cardId}/createCustomer
"use strict";
/** @typedef TResponse {any} */
export class BaseRequest {
    /** @param {{sid?:string,app?:string,_os?:string,_appVersion?:string,_searchMethod?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    sid;
    /** @type {string} */
    app;
    /** @type {string} */
    _os;
    /** @type {string} */
    _appVersion;
    /** @type {string} */
    _searchMethod;
}
export class BaseResponse {
    /** @param {{_xmlns?:string,_type?:string,_source?:string,_tstamp?:string,_user?:string,_env?:string,_uri?:string,_query?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    _xmlns;
    /** @type {string} */
    _type;
    /** @type {string} */
    _source;
    /** @type {string} */
    _tstamp;
    /** @type {string} */
    _user;
    /** @type {string} */
    _env;
    /** @type {string} */
    _uri;
    /** @type {string} */
    _query;
}
export class CreateAndConnectCustomerResponse extends BaseResponse {
    /** @param {{customerId?:string,boosterCustomerId?:number,_xmlns?:string,_type?:string,_source?:string,_tstamp?:string,_user?:string,_env?:string,_uri?:string,_query?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {?string} */
    customerId;
    /** @type {?number} */
    boosterCustomerId;
}
export class CreateAndConnectCustomerRequest extends BaseRequest {
    /** @param {{cardId?:string,customerRef?:string,title?:number,firstName?:string,lastName?:string,firstNameNotLatin?:string,lastNameNotLatin?:string,birthday?:string,email?:string,canBeContacted?:boolean,language?:string,nameSuffix?:string,gender?:string,middleName?:string,countryId?:string,phoneCountryId?:string,prefixCountryId?:string,phone?:string,posId?:number,weddingDate?:string,street?:string,houseNumber?:string,city?:string,postalCode?:string,region?:string,street2?:string,street3?:string,street4?:string,street5?:string,salePersonId?:string,privacyPolicyAcceptanceStorage?:boolean,allowStoreDataAbroad?:boolean,tvPrivacyPolicyAcceptanceStorage?:boolean,tvAllowStoreDataAbroad?:boolean,contactByMail?:boolean,contactByEmail?:boolean,contactByPhone?:boolean,contactBySMS?:boolean,contactBySocialMedia?:boolean,sid?:string,app?:string,_os?:string,_appVersion?:string,_searchMethod?:string}} [init] */
    constructor(init) { super(init); Object.assign(this, init) }
    /** @type {string} */
    cardId;
    /** @type {string} */
    customerRef;
    /** @type {number} */
    title;
    /** @type {string} */
    firstName;
    /** @type {string} */
    lastName;
    /** @type {string} */
    firstNameNotLatin;
    /** @type {string} */
    lastNameNotLatin;
    /** @type {?string} */
    birthday;
    /** @type {string} */
    email;
    /** @type {boolean} */
    canBeContacted;
    /** @type {string} */
    language;
    /** @type {string} */
    nameSuffix;
    /** @type {string} */
    gender;
    /** @type {string} */
    middleName;
    /** @type {string} */
    countryId;
    /** @type {string} */
    phoneCountryId;
    /** @type {string} */
    prefixCountryId;
    /** @type {string} */
    phone;
    /** @type {number} */
    posId;
    /** @type {?string} */
    weddingDate;
    /** @type {string} */
    street;
    /** @type {string} */
    houseNumber;
    /** @type {string} */
    city;
    /** @type {string} */
    postalCode;
    /** @type {string} */
    region;
    /** @type {string} */
    street2;
    /** @type {string} */
    street3;
    /** @type {string} */
    street4;
    /** @type {string} */
    street5;
    /** @type {string} */
    salePersonId;
    /** @type {?boolean} */
    privacyPolicyAcceptanceStorage;
    /** @type {?boolean} */
    allowStoreDataAbroad;
    /** @type {?boolean} */
    tvPrivacyPolicyAcceptanceStorage;
    /** @type {?boolean} */
    tvAllowStoreDataAbroad;
    /** @type {boolean} */
    contactByMail;
    /** @type {boolean} */
    contactByEmail;
    /** @type {boolean} */
    contactByPhone;
    /** @type {boolean} */
    contactBySMS;
    /** @type {boolean} */
    contactBySocialMedia;
}

JavaScript CreateAndConnectCustomerRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /warranty/v1/card/{cardId}/createCustomer HTTP/1.1 
Host: qp-microservices-booster.richemont.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"cardId":"String","customerRef":"String","title":0,"firstName":"String","lastName":"String","firstNameNotLatin":"String","lastNameNotLatin":"String","birthday":"\/Date(-62135596800000-0000)\/","email":"String","canBeContacted":false,"language":"String","nameSuffix":"String","gender":"String","middleName":"String","countryId":"String","phoneCountryId":"String","prefixCountryId":"String","phone":"String","posId":0,"weddingDate":"\/Date(-62135596800000-0000)\/","street":"String","houseNumber":"String","city":"String","postalCode":"String","region":"String","street2":"String","street3":"String","street4":"String","street5":"String","salePersonId":"String","privacyPolicyAcceptanceStorage":false,"allowStoreDataAbroad":false,"tvPrivacyPolicyAcceptanceStorage":false,"tvAllowStoreDataAbroad":false,"contactByMail":false,"contactByEmail":false,"contactByPhone":false,"contactBySMS":false,"contactBySocialMedia":false,"sid":"String","app":"String","_os":"String","_appVersion":"String","_searchMethod":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"customerId":"00000000000000000000000000000000","boosterCustomerId":0,"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}