POST api/v1/updateorder

Request Information

URI Parameters

None.

Body Parameters

oreder_data
NameDescriptionTypeAdditional information
e_id

integer

None.

user_id

integer

None.

id_branch

integer

None.

number_table

integer

None.

number_bill

integer

None.

accid

integer

None.

lati

decimal number

None.

longi

decimal number

None.

type_d

integer

None.

status

integer

None.

order

Collection of oreder_data_details

None.

Request Formats

application/json, text/json

Sample:
{
  "e_id": 1,
  "user_id": 2,
  "id_branch": 3,
  "number_table": 4,
  "number_bill": 5,
  "accid": 6,
  "lati": 7.1,
  "longi": 8.1,
  "type_d": 9,
  "status": 10,
  "order": [
    {
      "id_material": 1,
      "name_material": "sample string 2",
      "note": "sample string 3",
      "quantity": 4.1,
      "price": 5.1,
      "id_category": 6,
      "status": 7,
      "Gift": 8.1,
      "Discount": 9.1
    },
    {
      "id_material": 1,
      "name_material": "sample string 2",
      "note": "sample string 3",
      "quantity": 4.1,
      "price": 5.1,
      "id_category": 6,
      "status": 7,
      "Gift": 8.1,
      "Discount": 9.1
    }
  ]
}

text/xml

Sample:
<oreder_data xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/creative_api">
  <accid>6</accid>
  <e_id>1</e_id>
  <id_branch>3</id_branch>
  <lati>7.1</lati>
  <longi>8.1</longi>
  <number_bill>5</number_bill>
  <number_table>4</number_table>
  <order>
    <oreder_data_details>
      <Discount>9.1</Discount>
      <Gift>8.1</Gift>
      <id_category>6</id_category>
      <id_material>1</id_material>
      <name_material>sample string 2</name_material>
      <note>sample string 3</note>
      <price>5.1</price>
      <quantity>4.1</quantity>
      <status>7</status>
    </oreder_data_details>
    <oreder_data_details>
      <Discount>9.1</Discount>
      <Gift>8.1</Gift>
      <id_category>6</id_category>
      <id_material>1</id_material>
      <name_material>sample string 2</name_material>
      <note>sample string 3</note>
      <price>5.1</price>
      <quantity>4.1</quantity>
      <status>7</status>
    </oreder_data_details>
  </order>
  <status>10</status>
  <type_d>9</type_d>
  <user_id>2</user_id>
</oreder_data>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

outdata
NameDescriptionTypeAdditional information
data

None.

Response Formats

application/json, text/json

Sample:
{
  "data": null,
  "rowcount": 1,
  "status": true,
  "msg_error": "sample string 3"
}

text/xml

Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/creative_api">
  <data i:nil="true" />
  <msg_error>sample string 3</msg_error>
  <rowcount>1</rowcount>
  <status>true</status>
</outdata>