Delete Sale

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
DealerSaleId (integer) On the Moka side, it is the Unique ID of the sale. Not required if SaleCode is submitted
SaleCode (string) On the dealer side, it is the code of the sale. Not required if DealerSaleId is submitted. (Max 100 chars)

Sample Request (JSON)


{
	"DealerSaleAuthentication": {
		"DealerCode": "xxx",
		"Username": "xxx",
		"Password": "xxx",
		"CheckKey": "aabbccddeeff"
	},
	"DealerSaleRequest": {
		"DealerSaleId": "",
		"SaleCode": "satis"
	}
}

Successful Request Result

Successful Result Example


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

Failed Request Result

ResultCodeExplanation
DealerSale.DeleteSale.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
DealerSale.DeleteDealer.DealerSaleNotFundNo dealers found.
DealerSale.DeleteDealer.SaleCodeDoesntMatchDealerSaleIdSales code and dealer sales id do not match.
DealerSale.DeleteSale.SaleCodeOrDealerSaleIdMustBeGivenSales code or dealer sales id must be entered
EX An unexpected error has occurred

Example of Failed Result


{
	"Data": null,
	"ResultCode": "DealerSale.DeleteSale.SaleCodeOrDealerSaleIdMustBeGiven",
	"ResultMessage": "",
	"Exception": null
}