POST
/
customers
/
{customer_id}

Authorizations

api-key
string
header
required

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.

Path Parameters

customer_id
string
required

The unique identifier for the Customer

Body

application/json

The identifier for the customer object. If not provided the customer ID will be autogenerated.

address
object

Address details

description
string | null

An arbitrary string that you can attach to a customer object.

Maximum length: 255
email
string | null

The customer's email address

Maximum length: 255
metadata
object | null

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.

name
string | null

The customer's name

Maximum length: 255
phone
string | null

The customer's phone number

Maximum length: 255
phone_country_code
string | null

The country code for the customer phone number

Maximum length: 255

Response

200 - application/json
created_at
string
required

A timestamp (ISO 8601 code) that determines when the customer was created

customer_id
string
required

The identifier for the customer object

Required string length: 1 - 64
address
object

Address details

default_payment_method_id
string | null

The identifier for the default payment method.

Maximum length: 64
description
string | null

An arbitrary string that you can attach to a customer object.

Maximum length: 255
email
string | null

The customer's email address

Maximum length: 255
metadata
object | null

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.

name
string | null

The customer's name

Maximum length: 255
phone
string | null

The customer's phone number

Maximum length: 255
phone_country_code
string | null

The country code for the customer phone number

Maximum length: 255