POST api/Warranty/Activate

Request Information

URI Parameters

None.

Body Parameters

WarrantyActivationValidatedDto
NameDescriptionTypeAdditional information
WarrantyCardCode

string

None.

SerialNumber

string

Required

AskForWarrantyCard

boolean

Required

DeviceUID

string

None.

LocalTime

date

None.

SelectedItemId

integer

None.

ProductSku

string

None.

Force

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "WarrantyCardCode": "sample string 1",
  "SerialNumber": "sample string 2",
  "AskForWarrantyCard": true,
  "DeviceUID": "sample string 4",
  "LocalTime": "2024-11-25T04:49:50.3659077Z",
  "SelectedItemId": 1,
  "ProductSku": "sample string 5",
  "Force": true
}

application/xml, text/xml

Sample:
<WarrantyActivationValidatedDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.Models.DTOs">
  <AskForWarrantyCard xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">true</AskForWarrantyCard>
  <DeviceUID xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 4</DeviceUID>
  <Force xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">true</Force>
  <LocalTime xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">2024-11-25T04:49:50.3659077Z</LocalTime>
  <ProductSku xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 5</ProductSku>
  <SelectedItemId xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">1</SelectedItemId>
  <SerialNumber xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 2</SerialNumber>
  <WarrantyCardCode xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 1</WarrantyCardCode>
</WarrantyActivationValidatedDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.