0

I want to add a custom parameter in add to cart product api billing_period & subscription_start_date.

I have tried with Magento's /V1/carts/mine/items API with below request data.

{
  "cartItem": {
    "item_id": 970,
    "sku": "24-WB07",
    "qty": 1,
    "name": "Proooo",
    "price": 10,
    "product_type": "simple",
    "quote_id": 160,
    "product_option": {
      "extension_attributes": {
        "custom_options": [
          {
            "option_id": "_1",
            "option_value": "subscription"
          }
        ],
        "billing_period": "_1555505753777_777",
        "subscription_start_date": "2020-02-10"
      }
    }
  }
}

I want to store below parameters in quote_item_option in info_buyRequest

Let me know what I am missing & API request is successfully sent but data is not stored in info_buyRequest.

  • Can I have plugin code which you used to store custom info – Sairam Sigirisetty Jun 17 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.