| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| PUT | /voss/discountAgreements | PUT Discount agreements |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DiscountAgreementId | body | Guid | Yes | Discount agreement data |
| DiscountPeriod | body | UpdateDiscountPeriodRequestDto | Yes | Discount agreement period data. Iteration count must be added |
| DiscountAgreementStatus | body | DiscountAgreementStatusEnum | Yes | Discount agreement status. Published is default. |
| Name | body | string | Yes | |
| Description | body | string | Yes | |
| ValidFrom | body | DateTime | No | |
| ValidTo | body | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PeriodKind | form | PeriodKindEnum | No | |
| Length | form | DiscountAgreementTimeLengthRequestDto | Yes | |
| PeriodIterationCount | form | int? | No |
| FixedTime | |
| AlignedToBindingPeriod | |
| AlignedToSubscriptionBillingPeriod |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Unit | form | UnitEnum | No | |
| Value | form | int | No |
| Day | |
| Month | |
| Year |
| Draft | |
| Staged | |
| Published | |
| Archived | |
| Discarded |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /voss/discountAgreements HTTP/1.1
Host: api.bokamera.se
Accept: application/json
Content-Type: application/json
Content-Length: length
{"DiscountAgreementStatus":"Draft","Name":"String","Description":"String","ValidTo":"0001-01-01T00:00:00"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{}