POST api/Purchase/AddPurchase

Request Information

URI Parameters

None.

Body Parameters

PurchaseAddDto
NameDescriptionTypeAdditional information
UserId

integer

None.

ShopId

integer

None.

CustomerName

string

None.

Phone

string

None.

ImeiNo

string

None.

VideoUrl

string

None.

FileTypeId

integer

None.

ModelId

integer

None.

QRCode

string

None.

ProductName

string

None.

Claimtype

integer

None.

WarantyYear

integer

None.

CustomerEmail

string

None.

CreatedDate

date

None.

ApplicationId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "ShopId": 2,
  "CustomerName": "sample string 3",
  "Phone": "sample string 4",
  "ImeiNo": "sample string 5",
  "VideoUrl": "sample string 6",
  "FileTypeId": 1,
  "ModelId": 1,
  "QRCode": "sample string 7",
  "ProductName": "sample string 8",
  "Claimtype": 1,
  "WarantyYear": 1,
  "CustomerEmail": "sample string 9",
  "CreatedDate": "2023-02-09T14:47:04.5343851+05:30",
  "ApplicationId": 1
}

application/xml, text/xml

Sample:
<PurchaseAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto">
  <ApplicationId>1</ApplicationId>
  <Claimtype>1</Claimtype>
  <CreatedDate>2023-02-09T14:47:04.5343851+05:30</CreatedDate>
  <CustomerEmail>sample string 9</CustomerEmail>
  <CustomerName>sample string 3</CustomerName>
  <FileTypeId>1</FileTypeId>
  <ImeiNo>sample string 5</ImeiNo>
  <ModelId>1</ModelId>
  <Phone>sample string 4</Phone>
  <ProductName>sample string 8</ProductName>
  <QRCode>sample string 7</QRCode>
  <ShopId>2</ShopId>
  <UserId>1</UserId>
  <VideoUrl>sample string 6</VideoUrl>
  <WarantyYear>1</WarantyYear>
</PurchaseAddDto>

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>