BokaMera.API.Host

<back to all web services

UpdateCompanyInvoiceArticle

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
PUT/company/invoice/articleUpdate company invoice articleUpdate company invoice article.
Imports System
Imports System.IO
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

        Public Partial Class CompanyInvoiceArticleQueryResponse
            Public Overridable Property Name As String
            Public Overridable Property LicenseTypeId As Integer?
            Public Overridable Property LicenseProductTypeId As Integer
            Public Overridable Property Id As Integer
        End Class

        <ApiResponse(Description:="You were unauthorized to call this service", StatusCode:=401)>
        <ValidateRequest(Validator:="IsAuthenticated")>
        Public Partial Class UpdateCompanyInvoiceArticle
            '''<Summary>
            '''Invoice article No in Db.
            '''</Summary>
            <ApiMember(Description:="Invoice article No in Db.", IsRequired:=true)>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''Invoice article Name
            '''</Summary>
            <ApiMember(Description:="Invoice article Name")>
            Public Overridable Property Name As String

            '''<Summary>
            '''Invoice article Name
            '''</Summary>
            <ApiMember(Description:="Invoice article Name")>
            Public Overridable Property LicenseTypeId As Integer?

            '''<Summary>
            '''Invoice LicenseProductTypeId
            '''</Summary>
            <ApiMember(Description:="Invoice LicenseProductTypeId")>
            Public Overridable Property LicenseProductTypeId As Integer?

            '''<Summary>
            '''Invoice article is TIER license
            '''</Summary>
            <ApiMember(Description:="Invoice article is TIER license")>
            Public Overridable Property IsMainLicense As Boolean?

            '''<Summary>
            '''Invoice VossProductGroupId reference
            '''</Summary>
            <ApiMember(Description:="Invoice VossProductGroupId reference")>
            Public Overridable Property VossProductGroupId As Guid?
        End Class
    End Namespace
End Namespace

VB.NET UpdateCompanyInvoiceArticle DTOs

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.

PUT /company/invoice/article HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Id":0,"Name":"String","LicenseTypeId":0,"LicenseProductTypeId":0,"IsMainLicense":false,"VossProductGroupId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Name":"String","LicenseTypeId":0,"LicenseProductTypeId":0,"Id":0}