BokaMera.API.Host

<back to all web services

CreateAdditionalInvoice

Requires Authentication
Required role:superadminRequires the role:superadmin
The following routes are available for this service:
POST/superadmin/billing/company/additionalinvoicescreate company additional voice for the subscriptioncreate company additional voice for the subscription
namespace BokaMera.API.ServiceModel.Dtos

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<ValidateRequest(Validator="IsAuthenticated")>]
    [<AllowNullLiteral>]
    type CreateAdditionalInvoice() = 
        ///<summary>
        ///The company id, if empty will use the company id for the user you are logged in with.
        ///</summary>
        [<ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")>]
        member val CompanyId:Guid = new Guid() with get,set

        ///<summary>
        ///ArticleNo
        ///</summary>
        [<ApiMember(Description="ArticleNo")>]
        member val ArticleNo:Int32 = new Int32() with get,set

        ///<summary>
        ///Quantity
        ///</summary>
        [<ApiMember(Description="Quantity")>]
        member val Quantity:Int32 = new Int32() with get,set

        ///<summary>
        ///Description
        ///</summary>
        [<ApiMember(Description="Description")>]
        member val Description:String = null with get,set

        ///<summary>
        ///Invoie date
        ///</summary>
        [<ApiMember(Description="Invoie date")>]
        member val Date:Nullable<DateTime> = new Nullable<DateTime>() with get,set

        ///<summary>
        ///Created By
        ///</summary>
        [<ApiMember(Description="Created By")>]
        member val CreatedBy:String = null with get,set

F# CreateAdditionalInvoice 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /superadmin/billing/company/additionalinvoices HTTP/1.1 
Host: testapi.bokamera.se 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ArticleNo":0,"Quantity":0,"Description":"String","Date":"0001-01-01T00:00:00","CreatedBy":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{}