POST api/GetProductMiniPakByBarcode

Request Information

URI Parameters

None.

Body Parameters

GetProductMiniPakByBarcode
NameDescriptionTypeAdditional information
barcode

string

None.

client_id

integer

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "barcode": "sample string 1",
  "client_id": 2,
  "user": "sample string 3",
  "userId": 4,
  "validationKey": "sample string 5"
}

application/xml, text/xml

Sample:
<GetProductMiniPakByBarcode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Product">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 3</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">4</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 5</ValidationKey>
  <barcode>sample string 1</barcode>
  <client_id>2</client_id>
</GetProductMiniPakByBarcode>

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 'GetProductMiniPakByBarcode'.

Response Information

Resource Description

ProductMiniPackResponse
NameDescriptionTypeAdditional information
product

ProductResponse

None.

product_mini_pack

MiniPackResponse

None.

Id

integer

None.

Name

string

None.

Description

string

None.

Code

integer

None.

IsEnabled

boolean

None.

IsInUse

boolean

None.

ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "product": {
    "reference": "sample string 1",
    "barCode": "sample string 2",
    "serializable": true,
    "productGroup": "sample string 4",
    "productSubGroup": "sample string 5",
    "measureType": "sample string 6",
    "brand": "sample string 7",
    "model": "sample string 8",
    "price": 9.0,
    "idClient": 10,
    "client": "sample string 11",
    "weight": 1.0,
    "size": "sample string 12",
    "idColor": 13,
    "volume": 1.0,
    "id": 14,
    "name": "sample string 15",
    "description": "sample string 16",
    "code": 17,
    "isEnabled": true,
    "isInUse": true,
    "resultCode": 20,
    "resultMessage": "sample string 21",
    "errorMessage": "sample string 22"
  },
  "product_mini_pack": {
    "idProduct": 1,
    "sheetCod": "sample string 2",
    "color": "sample string 3",
    "colorDescription": "sample string 4",
    "clientName": "sample string 5",
    "state": "sample string 6",
    "totalMeters": 7.0,
    "startDate": "2024-11-30T23:31:55.3118734-05:00",
    "typeDamage": "sample string 9",
    "entryDate": "2024-11-30T23:31:55.3118734-05:00",
    "combined": true,
    "common": true,
    "repetitionsNumber": 13,
    "orderNumber": "sample string 14",
    "width": 15.0,
    "emergent": "sample string 16",
    "ballardLayer": true,
    "taps": "sample string 18",
    "saveCylinder": true,
    "clientCode": "sample string 20",
    "inRelocation": "sample string 21",
    "inventoryWareH": "sample string 22",
    "wareHouse": "sample string 23",
    "destination": "sample string 24",
    "positionSubIndex": "sample string 25",
    "balanced": true,
    "balancedDate": "2024-11-30T23:31:55.3118734-05:00",
    "id": 26,
    "name": "sample string 27",
    "description": "sample string 28",
    "code": 29,
    "isEnabled": true,
    "isInUse": true,
    "resultCode": 32,
    "resultMessage": "sample string 33",
    "errorMessage": "sample string 34"
  },
  "id": 1,
  "name": "sample string 2",
  "description": "sample string 3",
  "code": 4,
  "isEnabled": true,
  "isInUse": true,
  "resultCode": 7,
  "resultMessage": "sample string 8",
  "errorMessage": "sample string 9"
}

application/xml, text/xml

Sample:
<ProductMiniPackResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response.ProductMiniPak">
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 9</ErrorMessage>
  <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">7</ResultCode>
  <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 8</ResultMessage>
  <Code xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">4</Code>
  <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 3</Description>
  <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">1</Id>
  <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsEnabled>
  <IsInUse xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsInUse>
  <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 2</Name>
  <product xmlns:d2p1="http://schemas.datacontract.org/2004/07/SGAMovil.Response.Product">
    <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 22</ErrorMessage>
    <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">20</ResultCode>
    <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 21</ResultMessage>
    <Code xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">17</Code>
    <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 16</Description>
    <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">14</Id>
    <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsEnabled>
    <IsInUse xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsInUse>
    <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 15</Name>
    <d2p1:BarCode>sample string 2</d2p1:BarCode>
    <d2p1:Brand>sample string 7</d2p1:Brand>
    <d2p1:Client>sample string 11</d2p1:Client>
    <d2p1:IdClient>10</d2p1:IdClient>
    <d2p1:IdColor>13</d2p1:IdColor>
    <d2p1:MeasureType>sample string 6</d2p1:MeasureType>
    <d2p1:Model>sample string 8</d2p1:Model>
    <d2p1:Price>9</d2p1:Price>
    <d2p1:ProductGroup>sample string 4</d2p1:ProductGroup>
    <d2p1:ProductSubGroup>sample string 5</d2p1:ProductSubGroup>
    <d2p1:Reference>sample string 1</d2p1:Reference>
    <d2p1:Serializable>true</d2p1:Serializable>
    <d2p1:Size>sample string 12</d2p1:Size>
    <d2p1:Volume>1</d2p1:Volume>
    <d2p1:Weight>1</d2p1:Weight>
  </product>
  <product_mini_pack>
    <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 34</ErrorMessage>
    <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">32</ResultCode>
    <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 33</ResultMessage>
    <Code xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">29</Code>
    <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 28</Description>
    <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">26</Id>
    <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsEnabled>
    <IsInUse xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">true</IsInUse>
    <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 27</Name>
    <Balanced>true</Balanced>
    <BalancedDate>2024-11-30T23:31:55.3118734-05:00</BalancedDate>
    <BallardLayer>true</BallardLayer>
    <ClientCode>sample string 20</ClientCode>
    <ClientName>sample string 5</ClientName>
    <Color>sample string 3</Color>
    <ColorDescription>sample string 4</ColorDescription>
    <Combined>true</Combined>
    <Common>true</Common>
    <Destination>sample string 24</Destination>
    <Emergent>sample string 16</Emergent>
    <EntryDate>2024-11-30T23:31:55.3118734-05:00</EntryDate>
    <IdProduct>1</IdProduct>
    <InRelocation>sample string 21</InRelocation>
    <InventoryWareH>sample string 22</InventoryWareH>
    <OrderNumber>sample string 14</OrderNumber>
    <PositionSubIndex>sample string 25</PositionSubIndex>
    <RepetitionsNumber>13</RepetitionsNumber>
    <SaveCylinder>true</SaveCylinder>
    <SheetCod>sample string 2</SheetCod>
    <StartDate>2024-11-30T23:31:55.3118734-05:00</StartDate>
    <State>sample string 6</State>
    <Taps>sample string 18</Taps>
    <TotalMeters>7</TotalMeters>
    <TypeDamage>sample string 9</TypeDamage>
    <WareHouse>sample string 23</WareHouse>
    <Width>15</Width>
  </product_mini_pack>
</ProductMiniPackResponse>