| GET | /voss/packages | get voss package |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PackageId | query | Guid? | No | The package id; if not passed the configured BokaMera package will be used. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PackageStatus | form | PackageStatusEnum | No | |
| Id | form | Guid | No | |
| VersionId | form | Guid | No | |
| SourceVersionId | form | Guid? | No | |
| Name | form | string | Yes | |
| ExternalId | form | string | Yes | |
| Tiers | form | List<PackageTierDto> | Yes | |
| Plans | form | List<PackagePlanDto> | Yes | |
| ChargePlans | form | List<PackageChargePlanDto> | Yes | |
| SalesChannels | form | List<PackageSalesChannelDto> | Yes | |
| TargetGroups | form | List<PackageTargetGroupDto> | Yes | |
| ScheduledChanges | form | List<PackageScheduledChangeResult> | Yes |
| Draft | |
| Staged | |
| Published | |
| Archived | |
| Discarded |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| ExternalId | form | string | Yes | |
| ProductGroups | form | List<PackageProductGroupDto> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProductGroupType | form | ProductGroupTypeEnum | No | |
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| ExternalId | form | string | Yes | |
| Tags | form | List<ProductGroupTagDto> | Yes | |
| Products | form | List<PackageProductDto> | Yes |
| Optional | |
| Included |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | form | TypeEnum | No | |
| Tag | form | string | Yes |
| AtSubscriptionBillingPeriodEnd | |
| AtBindingPeriodEnd |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProductType | form | ProductTypeEnum | No | |
| Status | form | StatusEnum | No | |
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| ExternalId | form | string | Yes | |
| ArticleNumber | form | string | Yes |
| Main | |
| Addon | |
| License | |
| Usage |
| Active | |
| Terminated |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| ExternalId | form | string | Yes | |
| BindingPeriodCycle | form | BindingPeriodCycleDto | Yes | |
| SubscriptionBillingPeriodCycle | form | BillingPeriodCycleDto | Yes | |
| UsageBillingPeriodCycle | form | BillingPeriodCycleDto | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PeriodEndAction | form | PeriodEndActionEnum | No | |
| Length | form | TimeLengthDto | Yes |
| Renew | |
| Terminate |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Unit | form | UnitEnum | No | |
| Value | form | int | No |
| Day | |
| Month | |
| Year |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Length | form | TimeLengthDto | Yes | |
| InvoiceDateOffset | form | PeriodDateOffsetDto | Yes | |
| RenewalDateOffset | form | PeriodDateOffsetDto | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PeriodAnchor | form | PeriodAnchorEnum | No | |
| Length | form | TimeLengthDto | Yes | |
| ValueAnchor | form | int? | No |
| PeriodCreated | |
| PeriodStart | |
| PeriodEnd |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| TierId | form | Guid | No | |
| PlanId | form | Guid | No | |
| ProductGroupPricings | form | List<ProductGroupPricingDto> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProductGroupId | form | Guid | No | |
| ArticleNumber | form | string | Yes | |
| Price | form | double | No | |
| ProductPricings | form | List<ProductPricingDto> | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PricingScheme | form | PricingSchemeEnum | No | |
| ProductId | form | Guid | No | |
| IncludedQuantity | form | int? | No | |
| MaxQuantity | form | int? | No | |
| UnitPrice | form | double? | No | |
| TierPricing | form | List<ProductTierPricingDto> | Yes | |
| ArticleNumber | form | string | Yes |
| UnitPricing | |
| TierPricing |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Index | form | int | No | |
| UnitPrice | form | double | No | |
| FlatPrice | form | double | No | |
| RepeatEvery | form | int? | No | |
| UpperLimit | form | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| Description | form | string | Yes | |
| ValidFrom | form | DateTime? | No | |
| ValidTo | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| IsDefault | form | bool | No | |
| ExternalId | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Status | form | StatusEnum | No | |
| Id | form | Guid | No | |
| VersionId | form | Guid | No | |
| Package | form | PackageScheduledChangeResultDto | Yes | |
| ScheduledDate | form | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Status | form | PackageStatusEnum? | No | |
| Name | form | string | Yes |
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 /voss/packages HTTP/1.1 Host: testapi.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"status":"Draft","sourceVersionId":"00000000-0000-0000-0000-000000000000","name":"String","externalId":"String","tiers":[{}],"plans":[{}],"chargePlans":[{}],"salesChannels":[{}],"targetGroups":[{}],"scheduledChanges":[{}]}