POST | /warranty/v1/card/{cardId}/createCustomer |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
cardId | path | string | No | |
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 | |
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 .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
cardId: String,
customerRef: String,
title: 0,
firstName: String,
lastName: String,
firstNameNotLatin: String,
lastNameNotLatin: String,
birthday: 0001-01-01,
email: String,
canBeContacted: False,
language: String,
nameSuffix: String,
gender: String,
middleName: String,
countryId: String,
phoneCountryId: String,
prefixCountryId: String,
phone: String,
posId: 0,
weddingDate: 0001-01-01,
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/jsv Content-Length: length { customerId: 00000000000000000000000000000000, boosterCustomerId: 0, _xmlns: String, _type: String, _source: String, _tstamp: String, _user: String, _env: String, _uri: String, _query: String }