Type and Action field must have
Type : user, settings, product, order, customer
Action : login, forgot-password, notification, support-list, support-email, list, add-to-cart, checkout, select, update, request, payment-status, payment-status-select

Sample Form :
User Login * After successful login, must keep ( All User array key ) into cookies or whatelse for after login purpose.
Product List * List all product list.
Order List * List all order for this dealer purchase.
Order Update * Update status from other portral
Order Tracking * Update tracking from other portral
Dealer List * all dealer list



Before Login


User - Login with user account (* Username & Password) (Back)

Result Message
1. failed : Sorry, something error, please try again later!
2. failed-value : Please enter your username and password!
3. failed-username : Invalid username or password!
4. failed-token failed-verify : Sorry, please provide correct verify code!
5. success-send-verify : Thank you, we had sent a verify code for you, please enter your code within 1 minute.
6. success-login : Welcome back.

Type :

Action :

Login Request :

Submit :

Username : * Username : dms1

Password :




AFter Login

* Important note : After successful login, API will return user details, please key return UserID, UserName, Permission, Token in your cookies or session, and all input ( UserID, UserName, Permission, Token ) and use via this return value.


Product - List All Product (Back)

success-list : Product will display, else product can't be view

* Return result content array key mean Minimum Order Amount, show out only, give dealer know his must order more than that amount.
Type :

Action :

UserID :

UserName :

Permission :

Token :

Status : * This field must set to active

Pagination (yes/no) : * This field must set to no




Order - List All Order (Back)

Result Message
1. failed-value : Sorry, system request timeout, please try again later!
2. failed-add-to-cart : Sorry, failed to add item in list, please try again!
3. failed-customer-select : Please select dealer!
4. failed-customer-exists : Sorry, selected dealer doesn't exsits!
5. failed-cart : Please add at least one item in cart!
6. failed-quantity : Sorry, no quantity in cart!
7. failed-product : Sorry, some of the product has been removed.
8. failed-minimum : Sorry, some of the product doesn't exceed the minimum order.
9. failed-minimum-amount : Sorry, order amount must at least RM .
10. failed-image : Sorry, system doesn't detect any image!
11. failed-exceed-upload : Sorry, maximum of file upload is 5 only!
12. failed-image-type : Sorry, system only support JPG, PNG and PDF file only!
13. failed-select : Sorry, selected order does not exist!
14. failed-status : Sorry, payment status update error, please try again later!
15. failed-insert : Sorry, order failed to insert!
16. failed-order-twice : Kindly make payment for your previous order. If not, you're not available to make new order.
17. success-add-to-cart : Thank you, cart added in list.
18. success-insert : Thank you for your order, your order is confirmed and pending for the payment, please bank to Frontier Fulfillment (M) Sdn Bhd bank account as per listed below: Frontier Fulfillment (M) Sdn Bhd:(request for bank API)
19. success-submit-payment : Thank you for your order and it will be processed upon verification of your payment within 24 working hours.
20. success-submit-payment-without : Thank you, payment status was marked as cancelled.
21. success-payment-update : Thank you, payment status has been updated.
22. success-payment-reupload : Thank you, your payment slip has been reuploaded.

* Show ( SoNumber, InvNumber, OrderDate, InvDate, PaymentStatus, OrderStatus, Amount, Remark ) in list only.

* Dealer can search and sortable their order list, let in empty, if nothing request

Type :

Action :

UserID :

UserName :

Permission :

Token :

Search SoNumber :

Search InvNumber :

Search OrderDate From :

Search OrderDate To :

Search InvDate From :

Search InvDate To :

Search Company Name / Dealer Code :

Search PaymentStatus : * PaymentStatus only have ( unpaid, processing, p-giro, paid, cancelled ) status only.

Search OrderStatus : * OrderStatus only have ( pending, completed, failed, cancelled ) status only.

Request Paymet : * Request payment status

Sortable Type : * Dealer only can filter 2 type only ( so, inv ) | so = SoNumber, inv = InvNumber

Sortable By : * Sortable by ( asc, desc ) only

Pagination (yes/no) : * Yes - Limit the order result, No - Show all order result

Page : * Current page, if Pagination is no ignore this field

Limit : * Limit the perpage of result, if Pagination is no ignore this field




Order - Update Status (Back)

success : Mean successfuly updated status.

Type :

Action :

UserID :

UserName :

Permission :

Token :

OrderNumber : * Order number from my site order number.

InvNumber : * Inv number get from Potral

SerialNumber : * Please return your array as json_encode format, I want ( ProductCode, SerialFrom, SerialTo, Quantity )

Update Person : * Update person from Potral

Remark : * Remark from Potral




Order - Update Tracking (Back)

success : Mean successfuly updated status.

Type :

Action :

UserID :

UserName :

Permission :

Token :

OrderNumber : * Order number from my site order number.

CourierCode : * Courier code, total 19 courier company

TrackingNumber : * Tracking number from courier company

SubmitDate : * When shipped the item




Dealer - List All Dealer (Back)

success : Dealer will display

Type :

Action :

UserID :

UserName :

Permission :

Token :

Search State : * Search state

Search Modified Date : * Please enter today date, format with yyyy-mm-dd

Request Shipping Address : * Request shipping address

Pagination (yes/no) : * This field must set to no, if would like to list all dealer list at the time

CurrentPage : * If pagination is no , please ignore this field.

Limit : * If pagination is no , please ignore this field.