cURL
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>" }
Use your Modem Pay secret key.
sk_test_...
sk_live_...
"John Doe"
"7000001"
Customer created