💙
Magento 2 Pre Order Extension
  • Overview
  • Installation
    • Setup Module
    • How It Work?
    • Pre Order Workflow
  • Config and Usage
    • Module Configuration
    • View Preorder
    • How pre-order show on frontend
  • Rest API
  • Other Module Guides
    • Magento 2 Step Recommendation
Powered by GitBook
On this page

Rest API

Rest api for Request For Quot

GET - Preorder by productId

Endpoint: /V1/lof-PreOrder/isPreorder/:productId

Method: GET

Params:

Response Data:

true

GET - Note Preorder by productId

Endpoint: /V1/lof-PreOrder/getPreorderNote/:productId

Method: GET

Params:

  • productId

Response Data:

"string"

PUT - Custom Price

Endpoint: /V1/lof-PreOrder/addCustomPrice/:quoteId/:quoteItemId/:productId/:storeId

Method: PUT

Params:

  • quoteId

  • quoteItemId

  • productId

  • storeId

Response Data:

"string"

POST - Complete Order

Endpoint: /V1/lof-PreOrder/completeOrder/:orderId

Method: POST

Params:

  • orderId

Response Data:

true

POST - Create Complete Preorder Quote

Endpoint: /V1/lof-PreOrder/createCompletePreorder/:productId/:storeId/:itemId/:preProductId/:orderId/:qty

Method: POST

Params:

  • productId

  • storeId

  • itemId

  • orderId

  • preProductId

  • qty

Response Data:

"string"

GET - List Preorder Items

Endpoint: /V1/lof-PreOrder/PreOrderItems

Method: GET

Params:

Response Data:

{
  "items": [
    {
      "id": 0,
      "order_id": 0,
      "item_id": 0,
      "product_id": 0,
      "parent_id": 0,
      "customer_id": 0,
      "customer_email": "string",
      "preorder_percent": 0,
      "paid_amount": 0,
      "remaining_amount": 0,
      "qty": 0,
      "type": 0,
      "status": 0,
      "time": "string",
      "created_at": "string"
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

POST - Notify Preorder

Endpoint: /V1/lof-PreOrder/notifyPreOrderItem/:itemId

Method: POST

Params:

  • itemId

Response Data:

"string"

GET - Get Settings

Endpoint: /V1/lof-PreOrder/PreOrdersetting/:path

Method: POST

Params:

  • path

Response Data:

"string"

PreviousHow pre-order show on frontendNextMagento 2 Step Recommendation

Last updated 2 years ago