Skip to main content
POST
/
pelanggan
Create Pelanggan
curl --request POST \
  --url https://blessed-toad-definitely.ngrok-free.app/api/pelanggan \
  --header 'Content-Type: application/json' \
  --data '
{
  "nama": "John Doe",
  "alamatLengkap": "Jakarta, Indonesia",
  "agama": "Islam",
  "tanggalLahir": "2000-01-01",
  "nomorTelepon": "+6281234567890"
}
'

Body

application/json
nama
string
required

Name of the pelanggan

Example:

"John Doe"

alamatLengkap
string
required

Address of the pelanggan

Example:

"Jakarta, Indonesia"

agama
enum<string>
required

Religion of the pelanggan

Available options:
Islam,
Kristen,
Katolik,
Hindu,
Buddha,
Konghucu
tanggalLahir
string<date>
required

Birthdate of the pelanggan

Example:

"2000-01-01"

nomorTelepon
string
required

Phone number of the pelanggan

Example:

"+6281234567890"

Response

201

Pelanggan created successfully