Customers - Create
Creates a customer object and stores the customer details to be reused for future payments. Incase the customer already exists in the system, this API will respond with the customer details.
Authorizations
Use the API key created under your merchant account from the HyperSwitch dashboard. API key is used to authenticate API requests from your merchant server only. Don't expose this key on a website or embed it in a mobile application.
Body
The customer details
The identifier for the customer object. If not provided the customer ID will be autogenerated.
1 - 64
The customer's name
255
The customer's email address
255
The customer's phone number
255
An arbitrary string that you can attach to a customer object.
255
The country code for the customer phone number
255
Address details
You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
Response
The identifier for the customer object
1 - 64
A timestamp (ISO 8601 code) that determines when the customer was created
The customer's name
255
The customer's email address
255
The customer's phone number
255
The country code for the customer phone number
255
An arbitrary string that you can attach to a customer object.
255
Address details
You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
The identifier for the default payment method.
64