Get Product List

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.

Sample Request (JSON)


{
	"DealerSaleAuthentication": {
		"DealerCode": "xxx",
		"Username": "xxx",
		"Password": "xxx",
		"CheckKey": "aabbccddeeff"
	}
}

Successful Request Result

Parameter Explanation
ProductListCount (integer) Number of dealer's products
ProductList (Array) List of dealer's products

DealerProductId (integer) Unique ID of the product in Moka system
ProductName (string) The name of the product in the dealer's own system
ProductCode (string) Unique code of the product in the dealer's own system

Successful Result Example


{
	"Data": {
		"ProductListCount": 1,
		"ProductList": [
			{
				"DealerProductId": 5,
				"ProductName": "Aylık Abonelik",
				"ProductCode": "Abone001"
			}
		]
	},
	"ResultCode": "Success",
	"ResultMessage": "",
	"Exception": null
}

Failed Request Result

ResultCodeExplanation
DealerSale.GetProductList.InvalidRequestThe CheckKey may be bad, or the object may be bad, or the JSON may be corrupt.
DealerSale.GetProductList.ProductNotFoundThe product was not found.
EX An unexpected error has occurred

Example of Failed Result


{
	"Data": null,
	"ResultCode": "DealerSale.GetProductList.NoDataFound",
	"ResultMessage": "",
	"Exception": null
}