Create a new user
Create a new user
Creates a new user account with email, password, and details.
POST
/
v0
/
users
/
create
curl --request POST \
--url https://api.fungies.io/v0/users/create \
--header 'Content-Type: application/json' \
--header 'x-fngs-public-key: <api-key>' \
--header 'x-fngs-secret-key: <api-key>' \
--data '{
"email": "test@example.com",
"password": "Password123!",
"username": "test-user",
"internalId": "abcd-1234-5678-90ab-cdef-1234-5678-90ab",
"billingDetails": {
"type": "individual",
"countryCode": "US",
"state": "CA",
"firstName": "John",
"lastName": "Doe",
"dialCode": "+1",
"phoneNumber": "1234567890",
"address": "123 Main St",
"addressLine2": "Apt 1",
"city": "San Francisco",
"postalCode": "94101"
},
"paymentData": {
"stripeCustomerId": "cus_QzHuLRwfKfp2WX",
"paypalCustomerId": "KCE4828GQ37LL"
}
}'
{
"status": "<string>",
"data": {
"user": {
"object": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": null,
"email": null,
"details": null,
"internalId": null
}
}
}
curl --request POST \
--url https://api.fungies.io/v0/users/create \
--header 'Content-Type: application/json' \
--header 'x-fngs-public-key: <api-key>' \
--header 'x-fngs-secret-key: <api-key>' \
--data '{
"email": "test@example.com",
"password": "Password123!",
"username": "test-user",
"internalId": "abcd-1234-5678-90ab-cdef-1234-5678-90ab",
"billingDetails": {
"type": "individual",
"countryCode": "US",
"state": "CA",
"firstName": "John",
"lastName": "Doe",
"dialCode": "+1",
"phoneNumber": "1234567890",
"address": "123 Main St",
"addressLine2": "Apt 1",
"city": "San Francisco",
"postalCode": "94101"
},
"paymentData": {
"stripeCustomerId": "cus_QzHuLRwfKfp2WX",
"paypalCustomerId": "KCE4828GQ37LL"
}
}'
{
"status": "<string>",
"data": {
"user": {
"object": "user",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": null,
"email": null,
"details": null,
"internalId": null
}
}
}