Skip to main content
POST
/
v1
/
customers
Create a customer
curl --request POST \
  --url https://api.modempay.com/v1/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "email": "<string>",
  "phone": "<string>"
}

Authorizations

Authorization
string
header
required

Use your Modem Pay secret key.

  • Test environment: Use your sk_test_... key.
  • Production environment: Only use sk_live_... on your personal, secure machine. Do NOT share or commit your production keys.

Headers

X-No-Effect
boolean

Body

application/json
name
string
required
Example:

"John Doe"

email
string<email>
phone
string
Example:

"7000001"

Response

201 - application/json

Customer created

id
string
name
string
email
string
phone
string