{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Goody Developers","description":"Build on Goody: send gifts and physical products programmatically with the Goody API, or gift in natural language from Claude and other AI assistants with the Goody MCP server.","colors":{"primary":"#9159D6","light":"#B584F1","dark":"#9159D6"},"logo":{"light":"https://mintcdn.com/goody/lbPz3k5D65ibnlpb/brand-2026/goody-lockup-purple.svg?fit=max\u0026auto=format\u0026n=lbPz3k5D65ibnlpb\u0026q=85\u0026s=bc90056471177d431c448a258fd90d41","dark":"https://mintcdn.com/goody/lbPz3k5D65ibnlpb/brand-2026/goody-lockup-white.svg?fit=max\u0026auto=format\u0026n=lbPz3k5D65ibnlpb\u0026q=85\u0026s=fb5a9e2d072ef84b12c1253fc037e400"},"favicon":"https://mintcdn.com/goody/aQCLqY7BnKkOu6Uk/brand-2026/favicon.png?fit=max\u0026auto=format\u0026n=aQCLqY7BnKkOu6Uk\u0026q=85\u0026s=c8bf3082a67d6d908d79fbd258702e1e","api":{"openapi":"goody-api-openapi.json","mdx":{"auth":{"method":"bearer"},"server":"https://api.ongoody.com"}},"navbar":{"links":[{"href":"https://www.ongoody.com/plus/organization/api/commerce","label":"Commerce API Keys"},{"href":"https://www.ongoody.com/plus/organization/api/automation","label":"Automation API Keys"}]},"footer":{"socials":{"twitter":"https://twitter.com/goodygifting","linkedin":"https://www.linkedin.com/company/ongoody","instagram":"https://instagram.com/ongoody"}},"seo":{"metatags":{"og:site_name":"Goody Developers","twitter:card":"summary_large_image","keywords":"Goody API, Goody MCP server, gifting API, gift API, MCP server, send gifts with AI, Claude gifting connector, business gifting, autogift"}},"integrations":{"ga4":{"measurementId":"G-7CST37MNCX"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"goody","hasAudioNarration":false,"actualSubdomain":"goody","customDomains":["developer.ongoody.com"],"gitSource":{"type":"github","owner":"mark-goody","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0ef484de330cb387d98cda","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Schemas","count":46},{"language":"default","tag":"API Reference","count":44},{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"MCP Reference","count":31},{"language":"default","tag":"Webhooks","count":12},{"language":"default","tag":"Events","count":10},{"language":"default","tag":"Commerce API","count":8},{"language":"default","tag":"Automation API","count":7},{"language":"default","tag":"Send \u0026 track gifts","count":7},{"language":"default","tag":"Order Batches","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/schemas/cartinput","slug":"/api-reference/schemas/cartinput","pageMetadata":{"title":"CartInput","openapi-schema":"CartInput","icon":"cube","description":null,"href":"/api-reference/schemas/cartinput"},"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":"CartInput","openapi-schema":"CartInput","icon":"cube","description":null,"href":"/api-reference/schemas/cartinput"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"schemaData":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"product_id":{"oneOf":[{"type":"string","description":"ID of the product. Preferred over URL since this is always stable. Either `product_id` or `product_url` must be provided.","format":"uuid","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"ID of the product. Preferred over URL since this is always stable. Either `product_id` or `product_url` must be provided.","format":"uuid","isRequired":true,"uniqueKey":"\\items.items.[INDEX].product_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].product_id","typeLabel":"string\u003cuuid> | null"},"quantity":{"type":"integer","isRequired":true,"uniqueKey":"\\items.items.[INDEX].quantity","typeLabel":"integer"},"product_url":{"oneOf":[{"type":"string","description":"URL of the product. Either `product_id` or `product_url` must be provided.","uniqueKey":"\\items.items.[INDEX].product_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL of the product. Either `product_id` or `product_url` must be provided.","uniqueKey":"\\items.items.[INDEX].product_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"\\items.items.[INDEX].product_url","typeLabel":"string | null"},"variable_price":{"type":"integer","description":"If this product has a variable price (e.g. a flex gift or a gift card), then this must be provided. A positive integer represented in cents.","uniqueKey":"\\items.items.[INDEX].variable_price","typeLabel":"integer"},"variants":{"type":"array","items":{"type":"string","uniqueKey":"\\items.items.[INDEX].variants.items.[INDEX]","typeLabel":"string"},"description":"An array of variant names (not IDs). When using the Direct Send send method with a product with variants, the variants must be provided. The length of the array must be equal to `variants_num_selectable` on the product, and the variants must come from the names of the `varaints` on the product. For example, for a t-shirt with `variants_num_selectable` = 1 and variants S, M, L, pass ['M']. Or, for a box of cookies with `variants_num_selectable` = 2 and variants Sugar, Caramel, Chocolate, pass ['Sugar', 'Chocolate'].","uniqueKey":"\\items.items.[INDEX].variants","typeLabel":"string[]"}},"required":["product_id","quantity"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"description":"An array of cart items.","uniqueKey":"\\items","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object","example":{"title":"Example","value":{"items":[{"product_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","quantity":123,"product_url":"\u003cstring>","variable_price":123,"variants":["\u003cstring>"]}]}}},"originalFileLocation":"goody-api-openapi.json"},"subdomain":"goody","siteName":"Goody Developers","title":"CartInput - Goody Developers","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-04T15:34:09.842Z","originalFileLocation":"api-reference/schemas/cartinput.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=\"keywords\" content=\"Goody API, Goody MCP server, gifting API, gift API, MCP server, send gifts with AI, Claude gifting connector, business gifting, autogift\">\u003cmeta data-mint-head name=\"application-name\" content=\"Goody Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_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=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"CartInput - Goody Developers\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Goody Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.ongoody.com/api-reference/schemas/cartinput\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://goody.mintlify.site/_mintlify/api/og/v2?division=Schemas\u0026amp;title=CartInput\u0026amp;theme=6306a661688956e4b17682da\u0026amp;signature=3e133a9efbb6da9a09544d2b5d9a9e2534b451276796103f4642d071a3a2e97f\">\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=\"CartInput - Goody Developers\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://goody.mintlify.site/_mintlify/api/og/v2?division=Schemas\u0026amp;title=CartInput\u0026amp;theme=6306a661688956e4b17682da\u0026amp;signature=3e133a9efbb6da9a09544d2b5d9a9e2534b451276796103f4642d071a3a2e97f\">\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=\"/mintlify-assets/_mintlify/favicons/goody/Vg1t346itmg2ZewC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Goody Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9159D6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.ongoody.com/api-reference/schemas/cartinput\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/schemas/cartinput.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.ongoody.com/#organization\",\"name\":\"Goody Developers\",\"url\":\"https://developer.ongoody.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/goody/lbPz3k5D65ibnlpb/brand-2026/goody-lockup-purple.svg?fit=max\u0026auto=format\u0026n=lbPz3k5D65ibnlpb\u0026q=85\u0026s=bc90056471177d431c448a258fd90d41\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.ongoody.com#website\",\"name\":\"Goody Developers\",\"url\":\"https://developer.ongoody.com\",\"publisher\":{\"@id\":\"https://developer.ongoody.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.ongoody.com/api-reference/schemas/cartinput#webpage\",\"url\":\"https://developer.ongoody.com/api-reference/schemas/cartinput\",\"name\":\"CartInput\",\"dateModified\":\"2026-11-04T15:34:09.842Z\",\"isPartOf\":{\"@id\":\"https://developer.ongoody.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.ongoody.com/api-reference/schemas/cartinput#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.ongoody.com/api-reference/schemas/cartinput#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Schemas\",\"item\":\"https://developer.ongoody.com/api-reference/schemas/error\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Schemas\",\"item\":\"https://developer.ongoody.com/api-reference/schemas/error\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CartInput\",\"item\":\"https://developer.ongoody.com/api-reference/schemas/cartinput\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developer.ongoody.com/api-reference/schemas/cartinput#apireference\",\"headline\":\"CartInput\",\"name\":\"CartInput\",\"url\":\"https://developer.ongoody.com/api-reference/schemas/cartinput\",\"mainEntityOfPage\":{\"@id\":\"https://developer.ongoody.com/api-reference/schemas/cartinput#webpage\"},\"dateModified\":\"2026-11-04T15:34:09.842Z\",\"publisher\":{\"@id\":\"https://developer.ongoody.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.ongoody.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Goody Developers\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Goody Developers\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/schemas/cartinput.md","siteName":"Goody Developers","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/introduction/overview"}]},{"anchor":"API Reference","icon":"square-terminal","groups":[{"group":"Order Batches","pages":[{"openapi":"POST /v1/order_batches","title":"Create an order batch","href":"/api-reference/order-batches/create-an-order-batch"},{"openapi":"GET /v1/order_batches","title":"List all order batches","href":"/api-reference/order-batches/list-all-order-batches"},{"openapi":"GET /v1/order_batches/{id}","title":"Retrieve an order batch","href":"/api-reference/order-batches/retrieve-an-order-batch"},{"openapi":"GET /v1/order_batches/{id}/orders","title":"Retrieve orders for an order batch","href":"/api-reference/order-batches/retrieve-orders-for-an-order-batch"},{"openapi":"GET /v1/order_batches/{id}/recipients","title":"Retrieve recipients for an order batch","href":"/api-reference/order-batches/retrieve-recipients-for-an-order-batch"},{"openapi":"POST /v1/order_batches/price","title":"Calculate the price for an order batch","href":"/api-reference/order-batches/calculate-the-price-for-an-order-batch"}]},{"group":"Orders","pages":[{"openapi":"GET /v1/orders","title":"List all orders","href":"/api-reference/orders/list-all-orders"},{"openapi":"GET /v1/orders/{id}","title":"Retrieve an order","href":"/api-reference/orders/retrieve-an-order"},{"openapi":"POST /v1/orders/{id}/cancel","title":"Cancel an order","href":"/api-reference/orders/cancel-an-order"},{"openapi":"POST /v1/orders/{id}/update_expiration","title":"Update expiration for an order","href":"/api-reference/orders/update-expiration-for-an-order"}]},{"group":"Brands","pages":[{"openapi":"GET /v1/brands","title":"List all active brands","href":"/api-reference/brands/list-all-active-brands"}]},{"group":"Products","pages":[{"openapi":"GET /v1/products","title":"List all active products","href":"/api-reference/products/list-all-active-products"},{"openapi":"GET /v1/products/{id}","title":"Retrieve a product","href":"/api-reference/products/retrieve-a-product"}]},{"group":"Payment Methods","pages":[{"openapi":"GET /v1/payment_methods","title":"List all payment methods","href":"/api-reference/payment-methods/list-all-payment-methods"}]},{"group":"Commerce User Payment Methods","pages":[{"openapi":"POST /v1/commerce_user_payment_methods","title":"Create a commerce user payment method","href":"/api-reference/commerce-user-payment-methods/create-a-commerce-user-payment-method"}]},{"group":"Workspaces","pages":[{"openapi":"GET /v1/workspaces","title":"List all workspaces","href":"/api-reference/workspaces/list-all-workspaces"}]},{"group":"Cards","pages":[{"openapi":"GET /v1/cards","title":"List all active cards","href":"/api-reference/cards/list-all-active-cards"}]},{"group":"Collections","pages":[{"openapi":"GET /v1/collections","title":"List all collections","href":"/api-reference/collections/list-all-collections"},{"openapi":"GET /v1/collections/{id}","title":"Retrieve a collection","href":"/api-reference/collections/retrieve-a-collection"}]},{"group":"Order Activities","pages":[{"openapi":"GET /v1/order_activities","title":"List all order activities","href":"/api-reference/order-activities/list-all-order-activities"}]},{"group":"Me","pages":[{"openapi":"GET /v1/me","title":"Retrieve current user","href":"/api-reference/retrieve-current-user"}]},{"group":"Schemas","pages":[{"group":"Schemas","pages":[{"title":"Error","icon":"cube","href":"/api-reference/schemas/error"},{"title":"ListMeta","icon":"cube","href":"/api-reference/schemas/listmeta"},{"title":"OrderBatch","icon":"cube","href":"/api-reference/schemas/orderbatch"},{"title":"Order","icon":"cube","href":"/api-reference/schemas/order"},{"title":"OrderBatchRecipient","icon":"cube","href":"/api-reference/schemas/orderbatchrecipient"},{"title":"Cart","icon":"cube","href":"/api-reference/schemas/cart"},{"title":"CartItem","icon":"cube","href":"/api-reference/schemas/cartitem"},{"title":"OrderBatchSendStatus","icon":"cube","href":"/api-reference/schemas/orderbatchsendstatus"},{"title":"OrderStatus","icon":"cube","href":"/api-reference/schemas/orderstatus"},{"title":"Shipment","icon":"cube","href":"/api-reference/schemas/shipment"},{"title":"Product","icon":"cube","href":"/api-reference/schemas/product"},{"title":"Brand","icon":"cube","href":"/api-reference/schemas/brand"},{"title":"ProductImage","icon":"cube","href":"/api-reference/schemas/productimage"},{"title":"ProductVariant","icon":"cube","href":"/api-reference/schemas/productvariant"},{"title":"Image","icon":"cube","href":"/api-reference/schemas/image"},{"title":"MailingAddress","icon":"cube","href":"/api-reference/schemas/mailingaddress"},{"title":"Me","icon":"cube","href":"/api-reference/schemas/me"},{"title":"Sender","icon":"cube","href":"/api-reference/schemas/sender"},{"title":"OrderBatchInput","icon":"cube","description":null,"href":"/api-reference/schemas/orderbatchinput"},{"title":"CartInput","icon":"cube","href":"/api-reference/schemas/cartinput"},{"title":"CartItemInput","icon":"cube","description":null,"href":"/api-reference/schemas/cartiteminput"},{"title":"OrderBatchSendMethod","icon":"cube","href":"/api-reference/schemas/orderbatchsendmethod"},{"title":"RecipientInput","icon":"cube","href":"/api-reference/schemas/recipientinput"},{"title":"RecipientInput","icon":"cube","href":"/api-reference/schemas/recipientinput"}]}]}]},{"anchor":"MCP Reference","icon":"robot","pages":[{"title":"MCP Reference","href":"/mcp-reference/capabilities"}]}]},"basePath":"","title":"CartInput - Goody Developers","deploymentId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","buildId":"dpl_3VZr4zL4q2wbintGwWjSCGUgnuP7","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DUG0fxZu.js","snippetPresets-Ba5aWAdQ.js","utils-GxQLQihZ.js","style-to-object-BY3JEAdk.js","utils-WKMM_gjD.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Bo9LYdaA.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DwYjaFhs.js","_Uint8Array-DDE2Hehm.js","isObject-FP1Yky1u.js","Page-CUkc1DBo.js","api-description-markdown-CDE0Fpj5.js","DynamicMarkdown-F4EfLno9.js","CodeSnippet-Czwn5OJE.js","use-playground-group-access-C3A6I116.js","SectionHeading-DMe18In2.js","ApiExamples-DhR-5ORn.js","usePlaygroundInputsStore-BaYqfAgH.js","shallow-BC7UwQwD.js","isEqual-gcN6MEQu.js","CodeSnippets-B8P54LrN.js","MethodPill-CW7tTaiB.js","getPastedJson-DB5smC0Q.js","Check2Icon-DDdveNjm.js","axios-CsQoIw0U.js","Markdown-BLge-GTN.js","AssistantPageLink-BFI2wFhH.js","dist-C1RpOC6K.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}