{"id":2612,"date":"2026-02-25T06:11:57","date_gmt":"2026-02-25T07:11:57","guid":{"rendered":"http:\/\/gogetmuscle.com\/?p=2612"},"modified":"2026-02-25T17:46:06","modified_gmt":"2026-02-25T17:46:06","slug":"line-items-on-deal-rearranged-hs_position_on_quote-out-of-sync","status":"publish","type":"post","link":"http:\/\/gogetmuscle.com\/index.php\/2026\/02\/25\/line-items-on-deal-rearranged-hs_position_on_quote-out-of-sync\/","title":{"rendered":"Line items on deal rearranged \u2013 hs_position_on_quote out of sync"},"content":{"rendered":"

We’re experiencing an issue where the line items on one of our deals (178 line items) appear to be displayed in a random order. We can’t pinpoint when or why this happened.

<\/P>
\n

After some investigation via the HubSpot API (using an MCP connection with Claude), I extracted all line item IDs together with their hs_position_on_quote values. The hs_position_on_quote field should determine the display order of line items on the quote, but the values are not aligned with the chronological order in which the line items were created.

<\/P>
\n

I’ve shared the extracted data in this Google Sheet for reference:
https:\/\/docs.google.com\/spreadsheets\/d\/1G5HDkKAbwWpwVcYkqBBw3N0EDIpTz8XF3FNLSC6qy1Y\/edit?gid=0#gid=0<\/a>

<\/P>
\n

My questions:
1. Has anyone experienced line items being reordered unexpectedly on a deal with a large number of line items?
2. Is there a known issue with hs_position_on_quote when line items are added to a deal in multiple sessions or via an integration?
3. Has anyone successfully bulk-updated hs_position_on_quote via the API to restore the correct order? Any pitfalls to watch out for?

<\/P>
\n

Any help or pointers would be greatly appreciated!<\/P>
\n

Thanks<\/P>
\n

\u00a0<\/SPAN><\/P><\/p>\n","protected":false},"excerpt":{"rendered":"

We’re experiencing an issue where the line items on one of our deals (178 line items) appear to be displayed in a random order. We can’t pinpoint when or why this happened. After some investigation via the HubSpot API (using an MCP connection with Claude), I extracted all line item IDs together with their hs_position_on_quote […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/2612"}],"collection":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/comments?post=2612"}],"version-history":[{"count":1,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/2612\/revisions"}],"predecessor-version":[{"id":2613,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/posts\/2612\/revisions\/2613"}],"wp:attachment":[{"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/media?parent=2612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/categories?post=2612"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gogetmuscle.com\/index.php\/wp-json\/wp\/v2\/tags?post=2612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}