E-İrsaliye Durum Sorgula
E-İrsaliye Durum Sorgula, Evobulut ön muhasebe / ERP yazılımının İrsaliye modülüne ait bir REST API servisidir. POST yöntemiyle https://ws.evobulut.com/api/irsaliye/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
| Elektronik olarak gönderilen Satış E-İrsaliye Durumlarını Sorgulamak için yapılan web servis | |||
| Request Body JSON Açıklamaları | |||
| Alan | Veri Tipi | Zorunlu | Açıklama |
| cmd | string | E | e-irsaliye_drm_sorgu |
| UID | string | E | KULLANICI_UID Login Anında Alınan UID Token Verisi |
| a_ids | string | E | Jarray [1..n] Evobulut Satış İrsaliye ID Bilgileri "a_ids" : ["18123", "18124", "18125"] |
Response Body JSON Açıklamaları
| Key | Value |
| ID | İrsaliye ID Nosu |
| Seri | İrsaliye Seri Nosu |
| Ettn | İrsaliye ETTM Numarası |
| Stat_No | Statü Kodu |
| Stat_Adi | Statü Adı |
| Red_Kabul_Drm | Red kabul Durumu (0-Beklemede, 1-Kabul, 2-Red, 3-İptal,4-Hatalı, 5-Kısmi Kabul / Kısmi Red) |
| Red_Kabul_Not | Red Kabul Notu |
İstek Gövdesi (JSON)
{
"cmd": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
} Kod Örnekleri
curl -X POST "https://ws.evobulut.com/api/irsaliye/base/" \
-H "Content-Type: application/json" \
-d '{
"cmd": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
}'const response = await fetch("https://ws.evobulut.com/api/irsaliye/base/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"cmd": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
})
});
const veri = await response.json();
console.log(veri);using System.Text;
using System.Text.Json;
using var client = new HttpClient();
var json = """
{
"cmd": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
}
""";
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://ws.evobulut.com/api/irsaliye/base/", content);
var veri = await response.Content.ReadAsStringAsync();
Console.WriteLine(veri);import requests
url = "https://ws.evobulut.com/api/irsaliye/base/"
payload = {
"cmd": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
}
response = requests.post(url, json=payload)
print(response.json())<?php
$url = "https://ws.evobulut.com/api/irsaliye/base/";
$payload = '{
"cmd": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
}';
$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": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://ws.evobulut.com/api/irsaliye/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/irsaliye/base/'),
headers: {'Content-Type': 'application/json'},
body: jsonEncode({
"cmd": "e-irsaliye_drm_sorgu",
"UID": "KULLANICI_UID",
"a_ids": [
"18123",
"18124",
"18125"
]
}),
);
print(jsonDecode(response.body)); Başarılı Yanıt
200 OK
{
"status": "OK",
"veri": [
{
"ID": "18123",
"Seri": "EVS2024000000386",
"Ettn": "129cf66f-f595-4700-a066-80efb49b45f6",
"Stat_No" : "1300",
"Stat_Ad" : "BASARIYLA TAMAMLANDI",
"Red_Kabul_Drm" : "1",
"Red_Kabul_Not" : "",
},
{
"ID": "18124",
"Seri": "EVO2024000001545",
"Ettn": "7a071812-8f67-4998-81ac-a8866943c2f5",
"Stat_No" : "1300",
"Stat_Ad" : "BASARIYLA TAMAMLANDI",
"Red_Kabul_Drm" : "2",
"Red_Kabul_Not" : "",
},
{
"ID": "18125",
"Seri": "EVS2024000000385",
"Ettn": "5e2fc670-b8aa-4848-b26d-a32750f92486",
"Stat_No" : "1300",
"Stat_Ad" : "BASARIYLA TAMAMLANDI",
"Red_Kabul_Drm" : "0",
"Red_Kabul_Not" : "",
}
]
} Başarısız Yanıt
200 OK — status: ERR
{
"status": "ERR",
"veri": [
{
"mesaj": " İrsaliye Id leri Boş olamaz. a_ids !"
}
]
} İrsaliye modülündeki diğer servisler