Skip to main content

Fatura PDF - PDF

GET https://webservis.ekupbilisim.com/api/outsource/invoice/{UUID}/pdf

Faturaya ait PDF dosyasını indirmek için kullanılan API uç noktası. Bu uç nokta, UUID bilgisi ile faturayı PDF formatında döner.

Bu servis direkt olarak PDF 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
Fatura UUID bilgisi. Bu UUID, fatura gönderim veya gelen belgelerden alınabilir.

Cevaplar ( Responses )

200
OK
PDF dosyası binary olarak döner. Content-Type: application/pdf
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."
}
422
Unprocessable Entity
{
  "error": 1,
  "message": "Form verileri ile ilgili sorun mevcut, lütfen verileri kontrol ediniz",
  "fields": {
    "password": [
      "password zorunludur."
    ]
  }
}
500
Server Error
{
  "error": 1,
  "message": "Sunucu Hatası"
}

Örnek İstek ( Curl )


curl -X GET --location 'https://webservis.ekupbilisim.com/api/outsource/invoice/{UUID}/pdf' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: ••••••' \
--output fatura.pdf