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 | No | |
Description | body | string | No | |
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 .csv suffix or ?format=csv
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: testapi.bokamera.se
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"DiscountAgreementStatus":"Draft","Name":"String","Description":"String","ValidTo":"0001-01-01T00:00:00"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {}