Requires any of the roles: | bookingsupplier-administrator-write, superadmin, bookingsupplier-administrator-read |
GET | /gdpr/customers/{CustomerId} | Get all customer information stored on the customer | Get all information stored on the customer |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | query | Guid? | Yes | Enter 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 |
CustomerId | path | Guid | Yes | Id of the customer |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Bookings | form | List<GDPRCustomerBookingsResponse> | No | |
MessageLog | form | List<GDPRCustomerMessageLogResponse> | No | |
UserProfile | form | UserProfileResponse | No | |
Customer | form | GDPRCustomerInfoResponse | No | |
CustomerComment | form | List<GDPRCustomerCommentsResponse> | No | |
NewsletterLog | form | List<GDPRCustomerNewsletterLogResponse> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | No | |
Id | form | int | No | |
CustomerId | form | Guid | No | |
ServiceId | form | int | No | |
StatusId | form | int | No | |
From | form | DateTime | No | |
To | form | DateTime | No | |
UnbookedOn | form | DateTime? | No | |
UnbookedComments | form | string | No | |
BookedComments | form | string | No | |
BookedBy | form | string | No | |
Comments | form | string | No | |
TextField1 | form | string | No | |
TextField2 | form | string | No | |
TextField3 | form | string | No | |
TextField4 | form | string | No | |
TextField5 | form | string | No | |
TextField6 | form | string | No | |
TextField7 | form | string | No | |
TextField8 | form | string | No | |
TextField9 | form | string | No | |
TextField10 | form | string | No | |
TextField11 | form | string | No | |
TextField12 | form | string | No | |
TextField13 | form | string | No | |
TextField14 | form | string | No | |
TextField15 | form | string | No | |
TextField16 | form | string | No | |
TextField17 | form | string | No | |
TextField18 | form | string | No | |
TextField19 | form | string | No | |
TextField20 | form | string | No | |
UpdatedDate | form | DateTime | No | |
CreatedDate | form | DateTime | No | |
CommentsToCustomer | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | No | |
Id | form | int | No | |
BookingId | form | int? | No | |
Receiver | form | string | No | |
Sender | form | string | No | |
MessageTitle | form | string | No | |
MessageBody | form | string | No | |
CreatedBy | form | string | No | |
Created | form | DateTime | No | |
Sent | form | bool | No | |
SentDate | form | DateTime? | No | |
SendMethodId | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | Guid | No | |
Firstname | form | string | Yes | |
Lastname | form | string | Yes | |
Phone | form | string | Yes | |
form | string | Yes |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserId | form | Guid | No | |
Firstname | form | string | No | |
Lastname | form | string | No | |
Phone | form | string | No | |
form | string | No | ||
Active | form | bool | No | |
FacebookUsername | form | string | No | |
TextField1 | form | string | No | |
TextField2 | form | string | No | |
TextField3 | form | string | No | |
TextField4 | form | string | No | |
TextField5 | form | string | No | |
TextField6 | form | string | No | |
TextField7 | form | string | No | |
TextField8 | form | string | No | |
TextField9 | form | string | No | |
TextField10 | form | string | No | |
TextField11 | form | string | No | |
TextField12 | form | string | No | |
TextField13 | form | string | No | |
TextField14 | form | string | No | |
TextField15 | form | string | No | |
TextField16 | form | string | No | |
TextField17 | form | string | No | |
TextField18 | form | string | No | |
TextField19 | form | string | No | |
TextField20 | form | string | No | |
Updated | form | DateTime | No | |
Created | form | DateTime | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | No | |
Id | form | int | No | |
CustomerId | form | Guid | No | |
Comments | form | string | No | |
Updated | form | DateTime | No | |
Created | form | DateTime | No | |
ImageUrl | form | Uri | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | No | |
Id | form | int | No | |
NewslettersId | form | int? | No | |
Receiver | form | string | No | |
Sender | form | string | No | |
MessageTitle | form | string | No | |
MessageBody | form | string | No | |
Sent | form | bool | No | |
Created | form | DateTime | 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.
GET /gdpr/customers/{CustomerId} HTTP/1.1 Host: api.bokamera.se Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv 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 } } }