Crea uno o varios productos de forma asíncrona. Encola un job y responde 202 con un jobId; el resultado se consulta con GET /v2/inventory/jobs/{jobId}.
La respuesta 202 solo confirma que el job se encoló. Los fallos por producto no llegan como error HTTP: se consultan con GET /v2/inventory/jobs/{jobId}.
Código
Descripción
400
Body inválido. El campo message indica la validación que falló.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Cashea Developers","colors":{"primary":"#181919","light":"#61646b","dark":"#181919"},"logo":{"light":"https://mintcdn.com/cashea/wG6DWF5E0tS1EFrG/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=wG6DWF5E0tS1EFrG\u0026q=85\u0026s=fe162bc73c999e8a63669f4476a43995","dark":"https://mintcdn.com/cashea/xpjWwU8I2p3CsvRo/assets/logo/dark.svg?fit=max\u0026auto=format\u0026n=xpjWwU8I2p3CsvRo\u0026q=85\u0026s=b41e195e22933410968f6de097167bb0","href":"/home"},"favicon":"https://mintcdn.com/cashea/2k71MGqoxRGMwBiz/assets/favicon.svg?fit=max\u0026auto=format\u0026n=2k71MGqoxRGMwBiz\u0026q=85\u0026s=1151dd3a83e213550f44d4b497fe1793","api":{"url":"full","mdx":{"auth":{"method":"key","name":"Authorization"},"server":"https://sandbox.external.cashea.app"}},"appearance":{"default":"system","strict":false},"background":{"color":{"light":"#FFFFFF"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/cashea"}},"fonts":{"family":"Open Sans"},"icons":{"library":"lucide"},"variables":{"BASE_URL":"https://sandbox.external.cashea.app"},"styling":{"latex":false},"navigation":{"languages":[{"language":"es","default":true,"href":"apis/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cashea","hasAudioNarration":false,"actualSubdomain":"cashea","customDomains":["docs.cashea.app"],"gitSource":{"type":"github","owner":"cashea-bnpl","repo":"cashea-developers-site","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aecc9b63d9c2abd053ee1b3","collectionId":"83a35b94-9448-4de2-a6f1-d52b75b58099","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aecc9b63d9c2abd053ee1b3"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aecc9b63d9c2abd053ee1b3","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"es","tag":"API Docs","count":11},{"language":"es","tag":"APIs","count":9},{"language":"es","tag":"API Inventario","count":9},{"language":"es","tag":"Primeros pasos","count":2},{"language":"es","tag":"Guías","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"rbac-expansion","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":"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":"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":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"apis/inventory/create-products-async","slug":"/apis/inventory/create-products-async","pageMetadata":{"title":"Crear productos (masivo)","description":"Crea uno o varios productos de forma asíncrona","api":"POST /v2/inventory/products/bulk/async","href":"/apis/inventory/create-products-async"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Crea uno o varios productos de forma asíncrona\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Expandable,Heading,Info,ParamField,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Crea uno o varios productos de forma `,_jsx(_components.strong,{children:`asíncrona`}),`. Encola un job y responde `,_jsx(_components.code,{children:`202`}),` con un `,_jsx(_components.code,{children:`jobId`}),`; el resultado se consulta con `,_jsx(_components.a,{href:`/apis/inventory/get-job`,children:_jsx(_components.code,{children:`GET /v2/inventory/jobs/{jobId}`})}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Límites:`}),` entre 1 y 1.000 productos por request.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Formato: `,_jsx(_components.code,{children:`ApiKey TU_API_KEY`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsxs(ParamField,{body:`products`,type:`object[]`,required:true,id:`param-products`,children:[_jsx(_components.p,{children:`Lista de productos a crear.`}),_jsxs(Expandable,{title:`producto`,defaultOpen:true,children:[_jsx(ParamField,{body:`sku`,type:`string`,required:true,id:`param-sku`,children:_jsx(_components.p,{children:`SKU único (1–64 caracteres).`})}),_jsx(ParamField,{body:`title`,type:`string`,required:true,id:`param-title`,children:_jsx(_components.p,{children:`Título (máx. 256 caracteres).`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`Descripción (máx. 5000 caracteres).`})}),_jsx(ParamField,{body:`categoryUuid`,type:`string`,required:true,id:`param-category-uuid`,children:_jsxs(_components.p,{children:[`uuid de la categoría del producto. Tiene que ser una categoría hoja (`,_jsx(_components.code,{children:`hasChildren: false`}),` en `,_jsx(_components.a,{href:`/apis/inventory/get-categories`,children:`Listar categorías`}),`).`]})}),_jsx(ParamField,{body:`brand`,type:`string`,required:true,id:`param-brand`,children:_jsx(_components.p,{children:`Marca del fabricante.`})}),_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsx(_components.p,{children:`Modelo del producto, sirve para agruparlos.`})}),_jsx(ParamField,{body:`price`,type:`number`,required:true,id:`param-price`,children:_jsx(_components.p,{children:`Precio.`})}),_jsx(ParamField,{body:`images`,type:`string[]`,required:true,id:`param-images`,children:_jsx(_components.p,{children:`1 a 5 URLs válidas, únicas.`})}),_jsx(ParamField,{body:`condition`,type:`string`,required:true,id:`param-condition`,children:_jsxs(_components.p,{children:[`Condición del producto. Valores permitidos: `,_jsx(_components.code,{children:`NEW`}),` (nuevo), `,_jsx(_components.code,{children:`USED`}),` (usado), `,_jsx(_components.code,{children:`REFURBISHED`}),` (reacondicionado).`]})}),_jsx(ParamField,{body:`digital`,type:`boolean`,required:true,id:`param-digital`,children:_jsxs(_components.p,{children:[`Si es digital, `,_jsx(_components.code,{children:`shippable`}),` debe ser `,_jsx(_components.code,{children:`false`}),`.`]})}),_jsx(ParamField,{body:`shippable`,type:`boolean`,required:true,id:`param-shippable`,children:_jsx(_components.p,{children:`Si es enviable.`})}),_jsx(ParamField,{body:`weight`,type:`number`,required:true,id:`param-weight`,children:_jsx(_components.p,{children:`Peso en kilogramos (kg).`})}),_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:_jsx(_components.p,{children:`Altura en metros.`})}),_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:_jsx(_components.p,{children:`Ancho en metros.`})}),_jsx(ParamField,{body:`length`,type:`number`,id:`param-length`,children:_jsx(_components.p,{children:`Largo en metros.`})}),_jsx(ParamField,{body:`warranty`,type:`integer`,required:true,id:`param-warranty`,children:_jsx(_components.p,{children:`Garantía en días.`})}),_jsx(ParamField,{body:`bestInstallmentPlan`,type:`integer`,required:true,id:`param-best-installment-plan`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Máximo`}),` de cuotas: `,_jsx(_components.code,{children:`3`}),`, `,_jsx(_components.code,{children:`6`}),`, `,_jsx(_components.code,{children:`9`}),` o `,_jsx(_components.code,{children:`12`}),`. Se otorgan todos los planes elegibles hasta ese valor (`,_jsx(_components.code,{children:`12`}),` otorga 3, 6, 9 y 12); nunca por encima del máximo.`]})}),_jsx(ParamField,{body:`stock`,type:`integer`,required:true,id:`param-stock`,children:_jsx(_components.p,{children:`Unidades disponibles.`})}),_jsx(ParamField,{body:`status`,type:`boolean`,required:true,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),`: el producto aparece en el buscador del marketplace. `,_jsx(_components.code,{children:`false`}),`: queda cargado, pero no aparece en el buscador.`]})}),_jsx(ParamField,{body:`priceAfterDiscount`,type:`number`,id:`param-price-after-discount`,children:_jsxs(_components.p,{children:[`Precio con descuento (menor a `,_jsx(_components.code,{children:`price`}),`). Requerido si se envía alguna fecha de descuento.`]})}),_jsx(ParamField,{body:`discountStartDate`,type:`string`,id:`param-discount-start-date`,children:_jsx(_components.p,{children:`Formato ISO 8601. Vigencia del descuento.`})}),_jsx(ParamField,{body:`discountExpirationDate`,type:`string`,id:`param-discount-expiration-date`,children:_jsxs(_components.p,{children:[`Formato ISO 8601. Debe ser posterior a `,_jsx(_components.code,{children:`discountStartDate`}),`.`]})}),_jsx(ParamField,{body:`commercialBrands`,type:`string[]`,id:`param-commercial-brands`,children:_jsx(_components.p,{children:`uuids de marcas comerciales (máx. 2).`})}),_jsx(ParamField,{body:`attributes`,type:`object[]`,id:`param-attributes`,children:_jsxs(_components.p,{children:[`Pares `,_jsx(_components.code,{children:`attributeId`}),` / `,_jsx(_components.code,{children:`valueId`}),` de la categoría.`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`job`,defaultOpen:true,children:[_jsx(ResponseField,{name:`jobId`,type:`string`,id:`param-job-id`,children:_jsxs(_components.p,{children:[`ID del job. Se usa para consultar el resultado con `,_jsx(_components.a,{href:`/apis/inventory/get-job`,children:_jsx(_components.code,{children:`GET /v2/inventory/jobs/{jobId}`})}),`.`]})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:_jsxs(_components.p,{children:[`Estado inicial del job: `,_jsx(_components.code,{children:`PENDING`}),`.`]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`La respuesta `,_jsx(_components.code,{children:`202`}),` solo confirma que el job se encoló. `,_jsx(_components.strong,{children:`Los fallos por producto no llegan como error HTTP:`}),` se consultan con `,_jsx(_components.a,{href:`/apis/inventory/get-job`,children:_jsx(_components.code,{children:`GET /v2/inventory/jobs/{jobId}`})}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Código`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Body inválido. El campo `,_jsx(_components.code,{children:`message`}),` indica la validación que falló.`]})]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Crear productos (masivo)","description":"Crea uno o varios productos de forma asíncrona","api":"POST /v2/inventory/products/bulk/async","href":"/apis/inventory/create-products-async"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Crea uno o varios productos de forma `,_jsx(_components.strong,{children:`asíncrona`}),`. Encola un job y responde `,_jsx(_components.code,{children:`202`}),` con un `,_jsx(_components.code,{children:`jobId`}),`; el resultado se consulta con `,_jsx(_components.a,{href:`/apis/inventory/get-job`,children:_jsx(_components.code,{children:`GET /v2/inventory/jobs/{jobId}`})}),`.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Límites:`}),` entre 1 y 1.000 productos por request.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[`Formato: `,_jsx(_components.code,{children:`ApiKey TU_API_KEY`})]})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsxs(ParamField,{body:`products`,type:`object[]`,required:true,id:`param-products`,children:[_jsx(_components.p,{children:`Lista de productos a crear.`}),_jsxs(Expandable,{title:`producto`,defaultOpen:true,children:[_jsx(ParamField,{body:`sku`,type:`string`,required:true,id:`param-sku`,children:_jsx(_components.p,{children:`SKU único (1–64 caracteres).`})}),_jsx(ParamField,{body:`title`,type:`string`,required:true,id:`param-title`,children:_jsx(_components.p,{children:`Título (máx. 256 caracteres).`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`Descripción (máx. 5000 caracteres).`})}),_jsx(ParamField,{body:`categoryUuid`,type:`string`,required:true,id:`param-category-uuid`,children:_jsxs(_components.p,{children:[`uuid de la categoría del producto. Tiene que ser una categoría hoja (`,_jsx(_components.code,{children:`hasChildren: false`}),` en `,_jsx(_components.a,{href:`/apis/inventory/get-categories`,children:`Listar categorías`}),`).`]})}),_jsx(ParamField,{body:`brand`,type:`string`,required:true,id:`param-brand`,children:_jsx(_components.p,{children:`Marca del fabricante.`})}),_jsx(ParamField,{body:`model`,type:`string`,required:true,id:`param-model`,children:_jsx(_components.p,{children:`Modelo del producto, sirve para agruparlos.`})}),_jsx(ParamField,{body:`price`,type:`number`,required:true,id:`param-price`,children:_jsx(_components.p,{children:`Precio.`})}),_jsx(ParamField,{body:`images`,type:`string[]`,required:true,id:`param-images`,children:_jsx(_components.p,{children:`1 a 5 URLs válidas, únicas.`})}),_jsx(ParamField,{body:`condition`,type:`string`,required:true,id:`param-condition`,children:_jsxs(_components.p,{children:[`Condición del producto. Valores permitidos: `,_jsx(_components.code,{children:`NEW`}),` (nuevo), `,_jsx(_components.code,{children:`USED`}),` (usado), `,_jsx(_components.code,{children:`REFURBISHED`}),` (reacondicionado).`]})}),_jsx(ParamField,{body:`digital`,type:`boolean`,required:true,id:`param-digital`,children:_jsxs(_components.p,{children:[`Si es digital, `,_jsx(_components.code,{children:`shippable`}),` debe ser `,_jsx(_components.code,{children:`false`}),`.`]})}),_jsx(ParamField,{body:`shippable`,type:`boolean`,required:true,id:`param-shippable`,children:_jsx(_components.p,{children:`Si es enviable.`})}),_jsx(ParamField,{body:`weight`,type:`number`,required:true,id:`param-weight`,children:_jsx(_components.p,{children:`Peso en kilogramos (kg).`})}),_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:_jsx(_components.p,{children:`Altura en metros.`})}),_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:_jsx(_components.p,{children:`Ancho en metros.`})}),_jsx(ParamField,{body:`length`,type:`number`,id:`param-length`,children:_jsx(_components.p,{children:`Largo en metros.`})}),_jsx(ParamField,{body:`warranty`,type:`integer`,required:true,id:`param-warranty`,children:_jsx(_components.p,{children:`Garantía en días.`})}),_jsx(ParamField,{body:`bestInstallmentPlan`,type:`integer`,required:true,id:`param-best-installment-plan`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Máximo`}),` de cuotas: `,_jsx(_components.code,{children:`3`}),`, `,_jsx(_components.code,{children:`6`}),`, `,_jsx(_components.code,{children:`9`}),` o `,_jsx(_components.code,{children:`12`}),`. Se otorgan todos los planes elegibles hasta ese valor (`,_jsx(_components.code,{children:`12`}),` otorga 3, 6, 9 y 12); nunca por encima del máximo.`]})}),_jsx(ParamField,{body:`stock`,type:`integer`,required:true,id:`param-stock`,children:_jsx(_components.p,{children:`Unidades disponibles.`})}),_jsx(ParamField,{body:`status`,type:`boolean`,required:true,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),`: el producto aparece en el buscador del marketplace. `,_jsx(_components.code,{children:`false`}),`: queda cargado, pero no aparece en el buscador.`]})}),_jsx(ParamField,{body:`priceAfterDiscount`,type:`number`,id:`param-price-after-discount`,children:_jsxs(_components.p,{children:[`Precio con descuento (menor a `,_jsx(_components.code,{children:`price`}),`). Requerido si se envía alguna fecha de descuento.`]})}),_jsx(ParamField,{body:`discountStartDate`,type:`string`,id:`param-discount-start-date`,children:_jsx(_components.p,{children:`Formato ISO 8601. Vigencia del descuento.`})}),_jsx(ParamField,{body:`discountExpirationDate`,type:`string`,id:`param-discount-expiration-date`,children:_jsxs(_components.p,{children:[`Formato ISO 8601. Debe ser posterior a `,_jsx(_components.code,{children:`discountStartDate`}),`.`]})}),_jsx(ParamField,{body:`commercialBrands`,type:`string[]`,id:`param-commercial-brands`,children:_jsx(_components.p,{children:`uuids de marcas comerciales (máx. 2).`})}),_jsx(ParamField,{body:`attributes`,type:`object[]`,id:`param-attributes`,children:_jsxs(_components.p,{children:[`Pares `,_jsx(_components.code,{children:`attributeId`}),` / `,_jsx(_components.code,{children:`valueId`}),` de la categoría.`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`job`,defaultOpen:true,children:[_jsx(ResponseField,{name:`jobId`,type:`string`,id:`param-job-id`,children:_jsxs(_components.p,{children:[`ID del job. Se usa para consultar el resultado con `,_jsx(_components.a,{href:`/apis/inventory/get-job`,children:_jsx(_components.code,{children:`GET /v2/inventory/jobs/{jobId}`})}),`.`]})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status-1`,children:_jsxs(_components.p,{children:[`Estado inicial del job: `,_jsx(_components.code,{children:`PENDING`}),`.`]})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`La respuesta `,_jsx(_components.code,{children:`202`}),` solo confirma que el job se encoló. `,_jsx(_components.strong,{children:`Los fallos por producto no llegan como error HTTP:`}),` se consultan con `,_jsx(_components.a,{href:`/apis/inventory/get-job`,children:_jsx(_components.code,{children:`GET /v2/inventory/jobs/{jobId}`})}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Código`}),_jsx(_components.th,{children:`Descripción`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`Body inválido. El campo `,_jsx(_components.code,{children:`message`}),` indica la validación que falló.`]})]})})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`28`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`28`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://sandbox.external.cashea.app/v2/inventory/products/bulk/async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: ApiKey TU_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"products\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sku\": \"TEST-SMARTPHONE-001\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": \"Sumsung Galaxo Z54\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"description\": \"Smartphone de prueba\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"categoryUuid\": \"5f0ba846-e37f-4a67-8f03-95e998996c95\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"brand\": \"Sumsung\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"model\": \"Galaxo Z54\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"price\": 299.99,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"images\": [\"https://cdn.photo/800\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"condition\": \"NEW\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"digital\": false,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"shippable\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"weight\": 0.5,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"warranty\": 12,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"bestInstallmentPlan\": 6,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"stock\": 25,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"status\": true,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"commercialBrands\": [\"20353c61-45bd-4493-85a6-a264b35429d2\"],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"attributes\": [ { \"attributeId\": 1, \"valueId\": 5 } ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Ejemplo 202`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"jobId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"b2f6e8a0-c5d3-4f0a-9c8d-1e2f3a4b5c6d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PENDING\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Crear productos (masivo)","description":"Crea uno o varios productos de forma asíncrona","api":"POST /v2/inventory/products/bulk/async","href":"/apis/inventory/create-products-async"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Body Parameters","slug":"body-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"28\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://sandbox.external.cashea.app/v2/inventory/products/bulk/async\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: ApiKey TU_API_KEY'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"products\": [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"sku\": \"TEST-SMARTPHONE-001\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"title\": \"Sumsung Galaxo Z54\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"description\": \"Smartphone de prueba\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"categoryUuid\": \"5f0ba846-e37f-4a67-8f03-95e998996c95\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"brand\": \"Sumsung\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"model\": \"Galaxo Z54\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"price\": 299.99,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"images\": [\"https://cdn.photo/800\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"condition\": \"NEW\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"digital\": false,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"shippable\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"weight\": 0.5,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"warranty\": 12,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"bestInstallmentPlan\": 6,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"stock\": 25,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"status\": true,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"commercialBrands\": [\"20353c61-45bd-4493-85a6-a264b35429d2\"],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"attributes\": [ { \"attributeId\": 1, \"valueId\": 5 } ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Ejemplo 202","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"jobId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"b2f6e8a0-c5d3-4f0a-9c8d-1e2f3a4b5c6d\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PENDING\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Crear productos (masivo)","path":"/v2/inventory/products/bulk/async","servers":[{"url":"https://sandbox.external.cashea.app"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"Authorization":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"Formato: `ApiKey TU_API_KEY`","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"products":[{"type":"array","items":[{"type":"object","properties":{"sku":[{"type":"string","description":"SKU único (1–64 caracteres).","required":true}],"title":[{"type":"string","description":"Título (máx. 256 caracteres).","required":true}],"description":[{"type":"string","description":"Descripción (máx. 5000 caracteres).","required":true}],"categoryUuid":[{"type":"string","description":"uuid de la categoría del producto. Tiene que ser una categoría hoja ( `hasChildren: false` en Listar categorías ).","required":true}],"brand":[{"type":"string","description":"Marca del fabricante.","required":true}],"model":[{"type":"string","description":"Modelo del producto, sirve para agruparlos.","required":true}],"price":[{"type":"number","description":"Precio.","required":true}],"images":[{"type":"array","items":[{"type":"string"}],"description":"1 a 5 URLs válidas, únicas.","required":true}],"condition":[{"type":"string","description":"Condición del producto. Valores permitidos: `NEW` (nuevo), `USED` (usado), `REFURBISHED` (reacondicionado).","required":true}],"digital":[{"type":"boolean","description":"Si es digital, `shippable` debe ser `false` .","required":true}],"shippable":[{"type":"boolean","description":"Si es enviable.","required":true}],"weight":[{"type":"number","description":"Peso en kilogramos (kg).","required":true}],"height":[{"type":"number","description":"Altura en metros."}],"width":[{"type":"number","description":"Ancho en metros."}],"length":[{"type":"number","description":"Largo en metros."}],"warranty":[{"type":"integer","description":"Garantía en días.","required":true}],"bestInstallmentPlan":[{"type":"integer","description":"Máximo de cuotas: `3` , `6` , `9` o `12` . Se otorgan todos los planes elegibles hasta ese valor ( `12` otorga 3, 6, 9 y 12); nunca por encima del máximo.","required":true}],"stock":[{"type":"integer","description":"Unidades disponibles.","required":true}],"status":[{"type":"boolean","description":"`true` : el producto aparece en el buscador del marketplace. `false` : queda cargado, pero no aparece en el buscador.","required":true}],"priceAfterDiscount":[{"type":"number","description":"Precio con descuento (menor a `price` ). Requerido si se envía alguna fecha de descuento."}],"discountStartDate":[{"type":"string","description":"Formato ISO 8601. Vigencia del descuento."}],"discountExpirationDate":[{"type":"string","description":"Formato ISO 8601. Debe ser posterior a `discountStartDate` ."}],"commercialBrands":[{"type":"array","items":[{"type":"string"}],"description":"uuids de marcas comerciales (máx. 2)."}],"attributes":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Pares `attributeId` / `valueId` de la categoría."}]}}],"description":"Lista de productos a crear.","required":true}]}}],"examples":{"example":{"value":{"products":[{"sku":"\u003cstring>","title":"\u003cstring>","description":"\u003cstring>","categoryUuid":"\u003cstring>","brand":"\u003cstring>","model":"\u003cstring>","price":123,"images":["\u003cstring>"],"condition":"\u003cstring>","digital":true,"shippable":true,"weight":123,"height":123,"width":123,"length":123,"warranty":123,"bestInstallmentPlan":123,"stock":123,"status":true,"priceAfterDiscount":123,"discountStartDate":"\u003cstring>","discountExpirationDate":"\u003cstring>","commercialBrands":["\u003cstring>"],"attributes":[{}]}]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"data":[{"type":"object","properties":{"jobId":[{"type":"string","description":"ID del job. Se usa para consultar el resultado con `GET /v2/inventory/jobs/{jobId}` ."}],"status":[{"type":"string","description":"Estado inicial del job: `PENDING` ."}]}}]}}],"examples":{"example":{"value":{"data":{"jobId":"\u003cstring>","status":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"cashea","siteName":"Cashea Developers","title":"Crear productos (masivo) - Cashea Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/apis/inventory/create-products-async","matchLevel":0}}},"lastModified":"2026-11-05T18:23:54.360Z","originalFileLocation":"apis/inventory/create-products-async.mdx","locale":"es"},"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=\"description\" content=\"Crea uno o varios productos de forma asíncrona\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cashea 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/cashea/IcHU02-YN3nfo0Zq/_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/cashea/IcHU02-YN3nfo0Zq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cashea/IcHU02-YN3nfo0Zq/_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/cashea/IcHU02-YN3nfo0Zq/_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/cashea/IcHU02-YN3nfo0Zq/_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/cashea/IcHU02-YN3nfo0Zq/_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/cashea/IcHU02-YN3nfo0Zq/_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/cashea/IcHU02-YN3nfo0Zq/_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/cashea/IcHU02-YN3nfo0Zq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Crear productos (masivo) - Cashea Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Crea uno o varios productos de forma asíncrona\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cashea Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cashea.app/apis/inventory/create-products-async\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cashea.mintlify.site/_mintlify/api/og/v2?division=API+Inventario\u0026amp;title=Crear+productos+%28masivo%29\u0026amp;description=Crea+uno+o+varios+productos+de+forma+as%C3%ADncrona\u0026amp;theme=11ced779b3ac55e4c588da64\u0026amp;signature=3820648b3eafd99f4cf34d654d8c0d2b712be4838cdf2b1087c5fdac121e54c1\">\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=\"Crear productos (masivo) - Cashea Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Crea uno o varios productos de forma asíncrona\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cashea.mintlify.site/_mintlify/api/og/v2?division=API+Inventario\u0026amp;title=Crear+productos+%28masivo%29\u0026amp;description=Crea+uno+o+varios+productos+de+forma+as%C3%ADncrona\u0026amp;theme=11ced779b3ac55e4c588da64\u0026amp;signature=3820648b3eafd99f4cf34d654d8c0d2b712be4838cdf2b1087c5fdac121e54c1\">\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/cashea/IcHU02-YN3nfo0Zq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cashea Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#181919\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cashea.app/apis/inventory/create-products-async\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/apis/inventory/create-products-async.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cashea.app/#organization\",\"name\":\"Cashea Developers\",\"url\":\"https://docs.cashea.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cashea/wG6DWF5E0tS1EFrG/assets/logo/light.svg?fit=max\u0026auto=format\u0026n=wG6DWF5E0tS1EFrG\u0026q=85\u0026s=fe162bc73c999e8a63669f4476a43995\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cashea.app#website\",\"name\":\"Cashea Developers\",\"url\":\"https://docs.cashea.app\",\"publisher\":{\"@id\":\"https://docs.cashea.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cashea.app/apis/inventory/create-products-async#webpage\",\"url\":\"https://docs.cashea.app/apis/inventory/create-products-async\",\"name\":\"Crear productos (masivo)\",\"description\":\"Crea uno o varios productos de forma asíncrona\",\"dateModified\":\"2026-11-05T18:23:54.360Z\",\"isPartOf\":{\"@id\":\"https://docs.cashea.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cashea.app/apis/inventory/create-products-async#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cashea.app/apis/inventory/create-products-async#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"APIs\",\"item\":\"https://docs.cashea.app/apis/inventory/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Inventario\",\"item\":\"https://docs.cashea.app/apis/inventory/introduction\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Crear productos (masivo)\",\"item\":\"https://docs.cashea.app/apis/inventory/create-products-async\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.cashea.app/apis/inventory/create-products-async#apireference\",\"headline\":\"Crear productos (masivo)\",\"name\":\"Crear productos (masivo)\",\"description\":\"Crea uno o varios productos de forma asíncrona\",\"url\":\"https://docs.cashea.app/apis/inventory/create-products-async\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cashea.app/apis/inventory/create-products-async#webpage\"},\"dateModified\":\"2026-11-05T18:23:54.360Z\",\"publisher\":{\"@id\":\"https://docs.cashea.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cashea.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cashea Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cashea Developers","nav":{"global":null,"languages":[{"language":"es","default":true,"tabs":[{"tab":"API Docs","icon":"code-xml","groups":[{"group":"Primeros pasos","pages":[{"title":"Introducción","href":"/apis/introduction"},{"title":"Autenticación","href":"/apis/authentication"}]},{"group":"APIs","pages":[{"group":"API Inventario","pages":[{"title":"Resumen","href":"/apis/inventory/introduction"},{"title":"Listar categorías","api":"GET /v2/inventory/categories","href":"/apis/inventory/get-categories"},{"title":"Obtener categoría por ID","api":"GET /v2/inventory/categories/{uuid}","href":"/apis/inventory/get-category-by-id"},{"title":"Listar marcas comerciales","description":"Devuelve las marcas comerciales habilitadas de tu tienda","api":"GET /v2/inventory/commercial-brands","href":"/apis/inventory/list-commercial-brands"},{"title":"Crear productos (masivo)","api":"POST /v2/inventory/products/bulk/async","href":"/apis/inventory/create-products-async"},{"title":"Actualizar productos (masivo)","description":"Actualiza uno o varios productos de forma asíncrona, identificados por SKU","api":"POST /v2/inventory/products/bulk-update/async","href":"/apis/inventory/update-products-async"},{"title":"Obtener job por ID","api":"GET /v2/inventory/jobs/{jobId}","href":"/apis/inventory/get-job"},{"title":"Obtener producto por SKU","api":"GET /v2/inventory/products/{sku}","href":"/apis/inventory/get-product"},{"title":"Buscar productos","api":"POST /v2/inventory/products/search","href":"/apis/inventory/search-products"}]}]}]},{"tab":"Guías","icon":"book-open-text","pages":[{"title":"Guías","href":"/guides/coming-soon"}]}],"global":{"anchors":[{"anchor":"Inicio","icon":"house","href":"/home"}]}}]},"basePath":"","title":"Crear productos (masivo) - Cashea Developers","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-Myd8dsju.js","utils-C2HkQgW0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B6MjiCFm.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-1-a5UQKQ.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","Page-CxAy5y67.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js"]}