diff --git a/crates/router/src/core/customers.rs b/crates/router/src/core/customers.rs index 05df00e69e..4462a1e3e8 100644 --- a/crates/router/src/core/customers.rs +++ b/crates/router/src/core/customers.rs @@ -36,7 +36,9 @@ pub async fn create_customer( .peek() .clone() .parse_value("AddressDetails") - .change_context(errors::ApiErrorResponse::AddressNotFound)?; + .change_context(errors::ApiErrorResponse::InvalidDataValue { + field_name: "address", + })?; db.insert_address(storage::AddressNew { city: customer_address.city, country: customer_address.country,