GET api/Items/{Id}?marchid={marchid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

string

Required

marchid

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Collection of Object

Response Formats

application/json, text/json

Sample:
[
  null,
  []
]

application/xml, text/xml

Sample:
<ArrayOfDiscountOffers_DataSet.CustomerAndItemsInsideOffiresDataTable xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication_POS">
  <DiscountOffers_DataSet.CustomerAndItemsInsideOffiresDataTable i:nil="true" />
  <DiscountOffers_DataSet.CustomerAndItemsInsideOffiresDataTable>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
      <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="CustomerAndItemsInsideOffires" msdata:CaseSensitive="true" msdata:UseCurrentLocale="true">
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element name="CustomerAndItemsInsideOffires" msdata:CaseSensitive="True">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ID">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="MerchantID" minOccurs="0">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Description" minOccurs="0">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2147483647" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="DiscountPercentage" type="xs:decimal" minOccurs="0" />
                  <xs:element name="PeriodInDays" type="xs:int" minOccurs="0" />
                  <xs:element name="InsertTime" type="xs:dateTime" minOccurs="0" />
                  <xs:element name="Notes" minOccurs="0">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="2147483647" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="Points" type="xs:decimal" minOccurs="0" />
                  <xs:element name="IsActive" type="xs:boolean" minOccurs="0" />
                  <xs:element name="ItemName" minOccurs="0">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="250" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="BarCode" minOccurs="0">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                  <xs:element name="ItemID" type="xs:long" minOccurs="0" />
                  <xs:element name="CustomerID" type="xs:long" minOccurs="0" />
                  <xs:element name="DiscountOffersID" minOccurs="0">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="50" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:choice>
        </xs:complexType>
        <xs:unique name="Constraint1" msdata:PrimaryKey="true">
          <xs:selector xpath=".//CustomerAndItemsInsideOffires" />
          <xs:field xpath="ID" />
        </xs:unique>
      </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" />
  </DiscountOffers_DataSet.CustomerAndItemsInsideOffiresDataTable>
</ArrayOfDiscountOffers_DataSet.CustomerAndItemsInsideOffiresDataTable>