POST orderdiscounts
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
ApiPushRequestOfOrderDiscountApiModelName | Description | Type | Additional information |
---|---|---|---|
Inserted | Collection of OrderDiscountApiModel |
None. |
|
Updated | Collection of OrderDiscountApiModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "Inserted": [ { "Amount": 1.0, "DiscountId": 1, "OrderItemId": 1, "DiscountMobileId": 1, "Name": "sample string 1", "Code": "sample string 2", "OrderId": 3, "ManagerEmployeeId": 1, "OrderMobileId": 1, "OrderItemMobileId": 1, "Rate": 1.0, "UsePercentage": true, "AmountType": 1, "CompanyId": 4, "AssignmentType": 5, "InternalMobileId": 6, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true }, { "Amount": 1.0, "DiscountId": 1, "OrderItemId": 1, "DiscountMobileId": 1, "Name": "sample string 1", "Code": "sample string 2", "OrderId": 3, "ManagerEmployeeId": 1, "OrderMobileId": 1, "OrderItemMobileId": 1, "Rate": 1.0, "UsePercentage": true, "AmountType": 1, "CompanyId": 4, "AssignmentType": 5, "InternalMobileId": 6, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true } ], "Updated": [ { "Amount": 1.0, "DiscountId": 1, "OrderItemId": 1, "DiscountMobileId": 1, "Name": "sample string 1", "Code": "sample string 2", "OrderId": 3, "ManagerEmployeeId": 1, "OrderMobileId": 1, "OrderItemMobileId": 1, "Rate": 1.0, "UsePercentage": true, "AmountType": 1, "CompanyId": 4, "AssignmentType": 5, "InternalMobileId": 6, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true }, { "Amount": 1.0, "DiscountId": 1, "OrderItemId": 1, "DiscountMobileId": 1, "Name": "sample string 1", "Code": "sample string 2", "OrderId": 3, "ManagerEmployeeId": 1, "OrderMobileId": 1, "OrderItemMobileId": 1, "Rate": 1.0, "UsePercentage": true, "AmountType": 1, "CompanyId": 4, "AssignmentType": 5, "InternalMobileId": 6, "Id": 1, "MobileId": 1, "IsInserted": true, "IsUpdated": true, "IsDeleted": true } ] }
application/xml, text/xml
Sample:
<ApiPushRequestOfOrderDiscountApiModelSoOqNYiB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Api"> <Inserted xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Data.Mapping.Mobile.Catalog"> <d2p1:OrderDiscountApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">6</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Amount> <AmountType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</AmountType> <AssignmentType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">5</AssignmentType> <Code xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 2</Code> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</CompanyId> <DiscountId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountId> <DiscountMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountMobileId> <ManagerEmployeeId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</ManagerEmployeeId> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 1</Name> <OrderId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">3</OrderId> <OrderItemId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemId> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <OrderMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderMobileId> <Rate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Rate> <UsePercentage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</UsePercentage> </d2p1:OrderDiscountApiModel> <d2p1:OrderDiscountApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">6</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Amount> <AmountType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</AmountType> <AssignmentType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">5</AssignmentType> <Code xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 2</Code> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</CompanyId> <DiscountId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountId> <DiscountMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountMobileId> <ManagerEmployeeId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</ManagerEmployeeId> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 1</Name> <OrderId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">3</OrderId> <OrderItemId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemId> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <OrderMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderMobileId> <Rate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Rate> <UsePercentage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</UsePercentage> </d2p1:OrderDiscountApiModel> </Inserted> <Updated xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Data.Mapping.Mobile.Catalog"> <d2p1:OrderDiscountApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">6</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Amount> <AmountType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</AmountType> <AssignmentType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">5</AssignmentType> <Code xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 2</Code> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</CompanyId> <DiscountId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountId> <DiscountMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountMobileId> <ManagerEmployeeId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</ManagerEmployeeId> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 1</Name> <OrderId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">3</OrderId> <OrderItemId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemId> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <OrderMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderMobileId> <Rate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Rate> <UsePercentage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</UsePercentage> </d2p1:OrderDiscountApiModel> <d2p1:OrderDiscountApiModel> <Id xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</Id> <InternalMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">6</InternalMobileId> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsDeleted> <IsInserted xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsInserted> <IsUpdated xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">true</IsUpdated> <MobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Core.Entities.Mobile.Base">1</MobileId> <Amount xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Amount> <AmountType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</AmountType> <AssignmentType xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">5</AssignmentType> <Code xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 2</Code> <CompanyId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">4</CompanyId> <DiscountId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountId> <DiscountMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</DiscountMobileId> <ManagerEmployeeId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</ManagerEmployeeId> <Name xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">sample string 1</Name> <OrderId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">3</OrderId> <OrderItemId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemId> <OrderItemMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderItemMobileId> <OrderMobileId xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</OrderMobileId> <Rate xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">1</Rate> <UsePercentage xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Order">true</UsePercentage> </d2p1:OrderDiscountApiModel> </Updated> </ApiPushRequestOfOrderDiscountApiModelSoOqNYiB>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |