POST api/WarrantyReplacementBP/ApproveRepalcement

Request Information

URI Parameters

None.

Body Parameters

WarrantyReplacementApproveDto
NameDescriptionTypeAdditional information
ShopId

integer

None.

UserId

integer

None.

SubTotal

decimal number

None.

GrandTotal

decimal number

None.

TaxAmount

decimal number

None.

WarrantyProducts

Collection of PendingWarrantyScansDto

None.

Request Formats

application/json, text/json

Sample:
{
  "ShopId": 1,
  "UserId": 2,
  "SubTotal": 3.0,
  "GrandTotal": 4.0,
  "TaxAmount": 5.0,
  "WarrantyProducts": [
    {
      "ScanId": 1,
      "ProductName": "sample string 2",
      "UnitPrice": 3.0,
      "ReplacedDate": "sample string 4",
      "ProductCategory": "sample string 5"
    },
    {
      "ScanId": 1,
      "ProductName": "sample string 2",
      "UnitPrice": 3.0,
      "ReplacedDate": "sample string 4",
      "ProductCategory": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<WarrantyReplacementApproveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto">
  <GrandTotal>4</GrandTotal>
  <ShopId>1</ShopId>
  <SubTotal>3</SubTotal>
  <TaxAmount>5</TaxAmount>
  <UserId>2</UserId>
  <WarrantyProducts>
    <PendingWarrantyScansDto>
      <ProductCategory>sample string 5</ProductCategory>
      <ProductName>sample string 2</ProductName>
      <ReplacedDate>sample string 4</ReplacedDate>
      <ScanId>1</ScanId>
      <UnitPrice>3</UnitPrice>
    </PendingWarrantyScansDto>
    <PendingWarrantyScansDto>
      <ProductCategory>sample string 5</ProductCategory>
      <ProductName>sample string 2</ProductName>
      <ReplacedDate>sample string 4</ReplacedDate>
      <ScanId>1</ScanId>
      <UnitPrice>3</UnitPrice>
    </PendingWarrantyScansDto>
  </WarrantyProducts>
</WarrantyReplacementApproveDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Status

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Message": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto">
  <Data />
  <Message>sample string 2</Message>
  <Status>1</Status>
</Response>