Remove Card

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
CardToken (guid) Token returned to the dealer by Moka when the card is added. This card will be deleted.

Sample Request (JSON)


{
	"DealerCustomerAuthentication": {
		"DealerCode": "xxx",
		"Username": "xxx",
		"Password": "xxx",
		"CheckKey": "aabbccddeeff"
	},
	"DealerCustomerRequest": {
		"CardToken": "{51937236-82E0-4637-A8F5-2E1EC56EC870}"
	}
}

Başarılı İstek Sonucu

Successful Request Result


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

Successful Result Example

ResultCodeExplanation
DealerCustomer.RemoveCard.InvalidRequest The CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
DealerCustomer.RemoveCard.CardTokenIsRequiredCard Token information required.
DealerCustomer.RemoveCard.CardNotFoundNo such card was found..
EX An unexpected error has occurred

Example of Failed Result


{
	"Data": null,
	"ResultCode": "DealerCustomer.RemoveCard.CardTokenIsRequired",
	"ResultMessage": "",
	"Exception": null
}