| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| POST | /voss/presetBehaviour | create preset behaviour in voss |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ChangeType | body | ChangeTypeEnum | No | Company ids to create invoice. If none added invoice for all will be created |
| ChangeOperation | body | ChangeOperationEnum | No | |
| Timing | body | SubscriptionTimingEnum | No | |
| PeriodAnchor | body | PeriodAnchorEnum | No | |
| RenewalTiming | body | RenewalTimingEnum | No | |
| DebitBehaviour | body | SubscriptionBehaviourEnum? | No | |
| CreditBehaviour | body | SubscriptionBehaviourEnum? | No | |
| CreditKind | body | CreditKindEnum? | No | |
| PeriodIterationCount | body | int? | No |
| Subscription | |
| ProductGroup | |
| License |
| Create | |
| Terminate | |
| Upgrade | |
| Sidegrade | |
| Downgrade | |
| Migration |
| AtSubscriptionBillingPeriodEnd | |
| AtBindingPeriodEnd | |
| Immediately |
| LatestPeriod | |
| CurrentPeriod |
| UseCurrentPlanRenewalDate | |
| UseScheduledPlanRenewalDate |
| Prorate | |
| Full | |
| None |
| Normal | |
| Internal |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /voss/presetBehaviour HTTP/1.1
Host: api.bokamera.se
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ChangeType: Subscription,
ChangeOperation: Create,
Timing: AtSubscriptionBillingPeriodEnd,
PeriodAnchor: LatestPeriod,
RenewalTiming: UseCurrentPlanRenewalDate,
DebitBehaviour: Prorate,
CreditBehaviour: Prorate,
CreditKind: Normal,
PeriodIterationCount: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
}