POST api/AddSingleProduct

Request Information

URI Parameters

None.

Body Parameters

AddSingleProductRequest
NameDescriptionTypeAdditional information
Reference

string

None.

BarCode

string

None.

Description

string

None.

ProductGroup

string

None.

Weight

decimal number

None.

Size

string

None.

Volume

decimal number

None.

SheetCod

string

None.

Color

string

None.

ColorDescription

string

None.

ClientName

string

None.

State

string

None.

TotalMeters

decimal number

None.

StartDate

date

None.

TypeDamage

string

None.

EntryDate

date

None.

Combined

string

None.

Common

string

None.

RepetitionsNumber

integer

None.

OrderNumber

string

None.

Width

decimal number

None.

Emergent

string

None.

BallardLayer

boolean

None.

Taps

string

None.

SaveCylinder

string

None.

ClientCode

string

None.

InRelocation

string

None.

InventoryWareH

string

None.

WareHouse

string

None.

Destination

string

None.

Balanced

boolean

None.

BalancedDate

date

None.

Position

string

None.

IdProduct

integer

None.

Calibre

decimal number

None.

Pistas

integer

None.

Manga

integer

None.

Montajes

integer

None.

NumRepAncho

integer

None.

Cantidad

decimal number

None.

Ubicador

string

None.

Gen

string

None.

Gen1

string

None.

Gen2

string

None.

Gen3

decimal number

None.

Gen4

decimal number

None.

Gen5

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "reference": "sample string 1",
  "barCode": "sample string 2",
  "description": "sample string 3",
  "productGroup": "sample string 4",
  "weight": 1.0,
  "size": "sample string 5",
  "volume": 1.0,
  "sheetCod": "sample string 6",
  "color": "sample string 7",
  "colorDescription": "sample string 8",
  "clientName": "sample string 9",
  "state": "sample string 10",
  "totalMeters": 1.0,
  "startDate": "2024-11-30T23:30:58.4514792-05:00",
  "typeDamage": "sample string 12",
  "entryDate": "2024-11-30T23:30:58.4514792-05:00",
  "combined": "sample string 14",
  "common": "sample string 15",
  "repetitionsNumber": 1,
  "orderNumber": "sample string 16",
  "width": 1.0,
  "emergent": "sample string 17",
  "ballardLayer": true,
  "taps": "sample string 19",
  "saveCylinder": "sample string 20",
  "clientCode": "sample string 21",
  "inRelocation": "sample string 22",
  "inventoryWareH": "sample string 23",
  "wareHouse": "sample string 24",
  "destination": "sample string 25",
  "balanced": true,
  "balancedDate": "2024-11-30T23:30:58.4514792-05:00",
  "position": "sample string 26",
  "idProduct": 27,
  "calibre": 28.0,
  "pistas": 29,
  "manga": 30,
  "montajes": 31,
  "numRepAncho": 32,
  "cantidad": 33.0,
  "ubicador": "sample string 34",
  "gen": "sample string 35",
  "gen1": "sample string 36",
  "gen2": "sample string 37",
  "gen3": 38.0,
  "gen4": 39.0,
  "gen5": 40.0
}

application/xml, text/xml

Sample:
<AddSingleProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Product">
  <Balanced>true</Balanced>
  <BalancedDate>2024-11-30T23:30:58.4514792-05:00</BalancedDate>
  <BallardLayer>true</BallardLayer>
  <BarCode>sample string 2</BarCode>
  <Calibre>28</Calibre>
  <Cantidad>33</Cantidad>
  <ClientCode>sample string 21</ClientCode>
  <ClientName>sample string 9</ClientName>
  <Color>sample string 7</Color>
  <ColorDescription>sample string 8</ColorDescription>
  <Combined>sample string 14</Combined>
  <Common>sample string 15</Common>
  <Description>sample string 3</Description>
  <Destination>sample string 25</Destination>
  <Emergent>sample string 17</Emergent>
  <EntryDate>2024-11-30T23:30:58.4514792-05:00</EntryDate>
  <Gen>sample string 35</Gen>
  <Gen1>sample string 36</Gen1>
  <Gen2>sample string 37</Gen2>
  <Gen3>38</Gen3>
  <Gen4>39</Gen4>
  <Gen5>40</Gen5>
  <IdProduct>27</IdProduct>
  <InRelocation>sample string 22</InRelocation>
  <InventoryWareH>sample string 23</InventoryWareH>
  <Manga>30</Manga>
  <Montajes>31</Montajes>
  <NumRepAncho>32</NumRepAncho>
  <OrderNumber>sample string 16</OrderNumber>
  <Pistas>29</Pistas>
  <Position>sample string 26</Position>
  <ProductGroup>sample string 4</ProductGroup>
  <Reference>sample string 1</Reference>
  <RepetitionsNumber>1</RepetitionsNumber>
  <SaveCylinder>sample string 20</SaveCylinder>
  <SheetCod>sample string 6</SheetCod>
  <Size>sample string 5</Size>
  <StartDate>2024-11-30T23:30:58.4514792-05:00</StartDate>
  <State>sample string 10</State>
  <Taps>sample string 19</Taps>
  <TotalMeters>1</TotalMeters>
  <TypeDamage>sample string 12</TypeDamage>
  <Ubicador>sample string 34</Ubicador>
  <Volume>1</Volume>
  <WareHouse>sample string 24</WareHouse>
  <Weight>1</Weight>
  <Width>1</Width>
</AddSingleProductRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddSingleProductRequest'.

Response Information

Resource Description

AddSingleProductResponse
NameDescriptionTypeAdditional information
Id

integer

None.

ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "resultCode": 2,
  "resultMessage": "sample string 3",
  "errorMessage": "sample string 4"
}

application/xml, text/xml

Sample:
<AddSingleProductResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response.Product">
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 4</ErrorMessage>
  <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">2</ResultCode>
  <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 3</ResultMessage>
  <Id>1</Id>
</AddSingleProductResponse>