Create customer using Dwolla drop in componets

Hi Team,

We are using dwolla drop in components for creating a business verified customer and unverified customer. As per the API documentation, first UI application has to make a call to our API to get clientToken and use it to communicate with Dwolla API from front end application. As per the documentation, we need a customer ID as well for creating a client token for the customer creation. How do we get the customer ID upfront? As per my understanding, we get the customer ID upon customer creation success at Dwolla.

POST https://api-sandbox.dwolla.com/client-tokens
Accept: application/vnd.dwolla.v1.hal+json
Content-Type: application/json
Authorization: Bearer {{token}}

{
  "action": "customer.create”,
  "_links": {
    “customer”: {
      “href”: “https://api-sandbox.dwolla.com/customers/{{customerId}}”
    }
  }
}

Hi @Sandeep_Challa!

I wonder if you may have seen a different drop in component called which uses the action “customer.update” and requires a customerID to be supplied.

For customer.create, you do not need to submit an ID. Just the action is required.

If you haven’t already, I’d recommend checking out our sample project which has examples of the different components in action! - GitHub - Dwolla/drop-ins-examples: Example Express app for Dwolla Drop-in Components

Let us know if you come across any questions!