curl -X POST https://api.yucepay.com/api/customer \
-H "X-Api-Key: pk_live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"fullName": "Ahmet Yılmaz",
"email": "ahmet@example.com",
"phone": "5551112233",
"isActive": true
}'
var body = new {
fullName = "Ahmet Yılmaz", email = "ahmet@example.com",
phone = "5551112233", isActive = true
};
var res = await http.PostAsJsonAsync("https://api.yucepay.com/api/customer", body);
<?php
$ch = curl_init('https://api.yucepay.com/api/customer');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['X-Api-Key: pk_live_xxxxxxxxxxxxxxxx','Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'fullName' => 'Ahmet Yılmaz', 'email' => 'ahmet@example.com',
'phone' => '5551112233', 'isActive' => true,
]),
]);
$response = curl_exec($ch);
const res = await fetch('https://api.yucepay.com/api/customer', {
method: 'POST',
headers: { 'X-Api-Key': 'pk_live_xxxxxxxxxxxxxxxx', 'Content-Type': 'application/json' },
body: JSON.stringify({
fullName: 'Ahmet Yılmaz', email: 'ahmet@example.com',
phone: '5551112233', isActive: true,
}),
});
{
"success": true,
"message": "Müşteri başarıyla oluşturuldu",
"data": { "id": "143fea8b-..." },
"errorCode": null,
"timestamp": "2026-08-19T10:40:00Z"
}