| POST | /customer/{brand}/{elevateCustomerId}/grantElevateConsent | Update Elevate customer consent to 'Approved' | Currently the API sets Elevate customer consent only to 'Approved' status |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.CRM.ServiceModel
Namespace Global
Namespace Richemont.Booster2.PublicApi.CRM.ServiceModel
Public Partial Class GrantElevateConsent
'''<Summary>
'''Elevate customer ID
'''</Summary>
<ApiMember(Description:="Elevate customer ID")>
Public Overridable Property elevateCustomerId As String
'''<Summary>
'''POS Legacy
'''</Summary>
<ApiMember(Description:="POS Legacy", IsRequired:=true)>
Public Overridable Property posCode As String
'''<Summary>
'''Brand e.g. CAR, MTB
'''</Summary>
<ApiMember(Description:="Brand e.g. CAR, MTB", IsRequired:=true)>
Public Overridable Property brand As String
'''<Summary>
'''Phone e.g. cn: 13888889999, jp: 352858088, kr: 023123456. Email or full phone required
'''</Summary>
<ApiMember(Description:="Phone e.g. cn: 13888889999, jp: 352858088, kr: 023123456. Email or full phone required")>
Public Overridable Property phone As String
'''<Summary>
'''Prefix Country Id e.g. it, fr, az. Email or full phone required
'''</Summary>
<ApiMember(Description:="Prefix Country Id e.g. it, fr, az. Email or full phone required")>
Public Overridable Property phoneCountryPrefix As String
'''<Summary>
'''Customer email. Email or full phone required
'''</Summary>
<ApiMember(Description:="Customer email. Email or full phone required")>
Public Overridable Property email As String
End Class
Public Partial Class GrantElevateConsentResponse
'''<Summary>
'''Salesforce Standard ID
'''</Summary>
<ApiMember(Description:="Salesforce Standard ID", IsRequired:=true)>
Public Overridable Property salesforceStandardId As String
End Class
End Namespace
End Namespace
VB.NET GrantElevateConsent DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /customer/{brand}/{elevateCustomerId}/grantElevateConsent HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"elevateCustomerId":"String","posCode":"String","brand":"String","phone":"String","phoneCountryPrefix":"String","email":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"salesforceStandardId":"String"}