POST api/OrderStates
Request Information
URI Parameters
None.
Body Parameters
OrderStateModelName | Description | Type | Additional information |
---|---|---|---|
SalesForceId | string |
None. |
|
Note | string |
None. |
|
OrderKey | string |
None. |
|
OrderStateTypeId | integer |
None. |
|
CreatedByEntityKey | string |
None. |
|
CreatedByEntityTypeId | integer |
None. |
|
OrderStateReason | OrderStateReason |
None. |
|
OrderInvoiceReceipt | OrderReceiptModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "SalesForceId": "sample string 1", "Note": "sample string 2", "OrderKey": "sample string 3", "OrderStateTypeId": 4, "CreatedByEntityKey": "sample string 5", "CreatedByEntityTypeId": 6, "OrderStateReason": { "Note": "sample string 1", "OrderStateChildReasonId": 2, "ProductKeys": [ "sample string 1", "sample string 2" ] }, "OrderInvoiceReceipt": { "Key": "sample string 1", "DiscountAmount": 2.1, "DiscountPercentage": 3.1, "AmountAfterDiscount": 4.1, "CurrencyIsoCode": "sample string 5", "Cash": 6.1, "Insurance": 7.1, "Credit": 8.1, "Visa": 9.1, "CashVisa": 10.1, "CreditInsurance": 11.1, "VezeetaCash": 12.1, "DeliveryFees": 13.1, "OnlinePayment": 14.1 } }
application/xml, text/xml
Sample:
<OrderStateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vezeeta.Salesforce.Gateway.Model"> <CreatedByEntityKey>sample string 5</CreatedByEntityKey> <CreatedByEntityTypeId>6</CreatedByEntityTypeId> <Note>sample string 2</Note> <OrderInvoiceReceipt> <AmountAfterDiscount>4.1</AmountAfterDiscount> <Cash>6.1</Cash> <CashVisa>10.1</CashVisa> <Credit>8.1</Credit> <CreditInsurance>11.1</CreditInsurance> <CurrencyIsoCode>sample string 5</CurrencyIsoCode> <DeliveryFees>13.1</DeliveryFees> <DiscountAmount>2.1</DiscountAmount> <DiscountPercentage>3.1</DiscountPercentage> <Insurance>7.1</Insurance> <Key>sample string 1</Key> <OnlinePayment>14.1</OnlinePayment> <VezeetaCash>12.1</VezeetaCash> <Visa>9.1</Visa> </OrderInvoiceReceipt> <OrderKey>sample string 3</OrderKey> <OrderStateReason> <Note>sample string 1</Note> <OrderStateChildReasonId>2</OrderStateChildReasonId> <ProductKeys xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </ProductKeys> </OrderStateReason> <OrderStateTypeId>4</OrderStateTypeId> <SalesForceId>sample string 1</SalesForceId> </OrderStateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.