# Upcoming: Enforcing Deal Currency Code Validation

**URL:** <https://community.hubspot.com/t/upcoming-enforcing-deal-currency-code-validation/84398>\
**Category:** Developer Announcements\
**Tags:** api, announcement\
**Created:** [June 29, 2023, 3:30pm UTC](https://community.hubspot.com/t/upcoming-enforcing-deal-currency-code-validation/84398 "2023-06-29T15:30:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [June 29, 2023, 3:30pm UTC](https://community.hubspot.com/t/upcoming-enforcing-deal-currency-code-validation/84398/1 "2023-06-29T15:30:56Z")

</div>

Beginning July 31st. 2023 , we will be implementing validation on the currency code property for deals.

When making an update or create request to the Deals endpoint, only the default currency or currencies established in the HubSpot account will be recognized as valid for the request being sent.

If a request is sent that does not meet the validation requirements, a 400 bad request response will be sent. The response will be similar to this example:

```lia-code-sample
{

status:"error",

message:"Property values were not valid: [{"isValid":false,"message":"\"BRL\" is not a part of the current effective currency codes for portal 104008696","error":"INVALID_OPTION","name":"deal_currency_code"}]",

correlationId:"99a6fa94-58a7-4a8e-8bbb-60a59dbde414",

category:"VALIDATION_ERROR"

}

```

##### **Why is this happening?**

Currently, any update or create request made to Deals endpoints can set the currency code of a deal to any code creating less reliable data in a customer’s account. Adding this validation will further improve the quality of data.

**When is this happening?**

This change will become effective July 31st, 2023.

---

<div class="post-metadata">

**Author:** ![Sachavskyi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sachavskyi/32/39641_2.png) [@Sachavskyi](https://community.hubspot.com/u/Sachavskyi)\
**Post date:** [July 4, 2023, 8:41am UTC](https://community.hubspot.com/t/upcoming-enforcing-deal-currency-code-validation/84398/2 "2023-07-04T08:41:25Z")

</div>

How should we know the correct values for the currency field?  
Maybe you should implement this one at first:  
[https://community.hubspot.com/t5/HubSpot-Ideas/Get-Currency-list-via-API/idi-p/380254](https://community.hubspot.com/t5/HubSpot-Ideas/Get-Currency-list-via-API/idi-p/380254)

---

<div class="post-metadata">

**Author:** ![jeremyy7](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jeremyy7/32/75439_2.png) [@jeremyy7](https://community.hubspot.com/u/jeremyy7)\
**Post date:** [July 6, 2023, 11:05am UTC](https://community.hubspot.com/t/upcoming-enforcing-deal-currency-code-validation/84398/3 "2023-07-06T11:05:28Z")

</div>

Totally agree. Can you provide some examples of what a request should look like?
