> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.hubspot.crm.CreateLineItem

- Component: `appmixer.hubspot.crm.CreateLineItem`
- Kind: Action
- Version: 1.0.1
- Visibility: Public
- Connector: [appmixer.hubspot 4.10.0](https://connectors.appmixer.com/connector/appmixer.hubspot/4.10.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.hubspot/4.10.0/component/appmixer.hubspot.crm.CreateLineItem>

Create a new line item.

## Input ports

### Port `lineItem`

| Field | Type | Description |
| --- | --- | --- |
| Product ID (`productId`) | text | Select a product ID. |
| Name (`name`) | text | Name |
| Quantity (`quantity`) | text | Quantity |
| Price (`price`) | text | Price |
| Recurring Billing Period (`recurringBillingPeriod`) | text | Recurring Billing Period. example: 24 |
| Recurring Billing Frequency (`recurringBillingFrequency`) | text | Recurring Billing Frequency. example: monthly |

## Output ports

### Port `newLineItem`

| Field | Type | Description |
| --- | --- | --- |
| ID (`id`) | string | - |
| Name (`name`) | string | - |
| Product ID (`productId`) | string | - |
| Quantity (`quantity`) | string | - |
| Price (`price`) | string | - |
| Amount (`amount`) | string | - |
| Recurring Billing Period (`recurringBillingPeriod`) | string | - |
| Recurring Billing Frequency (`recurringBillingFrequency`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.hubspot.crm.CreateLineItem",
  "author": "Zulkafil Tabish <zulkafil@client.io>",
  "icon": "(data URI omitted)",
  "description": "Create a new line item.",
  "private": false,
  "auth": {
    "service": "appmixer:hubspot"
  },
  "quota": {
    "manager": "appmixer:hubspot",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "lineItem",
      "schema": {
        "type": "object",
        "properties": {
          "productId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "recurringBillingPeriod": {
            "type": "number"
          },
          "recurringBillingFrequency": {
            "type": "string"
          }
        },
        "required": [
          "productId",
          "name",
          "quantity"
        ]
      },
      "inspector": {
        "inputs": {
          "productId": {
            "type": "text",
            "label": "Product ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/hubspot/crm/ListProducts?outPort=out",
              "data": {
                "transform": "./ListProducts#productsToSelectArray"
              }
            },
            "tooltip": "Select a product ID."
          },
          "name": {
            "type": "text",
            "label": "Name",
            "tooltip": "Name",
            "index": 2
          },
          "quantity": {
            "type": "text",
            "label": "Quantity",
            "tooltip": "Quantity",
            "index": 3
          },
          "price": {
            "type": "text",
            "label": "Price",
            "tooltip": "Price",
            "index": 4
          },
          "recurringBillingPeriod": {
            "type": "text",
            "label": "Recurring Billing Period",
            "tooltip": "Recurring Billing Period. example: 24",
            "index": 5
          },
          "recurringBillingFrequency": {
            "type": "text",
            "label": "Recurring Billing Frequency",
            "tooltip": "Recurring Billing Frequency. example: monthly",
            "index": 6
          }
        },
        "groups": {
          "associations": {
            "label": "Associations",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "newLineItem",
      "options": [
        {
          "label": "ID",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "151"
          }
        },
        {
          "label": "Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "Premium subscription"
          }
        },
        {
          "label": "Product ID",
          "value": "productId",
          "schema": {
            "type": "string",
            "example": "2054630347"
          }
        },
        {
          "label": "Quantity",
          "value": "quantity",
          "schema": {
            "type": "string",
            "example": "2"
          }
        },
        {
          "label": "Price",
          "value": "price",
          "schema": {
            "type": "string",
            "example": "19.99"
          }
        },
        {
          "label": "Amount",
          "value": "amount",
          "schema": {
            "type": "string",
            "example": "39.98"
          }
        },
        {
          "label": "Recurring Billing Period",
          "value": "recurringBillingPeriod",
          "schema": {
            "type": "string",
            "example": "P12M"
          }
        },
        {
          "label": "Recurring Billing Frequency",
          "value": "recurringBillingFrequency",
          "schema": {
            "type": "string",
            "example": "monthly"
          }
        }
      ]
    }
  ],
  "version": "1.0.1",
  "dependencies": {
    "service": "1.0.1"
  }
}
```
