Delete Schedule
Service Address
/DealerSale/DeleteSchedule
Request Parameters
DealerSaleAuthentication
Parameter | Explanation |
---|---|
DealerCode(string) | Dealer code issued by the Moka United system |
Username (string) | Api username given by Moka United system |
Password (string) | Api password given by Moka United 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. |
DealerSaleRequest
Parameter | Explanation |
---|---|
DealerSaleScheduleId (integer) | The ID returned from Moka United when the time program is added. This program will be deleted. |
Sample Request (JSON)
{
"DealerSaleAuthentication": {
"DealerCode": "xxx",
"Username": "xxx",
"Password": "xxx",
"CheckKey": "aabbccddeeff"
},
"DealerSaleRequest": {
"DealerSaleScheduleId": "1004"
}
}
Successful Request Result
If the sent request data has been processed successfully in Moka United, "Success" information is written in the "ResultCode" field of the return object . The "Data" field contains the result of the returned operation. You can continue your flows by checking the information in "Data" .
Successful Result Example
{
"Data": true,
"ResultCode": "Success",
"ResultMessage": "",
"Exception": null
}
Failed Request Result
If the sent request data could not be processed in Moka United streams, the "ResultCode" field of the return object contains one of the error codes in the table below.
When an unexpected software error occurs, EX is written in the "ResultCode" field and the error message (Exception) is displayed in the "ResultMessage" field
In both cases, the "Data" object arrives as null.
ResultCode | Explanation |
---|---|
DealerSale.DeleteSchedule.InvalidRequest | The CheckKey may be bad, or the object may be bad, or the JSON may be corrupt. |
DealerSale.DeleteSchedule.DealerSaleScheduleIdIsRequired | Dealer sales time schedule id is required. |
DealerSale.DeleteSchedule.ScheduleNotFound | Time program not found. |
EX | An unexpected error has occurred |
Example of Failed Result
{
"Data": null,
"ResultCode": "DealerSale.DeleteSchedule.DealerSaleScheduleIdIsRequired",
"ResultMessage": "",
"Exception": null
}