Raw schema
{
"type": "object",
"properties": {
"supplier_pib": {
"type": "string",
"description": "Your (seller) PIB / tax number (poreski identifikacioni broj), exactly 9 digits. Required — SEF validates it against your API-key account."
},
"supplier_name": {
"type": "string",
"description": "Your (seller) legal name (BT-27). Required for a valid invoice."
},
"supplier_registration_number": {
"type": "string",
"description": "Your (seller) company registration number (maticni broj), 8 digits (BT-30). Recommended."
},
"supplier_address": {
"type": "string",
"description": "Your (seller) street address (BT-35). Recommended."
},
"supplier_city": {
"type": "string",
"description": "Your (seller) city (BT-37). Default Beograd."
},
"customer_name": {
"type": "string",
"description": "Buyer legal name (naziv) as registered."
},
"customer_pib": {
"type": "string",
"description": "Buyer PIB / tax number, exactly 9 digits."
},
"customer_registration_number": {
"type": "string",
"description": "Buyer company registration number (maticni broj), 8 digits (BT-47). Recommended."
},
"customer_address": {
"type": "string",
"description": "Buyer street address (BT-50 address line 1)."
},
"customer_city": {
"type": "string",
"description": "Buyer city (BT-52). Default Beograd."
},
"customer_country": {
"type": "string",
"description": "Buyer country code (BT-55). Default RS."
},
"invoice_number": {
"type": "string",
"description": "Your invoice number (BT-1). Auto-generated if omitted."
},
"issue_date": {
"type": "string",
"description": "Invoice issue date (BT-2), YYYY-MM-DD. Default: today (UTC)."
},
"due_date": {
"type": "string",
"description": "Optional payment due date (BT-9), YYYY-MM-DD."
},
"currency": {
"type": "string",
"description": "Document currency (BT-5). Default RSD."
},
"send_to_cir": {
"type": "boolean",
"description": "Send to the Central Invoice Register (CRF). Set true when the buyer is a budget / public-sector user; default false for private B2B."
},
"lines": {
"type": "array",
"minItems": 1,
"description": "Invoice lines. Each: name, unit_price (net, VAT-exclusive, RSD), vat_rate (20|10|0), optional quantity (default 1) and unit_code (UN/ECE Rec 20, default C62 = piece).",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Item name/description (BT-153)."
},
"unit_price": {
"type": "number",
"description": "Net unit price in RSD, VAT-exclusive (BT-146)."
},
"vat_rate": {
"type": "number",
"description": "VAT rate percent: 20 standard, 10 reduced, 0 zero-rated (BT-152)."
},
"quantity": {
"type": "number",
"description": "Quantity (BT-129). Default 1."
},
"unit_code": {
"type": "string",
"description": "Unit of measure UN/ECE Rec 20 code (BT-130). Default C62 (piece)."
}
},
"required": [
"name",
"unit_price",
"vat_rate"
]
}
}
},
"required": [
"supplier_pib",
"supplier_name",
"customer_name",
"customer_pib",
"customer_address",
"lines"
]
}