POST api/Warranty/ActivateAccessory

Request Information

URI Parameters

None.

Body Parameters

WarrantyActivationAccessoryValidatedDto
NameDescriptionTypeAdditional information
WarrantyCardCode

string

Required

DeviceUID

string

None.

SerialNumber

string

None.

AskForWarrantyCard

boolean

None.

LocalTime

date

None.

SelectedItemId

integer

None.

ProductSku

string

None.

Force

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "WarrantyCardCode": "sample string 1",
  "DeviceUID": "sample string 2",
  "SerialNumber": "sample string 3",
  "AskForWarrantyCard": true,
  "LocalTime": "2024-11-26T07:47:11.8491439Z",
  "SelectedItemId": 1,
  "ProductSku": "sample string 5",
  "Force": true
}

application/xml, text/xml

Sample:
<WarrantyActivationAccessoryValidatedDto 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 2</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-26T07:47:11.8491439Z</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 3</SerialNumber>
  <WarrantyCardCode xmlns="http://schemas.datacontract.org/2004/07/AitLuxe.Common.PortableModels">sample string 1</WarrantyCardCode>
</WarrantyActivationAccessoryValidatedDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.