POST Orders/AddCoupon
Adds a Coupon to the order
Request Information
URI Parameters
None.
Body Parameters
CouponBindingName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
OrderID | integer |
None. |
|
Token | globally unique identifier |
None. |
|
Lang | string |
None. |
|
StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Code": "sample string 1", "OrderID": 2, "Token": "93e767b3-f8be-4149-9d59-abe77f0b731b", "Lang": "sample string 4", "StoreID": 5 }
application/xml, text/xml
Sample:
<CouponBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Order"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">sample string 4</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">5</StoreID> <OrderID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Order">2</OrderID> <Token xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Order">93e767b3-f8be-4149-9d59-abe77f0b731b</Token> <Code>sample string 1</Code> </CouponBinding>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.