GET api/Product/GetProductDetails?userId={userId}&productId={productId}&discountCode={discountCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

string

Required

productId

globally unique identifier

Required

discountCode

string

Default value is

Body Parameters

None.

Response Information

Resource Description

ProductResponseModel
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Description

string

None.

Qty

integer

None.

UnitPrice

decimal number

None.

TotalPrice

decimal number

None.

Result

ResponseResult

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "Qty": 4,
  "UnitPrice": 5.0,
  "TotalPrice": 6.0,
  "Result": {
    "Success": true,
    "Message": "sample string 2",
    "Errors": [
      {
        "Message": "sample string 1"
      },
      {
        "Message": "sample string 1"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ProductResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bond.Core.API.Models.Response">
  <Result>
    <Errors>
      <ErrorMessage>
        <Message>sample string 1</Message>
      </ErrorMessage>
      <ErrorMessage>
        <Message>sample string 1</Message>
      </ErrorMessage>
    </Errors>
    <Message>sample string 2</Message>
    <Success>true</Success>
  </Result>
  <Description>sample string 3</Description>
  <Id>sample string 1</Id>
  <Name>sample string 2</Name>
  <Qty>4</Qty>
  <TotalPrice>6</TotalPrice>
  <UnitPrice>5</UnitPrice>
</ProductResponseModel>