POST | /warranty/v1/createCustomer |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
customerRef | body | string | No | |
title | body | int | No | |
firstName | body | string | No | |
lastName | body | string | No | |
firstNameNotLatin | body | string | No | |
lastNameNotLatin | body | string | No | |
birthday | body | DateTime? | No | |
body | string | No | ||
canBeContacted | body | bool | No | |
language | body | string | No | |
nameSuffix | body | string | No | |
gender | body | string | No | |
middleName | body | string | No | |
countryId | body | string | No | |
phoneCountryId | body | string | No | |
prefixCountryId | body | string | No | |
phone | body | string | No | |
posId | body | int | No | |
brandTrigram | body | string | No | |
weddingDate | body | DateTime? | No | |
street | body | string | No | |
houseNumber | body | string | No | |
city | body | string | No | |
postalCode | body | string | No | |
region | body | string | No | |
street2 | body | string | No | |
street3 | body | string | No | |
street4 | body | string | No | |
street5 | body | string | No | |
salePersonId | body | string | No | |
privacyPolicyAcceptanceStorage | body | bool? | No | |
allowStoreDataAbroad | body | bool? | No | |
tvPrivacyPolicyAcceptanceStorage | body | bool? | No | |
tvAllowStoreDataAbroad | body | bool? | No | |
contactByMail | body | bool | No | |
contactByEmail | body | bool | No | |
contactByPhone | body | bool | No | |
contactBySMS | body | bool | No | |
contactBySocialMedia | body | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
sid | form | string | No | |
app | form | string | No | |
_os | form | string | No | |
_appVersion | form | string | No | |
_searchMethod | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
customerId | form | Guid? | No | |
boosterCustomerId | form | int? | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
_xmlns | form | string | No | |
_type | form | string | No | |
_source | form | string | No | |
_tstamp | form | string | No | |
_user | form | string | No | |
_env | form | string | No | |
_uri | form | string | No | |
_query | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
customerId | form | Guid? | No | |
boosterCustomerId | form | int? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /warranty/v1/createCustomer HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"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,"brandTrigram":"String","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/csv Content-Length: length {"customerId":"00000000000000000000000000000000","boosterCustomerId":0,"_xmlns":"String","_type":"String","_source":"String","_tstamp":"String","_user":"String","_env":"String","_uri":"String","_query":"String"}