POST api/Cart?user={user}&pass={pass}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user

string

Default value is

pass

string

Default value is

Body Parameters

Cart
NameDescriptionTypeAdditional information
id

integer

None.

id_client

integer

None.

id_inventory

integer

None.

unit

integer

None.

id_property

integer

None.

qty

decimal number

None.

last_price

decimal number

None.

id_inventory_image

integer

None.

qty_max

decimal number

None.

qty_update

decimal number

None.

Complements

Collection of ComplementsClass

None.

comment

string

None.

saler_name

string

None.

saler_image

string

None.

id_saler_branch

integer

None.

id_saler

integer

None.

unit_name

string

None.

qty_original

decimal number

None.

minimo

decimal number

None.

main_image

string

None.

price_with_tax

decimal number

None.

discount_price

decimal number

None.

regular_price

decimal number

None.

complements_price

decimal number

None.

complements_price_with_tax

decimal number

None.

name

string

None.

description

string

None.

total

decimal number

None.

CleanCart

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "id_client": 2,
  "id_inventory": 3,
  "unit": 4,
  "id_property": 5,
  "qty": 6.1,
  "last_price": 7.1,
  "id_inventory_image": 8,
  "qty_max": 9.1,
  "qty_update": 10.1,
  "Complements": [
    {
      "id": 1,
      "id_cat_complement": 2,
      "str_name": "sample string 3",
      "price": 4.1,
      "price_with_tax": 5.1,
      "id_server": 6,
      "id_server_cat": 7,
      "id_server_inventory": 8
    },
    {
      "id": 1,
      "id_cat_complement": 2,
      "str_name": "sample string 3",
      "price": 4.1,
      "price_with_tax": 5.1,
      "id_server": 6,
      "id_server_cat": 7,
      "id_server_inventory": 8
    }
  ],
  "comment": "sample string 11",
  "saler_name": "sample string 12",
  "saler_image": "sample string 13",
  "id_saler_branch": 14,
  "id_saler": 15,
  "unit_name": "sample string 16",
  "qty_original": 17.1,
  "minimo": 1.1,
  "main_image": "sample string 18",
  "price_with_tax": 19.1,
  "discount_price": 20.1,
  "regular_price": 21.1,
  "complements_price": 22.1,
  "complements_price_with_tax": 23.1,
  "name": "sample string 24",
  "description": "sample string 25",
  "total": 26.1,
  "CleanCart": true
}

application/xml, text/xml

Sample:
<Cart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSalesServer.Models">
  <CleanCart>true</CleanCart>
  <Complements>
    <ComplementsClass>
      <id>1</id>
      <id_cat_complement>2</id_cat_complement>
      <id_server>6</id_server>
      <id_server_cat>7</id_server_cat>
      <id_server_inventory>8</id_server_inventory>
      <price>4.1</price>
      <price_with_tax>5.1</price_with_tax>
      <str_name>sample string 3</str_name>
    </ComplementsClass>
    <ComplementsClass>
      <id>1</id>
      <id_cat_complement>2</id_cat_complement>
      <id_server>6</id_server>
      <id_server_cat>7</id_server_cat>
      <id_server_inventory>8</id_server_inventory>
      <price>4.1</price>
      <price_with_tax>5.1</price_with_tax>
      <str_name>sample string 3</str_name>
    </ComplementsClass>
  </Complements>
  <comment>sample string 11</comment>
  <complements_price>22.1</complements_price>
  <complements_price_with_tax>23.1</complements_price_with_tax>
  <description>sample string 25</description>
  <discount_price>20.1</discount_price>
  <id>1</id>
  <id_client>2</id_client>
  <id_inventory>3</id_inventory>
  <id_inventory_image>8</id_inventory_image>
  <id_property>5</id_property>
  <id_saler>15</id_saler>
  <id_saler_branch>14</id_saler_branch>
  <last_price>7.1</last_price>
  <main_image>sample string 18</main_image>
  <minimo>1.1</minimo>
  <name>sample string 24</name>
  <price_with_tax>19.1</price_with_tax>
  <qty>6.1</qty>
  <qty_max>9.1</qty_max>
  <qty_original>17.1</qty_original>
  <qty_update>10.1</qty_update>
  <regular_price>21.1</regular_price>
  <saler_image>sample string 13</saler_image>
  <saler_name>sample string 12</saler_name>
  <total>26.1</total>
  <unit>4</unit>
  <unit_name>sample string 16</unit_name>
</Cart>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.