Updates error codes for the Outbound Setup Intents APIBreaking changes
What’s new
Updates the error codes returned by the Outbound Setup Intents API to use more generic error types instead of credential-type-specific codes. This change replaces several existing error codes with standardized error types:
blocked_,payout_ method_ bank_ account blocked_, andpayout_ method_ card blocked_errors now returnpayout_ method_ crypto_ wallet blocked_.payout_ method unsupported_andpayout_ method_ bank_ account unsupported_errors now returnpayout_ method_ card unsupported_.payout_ method invalid_,payout_ method_ bank_ account invalid_, andpayout_ method_ card invalid_errors now returnpayout_ method_ crypto_ wallet invalid_.payout_ method limit_,payout_ method_ bank_ account limit_, andpayout_ method_ card limit_errors now returnpayout_ method_ crypto_ wallet limit_.payout_ method
This standardization improves the consistency of error handling across different Payout Method types and supports future extensibility when adding new credential types to Payout Methods.
Why is this a breaking change?
This is a breaking change because your integration can rely on the specific error code identifiers that this update replaces. If your code checks for type specific error codes like blocked_, unsupported_, invalid_, or limit_, those checks no longer work and you must update them to handle the generic error types.
Impact
If your integration handles specific error codes from Outbound Setup Intents endpoints, you need to update your error handling logic to use the generic error types. The error messages and underlying reasons remain the same, but the error code identifiers have changed to be more consistent across different Payout Method types.