Ana içeriğe geç

İrsaliye XML - UBL

GET https://webservis.ekupbilisim.com/api/outsource/despatch/{UUID}/ubl
Bu, canlı tabandır. Geliştirme ve entegrasyon testleri için /api/outsource-test tabanını kullanın — bkz. Test Ortamı / Sandbox.

İrsaliye ait XML(UBL) verilerini almak için kullanılan API uç noktası. Bu uç nokta, UUID bilgisi ile irsaliye verilerini XML formatında döner.

Bu servis direkt olarak XML formatında veri döner.

Üst Bilgi (Header) Parametreleri​

Authorization string required
Bearer token ile kimlik doğrulama yapılmalıdır.

İstek ( Query ) Parametreleri​

uuid guid required
İrsaliye UUID bilgisi. Bu UUID, irsaliye gönderim veya gelen belgelerden alınabilir.

Cevaplar ( Responses )​

200
OK
<DespatchAdvice xmlns="urn:oasis:names:specification:ubl:schema:xsd:DespatchAdvice-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:DespatchAdvice-2 ../xsd/DespatchAdvice-2.1.xsd">...</DespatchAdvice>
422
İş Kuralı Hatası — Dosya Bulunamadı
{
"error": 1,
"message": "UBL dosyası bulunamadı."
}
422
İş Kuralı Hatası — Dosya Hazır Değil
{
"error": 1,
"message": "Dosya oluşturuluyor, lütfen birazdan tekrar deneyiniz."
}
401
Unauthorized
{
  "error": 1,
  "message": "e-Posta veya şifre hatalı."
}
404
Not Found
{
  "error": 1,
  "message": "The route api/outsource/auth/login1 could not be found."
}
500
Server Error
{
  "error": 1,
  "message": "Sunucu Hatası"
}

Örnek İstek ( Curl )​


curl -X GET --location 'https://webservis.ekupbilisim.com/api/outsource-test/despatch/{UUID}/ubl' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: ••••••'