Stok Kart Türleri
Stok Kart Türleri, Evobulut ön muhasebe / ERP yazılımının Stok modülüne ait bir REST API servisidir. POST yöntemiyle https://ws.evobulut.com/api/stok/base/ adresine JSON gönderilerek çağrılır; kimlik doğrulama için Login servisinden alınan Token UID değeri gereklidir.
Açıklama
| cmd | İlgili komut |
| UID | KULLANICI_UID |
Header Bilgileri
| X-ClientId | Login anında alınan kullanıcı Token UID bilgisi |
İstek Gövdesi (JSON)
{
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
} Kod Örnekleri
curl -X POST "https://ws.evobulut.com/api/stok/base/" \
-H "Content-Type: application/json" \
-d '{
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
}'const response = await fetch("https://ws.evobulut.com/api/stok/base/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
})
});
const veri = await response.json();
console.log(veri);using System.Text;
using System.Text.Json;
using var client = new HttpClient();
var json = """
{
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
}
""";
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://ws.evobulut.com/api/stok/base/", content);
var veri = await response.Content.ReadAsStringAsync();
Console.WriteLine(veri);import requests
url = "https://ws.evobulut.com/api/stok/base/"
payload = {
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
}
response = requests.post(url, json=payload)
print(response.json())<?php
$url = "https://ws.evobulut.com/api/stok/base/";
$payload = '{
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
}';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;import java.net.URI;
import java.net.http.*;
HttpClient client = HttpClient.newHttpClient();
String json = """
{
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://ws.evobulut.com/api/stok/base/"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(json))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());import 'dart:convert';
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://ws.evobulut.com/api/stok/base/'),
headers: {'Content-Type': 'application/json'},
body: jsonEncode({
"cmd": "kart_turu",
"UID": "KULLANICI_UID"
}),
);
print(jsonDecode(response.body)); Başarılı Yanıt
200 OK
{
"status": "OK",
"veri": {
"Ana": [
{
"key": "1",
"value": "MALZEME"
},
{
"key": "2",
"value": "MAMUL"
},
{
"key": "3",
"value": "Y.MAMUL"
},
{
"key": "4",
"value": "HAMMADDE"
},
{
"key": "5",
"value": "DEMIRBAS"
},
{
"key": "10",
"value": "PAKET STOK"
}
]
}
} Stok modülündeki diğer servisler