> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sunucupark.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Palet ID Sorgusu

> Belirtilen ID'ye sahip paletin detaylarını döndürür.

Test için kullanabileceğiniz kullanıcı bilgileri:
- Palet ID: 1
- API Key: Önce /login endpoint'ini kullanarak token alınır eğer alındıysa direkt kullanılabilir.

Yanıt XML formatında döner.


## OpenAPI

````yaml GET /palet
openapi: 3.1.0
info:
  title: Tuna Matbaa API
  description: >-
    Tuna Matbaa'nın resmi API dokümantasyonu. Bu API, matbaa işlemlerinizi
    programatik olarak yönetmenizi sağlar.
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://apitest.tunamatbaacilik.com.tr
    description: Production API
security: []
paths:
  /palet:
    get:
      summary: Palet İçeriği
      description: >-
        Belirtilen ID'ye sahip paletin detaylarını döndürür.


        Test için kullanabileceğiniz kullanıcı bilgileri:

        - Palet ID: 1

        - API Key: Önce /login endpoint'ini kullanarak token alınır eğer
        alındıysa direkt kullanılabilir.
      operationId: getPalet
      parameters:
        - name: id
          in: query
          required: true
          description: Palet Qr ID
          schema:
            type: string
        - name: apikey
          in: query
          required: true
          description: API Anahtarı (JWT Token)
          schema:
            type: string
      responses:
        '200':
          description: Başarılı
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/Paletler'
              example: >-
                <?xml version="1.0" encoding="UTF-8"?><Paletler
                xmlns="http://tunamatbaacilik.com.tr/api"><Palet><PaletQrId>123456789</PaletQrId><Box><BoxQrId>987654321</BoxQrId><Tarih>01.01.2024</Tarih><Barkod>9780000000000</Barkod><ISBN>978-0000-000000</ISBN><FirmaId>1234</FirmaId><Kitaplar><KitapAdi>ÖRNEK
                KİTAP
                ADI</KitapAdi><Bandrols><Bandrol>0000001XXX</Bandrol><Bandrol>0000002XXX</Bandrol><Bandrol>0000003XXX</Bandrol><Bandrol>0000004XXX</Bandrol><Bandrol>0000005XXX</Bandrol></Bandrols></Kitaplar></Box><Box><BoxQrId>987654322</BoxQrId><Tarih>01.01.2024</Tarih><Barkod>9780000000000</Barkod><ISBN>978-0000-000000</ISBN><FirmaId>1234</FirmaId><Kitaplar><KitapAdi>ÖRNEK
                KİTAP
                ADI</KitapAdi><Bandrols><Bandrol>0000006XXX</Bandrol><Bandrol>0000007XXX</Bandrol><Bandrol>0000008XXX</Bandrol><Bandrol>0000009XXX</Bandrol><Bandrol>0000010XXX</Bandrol></Bandrols></Kitaplar></Box></Palet></Paletler>
        '400':
          description: Geçersiz istek
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Geçersiz API anahtarı
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Palet bulunamadı
          content:
            application/xml:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Paletler:
      type: object
      xml:
        name: Paletler
        namespace: http://apitest.tunamatbaacilik.com.tr
      properties:
        Palet:
          type: array
          xml:
            name: Palet
            wrapped: true
          items:
            type: object
            properties:
              PaletQrId:
                type: string
                xml:
                  name: PaletQrId
                description: Palet QR ID
              Box:
                type: array
                xml:
                  name: Box
                  wrapped: true
                items:
                  type: object
                  properties:
                    BoxQrId:
                      type: string
                      xml:
                        name: BoxQrId
                      description: Kutu QR ID
                    Tarih:
                      type: string
                      xml:
                        name: Tarih
                      description: Tarih
                    Barkod:
                      type: string
                      xml:
                        name: Barkod
                      description: Barkod
                    ISBN:
                      type: string
                      xml:
                        name: ISBN
                      description: ISBN
                    FirmaId:
                      type: string
                      xml:
                        name: FirmaId
                      description: Firma ID
                    Kitaplar:
                      type: object
                      xml:
                        name: Kitaplar
                      properties:
                        KitapAdi:
                          type: string
                          xml:
                            name: KitapAdi
                          description: Kitap Adı
                        Bandrols:
                          type: object
                          xml:
                            name: Bandrols
                          properties:
                            Bandrol:
                              type: array
                              xml:
                                name: Bandrol
                                wrapped: true
                              items:
                                type: string
                              description: Bandrol listesi
    Error:
      type: object
      xml:
        name: Error
      properties:
        code:
          type: string
          xml:
            name: Code
          description: Hata kodu
        message:
          type: string
          xml:
            name: Message
          description: Hata mesajı

````