Problem creating dwolla customer

having problems creating a dwolla customer in my next js code, it returns status 400

A 400 status code indicates that there’s an issue with the request you’re sending to the Dwolla API. There are several reasons why you might be encountering this error when trying to create a customer:

  1. BadRequest: The request body contains bad syntax or is incomplete. Make sure that you’re including all the necessary fields in your request and that they’re formatted correctly. Source

  2. ValidationError: There might be some validation errors in your request. You can reference the errors section for a list of possible embedded validation errors. Source

Remember to handle these errors in your code. Here’s an example of how to handle errors when making requests to the Dwolla API:

try {
  const response = await dwolla.get("customers");
  // response.body      => Object or String depending on response type
  // response.headers   => Headers { ... }
  // response.status    => 200
} catch (error) {
  // error.body       => Object or String depending on response type
  // error.headers    => Headers { ... }
  // error.status     => 400
}

Source

If you’re still having trouble, please provide more details about the specific issue you’re encountering. Sharing your code along with more details will help us identify what could be causing the error!

This topic was automatically closed after 365 days. New replies are no longer allowed.