POST
/
customer
/
create
curl --request POST \
  --url https://api.xpaycheckout.com/customer/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerDetails": {
    "name": "John Doe",
    "email": "john.doe@example.com",
    "contactNumber": "9123456789",
    "customerAddress": {
      "country": "US",
      "postalCode": "2424"
    }
  }
}'
{
  "customerId": "cus_Tfd3Jq1tZxPjYVhRQW2r3"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Create Customer

The body is of type object.

Response

200
application/json

Customer created successfully

The response is of type object.