---
page_source: https://juspay.io/in/docs/ec-headless/cordova/base-sdk-integration/creating-a-customer
page_title: 2. Creating a Customer
---


## 2. Creating a Customer



Customer creation at Juspay end is required for your logged-in user journeys as well as for saving cards and link & pay flow.You may follow the steps below whenever a new user registers in your website or App. Juspay will respond with a customer ID that you can persist in your database. Pass this customer ID in the `initiate` SDK call and at the time of order creation to ensure proper linking of orders/payments belonging to a customer.


### Step 2.1. Call Get Customers API


Call the [Get Customer API](https://docs.juspay.in/ec-headless/cordova/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](https://docs.juspay.in/ec-headless/cordova/base-sdk-integration/createcustomer).

