# How can I convert currency using an API or some workflow?

**URL:** <https://community.hubspot.com/t/how-can-i-convert-currency-using-an-api-or-some-workflow/105610>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [April 24, 2024, 12:58am UTC](https://community.hubspot.com/t/how-can-i-convert-currency-using-an-api-or-some-workflow/105610 "2024-04-24T00:58:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laragon](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@Laragon](https://community.hubspot.com/u/Laragon)\
**Post date:** [April 24, 2024, 12:58am UTC](https://community.hubspot.com/t/how-can-i-convert-currency-using-an-api-or-some-workflow/105610/1 "2024-04-24T00:58:06Z")

</div>

I’m currently working on creating records for a custom object called “Recurring Invoices” based on records from another custom object named “Services.” I retrieve data from “Services” to create the “invoices,” but the invoices sometimes have their total amount in Mexican pesos and sometimes in Colombian pesos. However, I want to save this amount in dollars. How can I ensure that the amount saved is equivalent to dollars?

Hubspot provide some solutions for this case?

---

<div class="post-metadata">

**Author:** ![SAMsan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/samsan/32/17908_2.png) [@SAMsan](https://community.hubspot.com/u/SAMsan)\
**Post date:** [April 24, 2024, 10:24am UTC](https://community.hubspot.com/t/how-can-i-convert-currency-using-an-api-or-some-workflow/105610/2 "2024-04-24T10:24:54Z")

</div>

You can do so by using an external API, a workflow and a Custom Code action.

> **[Workflows | Custom Code Actions - HubSpot docs](https://developers.hubspot.com/docs/api-reference/legacy/automation/workflow-actions/custom-code-actions)**
>
> Instructions for using custom code actions in workflows
