For more information on using API

PUT http://webapi.mymarketing.co.il/api/commerce/Order/{orderId}

Modify existing order

Request Information

URI Parameters

Name

Description

Type

Additional information

orderId

Gets or sets the Order ID.

integer

Required

Body Parameters

ApiUpdateOrder

Name

Description

Type

Additional information

orderName

Gets or sets the name of the order.

string
externaluserid

Gets or sets the external user ID.

string
externalname

Gets or sets the external name.

string
firstname

Gets or sets the first name of the customer.

string
lastname

Gets or sets the last name of the customer.

string
email

Gets or sets the email address of the customer.

string
mobile

Gets or sets the mobile number of the customer.

string
netamount

Gets or sets the net amount of the order.

decimal number
tax

Gets or sets the tax applied to the order.

decimal number
coupon

Gets or sets the coupon code used for the order.

string
quantity

Gets or sets the quantity of items in the order.

decimal number
totalamount

Gets or sets the total amount of the order.

decimal number
address

Gets or sets the shipping address of the order.

string
city

Gets or sets the city for the shipping address.

string
products

Gets or sets the list of products in the order.

Collection of Product
url

Gets or sets the URL associated with the order.

string
purchasedate

Gets or sets the date of purchase.

date
lastupdate

Gets or sets the last update date of the order.

date
purchasetype

Gets or sets the type of purchase.

string
storeid

Gets or sets the store ID associated with the order.

integer
ext1

Gets or sets the extra property 1.

string
ext2

Gets or sets the extra property 2.

string
ext3

Gets or sets the extra property 3.

string
ext4

Gets or sets the extra property 4.

string
ext5

Gets or sets the extra property 5.

string
ext6

Gets or sets the extra property 6.

string
ext7

Gets or sets the extra property 7.

string
ext8

Gets or sets the extra property 8.

string
ext9

Gets or sets the extra property 9.

string
ext10

Gets or sets the extra property 10.

string
num1

Gets or sets the numeric property 1.

integer
num2

Gets or sets the numeric property 2.

integer
num3

Gets or sets the numeric property 3.

integer
num4

Gets or sets the numeric property 4.

integer
num5

Gets or sets the numeric property 5.

integer
date1

Gets or sets the date property 1.

date
date2

Gets or sets the date property 2.

date
date3

Gets or sets the date property 3.

date

Request Formats

application/json, text/json

Sample:
{
  "orderName": "sample string 7",
  "externaluserid": "sample string 8",
  "externalname": "sample string 9",
  "firstname": "sample string 10",
  "lastname": "sample string 11",
  "email": "sample string 12",
  "mobile": "sample string 13",
  "netamount": 14.1,
  "tax": 15.1,
  "coupon": "sample string 16",
  "quantity": 17.1,
  "totalamount": 18.1,
  "address": "sample string 19",
  "city": "sample string 20",
  "products": [
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "quantity": 3.1,
      "totalAmount": 4.1
    },
    {
      "id": "sample string 1",
      "name": "sample string 2",
      "quantity": 3.1,
      "totalAmount": 4.1
    }
  ],
  "url": "sample string 21",
  "purchasedate": "2016-12-24T14:12:12",
  "lastupdate": "2016-12-24T14:12:12",
  "purchasetype": "sample string 22",
  "storeid": 23,
  "ext1": "sample string 24",
  "ext2": "sample string 25",
  "ext3": "sample string 26",
  "ext4": "sample string 27",
  "ext5": "sample string 28",
  "ext6": "sample string 29",
  "ext7": "sample string 30",
  "ext8": "sample string 31",
  "ext9": "sample string 32",
  "ext10": "sample string 33",
  "num1": 1,
  "num2": 1,
  "num3": 1,
  "num4": 1,
  "num5": 1,
  "date1": "2016-12-24T14:12:12",
  "date2": "2016-12-24T14:12:12",
  "date3": "2016-12-24T14:12:12"
}

application/xml, text/xml

Sample:
<ApiUpdateOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <address>sample string 19</address>
  <city>sample string 20</city>
  <coupon>sample string 16</coupon>
  <date1>2016-12-24T14:12:12</date1>
  <date2>2016-12-24T14:12:12</date2>
  <date3>2016-12-24T14:12:12</date3>
  <email>sample string 12</email>
  <ext1>sample string 24</ext1>
  <ext10>sample string 33</ext10>
  <ext2>sample string 25</ext2>
  <ext3>sample string 26</ext3>
  <ext4>sample string 27</ext4>
  <ext5>sample string 28</ext5>
  <ext6>sample string 29</ext6>
  <ext7>sample string 30</ext7>
  <ext8>sample string 31</ext8>
  <ext9>sample string 32</ext9>
  <externalName>sample string 9</externalName>
  <externalUserId>sample string 8</externalUserId>
  <firstName>sample string 10</firstName>
  <lastName>sample string 11</lastName>
  <lastUpdate>2016-12-24T14:12:12</lastUpdate>
  <mobile>sample string 13</mobile>
  <netAmount>14.1</netAmount>
  <num1>1</num1>
  <num2>1</num2>
  <num3>1</num3>
  <num4>1</num4>
  <num5>1</num5>
  <orderName>sample string 7</orderName>
  <products>
    <Product>
      <id>sample string 1</id>
      <name>sample string 2</name>
      <quantity>3.1</quantity>
      <totalAmount>4.1</totalAmount>
    </Product>
    <Product>
      <id>sample string 1</id>
      <name>sample string 2</name>
      <quantity>3.1</quantity>
      <totalAmount>4.1</totalAmount>
    </Product>
  </products>
  <purchaseDate>2016-12-24T14:12:12</purchaseDate>
  <purchaseType>sample string 22</purchaseType>
  <quantity>17.1</quantity>
  <storeId>23</storeId>
  <tax>15.1</tax>
  <totalAmount>18.1</totalAmount>
  <url>sample string 21</url>
</ApiUpdateOrder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of string

Response Formats

application/json, text/json

Sample:
[
  "sample 1",
  "sample 2"
]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample 1</string>
  <string>sample 2</string>
</ArrayOfstring>