HubSpot Developer Changelog

Upcoming: Enforcing Deal Currency Code Validation

Written by Dennis Edson | Jun 29, 2023 3:43:00 PM

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:

{

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.

Please let us know if you have any questions by joining the discussion in our community forum.