Requires any of the roles: | bookingsupplier-administrator-write, bookingsupplier-administrator-read, superadmin |
GET | /rebatecodes/statuses | Get RebateCode statuses | Get RebateCode statuses |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
<ApiResponse(Description:="You were unauthorized to call this service", StatusCode:=401)>
<ValidateRequest(Validator:="IsAuthenticated")>
Public Partial Class GetRebateCodeStatus
'''<Summary>
'''RebateCodeId
'''</Summary>
<ApiMember(Description:="RebateCodeId")>
Public Overridable Property Id As Nullable(Of Integer)
End Class
Public Partial Class RebateCodeStatusItem
Public Overridable Property Id As Integer
Public Overridable Property RebateCodeStatusName As String
Public Overridable Property RebateCodeStatusDescription As String
End Class
Public Partial Class RebateCodeStatusResponse
Public Sub New()
RebateCodeStatusItems = New List(Of RebateCodeStatusItem)
End Sub
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property RebateCodeStatusItems As List(Of RebateCodeStatusItem)
End Class
End Namespace
End Namespace
VB.NET GetRebateCodeStatus DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /rebatecodes/statuses HTTP/1.1 Host: api.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"RebateCodeStatusItems":[{"Id":0,"RebateCodeStatusName":"String","RebateCodeStatusDescription":"String"}]}