Update 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) It is the Customer's Unique Id in Moka. Not required if CustomerCode is sent. This client will be updated.
CustomerCode (string) Unique code given by the dealer to its customer. Not required if DealerCustomerId is sent. This client will be updated.
Password (string) (optional) When the customer wants to withdraw from his stored card, if the dealer wants the customer's password to be asked, the customer's own password is entered in this field.
FirstName (optional) (string) If the customer is to be registered in the Moka system for the first time, the customer's name is entered.
LastName (string) (optional) If the customer is to be registered in the Moka system for the first time, the customer's surname is entered.
Gender (integer) (optional) If the customer is to be registered in the Moka system for the first time, the gender of the customer is entered. 1: male 2: female
BirthDate (date) (optional) If the customer is to be registered in the Moka system for the first time, the date of birth of the customer is entered..
GsmNumber (string) (optional) If the customer is to be registered in the Moka system for the first time, the customer's mobile phone is entered
Email (string) (optional) If the customer is to be registered in the Moka system for the first time, the customer's email address is entered.
Address (string) (optional) If the customer is to be registered in the Moka system for the first time, the customer's residential address is entered.

Sample Request (JSON)


{
	"DealerCustomerAuthentication": {
		"DealerCode": "xxx",
		"Username": "xxx",
		"Password": "xxx",
		"CheckKey": "aabbccddeeff"
	},
	"DealerCustomerRequest": {
		"DealerCustomerId": "",
		"CustomerCode": "Customer",
		"Password": "Elif1234",
		"FirstName": "Elif",
		"LastName": "Y",
		"Gender": "2",
		"BirthDate": "19850710",
		"GsmNumber": "5301111111",
		"Email": "elif.y@moka.com"
	}
}

Successful Request Result

Parameter Explanation
DealerCustomerId (integer) It is the Customer's Unique Id in Moka.
CustomerCode (string) Unique code given by the dealer to its customer.
Password (string) When the customer wants to withdraw from his stored card, if the dealer wants the customer's password to be asked, the customer's own password is entered in this field. (Max 50 chars)
FirstName(string) If the customer is to be registered in the Moka system for the first time, the customer's name is entered.
LastName (string) If the customer is to be registered in the Moka system for the first time, the customer's surname is entered.
Gender (integer) If the customer is to be registered in the Moka system for the first time, the gender of the customer is entered. 1: male 2: female
BirthDate (date) If the customer is to be registered in the Moka system for the first time, the date of birth of the customer is entered.
GsmNumber (integer) If the customer is to be registered in the Moka system for the first time, the customer's mobile phone is entered.
Email (integer) If the customer is to be registered in the Moka system for the first time, the customer's email address is entered.
Address (integer) If the customer is to be registered in the Moka system for the first time, the customer's residential address is entered.
CardListCount (integer) Number of customer's stored cards."0"
CardList (Array) With this service, the customer's cards are not returned.

Successful Result Example


{
	"Data": {
		"DealerCustomer": {
			"DealerCustomerId": 1033,
			"CustomerCode": "Customer",
			"Password": "Elif1234",
			"FirstName": "Elif",
			"LastName": "Y",
			"Gender": 2,
			"BirthDate": "19850710",
			"GsmNumber": "5301111111",
			"Email": "elif.y@moka.com",
			"Address": "TAŞDELEN"
		},
		"CardListCount": 0,
		"CardList": []
	},
	"ResultCode": "Success",
	"ResultMessage": "",
	"Exception": null
}

Failed Request Result

ResultCodeExplanation
DealerCustomer.UpdateCustomer.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
DealerCustomer.UpdateCustomer.CustomerCodeAlreadyUsingThere is a registration with the customer code sent.
DealerCustomer.UpdateCustomer.InvalidEmailFormatInvalid e-mail address
DealerCustomer.UpdateCustomer.CustomerCodeOrDealerCustomerIdMustBeGiven Customer code or dealer customer id must be entered.
DealerCustomer.UpdateCustomer.DealerCustomerNotFoundDealer customer id not found.
DealerCustomer.UpdateCustomer.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.UpdateCustomer.CustomerCodeOrDealerCustomerIdMustBeGiven",
	"ResultMessage": "",
	"Exception": null
}