Delete Product

Service Address

Request Parameters

DealerSaleAuthentication

Parameter Explanation
DealerCode(string) Dealer code issued by the Moka system
Username (string) Api username given by Moka system
Password (string) Api password given by Moka system
CheckKey (string) The control key (DealerCode + "MK" + Username + "PD" + Password) is created by passing this information, combined as a String, through the SHA-256 hash algorithm.
Click here to go to the trial screen.

DealerSaleRequest

Parameter Explanation
DealerProductId (integer) The ID of the product in the Moka system. Not required if ProductCode is submitted. This product will be deleted.
ProductCode (string) It is the special code of the product on the dealer side. Not required if DealerProductId is sent. This product will be deleted.

Sample Request (JSON)


{
	"DealerSaleAuthentication": {
		"DealerCode": "xxx",
		"Username": "xxx",
		"Password": "xxx",
		"CheckKey": "aabbccddeeff"
	},
	"DealerSaleRequest": {
		"DealerProductId": "Product",
		"ProductCode": "Product01"
	}
}

Successful Request Result

Successful Result Example


{
	"Data": true,
	"ResultCode": "Success",
	"ResultMessage": "",
	"Exception": null
}

Failed Request Result

ResultCodeExplanation
DealerSale.DeleteProduct.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
DealerSale.DeleteProduct.ProductCodeOrDealerProductIdMustBeGivenProduct code or dealer product id must be entered.
DealerSale.DeleteProduct.ProductNotFoundThe product was not found.
DealerSale.DeleteProduct.ProductCodeDoesntMatchDealerProductIdThe product code and the dealer product id do not match.
EX An unexpected error has occurred

Example of Failed Result


{
	"Data": null,
	"ResultCode": "DealerSale.DeleteProduct.ProductCodeOrDealerProductIdMustBeGiven",
	"ResultMessage": "",
	"Exception": null
}