Richemont.Booster2.PublicApi

<back to all web services

DeleteEquipmentWarranty

Requires Authentication
The following routes are available for this service:
DELETE/warranty/equipment/{brand}/{posCode}/{equipmentNr}/{warrantyType}Delete the specified equipment warranty from SAP
import Foundation
import ServiceStack

public class DeleteEquipmentWarranty : Codable
{
    /**
    * Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided
    */
    // @ApiMember(Description="Brand Trigram, e.g. CAR, IWC; compulsory only if articleCode is not provided")
    public var brand:String

    /**
    * Richemont POS code
    */
    // @ApiMember(Description="Richemont POS code", IsRequired=true)
    public var posCode:String

    /**
    * EquipmentNumber
    */
    // @ApiMember(Description="EquipmentNumber", IsRequired=true)
    public var equipmentNr:String

    /**
    * WarrantyType
    */
    // @ApiMember(Description="WarrantyType", IsRequired=true)
    public var warrantyType:String

    required public init(){}
}

public class DeleteEquipmentWarrantyResponse : Codable
{
    public var success:Bool
    public var statuscode:HttpStatusCode
    public var message:String

    required public init(){}
}


Swift DeleteEquipmentWarranty DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

DELETE /warranty/equipment/{brand}/{posCode}/{equipmentNr}/{warrantyType} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DeleteEquipmentWarrantyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.Sellout.ServiceModel">
  <message>String</message>
  <statuscode>Continue</statuscode>
  <success>false</success>
</DeleteEquipmentWarrantyResponse>