Skip to main content
POST
/
customers
/
add
Create Customer
curl --request POST \
  --url https://testapi.fractalpay.com/api/v1/customers/add \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "john@fractal.com",
  "first_name": "John",
  "last_name": "Doe",
  "merchant_key": "{{merchant_key}}",
  "phone_number": "5134140000"
}
'
{
  "data": {
    "customer_email": "john@fractal.com",
    "customer_id": "f1070284-5fda-11ef-bae5-0ef0812e6179",
    "customer_phone": "5134140000"
  },
  "message": "Customer added successfully",
  "result": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.fractalpay.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use your Fractal API credentials.

Username = Client ID Password = Secret Key

Sandbox credentials can be generated from the Test Portal.

Body

application/json
first_name
string
required
Example:

"John"

merchant_key
string
required

The merchant's unique key. Returned in the merchant_key field of the get merchants by client call.

Example:

"{{merchant_key}}"

email
string
Example:

"john@fractal.com"

last_name
string
Example:

"Doe"

phone_number
string
Example:

"5134140000"

Response

200 - application/json

Create Customer

data
object
message
string
Example:

"Customer added successfully"

result
boolean
Example:

true