Add Product

Service Address

Request Parameters


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.


Parameter Explanation
ProductName (string) Name of the product (Max 100 chars)
ProductCode (string) It is the special code of the product on the dealer side. If sent empty, guid will be created

Sample Request (JSON)

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

Successful Request Result

Parameter Explanation
DealerProductId (integer) It is the Unique ID of the product on the moka side.
ProductName (string) Product name
ProductCode (string) If the dealer has not sent a special code, guid is returned in this field.

Successful Result Example

	"Data": {
		"DealerProductId": 1009,
		"ProductName": "Product",
		"ProductCode": "Product01"
	"ResultCode": "Success",
	"ResultMessage": "",
	"Exception": null

Failed Request Result

DealerSale.AddProduct.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
DealerSale.AddProduct.ProductNameIsRequiredThe product name is required.
DealerSale.AddProduct.ProductCodeAlreadyUsing The product code is already used.
DealerSale.AddProduct.ProductNameAlreadyExistsThe product name already exists.
EX An unexpected error has occurred

Example of Failed Result

	"Data": null,
	"ResultCode": "DealerSale.AddProduct.ProductNameIsRequired",
	"ResultMessage": "",
	"Exception": null