BokaMera.API.Host

<back to all web services

GDPRCustomerQuery

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin, bookingsupplier-administrator-read
The following routes are available for this service:
GET/gdpr/customers/{CustomerId}Get all customer information stored on the customerGet all information stored on the customer
GDPRCustomerQuery Parameters:
NameParameterData TypeRequiredDescription
CompanyIdqueryGuid?YesEnter the company and id you want to see the information for a resource, if blank company id and you are an admin, your company id will be used. If blank id, all resources will be shown
CustomerIdpathGuidYesId of the customer
GDPRCustomerQueryResponse Parameters:
NameParameterData TypeRequiredDescription
BookingsformList<GDPRCustomerBookingsResponse>No
MessageLogformList<GDPRCustomerMessageLogResponse>No
UserProfileformUserProfileResponseNo
CustomerformGDPRCustomerInfoResponseNo
CustomerCommentformList<GDPRCustomerCommentsResponse>No
NewsletterLogformList<GDPRCustomerNewsletterLogResponse>No
ResponseStatusformResponseStatusNo
GDPRCustomerBookingsResponse Parameters:
NameParameterData TypeRequiredDescription
CompanyIdformGuidNo
IdformintNo
CustomerIdformGuidNo
ServiceIdformintNo
StatusIdformintNo
FromformDateTimeNo
ToformDateTimeNo
UnbookedOnformDateTime?No
UnbookedCommentsformstringNo
BookedCommentsformstringNo
BookedByformstringNo
CommentsformstringNo
TextField1formstringNo
TextField2formstringNo
TextField3formstringNo
TextField4formstringNo
TextField5formstringNo
TextField6formstringNo
TextField7formstringNo
TextField8formstringNo
TextField9formstringNo
TextField10formstringNo
TextField11formstringNo
TextField12formstringNo
TextField13formstringNo
TextField14formstringNo
TextField15formstringNo
TextField16formstringNo
TextField17formstringNo
TextField18formstringNo
TextField19formstringNo
TextField20formstringNo
UpdatedDateformDateTimeNo
CreatedDateformDateTimeNo
CommentsToCustomerformstringNo
GDPRCustomerMessageLogResponse Parameters:
NameParameterData TypeRequiredDescription
CompanyIdformGuidNo
IdformintNo
BookingIdformint?No
ReceiverformstringNo
SenderformstringNo
MessageTitleformstringNo
MessageBodyformstringNo
CreatedByformstringNo
CreatedformDateTimeNo
SentformboolNo
SentDateformDateTime?No
SendMethodIdformintNo
UserProfileResponse Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
FirstnameformstringYes
LastnameformstringYes
PhoneformstringYes
EmailformstringYes
GDPRCustomerInfoResponse Parameters:
NameParameterData TypeRequiredDescription
UserIdformGuidNo
FirstnameformstringNo
LastnameformstringNo
PhoneformstringNo
EmailformstringNo
ActiveformboolNo
FacebookUsernameformstringNo
TextField1formstringNo
TextField2formstringNo
TextField3formstringNo
TextField4formstringNo
TextField5formstringNo
TextField6formstringNo
TextField7formstringNo
TextField8formstringNo
TextField9formstringNo
TextField10formstringNo
TextField11formstringNo
TextField12formstringNo
TextField13formstringNo
TextField14formstringNo
TextField15formstringNo
TextField16formstringNo
TextField17formstringNo
TextField18formstringNo
TextField19formstringNo
TextField20formstringNo
UpdatedformDateTimeNo
CreatedformDateTimeNo
GDPRCustomerCommentsResponse Parameters:
NameParameterData TypeRequiredDescription
CompanyIdformGuidNo
IdformintNo
CustomerIdformGuidNo
CommentsformstringNo
UpdatedformDateTimeNo
CreatedformDateTimeNo
ImageUrlformUriNo
GDPRCustomerNewsletterLogResponse Parameters:
NameParameterData TypeRequiredDescription
CompanyIdformGuidNo
IdformintNo
NewslettersIdformint?No
ReceiverformstringNo
SenderformstringNo
MessageTitleformstringNo
MessageBodyformstringNo
SentformboolNo
CreatedformDateTimeNo

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.

GET /gdpr/customers/{CustomerId} HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Bookings":[{"Id":0,"ServiceId":0,"StatusId":0,"UnbookedOn":"0001-01-01T00:00:00","UnbookedComments":"String","BookedComments":"String","BookedBy":"String","Comments":"String","TextField1":"String","TextField2":"String","TextField3":"String","TextField4":"String","TextField5":"String","TextField6":"String","TextField7":"String","TextField8":"String","TextField9":"String","TextField10":"String","TextField11":"String","TextField12":"String","TextField13":"String","TextField14":"String","TextField15":"String","TextField16":"String","TextField17":"String","TextField18":"String","TextField19":"String","TextField20":"String","CommentsToCustomer":"String"}],"MessageLog":[{"Id":0,"BookingId":0,"Receiver":"String","Sender":"String","MessageTitle":"String","MessageBody":"String","CreatedBy":"String","Sent":false,"SentDate":"0001-01-01T00:00:00","SendMethodId":0}],"UserProfile":{"Firstname":"String","Lastname":"String","Phone":"String","Email":"String"},"Customer":{"Firstname":"String","Lastname":"String","Phone":"String","Email":"String","Active":false,"FacebookUsername":"String","TextField1":"String","TextField2":"String","TextField3":"String","TextField4":"String","TextField5":"String","TextField6":"String","TextField7":"String","TextField8":"String","TextField9":"String","TextField10":"String","TextField11":"String","TextField12":"String","TextField13":"String","TextField14":"String","TextField15":"String","TextField16":"String","TextField17":"String","TextField18":"String","TextField19":"String","TextField20":"String"},"CustomerComment":[{"Id":0,"Comments":"String"}],"NewsletterLog":[{"Id":0,"NewslettersId":0,"Receiver":"String","Sender":"String","MessageTitle":"String","MessageBody":"String","Sent":false}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}