BokaMera.API.Host

<back to all web services

GetVossProducts

The following routes are available for this service:
GET/voss/productsgets voss products
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


class ProductTypeEnum(str, Enum):
    MAIN = 'Main'
    ADDON = 'Addon'
    LICENSE = 'License'
    USAGE = 'Usage'


# @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetVossProducts:
    # @ApiMember(Description="The type of the product  - Main = The product is treated as the main product of the product group (Only 1 allowed per product family in the package tier), billed in subscription billing period  - Addon = The product is treated as the addon product of the product group (Multiple allowed per product family in the package tier when Main product is also present),  billed in subscription billing period  - License = The product is treated as the license product in the product group (Multiple allowed per product family in the package tier when Main product is also present),  billed in subscription billing period and product quantity is carried over to the next billing period,  requires to have individual pricing in a product group pricing  - Usage = The product is treated as the usage product of the product group,  billed in usage billing period, the product quantity is reset every usage billing period,  requires to have individual pricing in a product group pricing\n")
    product_type: Optional[ProductTypeEnum] = None
    """
    The type of the product  - Main = The product is treated as the main product of the product group (Only 1 allowed per product family in the package tier), billed in subscription billing period  - Addon = The product is treated as the addon product of the product group (Multiple allowed per product family in the package tier when Main product is also present),  billed in subscription billing period  - License = The product is treated as the license product in the product group (Multiple allowed per product family in the package tier when Main product is also present),  billed in subscription billing period and product quantity is carried over to the next billing period,  requires to have individual pricing in a product group pricing  - Usage = The product is treated as the usage product of the product group,  billed in usage billing period, the product quantity is reset every usage billing period,  requires to have individual pricing in a product group pricing
    """

Python GetVossProducts 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.

GET /voss/products HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

[{"Name":"String","ArticleNumber":"String"}]