İrsaliye sil
curl --request DELETE \
--url https://api.noyax.com/api/v1/despatches/{despatchId} \
--header 'Authorization: Bearer <token>' \
--header 'X-CompanyID: <x-companyid>' \
--header 'X-UserID: <x-userid>'using RestSharp;
var options = new RestClientOptions("https://api.noyax.com/api/v1/despatches/{despatchId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-UserID", "<x-userid>");
request.AddHeader("X-CompanyID", "<x-companyid>");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {
method: 'DELETE',
headers: {
'X-UserID': '<x-userid>',
'X-CompanyID': '<x-companyid>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.noyax.com/api/v1/despatches/{despatchId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noyax.com/api/v1/despatches/{despatchId}"
headers = {
"X-UserID": "<x-userid>",
"X-CompanyID": "<x-companyid>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"Success": false,
"ResultCode": "7014",
"Message": "The despatch cannot be deleted because it is used by other records.",
"Errors": [
{
"Code": "7014",
"Message": "The despatch cannot be deleted because it is used by other records."
}
]
}{
"Success": false,
"ResultCode": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token.",
"Errors": [
{
"Code": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token."
}
]
}{
"Success": false,
"ResultCode": "0110",
"Message": "You do not have permission for this operation.",
"Errors": [
{
"Code": "0110",
"Message": "You do not have permission for this operation."
}
]
}{
"Success": false,
"ResultCode": "7000",
"Message": "Despatch not found.",
"Errors": [
{
"Code": "7000",
"Message": "Despatch not found."
}
]
}{
"Success": false,
"ResultCode": "0120",
"Message": "Daily request limit (10000) exceeded.",
"Errors": [
{
"Code": "0120",
"Message": "Daily request limit (10000) exceeded."
}
]
}İrsaliyeler
İrsaliye sil
İrsaliyeyi ve satırlarını siler.
DELETE
/
api
/
v1
/
despatches
/
{despatchId}
İrsaliye sil
curl --request DELETE \
--url https://api.noyax.com/api/v1/despatches/{despatchId} \
--header 'Authorization: Bearer <token>' \
--header 'X-CompanyID: <x-companyid>' \
--header 'X-UserID: <x-userid>'using RestSharp;
var options = new RestClientOptions("https://api.noyax.com/api/v1/despatches/{despatchId}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-UserID", "<x-userid>");
request.AddHeader("X-CompanyID", "<x-companyid>");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.DeleteAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {
method: 'DELETE',
headers: {
'X-UserID': '<x-userid>',
'X-CompanyID': '<x-companyid>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.noyax.com/api/v1/despatches/{despatchId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noyax.com/api/v1/despatches/{despatchId}"
headers = {
"X-UserID": "<x-userid>",
"X-CompanyID": "<x-companyid>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"Success": false,
"ResultCode": "7014",
"Message": "The despatch cannot be deleted because it is used by other records.",
"Errors": [
{
"Code": "7014",
"Message": "The despatch cannot be deleted because it is used by other records."
}
]
}{
"Success": false,
"ResultCode": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token.",
"Errors": [
{
"Code": "0102",
"Message": "Token has expired. Obtain a new token using the refresh token."
}
]
}{
"Success": false,
"ResultCode": "0110",
"Message": "You do not have permission for this operation.",
"Errors": [
{
"Code": "0110",
"Message": "You do not have permission for this operation."
}
]
}{
"Success": false,
"ResultCode": "7000",
"Message": "Despatch not found.",
"Errors": [
{
"Code": "7000",
"Message": "Despatch not found."
}
]
}{
"Success": false,
"ResultCode": "0120",
"Message": "Daily request limit (10000) exceeded.",
"Errors": [
{
"Code": "0120",
"Message": "Daily request limit (10000) exceeded."
}
]
}İrsaliyeyi ve satırlarını siler. Bir çıkış işleminde zaten kullanılmış bir Lot ya da çıkışı yapılmış bir seri no, ait olduğu satırın silinmesini engeller (önce onu tüketen irsaliyeyi silin). Başka kayıtların bağlı olduğu bir irsaliye de silinemez.
E-irsaliye olarak gönderilmiş bir irsaliye silinemez (
7019).
Hata kodları
Bu endpoint’in dönebileceği kodlar. Her endpoint için geçerli olan genel hatalar (kimlik doğrulama, yetki, istek header’ları, istek limitleri) burada tekrarlanmaz.| Kod | HTTP | Anlamı |
|---|---|---|
4401 | 400 | İşlem, ürünün o depodaki stoğunu minimum stokun altına düşürür (kritik stok “işlemi durdur” olarak ayarlı) |
4402 | 400 | İşlem, ürünün o depodaki stoğunu negatife düşürür (kritik stok “işlemi durdur” olarak ayarlı) |
4403 | 400 | İşlem, ürünün o depodaki stoğunu maksimum stokun üzerine çıkarır (kritik stok “işlemi durdur” olarak ayarlı) |
7000 | 404 | İrsaliye bulunamadı |
7014 | 400 | Başka kayıtlar bu irsaliyeye bağlı olduğu için irsaliye silinemez |
7019 | 400 | İrsaliye e-irsaliye olarak gönderildiği için silinemez |
7304 | 400 | Lot çıkış işlemi gördüğü için kayıt işlemi (silme/güncelleme) iptal edildi |
7404 | 400 | Seri numarası çıkışı yapıldığı için silinemez |
Yetkilendirmeler
Başlıklar
Yanıt
No Content