<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.hostway.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Orders-orderId-discounts%3APUT</id>
		<title>Orders-orderId-discounts:PUT - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Orders-orderId-discounts%3APUT"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;action=history"/>
		<updated>2026-05-04T17:21:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1802&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 99</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1802&amp;oldid=prev"/>
				<updated>2014-10-14T15:07:00Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 99&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:07, 14 October 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1801&amp;oldid=prev</id>
		<title>Pa.dinh at 09:46, 1 October 2014</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1801&amp;oldid=prev"/>
				<updated>2014-10-01T09:46:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:46, 1 October 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| Price type should be '''reccuring'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| Price type should be '''reccuring'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Code: invalid_discount_amount, &lt;/del&gt;{value} discount amount is invalid&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| {value} discount amount is invalid&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| Discount amount should be a positive number.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| Discount amount should be a positive number.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Code: unsupported_discount_type, &lt;/del&gt;{type} discount type is unsupported&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| {type} discount type is unsupported&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| Type should be set to either '''amount''' or '''percent'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;| Type should be set to either '''amount''' or '''percent'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 150:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 150:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;quot;computeFault&amp;quot;: {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;quot;computeFault&amp;quot;: {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;guid&amp;quot;: &amp;quot;c3563e61-a297-4dbe-b072-24aace7b5e44&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;guid&amp;quot;: &amp;quot;c3563e61-a297-4dbe-b072-24aace7b5e44&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;message&amp;quot;: &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;class 'order_builder.bl.validation.ValidationError.ValidationError'&amp;gt;: Code: invalid_discount_amount, &lt;/del&gt;-5.00 discount amount is invalid&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;message&amp;quot;: &amp;quot;-5.00 discount amount is invalid&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;code&amp;quot;: 400,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;code&amp;quot;: 400,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;details&amp;quot;: &amp;quot;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;details&amp;quot;: &amp;quot;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 181:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 181:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;quot;computeFault&amp;quot;: {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;quot;computeFault&amp;quot;: {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;guid&amp;quot;: &amp;quot;1a94f744-5b33-4d54-ab28-77b875934829&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;guid&amp;quot;: &amp;quot;1a94f744-5b33-4d54-ab28-77b875934829&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;message&amp;quot;: &amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;class 'order_builder.bl.validation.ValidationError.ValidationError'&amp;gt;: Code: unsupported_discount_type, &lt;/del&gt;amounts discount type is unsupported&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;message&amp;quot;: &amp;quot;amounts discount type is unsupported&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;code&amp;quot;: 400,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;code&amp;quot;: 400,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;details&amp;quot;: &amp;quot;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;quot;details&amp;quot;: &amp;quot;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pa.dinh</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1675&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 98</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1675&amp;oldid=prev"/>
				<updated>2014-09-15T13:51:33Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 98&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:51, 15 September 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1674&amp;oldid=prev</id>
		<title>Pa.dinh: /* Status Code */</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=1674&amp;oldid=prev"/>
				<updated>2014-09-10T15:49:02Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Status Code&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;amp;diff=1674&amp;amp;oldid=746&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Pa.dinh</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=746&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 85</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=746&amp;oldid=prev"/>
				<updated>2013-09-27T21:31:47Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 85&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:31, 27 September 2013&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=745&amp;oldid=prev</id>
		<title>Stanimir.dimitrov: /* Parameters */</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Orders-orderId-discounts:PUT&amp;diff=745&amp;oldid=prev"/>
				<updated>2013-09-26T12:06:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Parameters&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= PUT /orders/''{orderId}''/discounts =&lt;br /&gt;
Set discounts for the entire Order. Discounts that are applied to an entire order will be applied to all of the product and services within the order.&lt;br /&gt;
'''Note: This will replace any existing discounts that were configured at the order level.'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&amp;lt;code&amp;gt;PUT /orders/''{orderId}''/discounts&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Request Parameters ====&lt;br /&gt;
{{UriParameter-OrderId}}&lt;br /&gt;
&lt;br /&gt;
=== URI Parameters ===&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Request Headers ===&lt;br /&gt;
; Content-Type&lt;br /&gt;
: Required. Set this header to &amp;lt;code&amp;gt;application/json; charset=UTF-8&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Cookie-OwnerId}}&lt;br /&gt;
&lt;br /&gt;
=== Request Body ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;discounts&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;priceName&amp;quot;: &amp;quot;recurring&amp;quot;,&lt;br /&gt;
      &amp;quot;recurrences&amp;quot;: -1,&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;amount&amp;quot;,&lt;br /&gt;
      &amp;quot;value&amp;quot;: &amp;quot;1.00&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  ]&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; discounts - ''list''&lt;br /&gt;
: A list of discounts. Each discount contains the following:&lt;br /&gt;
&lt;br /&gt;
:; priceName - ''string''&lt;br /&gt;
:: The type of price to which the discount will be applied.&lt;br /&gt;
:: Validation: Should match the fee types configured in the back-end.&lt;br /&gt;
:: Note: Only &amp;quot;recurring&amp;quot; is currently supported&lt;br /&gt;
&lt;br /&gt;
:; recurrences - ''integer''&lt;br /&gt;
:: The number of times that the discount will be applied. A value of &amp;quot;-1&amp;quot; means the discount will be applied every time the fee is charged.&lt;br /&gt;
:: Validation: Should be either a positive integer or -1.&lt;br /&gt;
:: Note: Value must be -1 if the priceName is &amp;quot;recurring&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
:; type - ''string''&lt;br /&gt;
:: Specifies the discount type which determines the method used to calculate the amount that is discounted. Possible values are:&lt;br /&gt;
::: '''amount''': Discount will be treated as an exact amount&lt;br /&gt;
::: '''percent''': Discount will be treated as a percentage&lt;br /&gt;
:: Validation: Should be set to either '''amount''' or '''percent'''.&lt;br /&gt;
&lt;br /&gt;
:; value - ''string''&lt;br /&gt;
:: The discount amount. The value will be interpreted based on the specified discount type.&lt;br /&gt;
:: Validation: Should be a positive number.&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
&lt;br /&gt;
=== Status Code ===&lt;br /&gt;
;200 OK&lt;br /&gt;
: The discount was successfully set.&lt;br /&gt;
&lt;br /&gt;
;400 BadRequest&lt;br /&gt;
: The request body contains invalid parameters&lt;br /&gt;
&lt;br /&gt;
;401 Unauthorized&lt;br /&gt;
: The request was not properly authorized.&lt;br /&gt;
&lt;br /&gt;
;403 Forbidden&lt;br /&gt;
: The client does not have sufficient privileges.&lt;br /&gt;
&lt;br /&gt;
;404 Not Found&lt;br /&gt;
: Returned if the order could not be found.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Orders|Orders API]]&lt;br /&gt;
* [[Common Features]]&lt;br /&gt;
&lt;br /&gt;
{{disqus}}&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Ordering API]]&lt;/div&gt;</summary>
		<author><name>Stanimir.dimitrov</name></author>	</entry>

	</feed>