preorders.php¶
Preorder management module for handling customer orders, including adding new preorders, checking status, and managing notifications.
API Methods¶
| Method | Action | Description |
|---|---|---|
add | add preorder | Creates a new preorder for the authenticated customer. |
check | check preorder status | Checks the current status of preorders. |
count_customer | get customer preorder count | Returns the total number of preorders for the authenticated customer. |
delete | delete preorder | Deletes a specific preorder. |
list_customer | get customer preorders list | Returns a list of preorders belonging to the authenticated customer. |
notify | send notification | Sends a notification to the customer regarding preorders. |
preorders/add¶
Creates a new preorder for the authenticated customer.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add |
| token | ✅ | string | Authentication token. |
Request example
Success response example
preorders/check¶
Checks the current status of preorders.
HTTP method: GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: check |
Success response example
preorders/count_customer¶
Returns the total number of preorders for the authenticated customer.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: count_customer |
| token | ✅ | string | Authentication token. |
Request example
preorders/delete¶
Deletes a specific preorder.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: delete |
| token | ✅ | string | Authentication token. |
| cancel_token | ❌ | string | Cancellation token for the preorder. |
Request example
preorders/list_customer¶
Returns a list of preorders belonging to the authenticated customer.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list_customer |
| token | ✅ | string | Authentication token. |
Request example
Success response example
preorders/notify¶
Sends a notification to the customer regarding preorders.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: notify |
| token | ✅ | string | Authentication token. |
Request example