Remove Customer

Service Address

Request Parameters

DealerCustomerAuthentication

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.

DealerCustomerRequest

Parameter Explanation
DealerCustomerId (integer) When the customer is added, the Unique Id in Moka is returned. Not required if CustomerCode is sent. This client will be deleted.
CustomerCode (string) It is the unique code that the dealer gives to its customer. Not required if DealerCustomerId is sent. This client will be deleted.

Sample Request (JSON)


{
	"DealerCustomerAuthentication": {
		"DealerCode": "xxx",
		"Username": "xxx",
		"Password": "xxx",
		"CheckKey": "aabbccddeeff"
	},
	"DealerCustomerRequest": {
		"DealerCustomerId": "",
		"CustomerCode": "Customer"
	}
}

Successful Request Result

Successful Result Example


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

Failed Request Result

ResultCodeExplanation
DealerCustomer.RemoveCustomer.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
DealerCustomer.RemoveCustomer.CustomerCodeOrDealerCustomerIdMustBeGivenCustomer code or dealer customer id must be entered.
DealerCustomer.RemoveCustomer.DealerCustomerNotFoundDealer customer not found.
DealerCustomer.RemoveCustomer.CustomerCodeDoesntMatchDealerCustomerIdThe customer code and the dealer customer ID do not match.
EX An unexpected error has occurred

Example of Failed Result


{
	"Data": null,
	"ResultCode": "DealerCustomer.RemoveCustomer.CustomerCodeOrDealerCustomerIdMustBeGiven",
	"ResultMessage": "",
	"Exception": null
}