| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| POST | /voss/usage | Add product to company invoicing | Add new product to company invoicing. Sends that product to VOSS System. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CompanyId | body | Guid | Yes | The company id |
| ArticleNumber | body | string | Yes | Article number. Can be fetched from products |
| Quantity | body | int | Yes | Example: developer worked 6 hours |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProductGroupType | form | ProductGroupTypeEnum | No | |
| Status | form | StatusEnum | No | |
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| Products | form | List<SubscriptionProductGroupProductResultDto> | Yes | |
| Termination | form | SubscriptionItemTerminationDto | Yes | |
| Created | form | DateTime | No | |
| CustomerBalanceChange | form | CustomerBalanceChangeDto | Yes |
| Optional | |
| Included |
| Active | |
| Terminated |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| ExternalId | form | string | Yes | |
| ArticleNumber | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | form | TypeEnum | No | |
| Source | form | SourceEnum | No | |
| ScheduledDate | form | DateTime | No | |
| Reason | form | SubscriptionItemTerminationReasonDto | Yes | |
| CreditOptions | form | CreditOptionsDto | Yes |
| AtSubscriptionBillingPeriodEnd | |
| AtBindingPeriodEnd | |
| Immediately |
| Direct | |
| Plan | |
| CustomerExpiration | |
| Update | |
| Unpaid |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ReasonId | form | Guid | No | |
| ReasonName | form | string | Yes | |
| ReasonExternalId | form | string | Yes | |
| SubReasonId | form | Guid? | No | |
| SubReasonName | form | string | Yes | |
| SubReasonExternalId | form | string | Yes | |
| Comment | form | string | Yes |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SubscriptionBehaviour | form | SubscriptionBehaviourEnum | No | |
| CreditKind | form | CreditKindEnum | No | |
| ProrateTimeAnchor | form | DateTime? | No |
| Prorate | |
| Full | |
| None |
| Normal | |
| Internal |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Items | form | List<CustomerBalanceChangeItemDto> | Yes | |
| TotalAmount | form | double | No | |
| TotalDiscountAmount | form | double | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProductType | form | ProductTypeEnum | No | |
| Id | form | Guid | No | |
| Name | form | string | Yes | |
| ProductGroupId | form | Guid | No | |
| ProductGroupName | form | string | Yes | |
| Quantity | form | double | No | |
| Amount | form | double | No | |
| DiscountAmount | form | double | No | |
| TotalAmount | form | double | No | |
| InvoiceRecipientCustomerId | form | Guid | No |
| Main | |
| Addon | |
| License | |
| Usage |
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.
POST /voss/usage HTTP/1.1
Host: api.bookmore.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ArticleNumber":"String","Quantity":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"productGroupType":"Optional","status":"Active","name":"String","products":[{}]}