Create a customer

Request

curl -X POST https://api.example.com/v1/customers \
  -H "Authorization: Bearer sk_test_..." \
  -H "Content-Type: application/json" \
  -d '{ "name": "Grace Hopper", "email": "grace@example.com" }'

Response

{ "id": "cus_003", "name": "Grace Hopper", "email": "grace@example.com" }

Was this guide helpful?