Los importes se representan como un string decimal, no como un número. Cada importe va
acompañado de currencyCode, el código de moneda en formato ISO 4217.
Un string decimal evita los errores de redondeo de los números de punto flotante. Parsea el
valor con una librería de decimales, no con float.
La escala no está normalizada: el mismo importe puede llegar como "12", "12.0" o "12.00".
No compares importes como texto ni asumas una cantidad fija de decimales. Conviértelos a decimal
antes de comparar u operar.
En el pedido: subtotal, taxTotal, total, shippingTotal, discountTotal, amountPaid.La identidad que siempre se cumple es:
subtotal + taxTotal = total
subtotal es la base neta de todo (productos + envío), después de descuentos. Equivale a
total − taxTotal.
taxTotal es el total de impuestos del pedido.
total es el monto pagado.
shippingTotal y discountTotal son informativos: reflejan el costo de envío y el descuento
tal como los vio el comprador, y ya están incluidos en subtotal/total. No los sumes para
reconstruir el total — la única identidad es subtotal + taxTotal = total.
shippingTotal es el costo de envío tal como lo vio el comprador (con o sin impuesto, según cómo
tu tienda muestre los precios).discountTotal es el descuento de productos y de pedido tal como lo vio el comprador. Los
descuentos de envío no van aquí: se reflejan como un shippingTotal menor y aparecen en
promotions.promotions lista las promociones aplicadas: id, code, title, class (GOODS / ORDER /
SHIPPING) y amount. El id es la clave con la que cada línea referencia la promoción.En cada línea: price, listPrice, discountTotal, discountAllocations, subtotal, taxTotal, total.En cada línea se cumple subtotal + taxTotal = total.price es el precio unitario cobrado, antes de promociones. listPrice es el precio de lista
de la variante al momento del pedido. Es null cuando la variante no tiene precio de lista.
discountTotal es el descuento por promociones de la línea (la diferencia entre listPrice y
price es una negociación aparte, no va aquí). taxTotal es el impuesto de productos de la
línea; la suma de taxTotal de las líneas no equivale al taxTotal del pedido cuando el envío
tiene impuesto (el del pedido también incluye el impuesto del envío).discountAllocations desglosa el discountTotal de la línea por promoción: cada entrada tiene
promotionId (referencia a promotions[].id) y amount. Las asignaciones de una misma promoción
suman exactamente su amount.Todos comparten la misma currencyCode del pedido.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Riqra","colors":{"primary":"#15803D","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/logo/light.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=08f5ba317750e9cffbfc4fe1c4a68e75","dark":"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/logo/dark.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=4fccb496dc355ca2e389a7c6ea163a42"},"favicon":"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/favicon.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=d6bf656cd9f5aae6bbe2358fa95e06bc","contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"es","href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"riqra-6746389f","hasAudioNarration":false,"actualSubdomain":"riqra-6746389f","customDomains":["docs.riqra.com"],"gitSource":{"type":"github","owner":"riqra","repo":"bitubi","deployBranch":"main","contentDirectory":"platform/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ada8ab8ffa8949d4bb74ee6","collectionId":"7d6bc4c7-6f47-47c7-b7ef-7165c52d2f44","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ada8ab8ffa8949d4bb74ee6"},"entitlements":{},"buildId":"6ada8ab8ffa8949d4bb74ee6","clientVersion":"0.0.3966","searchFilterCounts":[{"language":"es","tag":"Ecommerce","count":121},{"language":"es","tag":"API","count":115},{"language":"es","tag":"Referencia","count":106},{"language":"es","tag":"Plataforma","count":71},{"language":"es","tag":"Panel administrador","count":47},{"language":"es","tag":"Desarrolladores","count":35},{"language":"es","tag":"Aplicaciones","count":33},{"language":"es","tag":"Artículos de interés","count":17},{"language":"es","tag":"Herramientas de marketing digital","count":16},{"language":"es","tag":"Productos","count":14}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"editor-agent-model-picker","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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"desarrolladores/api/money","slug":"/desarrolladores/api/money","pageMetadata":{"title":"Montos y moneda","description":"Cómo se representan los importes en la API.","href":"/desarrolladores/api/money"},"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: \"Cómo se representan los importes en la API.\"\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={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Los importes se representan como un `,_jsx(_components.strong,{children:`string decimal`}),`, no como un número. Cada importe va\nacompañado de `,_jsx(_components.code,{children:`currencyCode`}),`, el código de moneda en formato `,_jsx(_components.strong,{children:`ISO 4217`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,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:` \"currencyCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PEN\"`}),_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:` \"subtotal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"100.00\"`}),_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:` \"taxTotal\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"18.00\"`}),_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:` \"total\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"118.00\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`por-qué-string`,children:`Por qué string`}),`\n`,_jsxs(_components.p,{children:[`Un string decimal evita los errores de redondeo de los números de punto flotante. Parsea el\nvalor con una librería de decimales, no con `,_jsx(_components.code,{children:`float`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`La escala no está normalizada: el mismo importe puede llegar como `,_jsx(_components.code,{children:`\"12\"`}),`, `,_jsx(_components.code,{children:`\"12.0\"`}),` o `,_jsx(_components.code,{children:`\"12.00\"`}),`.\nNo compares importes como texto ni asumas una cantidad fija de decimales. Conviértelos a decimal\nantes de comparar u operar.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`campos-de-monto`,children:`Campos de monto`}),`\n`,_jsxs(_components.p,{children:[`En el pedido: `,_jsx(_components.code,{children:`subtotal`}),`, `,_jsx(_components.code,{children:`taxTotal`}),`, `,_jsx(_components.code,{children:`total`}),`, `,_jsx(_components.code,{children:`shippingTotal`}),`, `,_jsx(_components.code,{children:`discountTotal`}),`, `,_jsx(_components.code,{children:`amountPaid`}),`.`]}),`\n`,_jsx(_components.p,{children:`La identidad que siempre se cumple es:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`subtotal + taxTotal = total`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`subtotal`}),` es la base neta de `,_jsx(_components.strong,{children:`todo`}),` (productos + envío), después de descuentos. Equivale a\n`,_jsx(_components.code,{children:`total − taxTotal`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`taxTotal`}),` es el `,_jsx(_components.strong,{children:`total de impuestos`}),` del pedido.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`total`}),` es el monto pagado.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`shippingTotal`}),` y `,_jsx(_components.code,{children:`discountTotal`}),` son `,_jsx(_components.strong,{children:`informativos`}),`: reflejan el costo de envío y el descuento\ntal como los vio el comprador, y `,_jsx(_components.strong,{children:`ya están incluidos`}),` en `,_jsx(_components.code,{children:`subtotal`}),`/`,_jsx(_components.code,{children:`total`}),`. No los sumes para\nreconstruir el total — la única identidad es `,_jsx(_components.code,{children:`subtotal + taxTotal = total`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`shippingTotal`}),` es el costo de envío tal como lo vio el comprador (con o sin impuesto, según cómo\ntu tienda muestre los precios).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`discountTotal`}),` es el descuento de productos y de pedido tal como lo vio el comprador. Los\ndescuentos de `,_jsx(_components.strong,{children:`envío`}),` no van aquí: se reflejan como un `,_jsx(_components.code,{children:`shippingTotal`}),` menor y aparecen en\n`,_jsx(_components.code,{children:`promotions`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`promotions`}),` lista las promociones aplicadas: `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`code`}),`, `,_jsx(_components.code,{children:`title`}),`, `,_jsx(_components.code,{children:`class`}),` (`,_jsx(_components.code,{children:`GOODS`}),` / `,_jsx(_components.code,{children:`ORDER`}),` /\n`,_jsx(_components.code,{children:`SHIPPING`}),`) y `,_jsx(_components.code,{children:`amount`}),`. El `,_jsx(_components.code,{children:`id`}),` es la clave con la que cada línea referencia la promoción.`]}),`\n`,_jsxs(_components.p,{children:[`En cada línea: `,_jsx(_components.code,{children:`price`}),`, `,_jsx(_components.code,{children:`listPrice`}),`, `,_jsx(_components.code,{children:`discountTotal`}),`, `,_jsx(_components.code,{children:`discountAllocations`}),`, `,_jsx(_components.code,{children:`subtotal`}),`, `,_jsx(_components.code,{children:`taxTotal`}),`, `,_jsx(_components.code,{children:`total`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`En cada línea se cumple `,_jsx(_components.code,{children:`subtotal + taxTotal = total`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`price`}),` es el precio unitario cobrado, `,_jsx(_components.strong,{children:`antes de promociones`}),`. `,_jsx(_components.code,{children:`listPrice`}),` es el precio de lista\nde la variante al momento del pedido. Es `,_jsx(_components.code,{children:`null`}),` cuando la variante no tiene precio de lista.\n`,_jsx(_components.code,{children:`discountTotal`}),` es el descuento por `,_jsx(_components.strong,{children:`promociones`}),` de la línea (la diferencia entre `,_jsx(_components.code,{children:`listPrice`}),` y\n`,_jsx(_components.code,{children:`price`}),` es una negociación aparte, no va aquí). `,_jsx(_components.code,{children:`taxTotal`}),` es el impuesto de `,_jsx(_components.strong,{children:`productos`}),` de la\nlínea; la suma de `,_jsx(_components.code,{children:`taxTotal`}),` de las líneas no equivale al `,_jsx(_components.code,{children:`taxTotal`}),` del pedido cuando el envío\ntiene impuesto (el del pedido también incluye el impuesto del envío).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`discountAllocations`}),` desglosa el `,_jsx(_components.code,{children:`discountTotal`}),` de la línea por promoción: cada entrada tiene\n`,_jsx(_components.code,{children:`promotionId`}),` (referencia a `,_jsx(_components.code,{children:`promotions[].id`}),`) y `,_jsx(_components.code,{children:`amount`}),`. Las asignaciones de una misma promoción\nsuman exactamente su `,_jsx(_components.code,{children:`amount`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Todos comparten la misma `,_jsx(_components.code,{children:`currencyCode`}),` del pedido.`]})]})}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":"Montos y moneda","description":"Cómo se representan los importes en la API.","href":"/desarrolladores/api/money"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Por qué string","slug":"por-qué-string","depth":2,"children":[]},{"title":"Campos de monto","slug":"campos-de-monto","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"riqra-6746389f","siteName":"Riqra","title":"Montos y moneda - Riqra","navMaps":{"firstHrefInVersion":{"Nueva plataforma":{"href":"/desarrolladores/api/money","matchLevel":0},"Legacy":{"href":"/api/authentication","matchLevel":4}},"firstHrefInLanguage":{"es":{"href":"/desarrolladores/api/money","matchLevel":0}}},"lastModified":"2026-09-10T18:59:44.009Z","originalFileLocation":"desarrolladores/api/money.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=\"Cómo se representan los importes en la API.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Riqra\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_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/riqra-6746389f/pVXZGs-_v2RjJBKg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Montos y moneda - Riqra\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cómo se representan los importes en la API.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Riqra\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.riqra.com/desarrolladores/api/money\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://riqra-6746389f.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Montos+y+moneda\u0026amp;description=C%C3%B3mo+se+representan+los+importes+en+la+API.\u0026amp;theme=43c3dbef77fc7da3a647b4dc\u0026amp;signature=8d164e2894fa2ffa280d9b4da56b50ce61e1ce44e4526b99308fbd474053555c\">\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=\"Montos y moneda - Riqra\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cómo se representan los importes en la API.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://riqra-6746389f.mintlify.app/_mintlify/api/og/v2?division=API\u0026amp;title=Montos+y+moneda\u0026amp;description=C%C3%B3mo+se+representan+los+importes+en+la+API.\u0026amp;theme=43c3dbef77fc7da3a647b4dc\u0026amp;signature=8d164e2894fa2ffa280d9b4da56b50ce61e1ce44e4526b99308fbd474053555c\">\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/riqra-6746389f/pVXZGs-_v2RjJBKg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Riqra\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#15803D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.riqra.com/desarrolladores/api/money\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/desarrolladores/api/money.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.riqra.com/#organization\",\"name\":\"Riqra\",\"url\":\"https://docs.riqra.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/riqra-6746389f/Aa-uIMMYqqxhWO2d/logo/light.svg?fit=max\u0026auto=format\u0026n=Aa-uIMMYqqxhWO2d\u0026q=85\u0026s=08f5ba317750e9cffbfc4fe1c4a68e75\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.riqra.com#website\",\"name\":\"Riqra\",\"url\":\"https://docs.riqra.com\",\"publisher\":{\"@id\":\"https://docs.riqra.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.riqra.com/desarrolladores/api/money#webpage\",\"url\":\"https://docs.riqra.com/desarrolladores/api/money\",\"name\":\"Montos y moneda\",\"description\":\"Cómo se representan los importes en la API.\",\"dateModified\":\"2026-09-10T18:59:44.009Z\",\"isPartOf\":{\"@id\":\"https://docs.riqra.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.riqra.com/desarrolladores/api/money#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.riqra.com/desarrolladores/api/money#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://docs.riqra.com/desarrolladores/api/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Montos y moneda\",\"item\":\"https://docs.riqra.com/desarrolladores/api/money\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.riqra.com/desarrolladores/api/money#article\",\"headline\":\"Montos y moneda\",\"name\":\"Montos y moneda\",\"description\":\"Cómo se representan los importes en la API.\",\"url\":\"https://docs.riqra.com/desarrolladores/api/money\",\"mainEntityOfPage\":{\"@id\":\"https://docs.riqra.com/desarrolladores/api/money#webpage\"},\"dateModified\":\"2026-09-10T18:59:44.009Z\",\"publisher\":{\"@id\":\"https://docs.riqra.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.riqra.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Riqra\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Riqra","nav":{"global":null,"languages":[{"language":"es","versions":[{"version":"Nueva plataforma","default":true,"tag":"Actual","tabs":[{"tab":"Plataforma","pages":[{"title":"Plataforma","href":""}]},{"tab":"Tienda online","pages":[{"title":"Tienda online","href":"/tienda-online/introduccion"}]},{"tab":"WhatsApp","pages":[{"title":"WhatsApp","href":"/whatsapp/introduccion"}]},{"tab":"PedidosIA","pages":[{"title":"PedidosIA","href":"/pedidos-ia/introduccion"}]},{"tab":"Desarrolladores","groups":[{"group":"Introducción","pages":[{"title":"Desarrolla sobre Riqra","sidebarTitle":"Introducción","href":"/desarrolladores/introduccion"}]},{"group":"API","pages":[{"title":"Introducción","href":"/desarrolladores/api/introduction"},{"title":"Inicio rápido","href":"/desarrolladores/api/quickstart"},{"title":"Autenticación","href":"/desarrolladores/api/authentication"},{"title":"Permisos","href":"/desarrolladores/api/scopes"},{"title":"Paginación","href":"/desarrolladores/api/pagination"},{"title":"Errores","description":"El formato de error de la API y los códigos más comunes.","href":"/desarrolladores/api/errors"},{"title":"Montos y moneda","href":"/desarrolladores/api/money"},{"title":"Versionado","description":"Cómo se versiona la API y qué cambios son compatibles.","href":"/desarrolladores/api/versioning"},{"group":"Guías","pages":[{"title":"Leer pedidos","href":"/desarrolladores/api/guides/reading-orders"},{"title":"Preparación y entrega","href":"/desarrolladores/api/guides/fulfillment"},{"title":"Cancelar pedidos","href":"/desarrolladores/api/guides/cancelling-orders"},{"title":"Sincronizar stock","href":"/desarrolladores/api/guides/stock"},{"title":"Sincronizar precios","href":"/desarrolladores/api/guides/prices"}]},{"group":"Referencia","pages":[{"group":"Identity","pages":[{"title":"Identify the authenticated API key","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /whoami","href":"/api-reference/identity/identify-the-authenticated-api-key"}]},{"group":"Stock","pages":[{"title":"List active locations","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /stock/locations","href":"/api-reference/stock/list-active-locations"},{"title":"Set stock for many SKUs","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /stock/levels/set","href":"/api-reference/stock/set-stock-for-many-skus"}]},{"group":"Prices","pages":[{"title":"List active price lists","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /prices/lists","href":"/api-reference/prices/list-active-price-lists"},{"title":"Set prices for many SKUs","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /prices/set","href":"/api-reference/prices/set-prices-for-many-skus"}]},{"group":"Orders","pages":[{"title":"List orders","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /orders","href":"/api-reference/orders/list-orders"},{"title":"Get an order by id","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json get /orders/{id}","href":"/api-reference/orders/get-an-order-by-id"},{"title":"Cancel an order","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/cancel","href":"/api-reference/orders/cancel-an-order"}]},{"group":"Fulfillment","pages":[{"title":"Start preparation","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/start","href":"/api-reference/fulfillment/start-preparation"},{"title":"Fulfill (dispatch / mark ready)","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/fulfill","href":"/api-reference/fulfillment/fulfill-dispatch-mark-ready"},{"title":"Update tracking","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json patch /orders/{id}/fulfillment/tracking","href":"/api-reference/fulfillment/update-tracking"},{"title":"Mark delivered (or picked up)","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/fulfillment/deliver","href":"/api-reference/fulfillment/mark-delivered-or-picked-up"}]},{"group":"Invoicing","pages":[{"title":"Register the invoice of an order","deprecated":null,"version":null,"openapi":"/desarrolladores/api/openapi.json post /orders/{id}/invoice","href":"/api-reference/invoicing/register-the-invoice-of-an-order"}]}]}]},{"group":"Temas","pages":[{"title":"Introducción","href":"/desarrolladores/temas/introduccion"},{"title":"Primeros pasos","href":"/desarrolladores/temas/primeros-pasos"},{"title":"Ciclo de desarrollo","href":"/desarrolladores/temas/ciclo-de-desarrollo"},{"title":"Anatomía de un tema","href":"/desarrolladores/temas/anatomia-de-un-tema"},{"group":"Referencia","pages":[{"title":"Secciones y schema","href":"/desarrolladores/temas/secciones-y-schema"},{"title":"Carrito AJAX y secciones","href":"/desarrolladores/temas/cart-ajax-y-secciones"},{"title":"Viniendo de Shopify","href":"/desarrolladores/temas/viniendo-de-shopify"},{"title":"Referencia del CLI","href":"/desarrolladores/temas/referencia-cli"}]}]}]}]},{"version":"Legacy","tag":"Anterior","pages":[{"title":"Legacy","href":"/api/authentication"}]}]}]},"title":"Montos y moneda - Riqra","buildId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","deploymentId":"dpl_cadrRc5H9XQiJQbDFN5mcYRs2PAj","dynamics":[],"chunks":[]}