4. Örnek istekler

Token alma (curl):

curl -X POST "{base_url}/api/v1/account/authenticate" \
  -H "Content-Type: application/json" \
  -d '{"username":"servis_kullanici","password":"********","company":"DBH-TEST","country":"TR"}'

Henüz alınmamış satış faturaları (Ekim 2026, onaylı):

curl -X POST "{base_url}/api/v1/integ/invoices/getinv" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "doc_type": 1,
    "start_date": "2026-10-01",
    "end_date": "2026-11-01",
    "exported": [0],
    "doc_status": [1],
    "limit": 100
  }'

Tek bir fişi, işaretlemeden tekrar alma:

{
  "doc_type": 1,
  "start_date": "2026-10-19",
  "end_date": "2026-10-20",
  "exported": [0, 1],
  "doc_status": [0, 1, 2, 3],
  "dist_codes": ["D001"],
  "doc_no": "TST0001",
  "update_exported": false
}

Bir müşterinin iade faturaları (vergi numarasıyla):

{
  "doc_type": 3,
  "start_date": "2026-01-01",
  "end_date": "2027-01-01",
  "exported": [0, 1],
  "doc_status": [1],
  "vkn": "1234567890",
  "update_exported": false
}