Create Customer

POST {{baseUrl}}/customers

Create a customer object and store 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.

Request Body

{"email"=>"guest@example.com", "name"=>"John Doe", "phone"=>"999999999", "phone_country_code"=>"+65", "description"=>"First customer", "address"=>{"line1"=>"1467", "line2"=>"Harrison Street", "line3"=>"Harrison Street", "city"=>"San Fransico", "state"=>"California", "zip"=>"94122", "country"=>"US", "first_name"=>"joseph", "last_name"=>"Doe"}, "metadata"=>{"udf1"=>"value1", "new_customer"=>"true", "login_date"=>"2019-09-10T10:11:12Z"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring