5. Response structure

The response returns slips under data.slips; each slip contains customer information (outlets), line items (items) and each item's discounts (discounts). Amounts are in TRY; unless stated otherwise, they exclude VAT.

Example response (abbreviated, slip TST0001):

{
  "success": true,
  "message": "The transaction is successful.",
  "info": { "company": "DBH-TEST", "country": "TR" },
  "data": {
    "slips": [
      {
        "dist_code": "D001",
        "slip_type": "Normal",
        "slip_id": 100001,
        "slip_number": "TST0001",
        "canceled_slip_value": "Printed",
        "slip_date": "2026-10-19 18:05:00",
        "outlet_name": "DBH TEST MÜŞTERİ",
        "store_code": "91",
        "pay_type_code": 3,
        "gross_amount": 2376.0,
        "total_discount": 1171.28,
        "vat": 12.05,
        "gross_total": 1216.77,
        "due_date": "2026-11-09 00:00:00",
        "seller_code": "175",
        "outlets": { "branch": { "central_code": "C0001", "central_name": "DBH TEST MÜŞTERİ", "tax_no": "1234567890" } },
        "items": [
          {
            "item_no": 2,
            "product_code": "P0002",
            "product_name": "TEST ÜRÜN B 20'li KL",
            "quant": 40.0,
            "product_unit_price": 17.82,
            "row_price": 712.8,
            "price": 361.416,
            "product_real_unit_price": 9.0354,
            "unit": "Koli",
            "vat": 1.0,
            "discounts": [
              { "item_no": 2, "code": "Cust", "sign_discount": "Customer", "type": "Percent", "discount_rate": 0.03, "discount_val": 21.384, "total_price": 712.8 },
              { "item_no": 2, "code": "EPoint", "sign_discount": "E Point", "type": "Price", "discount_rate": 0.4773, "discount_val": 330.0, "total_price": 691.416 }
            ]
          }
        ]
      }
    ],
    "failedSlips": []
  },
  "count": 1
}

General fields

FieldDescription
successWhether the operation succeeded
messageResult message; a warning is appended if there are unauthorized distributors or failed slips
countNumber of slips returned
data.slipsSlips
data.failedSlipsSlips that could not be built: slip_id, slip_number, dist_code, error. An error in one slip does not block the others

Slip (slips[])

FieldDescription
dist_codeDistributor code
slip_typeSlip kind (Normal, Return, etc.)
slip_idUnique ID of the slip in the system
slip_numberSlip number
canceled_slip_valueSlip status: Canceled (canceled), Printed (approved), Unconfirmed (unapproved), Waiting (pending)
slip_dateSlip date and time
slip_codeAlternate number of the slip (e-document number, etc.)
outlet_name, tax_office, tax_codeCustomer name, tax office, tax number
store_code, store_nameSource warehouse
store_code2, store_name2Destination warehouse (for transfers)
pay_type_codePayment type code
gross_amountGross amount (before discounts)
total_discountTotal discount amount
vatTotal VAT amount
gross_totalTotal payable for the slip (after discounts, including VAT)
due_dateDue date
del_code, veh_codeDelivery person and vehicle code
seller_code, seller_integ_codeSales representative code and integration code
slip_explanation, slip_explanation2Slip notes
outlets.head, outlets.branchHead office and branch customer information (codes, address, channel, tax details)

Item (items[])

FieldDescription
item_noLine item sequence number
product_code, product_nameProduct code and name
quantQuantity, in pieces (5 cases × 12 = 60)
unitUnit used on the slip (Koli = case, Adet = piece)
product_unit_priceList price per piece
row_priceLine gross amount (quant × product_unit_price)
priceLine net amount (after all discounts, excluding VAT)
product_real_unit_priceNet price per piece (price / quant)
vatVAT rate, percent (1.0 = 1%)
minimum_value, defined_one_value, defined_box_value, defined_package_valueThe product's unit definitions
deposit1 if the product carries a deposit
discountsDiscounts applied to the item, in order of application

Discount (discounts[])

FieldDescription
code, sign_discountDiscount code and name (Cust = customer discount, EPoint = e-points discount)
typePercent (percentage), Price (amount), Free (free of charge)
discount_rateDiscount rate, as a fraction (0.03 = 3%)
discount_valDiscount amount
total_priceAmount this discount was applied to (after previous discounts)

Discounts are applied in sequence: in the example, the 3% customer discount deducts TRY 21.38 from 712.80, and the e-points discount deducts TRY 330.00 from the remaining 691.42; the line net amount becomes TRY 361.42.

Customer (outlets.head = head office, outlets.branch = branch)

FieldDescription
integration_code1, integration_code2Customer's integration codes
central_code, central_nameCustomer code and name
city, town, adress, post_codeProvince, district, address (the field name is returned with this spelling), postal code
type_code, type_nameCustomer type
channel_code, channel_nameChannel
national_chain_outlets, national_chain_outlets_code, national_chain_outlets_nameNational chain information
telephone, fax_numberContact details
tax_no, tax_officeTax number and tax office
related_personContact person
seasonal_outletSeasonal customer
tax_free1 = tax-exempt customer

Other item fields

FieldDescription
product_typeProduct type
weight, volumeProduct weight and volume (dm³)
minimum_unit, minimum_valueProduct's unit and sub-unit values
defined_one_value, defined_box_value, defined_package_valuePiece, box and case unit names
deposit0 = no deposit, 1 = product with deposit

Legacy TXT/XML transfer codes. If you transfer data to accounting software using the legacy TXT/XML format, the field mappings are:

JSON fieldLegacy codeJSON fieldLegacy code
dist_codeDISTCODEitem_noKALEMNO
slip_typeFISTIPIproduct_codeURUNKODU
slip_idFISIDproduct_nameURUNADI
slip_numberFISNOquantMIKTAR
canceled_slip_valueIPTALproduct_unit_priceBIRIMFIYAT
slip_dateTARIHrow_priceSATIRTOPLAMI
slip_codeMUSKODUpriceFIYAT
outlet_nameMUSADIunitBIRIM
tax_officeVERGIDAIRESIvatKDV
tax_codeVERGINOproduct_typeTIPI
store_code, store_code2DEPOKODU, DEPOKODU2weightAGIRLIK
pay_type_codeODEMETIPIvolumeHACIM
gross_amountTOPLAMBRUTminimum_unitUNITE
total_discountTOPLAMISKONTOminimum_valueALTBIRIM
vatTOPLAMKDVdefined_one_valueBIRIM0
gross_totalTOPLAMNETdefined_box_valueBIRIM1
due_dateVADETARIHIdefined_package_valueBIRIM2
del_codeDAGITICIKODUdepositDEPOZITO
veh_codeARACKODUdiscounts[].codeKODU
seller_codeSATISTEMSILCISIKODUdiscounts[].sign_discountADI
slip_explanationFISACIKLAMAdiscounts[].discount_rateORAN
slip_explanation2FISACIKLAMA2discounts[].total_priceTUTAR