---
displayed_sidebar: pricingReference
badge:
variant: orange
text: Beta
slug: /references/pricing/updateMoneyAmounts
sidebar_label: updateMoneyAmounts
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# updateMoneyAmounts - Pricing Module Reference
This documentation provides a reference to the `updateMoneyAmounts` method. This belongs to the Pricing Module.
This method updates existing money amounts.
## Example
```ts
import {
initialize as initializePricingModule,
} from "@medusajs/pricing"
async function updateMoneyAmounts (moneyAmountId: string, amount: number) {
const pricingService = await initializePricingModule()
const moneyAmounts = await pricingService.updateMoneyAmounts([
{
id: moneyAmountId,
amount
}
])
// do something with the money amounts or return them
}
```
## Parameters
## Returns