Skip to main content
POST
/
crm-objects
/
v1
/
objects
/
line_items
/
batch-update
Create a group of line items
curl --request POST \
  --url https://api.hubapi.com/crm-objects/v1/objects/line_items/batch-update
[
  {
    "objectId": 9890010,
    "properties": [
      {
        "name": "price",
        "value": "55.00"
      },
      {
        "name": "description",
        "value": "This is an updated description for this item, it's getting a price change."
      }
    ]
  },
  {
    "objectId": 9954744,
    "properties": [
      {
        "name": "name",
        "value": "Updated name, new quantity"
      },
      {
        "name": "quantity",
        "value": "20"
      }
    ]
  },
  {
    "versions": [
      {
        "name": "amount",
        "value": "275.00",
        "timestamp": 0,
        "sourceId": "LineItemAmountCalculator",
        "source": "CALCULATED",
        "sourceVid": []
      },
      {
        "name": "amount",
        "value": "137.50",
        "timestamp": 0,
        "sourceId": "LineItemAmountCalculator",
        "source": "CALCULATED",
        "sourceVid": []
      }
    ],
    "value": "275.00",
    "timestamp": 0,
    "source": "CALCULATED",
    "sourceId": "LineItemAmountCalculator"
  },
  {
    "versions": [
      {
        "name": "quantity",
        "value": "5",
        "timestamp": 1525371765869,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "5",
    "timestamp": 1525371765869,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "hs_lastmodifieddate",
        "value": "0",
        "timestamp": 0,
        "source": "CALCULATED",
        "sourceVid": []
      }
    ],
    "value": "0",
    "timestamp": 0,
    "source": "CALCULATED",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "price",
        "value": "55.00",
        "timestamp": 1525372398002,
        "source": "API",
        "sourceVid": []
      },
      {
        "name": "price",
        "value": "27.50",
        "timestamp": 1525359863627,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "55.00",
    "timestamp": 1525372398002,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "description",
        "value": "This is an updated description for this item, it's getting a price change.",
        "timestamp": 1525372398002,
        "source": "API",
        "sourceVid": []
      },
      {
        "name": "description",
        "value": "An updated description for this line item. Updating the quantity.",
        "timestamp": 1525371765869,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "This is an updated description for this item, it's getting a price change.",
    "timestamp": 1525372398002,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "hs_product_id",
        "value": "1688960",
        "timestamp": 1525371444427,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "1688960",
    "timestamp": 1525371444427,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "amount",
        "value": "200.00",
        "timestamp": 0,
        "sourceId": "LineItemAmountCalculator",
        "source": "CALCULATED",
        "sourceVid": []
      }
    ],
    "value": "200.00",
    "timestamp": 0,
    "source": "CALCULATED",
    "sourceId": "LineItemAmountCalculator"
  },
  {
    "versions": [
      {
        "name": "quantity",
        "value": "20",
        "timestamp": 1525372398002,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "20",
    "timestamp": 1525372398002,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "hs_lastmodifieddate",
        "value": "0",
        "timestamp": 0,
        "source": "CALCULATED",
        "sourceVid": []
      }
    ],
    "value": "0",
    "timestamp": 0,
    "source": "CALCULATED",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "price",
        "value": "10.00",
        "timestamp": 1525287810508,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "10.00",
    "timestamp": 1525287810508,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "name",
        "value": "Updated name, new quantity",
        "timestamp": 1525372398002,
        "source": "API",
        "sourceVid": []
      },
      {
        "name": "name",
        "value": "An updated product",
        "timestamp": 1525287810508,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "Updated name, new quantity",
    "timestamp": 1525372398002,
    "source": "API",
    "sourceId": null
  },
  {
    "versions": [
      {
        "name": "hs_product_id",
        "value": "1642736",
        "timestamp": 1525371444427,
        "source": "API",
        "sourceVid": []
      }
    ],
    "value": "1642736",
    "timestamp": 1525371444427,
    "source": "API",
    "sourceId": null
  }
]

Response

200 - application/json

Successful response - Delete an existing line item

The response is of type object.

Last modified on December 12, 2025