{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"VaultGraph Docs","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/vaultgraph/5ump_sJ-RlT0Ba5J/logo/light.svg?fit=max\u0026auto=format\u0026n=5ump_sJ-RlT0Ba5J\u0026q=85\u0026s=a37b19e11639eed7aa7562aa192cb15e","dark":"https://mintcdn.com/vaultgraph/5ump_sJ-RlT0Ba5J/logo/dark.svg?fit=max\u0026auto=format\u0026n=5ump_sJ-RlT0Ba5J\u0026q=85\u0026s=9a525c1b35f55fefbcb486746e030297"},"favicon":"https://mintcdn.com/vaultgraph/5ump_sJ-RlT0Ba5J/favicon.svg?fit=max\u0026auto=format\u0026n=5ump_sJ-RlT0Ba5J\u0026q=85\u0026s=573b770bca1cd14bd943625866163bf9","navbar":{"links":[{"href":"https://vaultgraph.com","label":"Home"},{"href":"https://app.vaultgraph.com","label":"Dashboard"},{"href":"/sdk","label":"SDK"},{"href":"mailto:admin@vaultgraph.com","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/vaultgraph","github":"https://github.com/vaultgraph","linkedin":"https://linkedin.com/company/vaultgraph"}},"seo":{"metatags":{"canonical":"https://vaultgraph.com/docs"}},"integrations":{"ga4":{"measurementId":"G-F3FLPVQ5DN"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Home Website","icon":"home","href":"https://vaultgraph.com/"},{"anchor":"SDK on npm","icon":"link","href":"https://www.npmjs.com/package/@vaultgraph/sdk"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vaultgraph","hasAudioNarration":false,"actualSubdomain":"vaultgraph","customDomains":["docs.vaultgraph.com"],"gitSource":{"type":"github","owner":"vaultgraph","repo":"core","deployBranch":"master","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae63bf0426c3612a8997bbc","collectionId":"8179c96b-dfc6-40f9-b8c6-4871d0880c4f","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae63bf0426c3612a8997bbc"},"entitlements":{},"buildId":"6ae63bf0426c3612a8997bbc","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"API Reference","count":29},{"language":"default","tag":"Commerce","count":22},{"language":"default","tag":"Documentation","count":7},{"language":"default","tag":"Getting started","count":6},{"language":"default","tag":"Shops","count":5},{"language":"default","tag":"Legal","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties","slug":"/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties","pageMetadata":{"title":"Update a line item's quantity (0 removes it) and properties","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/commerce/checkouts/{id}/line-items/{lineId}","href":"/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update a line item's quantity (0 removes it) and properties","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/commerce/checkouts/{id}/line-items/{lineId}","href":"/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Update a line item's quantity (0 removes it) and properties","operationId":"updateCheckoutLineItem","tags":["Commerce"],"security":["3d83d297-451c-44a0-9043-f0587c3a8c60"],"parameters":["04b82948-d852-4b75-9da5-8bf0a3c469d8","0c410ddb-fc71-4428-a5d2-31b4c8b20d47"],"requestBody":"719b2997-bdf5-4785-84e3-d6c4b7f0a5c9","responses":{"200":"9fab15a6-7f61-4bdd-89b7-54bf40249ece"},"method":"patch","type":"path","servers":["bdaf09bd-7de1-4991-a245-107971c07330"],"path":"/api/commerce/checkouts/{id}/line-items/{lineId}","baseUrlOptions":["https://app.vaultgraph.com"],"title":"Update a line item's quantity (0 removes it) and properties","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"04b82948-d852-4b75-9da5-8bf0a3c469d8":{"in":"path","name":"id","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}},"0c410ddb-fc71-4428-a5d2-31b4c8b20d47":{"in":"path","name":"lineId","required":true,"schema":{"type":"string","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["quantity"],"properties":{"quantity":{"type":"integer","minimum":0,"isRequired":true,"uniqueKey":"quantity","typeLabel":"integer"},"properties":{"type":"array","description":"Replaces the line's custom fields wholesale. Omit to leave them unchanged. The line keeps its id even when the new properties match another line's.","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"properties.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"properties.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"properties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"properties","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"quantity":1,"properties":[{"name":"\u003cstring>","value":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9fab15a6-7f61-4bdd-89b7-54bf40249ece":{"description":"Updated checkout","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","currency","status","line_items","links","totals","ucp"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"currency":{"type":"string","isRequired":true,"uniqueKey":"data.currency","typeLabel":"string"},"status":{"type":"string","enum":["canceled","complete_in_progress","completed","incomplete","ready_for_complete","requires_escalation"],"isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"line_items":{"type":"array","items":{"type":"object","required":["item","quantity"],"properties":{"item":{"type":"object","required":["id","title","price"],"properties":{"id":{"type":"string","description":"References an Item.id.","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].item.id","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].item.title","typeLabel":"string"},"price":{"type":"integer","description":"Integer minor units.","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].item.price","typeLabel":"integer"},"image_url":{"type":"string","uniqueKey":"data.line_items.items.[INDEX].item.image_url","typeLabel":"string"}},"isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].item","typeLabel":"object"},"quantity":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].quantity","typeLabel":"integer"},"id":{"type":"string","uniqueKey":"data.line_items.items.[INDEX].id","typeLabel":"string"},"parent_id":{"type":"string","uniqueKey":"data.line_items.items.[INDEX].parent_id","typeLabel":"string"},"properties":{"type":"array","description":"Merchant-defined custom fields, each a { name, value } pair (e.g. an engraving or gift message). Echoed on the order; lines of the same item with different properties stay separate.","items":{"type":"object","required":["name","value"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].properties.items.[INDEX].name","typeLabel":"string"},"value":{"type":"string","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].properties.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"data.line_items.items.[INDEX].properties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.line_items.items.[INDEX].properties","typeLabel":"object[]"},"totals":{"type":"array","items":{"type":"object","required":["type","amount"],"description":"One row of a money breakdown; at most one row per type. `total` is the authoritative amount the shopper is charged and the other rows are the breakdown that explains it. `items_discount` is the share of `discount` coming from per-line promotions.","properties":{"type":{"type":"string","enum":["subtotal","discount","items_discount","fulfillment","tax","fee","total"],"isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].totals.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].totals.items.[INDEX].amount","typeLabel":"integer"},"display_text":{"type":"string","uniqueKey":"data.line_items.items.[INDEX].totals.items.[INDEX].display_text","typeLabel":"string"}},"uniqueKey":"data.line_items.items.[INDEX].totals.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.line_items.items.[INDEX].totals","typeLabel":"object[]"},"property_specs":{"type":"array","description":"What this line can still be customized to, recomputed against the choices already on it. Supersedes the product's property_specs for this line. Absent when the product's declaration already covers it.","items":{"type":"object","required":["name","required"],"properties":{"name":{"type":"string","description":"Exact key to send back as a line property name.","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].name","typeLabel":"string"},"required":{"type":"boolean","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].required","typeLabel":"boolean"},"values":{"type":"array","description":"Allowed values. Absent for free text.","items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"Exact string to send back as the property value.","isRequired":true,"uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].values.items.[INDEX].value","typeLabel":"string"},"price_delta":{"type":"integer","description":"What picking this value adds to the line's unit price, integer minor units, negative for a cheaper option. Indicative: the checkout totals are the amount charged.","uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].values.items.[INDEX].price_delta","typeLabel":"integer"},"description":{"type":"string","description":"Anything about this choice no other field carries — added lead time, a heavier parcel, a care requirement. Optional.","uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].values.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].values.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].values","typeLabel":"object[]"},"description":{"type":"string","description":"What the property is, so the agent can ask for it. Optional.","uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"data.line_items.items.[INDEX].property_specs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.line_items.items.[INDEX].property_specs","typeLabel":"object[]"}},"uniqueKey":"data.line_items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.line_items","typeLabel":"object[]"},"totals":{"type":"array","items":{"type":"object","required":["type","amount"],"description":"One row of a money breakdown; at most one row per type. `total` is the authoritative amount the shopper is charged and the other rows are the breakdown that explains it. `items_discount` is the share of `discount` coming from per-line promotions.","properties":{"type":{"type":"string","enum":["subtotal","discount","items_discount","fulfillment","tax","fee","total"],"isRequired":true,"uniqueKey":"data.totals.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","isRequired":true,"uniqueKey":"data.totals.items.[INDEX].amount","typeLabel":"integer"},"display_text":{"type":"string","uniqueKey":"data.totals.items.[INDEX].display_text","typeLabel":"string"}},"uniqueKey":"data.totals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.totals","typeLabel":"object[]"},"links":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","isRequired":true,"uniqueKey":"data.links.items.[INDEX].type","typeLabel":"string"},"url":{"type":"string","isRequired":true,"uniqueKey":"data.links.items.[INDEX].url","typeLabel":"string"},"title":{"type":"string","uniqueKey":"data.links.items.[INDEX].title","typeLabel":"string"}},"required":["type","url"],"additionalProperties":false,"uniqueKey":"data.links.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.links","typeLabel":"object[]"},"ucp":{"type":"object","properties":{"capabilities":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX].name","typeLabel":"string"},"version":{"type":"string","isRequired":true,"uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX].version","typeLabel":"string"},"config":{"type":"object","additionalProperties":{"oneOf":[{}],"uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX].config.additionalProperties","typeLabel":"any"},"uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX].config","typeLabel":"object"},"extends":{"type":"string","uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX].extends","typeLabel":"string"},"schema":{"type":"string","uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX].schema","typeLabel":"string"},"spec":{"type":"string","uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX].spec","typeLabel":"string"}},"required":["name","version"],"additionalProperties":false,"uniqueKey":"data.ucp.capabilities.additionalProperties.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.ucp.capabilities.additionalProperties","typeLabel":"object[]"},"isRequired":true,"uniqueKey":"data.ucp.capabilities","typeLabel":"object"},"version":{"type":"string","isRequired":true,"uniqueKey":"data.ucp.version","typeLabel":"string"}},"required":["capabilities","version"],"additionalProperties":false,"isRequired":true,"uniqueKey":"data.ucp","typeLabel":"object"},"buyer":{"type":"object","description":"The person checking out. `email` is required before a checkout can be completed. Send a name as `full_name`, as `first_name` + `last_name`, or as both.","properties":{"email":{"type":"string","uniqueKey":"data.buyer.email","typeLabel":"string"},"first_name":{"type":"string","uniqueKey":"data.buyer.first_name","typeLabel":"string"},"full_name":{"type":"string","uniqueKey":"data.buyer.full_name","typeLabel":"string"},"last_name":{"type":"string","uniqueKey":"data.buyer.last_name","typeLabel":"string"},"phone_number":{"type":"string","uniqueKey":"data.buyer.phone_number","typeLabel":"string"}},"uniqueKey":"data.buyer","typeLabel":"object"},"context":{"type":"object","description":"Where the shopper is. Drives currency, per-market availability, and a tax estimate before a full address exists.","properties":{"address_country":{"type":"string","description":"ISO 3166-1 alpha-2 country code, uppercase (e.g. 'GB', 'US').","uniqueKey":"data.context.address_country","typeLabel":"string"},"address_region":{"type":"string","uniqueKey":"data.context.address_region","typeLabel":"string"},"postal_code":{"type":"string","uniqueKey":"data.context.postal_code","typeLabel":"string"},"currency":{"type":"string","uniqueKey":"data.context.currency","typeLabel":"string"},"language":{"type":"string","description":"BCP 47 language tag, e.g. 'de-DE'.","uniqueKey":"data.context.language","typeLabel":"string"}},"uniqueKey":"data.context","typeLabel":"object"},"fulfillment":{"type":"object","properties":{"available_methods":{"type":"array","items":{"type":"object","properties":{"line_item_ids":{"type":"array","items":{"type":"string","uniqueKey":"data.fulfillment.available_methods.items.[INDEX].line_item_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.fulfillment.available_methods.items.[INDEX].line_item_ids","typeLabel":"string[]"},"type":{"type":"string","enum":["pickup","shipping"],"isRequired":true,"uniqueKey":"data.fulfillment.available_methods.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"description":{"type":"string","uniqueKey":"data.fulfillment.available_methods.items.[INDEX].description","typeLabel":"string"},"fulfillable_on":{"oneOf":[{"type":"string","enum":["null"],"uniqueKey":"data.fulfillment.available_methods.items.[INDEX].fulfillable_on.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["null"],"uniqueKey":"data.fulfillment.available_methods.items.[INDEX].fulfillable_on.oneOf.1","typeLabel":"null"},{"type":"string","uniqueKey":"data.fulfillment.available_methods.items.[INDEX].fulfillable_on.oneOf.2","typeLabel":"string"}],"uniqueKey":"data.fulfillment.available_methods.items.[INDEX].fulfillable_on","typeLabel":"enum\u003cstring> | null | string"}},"required":["line_item_ids","type"],"additionalProperties":false,"uniqueKey":"data.fulfillment.available_methods.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.fulfillment.available_methods","typeLabel":"object[]"},"methods":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].id","typeLabel":"string"},"line_item_ids":{"type":"array","items":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].line_item_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].line_item_ids","typeLabel":"string[]"},"type":{"type":"string","enum":["pickup","shipping"],"isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"destinations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].id","typeLabel":"string"},"address_country":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address_country","typeLabel":"string"},"address_locality":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address_locality","typeLabel":"string"},"address_region":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address_region","typeLabel":"string"},"extended_address":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].extended_address","typeLabel":"string"},"first_name":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].first_name","typeLabel":"string"},"last_name":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].last_name","typeLabel":"string"},"phone_number":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].phone_number","typeLabel":"string"},"postal_code":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].postal_code","typeLabel":"string"},"street_address":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].street_address","typeLabel":"string"},"address":{"type":"object","properties":{"address_country":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.address_country","typeLabel":"string"},"address_locality":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.address_locality","typeLabel":"string"},"address_region":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.address_region","typeLabel":"string"},"extended_address":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.extended_address","typeLabel":"string"},"first_name":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.first_name","typeLabel":"string"},"last_name":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.last_name","typeLabel":"string"},"phone_number":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.phone_number","typeLabel":"string"},"postal_code":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.postal_code","typeLabel":"string"},"street_address":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address.street_address","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].address","typeLabel":"object"},"name":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX].name","typeLabel":"string"}},"required":["id"],"additionalProperties":false,"uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.fulfillment.methods.items.[INDEX].destinations","typeLabel":"object[]"},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].id","typeLabel":"string"},"line_item_ids":{"type":"array","items":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].line_item_ids.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].line_item_ids","typeLabel":"string[]"},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].title","typeLabel":"string"},"totals":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"integer","isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].totals.items.[INDEX].amount","typeLabel":"integer"},"type":{"type":"string","isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].totals.items.[INDEX].type","typeLabel":"string"},"display_text":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].totals.items.[INDEX].display_text","typeLabel":"string"}},"required":["amount","type"],"additionalProperties":false,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].totals.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].totals","typeLabel":"object[]"},"carrier":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].carrier","typeLabel":"string"},"description":{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].description","typeLabel":"string"},"earliest_fulfillment_time":{"type":"string","format":"date-time","uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].earliest_fulfillment_time","typeLabel":"string\u003cdate-time>"},"latest_fulfillment_time":{"type":"string","format":"date-time","uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX].latest_fulfillment_time","typeLabel":"string\u003cdate-time>"}},"required":["id","title","totals"],"additionalProperties":false,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].options","typeLabel":"object[]"},"selected_option_id":{"oneOf":[{"type":"string","enum":["null"],"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].selected_option_id.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["null"],"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].selected_option_id.oneOf.1","typeLabel":"null"},{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].selected_option_id.oneOf.2","typeLabel":"string"}],"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX].selected_option_id","typeLabel":"enum\u003cstring> | null | string"}},"required":["id","line_item_ids"],"additionalProperties":false,"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.fulfillment.methods.items.[INDEX].groups","typeLabel":"object[]"},"selected_destination_id":{"oneOf":[{"type":"string","enum":["null"],"uniqueKey":"data.fulfillment.methods.items.[INDEX].selected_destination_id.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["null"],"uniqueKey":"data.fulfillment.methods.items.[INDEX].selected_destination_id.oneOf.1","typeLabel":"null"},{"type":"string","uniqueKey":"data.fulfillment.methods.items.[INDEX].selected_destination_id.oneOf.2","typeLabel":"string"}],"uniqueKey":"data.fulfillment.methods.items.[INDEX].selected_destination_id","typeLabel":"enum\u003cstring> | null | string"}},"required":["id","line_item_ids","type"],"additionalProperties":false,"uniqueKey":"data.fulfillment.methods.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.fulfillment.methods","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"data.fulfillment","typeLabel":"object"},"messages":{"type":"array","description":"Store-to-shopper notes about this cart — what is still missing before it can be completed, and any warning or information the store wants the agent to relay. Advisory: they do not block `completeCheckout`, which is governed by `status`.","items":{"type":"object","properties":{"type":{"type":"string","enum":["error","warning","info"],"isRequired":true,"uniqueKey":"data.messages.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"content":{"type":"string","isRequired":true,"uniqueKey":"data.messages.items.[INDEX].content","typeLabel":"string"},"code":{"type":"string","uniqueKey":"data.messages.items.[INDEX].code","typeLabel":"string"},"path":{"type":"string","uniqueKey":"data.messages.items.[INDEX].path","typeLabel":"string"}},"required":["type","content"],"additionalProperties":false,"uniqueKey":"data.messages.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.messages","typeLabel":"object[]"},"order":{"type":"object","description":"The order this checkout became. Present once `completeCheckout` has succeeded.","required":["id","permalink_url"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"data.order.id","typeLabel":"string"},"permalink_url":{"type":"string","isRequired":true,"uniqueKey":"data.order.permalink_url","typeLabel":"string"}},"uniqueKey":"data.order","typeLabel":"object"},"continue_url":{"type":"string","description":"A URL where the shopper can open this exact cart in a browser, already populated. Absent when the store keeps checkout inside the conversation.","uniqueKey":"data.continue_url","typeLabel":"string"},"expires_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp after which the cart is no longer valid.","uniqueKey":"data.expires_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"\u003cstring>","currency":"\u003cstring>","status":"canceled","line_items":[{"item":{"id":"\u003cstring>","title":"\u003cstring>","price":123,"image_url":"\u003cstring>"},"quantity":2,"id":"\u003cstring>","parent_id":"\u003cstring>","properties":[{"name":"\u003cstring>","value":"\u003cstring>"}],"totals":[{"type":"subtotal","amount":123,"display_text":"\u003cstring>"}],"property_specs":[{"name":"\u003cstring>","required":true,"values":[{"value":"\u003cstring>","price_delta":123,"description":"\u003cstring>"}],"description":"\u003cstring>"}]}],"totals":[{"type":"subtotal","amount":123,"display_text":"\u003cstring>"}],"links":[{"type":"\u003cstring>","url":"\u003cstring>","title":"\u003cstring>"}],"ucp":{"capabilities":{},"version":"\u003cstring>"},"buyer":{"email":"\u003cstring>","first_name":"\u003cstring>","full_name":"\u003cstring>","last_name":"\u003cstring>","phone_number":"\u003cstring>"},"context":{"address_country":"\u003cstring>","address_region":"\u003cstring>","postal_code":"\u003cstring>","currency":"\u003cstring>","language":"\u003cstring>"},"fulfillment":{"available_methods":[{"line_item_ids":["\u003cstring>"],"type":"pickup","description":"\u003cstring>","fulfillable_on":"null"}],"methods":[{"id":"\u003cstring>","line_item_ids":["\u003cstring>"],"type":"pickup","destinations":[{"id":"\u003cstring>","address_country":"\u003cstring>","address_locality":"\u003cstring>","address_region":"\u003cstring>","extended_address":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","phone_number":"\u003cstring>","postal_code":"\u003cstring>","street_address":"\u003cstring>","address":{"address_country":"\u003cstring>","address_locality":"\u003cstring>","address_region":"\u003cstring>","extended_address":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","phone_number":"\u003cstring>","postal_code":"\u003cstring>","street_address":"\u003cstring>"},"name":"\u003cstring>"}],"groups":[{"id":"\u003cstring>","line_item_ids":["\u003cstring>"],"options":[{"id":"\u003cstring>","title":"\u003cstring>","totals":[{"amount":123,"type":"\u003cstring>","display_text":"\u003cstring>"}],"carrier":"\u003cstring>","description":"\u003cstring>","earliest_fulfillment_time":"2023-11-07T05:31:56Z","latest_fulfillment_time":"2023-11-07T05:31:56Z"}],"selected_option_id":"null"}],"selected_destination_id":"null"}]},"messages":[{"type":"error","content":"\u003cstring>","code":"\u003cstring>","path":"\u003cstring>"}],"order":{"id":"\u003cstring>","permalink_url":"\u003cstring>"},"continue_url":"\u003cstring>","expires_at":"2023-11-07T05:31:56Z"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3d83d297-451c-44a0-9043-f0587c3a8c60":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[]}}},"servers":{"bdaf09bd-7de1-4991-a245-107971c07330":{"url":"https://app.vaultgraph.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[]},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.yaml"},"subdomain":"vaultgraph","siteName":"VaultGraph Docs","title":"Update a line item's quantity (0 removes it) and properties - VaultGraph Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-31T19:05:24.097Z","originalFileLocation":"api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"VaultGraph Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a line item\u0026#x27;s quantity (0 removes it) and properties - VaultGraph Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VaultGraph Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vaultgraph.mintlify.app/_mintlify/api/og/v2?division=Commerce\u0026amp;title=Update+a+line+item%27s+quantity+%280+removes+it%29+and+properties\u0026amp;theme=eb2a55de8ec30a83cbfd8d23\u0026amp;signature=a09affd24ad64db4e94c47628a96aaa3fb24740c0851e218283c6f2d1e1024b1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a line item\u0026#x27;s quantity (0 removes it) and properties - VaultGraph Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vaultgraph.mintlify.app/_mintlify/api/og/v2?division=Commerce\u0026amp;title=Update+a+line+item%27s+quantity+%280+removes+it%29+and+properties\u0026amp;theme=eb2a55de8ec30a83cbfd8d23\u0026amp;signature=a09affd24ad64db4e94c47628a96aaa3fb24740c0851e218283c6f2d1e1024b1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/vaultgraph/iEBAAFmRe44CdS0m/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VaultGraph Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://vaultgraph.com/#organization\",\"name\":\"VaultGraph Docs\",\"url\":\"https://vaultgraph.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vaultgraph/5ump_sJ-RlT0Ba5J/logo/light.svg?fit=max\u0026auto=format\u0026n=5ump_sJ-RlT0Ba5J\u0026q=85\u0026s=a37b19e11639eed7aa7562aa192cb15e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://vaultgraph.com/docs#website\",\"name\":\"VaultGraph Docs\",\"url\":\"https://vaultgraph.com/docs\",\"publisher\":{\"@id\":\"https://vaultgraph.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties#webpage\",\"url\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties\",\"name\":\"Update a line item's quantity (0 removes it) and properties\",\"dateModified\":\"2026-10-31T19:05:24.097Z\",\"isPartOf\":{\"@id\":\"https://vaultgraph.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Commerce\",\"item\":\"https://vaultgraph.com/docs/api-reference/commerce/request-a-customer-sign-in-code\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update a line item's quantity (0 removes it) and properties\",\"item\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties#apireference\",\"headline\":\"Update a line item's quantity (0 removes it) and properties\",\"name\":\"Update a line item's quantity (0 removes it) and properties\",\"url\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties\",\"mainEntityOfPage\":{\"@id\":\"https://vaultgraph.com/docs/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties#webpage\"},\"dateModified\":\"2026-10-31T19:05:24.097Z\",\"publisher\":{\"@id\":\"https://vaultgraph.com/#organization\"},\"isPartOf\":{\"@id\":\"https://vaultgraph.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VaultGraph Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"VaultGraph Docs","nav":{"global":{"anchors":[{"anchor":"Home Website","icon":"home","href":"https://vaultgraph.com/"},{"anchor":"SDK on npm","icon":"link","href":"https://www.npmjs.com/package/@vaultgraph/sdk"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"Commerce","pages":[{"title":"Request a customer sign-in code","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/auth/request","href":"/api-reference/commerce/request-a-customer-sign-in-code"},{"title":"Verify a sign-in code and mint a session token","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/auth/verify","href":"/api-reference/commerce/verify-a-sign-in-code-and-mint-a-session-token"},{"title":"List catalog categories","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/commerce/catalog/categories","href":"/api-reference/commerce/list-catalog-categories"},{"title":"Get a catalog product","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/commerce/catalog/products/{id}","href":"/api-reference/commerce/get-a-catalog-product"},{"title":"Search catalog products","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/catalog/search","href":"/api-reference/commerce/search-catalog-products"},{"title":"Set the buyer on a checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/checkouts/{id}/buyer","href":"/api-reference/commerce/set-the-buyer-on-a-checkout"},{"title":"Complete a checkout (returns the resulting Order)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/checkouts/{id}/complete","href":"/api-reference/commerce/complete-a-checkout-returns-the-resulting-order"},{"title":"Apply a discount code to a checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/checkouts/{id}/discount","href":"/api-reference/commerce/apply-a-discount-code-to-a-checkout"},{"title":"List fulfillment methods available for a checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/commerce/checkouts/{id}/fulfillment-methods","href":"/api-reference/commerce/list-fulfillment-methods-available-for-a-checkout"},{"title":"Set where a checkout is going","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/checkouts/{id}/fulfillment/destination","href":"/api-reference/commerce/set-where-a-checkout-is-going"},{"title":"Select a fulfillment method on a checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/checkouts/{id}/fulfillment","href":"/api-reference/commerce/select-a-fulfillment-method-on-a-checkout"},{"title":"Remove a line item from a checkout","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/commerce/checkouts/{id}/line-items/{lineId}","href":"/api-reference/commerce/remove-a-line-item-from-a-checkout"},{"title":"Update a line item's quantity (0 removes it) and properties","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml patch /api/commerce/checkouts/{id}/line-items/{lineId}","href":"/api-reference/commerce/update-a-line-items-quantity-0-removes-it-and-properties"},{"title":"Append line items to a checkout","description":null,"deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/checkouts/{id}/line-items","href":"/api-reference/commerce/append-line-items-to-a-checkout"},{"title":"Get a checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/commerce/checkouts/{id}","href":"/api-reference/commerce/get-a-checkout"},{"title":"Get the caller's current cart","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/commerce/checkouts/current","href":"/api-reference/commerce/get-the-callers-current-cart"},{"title":"Create a checkout","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/checkouts","href":"/api-reference/commerce/create-a-checkout"},{"title":"Hold an order","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/orders/{id}/hold","href":"/api-reference/commerce/hold-an-order"},{"title":"Release a held order","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/commerce/orders/{id}/release","href":"/api-reference/commerce/release-a-held-order"},{"title":"Get an order","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/commerce/orders/{id}","href":"/api-reference/commerce/get-an-order"},{"title":"List orders for the caller","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/commerce/orders","href":"/api-reference/commerce/list-orders-for-the-caller"},{"title":"UCP capability discovery for a deployment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /.well-known/ucp/{deployment}","href":"/api-reference/commerce/ucp-capability-discovery-for-a-deployment"}]},{"group":"Shops","pages":[{"title":"Get shop detail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/shops/{id}","href":"/api-reference/shops/get-shop-detail"},{"title":"Update shop","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml put /api/shops/{id}","href":"/api-reference/shops/update-shop"},{"title":"Delete shop","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml delete /api/shops/{id}","href":"/api-reference/shops/delete-shop"},{"title":"List shops","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml get /api/shops","href":"/api-reference/shops/list-shops"},{"title":"Create shop","deprecated":null,"version":null,"openapi":"/api-reference/openapi.yaml post /api/shops","href":"/api-reference/shops/create-shop"}]}]}]},"basePath":"","title":"Update a line item's quantity (0 removes it) and properties - VaultGraph Docs","buildId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","deploymentId":"dpl_GWQzn6k13MqphA3qck3hQKoQXDzM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-vlKR2tYY.js","utils-DBDPZSWe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CxHK4zz2.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-27b98BOz.js","snippetPresets-DNnui32z.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-cDVS2zyo.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BEE-OyDQ.js","shallow-fqEMZOYR.js","getApiPlaygroundDisplay-BPut1_OB.js","CodeSnippet-h9vp8UTG.js","CodeSnippets-DoMjCW5Q.js","Page-BOWGOUSK.js","getPastedJson-C4r-hmQ_.js","icon-CCDahfhO.js","MethodPill-Dpq0JSrS.js","DuplicateIcon-BGPwFt-j.js","createIcon-DBULrQp7.js","DynamicMarkdown-B74atANy.js","SectionHeading-DZCpbSmT.js","axios-vUo_bRtp.js","Markdown-BwkgxkAH.js","clsx-CEIlvfOI.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-f6OgbvLC.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DvlTOml0.js"]}