---
page_title: 2. Creating a Customer
product: EC Headless
platform: Android
page_source: https://juspay.io/in/docs/ec-headless/android/base-sdk-integration/creating-a-customer
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/ec-headless/llms.txt
---


## 2. Creating a Customer



Customer creation at Juspay end is required for : Tokenisation/Storing Cards, Storing VPAs, Linked Wallet Flows and Subscription flows


### Step 2.1. Call Get Customers API


Call the [Get Customer API](/ec-headless/android/base-sdk-integration/getcustomer) with the customer_ID to check if the customer_id already exists.

* If the customer_id already exists, the get customer call will return the customer context for the given identifier.
* If the call returns an error that the customer cannot be found, only then proceed to the next step.




### Step 2.2. Call Create Customers API


To create a new customer object, call the [Create Customer API](/ec-headless/android/base-sdk-integration/createcustomer)



Once the customer is created you also need to Pass the customer ID in the `initiate` SDK call(Step 3) and at the time of order creation to ensure proper linking of orders/payments belonging to a customer.

---

## See Also

- [1. Getting SDK](https://juspay.io/in/docs/ec-headless/android/base-sdk-integration/getting-sdk)
- [3. Initialize SDK](https://juspay.io/in/docs/ec-headless/android/base-sdk-integration/initiating-sdk)
