A példa egy új partnernek állít ki számlát: egy nettó árú tételt 27%-kal és egy bruttó árú tételt 5%-kal. Az Elküldött kérések fülön a négy kérés sorrendjét látod, a POST /documents törzsében pedig azt, hogyan lett a netUnitPrice-ból unit_price és unit_price_type: "net", és hogyan került az orderNumber a settings alá.
Nettó és bruttó árú tétel két áfakulccsal, teljesítési nap, határidő, megjegyzés és rendelésszám.
Futtatás a sandboxbanimport { } from 'tarcajs'
const = ()
const = await ..({
: {
: 'Vevő Kft.',
: { : '1111', : 'Budapest', : 'Fő utca 1.' },
: ['vevo@example.hu'],
: '12345678-2-42',
: 'HAS_TAX_NUMBER',
},
: [
{ : 'Webfejlesztés', : 10, : 'óra', : 15_000, : 27 },
{ : 'Tankönyv', : 2, : 4_200, : 5 },
],
: '2026-11-16',
: 15,
: 'Köszönjük a megrendelést.',
: 'ORDER-1001',
})
.(., ., .)
.(.?.)GET /document-blocks?per_page=100&type=invoice HTTP/1.1GET /partners?page=1&per_page=100&query=Vevő Kft. HTTP/1.1POST /partners HTTP/1.1
content-type: application/json
{
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@example.hu"
],
"taxcode": "12345678-2-42",
"tax_type": "HAS_TAX_NUMBER"
}POST /documents HTTP/1.1
content-type: application/json
{
"type": "invoice",
"fulfillment_date": "2026-11-16",
"due_date": "2026-12-01",
"payment_method": "wire_transfer",
"language": "hu",
"currency": "HUF",
"electronic": false,
"items": [
{
"name": "Webfejlesztés",
"quantity": 10,
"unit": "óra",
"vat": "27%",
"unit_price": 15000,
"unit_price_type": "net"
},
{
"name": "Tankönyv",
"quantity": 2,
"unit": "db",
"vat": "5%",
"unit_price": 4200,
"unit_price_type": "gross"
}
],
"comment": "Köszönjük a megrendelést.",
"settings": {
"should_send_email": false,
"order_number": "ORDER-1001"
},
"block_id": 1,
"partner_id": 1
}HTTP/1.1 200
content-type: application/json
{
"total": 1,
"per_page": 100,
"current_page": 1,
"last_page": 1,
"prev_page_url": null,
"next_page_url": null,
"data": [
{
"id": 1,
"name": "Számlák",
"prefix": "",
"custom_field1": "",
"custom_field2": "",
"type": "invoice"
}
]
}HTTP/1.1 200
content-type: application/json
{
"total": 0,
"per_page": 100,
"current_page": 1,
"last_page": 1,
"prev_page_url": null,
"next_page_url": null,
"data": []
}HTTP/1.1 201
content-type: application/json
{
"id": 1,
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@example.hu"
],
"taxcode": "12345678-2-42",
"iban": "",
"swift": "",
"account_number": "",
"phone": "",
"general_ledger_number": "",
"tax_type": "HAS_TAX_NUMBER",
"custom_billing_settings": {
"payment_method": null,
"document_form": null,
"due_days": null,
"document_currency": null,
"template_language_code": null,
"discount": null,
"custom_label": null
},
"group_member_tax_number": "",
"giro_settings": {
"giro_default_settings": true,
"giro_payment_request_enabled": false,
"giro_different_amount_allowed": false
},
"partner_shipping": {
"match": true,
"name": "",
"mode": "none",
"address": {
"country_code": "HU",
"post_code": "",
"city": "",
"address": ""
}
},
"internal_comment": "",
"partner_show_type": "show_all"
}HTTP/1.1 201
content-type: application/json
{
"id": 1,
"invoice_number": "2026-1",
"type": "invoice",
"cancelled": false,
"block_id": 1,
"payment_status": "outstanding",
"payment_method": "wire_transfer",
"gross_total": 198900,
"currency": "HUF",
"conversion_rate": 1,
"invoice_date": "2026-11-16",
"fulfillment_date": "2026-11-16",
"due_date": "2026-12-01",
"paid_date": "2026-11-16",
"organization": {
"name": "Hamis Billingo teszt szervezet",
"tax_number": "00000000-0-00",
"bank_account": {
"id": null,
"name": "",
"account_number": "",
"account_number_iban": "",
"swift": ""
},
"address": {
"country_code": "HU",
"post_code": "1011",
"city": "Budapest",
"address": "Fő utca 1."
},
"small_taxpayer": false,
"ev_number": "",
"eu_tax_number": "",
"cash_settled": false
},
"partner": {
"id": 1,
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@example.hu"
],
"taxcode": "12345678-2-42",
"iban": "",
"swift": "",
"account_number": "",
"phone": "",
"general_ledger_number": "",
"tax_type": "HAS_TAX_NUMBER",
"custom_billing_settings": {
"payment_method": null,
"document_form": null,
"due_days": null,
"document_currency": null,
"template_language_code": null,
"discount": null,
"custom_label": null
},
"group_member_tax_number": "",
"giro_settings": {
"giro_default_settings": true,
"giro_payment_request_enabled": false,
"giro_different_amount_allowed": false
},
"partner_shipping": {
"match": true,
"name": "",
"mode": "none",
"address": {
"country_code": "HU",
"post_code": "",
"city": "",
"address": ""
}
},
"internal_comment": "",
"partner_show_type": null
},
"document_partner": {
"id": 1,
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@example.hu"
],
"taxcode": "12345678-2-42",
"iban": "",
"swift": "",
"account_number": "",
"phone": "",
"tax_type": "HAS_TAX_NUMBER",
"partner_shipping": {
"match": true,
"name": "",
"mode": "none",
"address": {
"country_code": "HU",
"post_code": "",
"city": "",
"address": ""
}
}
},
"electronic": false,
"comment": "Köszönjük a megrendelést.",
"tags": [],
"notification_status": "none",
"language": "hu",
"items": [
{
"product_id": null,
"name": "Webfejlesztés",
"net_unit_amount": 15000,
"quantity": 10,
"unit": "óra",
"net_amount": 150000,
"gross_amount": 190500,
"vat": "27%",
"vat_amount": 40500,
"entitlement": null,
"comment": "",
"sku": null,
"data_eraser_codes": null,
"is_deposit_fee": false,
"ean": null,
"is_connect_product": false,
"connected_item": null,
"connect_document_item_setting": null
},
{
"product_id": null,
"name": "Tankönyv",
"net_unit_amount": 4000.000001,
"quantity": 2,
"unit": "db",
"net_amount": 8000,
"gross_amount": 8400,
"vat": "5%",
"vat_amount": 400,
"entitlement": null,
"comment": "",
"sku": null,
"data_eraser_codes": null,
"is_deposit_fee": false,
"ean": null,
"is_connect_product": false,
"connected_item": null,
"connect_document_item_setting": null
}
],
"summary": {
"net_amount": 158000,
"net_amount_local": 158000,
"gross_amount_local": 198900,
"vat_amount": 40900,
"vat_amount_local": 40900,
"vat_rate_summary": [
{
"vat_name": "27%",
"vat_percentage": 0.27,
"vat_rate_net_amount": 150000,
"vat_rate_vat_amount": 40500,
"vat_rate_vat_amount_local": 40500,
"vat_rate_gross_amount": 190500
},
{
"vat_name": "5%",
"vat_percentage": 0.05,
"vat_rate_net_amount": 8000,
"vat_rate_vat_amount": 400,
"vat_rate_vat_amount_local": 400,
"vat_rate_gross_amount": 8400
}
]
},
"settings": {
"mediated_service": false,
"without_financial_fulfillment": false,
"online_payment": "no",
"should_send_email": false,
"round": "none",
"no_send_onlineszamla_by_user": false,
"dont_send_to_nav_reason": null,
"order_number": "ORDER-1001",
"place_id": null,
"instant_payment": true,
"selected_type": null,
"instant_payment_request": null,
"is_waybill_hide_prices": false
},
"online_szamla_status": "processing",
"kobak_receipt_status": null,
"kobak_receipt_message": null,
"related_documents": [],
"discount": null,
"correction_type": "invoice",
"recurring_id": null
}2026-1 198900 outstanding
[
{
vatName: '27%',
vatPercentage: 0.27,
vatRateNetAmount: 150000,
vatRateVatAmount: 40500,
vatRateVatAmountLocal: 40500,
vatRateGrossAmount: 190500
},
{
vatName: '5%',
vatPercentage: 0.05,
vatRateNetAmount: 8000,
vatRateVatAmount: 400,
vatRateVatAmountLocal: 400,
vatRateGrossAmount: 8400
}
]A végösszeg 198 900 Ft: 150 000 Ft nettó és 40 500 Ft áfa a webfejlesztésre, 8 400 Ft bruttó a két tankönyvre. A tankönyv nettó egységára a válaszban 4000.000001, ez a Billingo kerekítési modellje.
A legrövidebb számla#
Egy hívás, négy kérés: számlatömb, partnerkeresés, új partner, majd a számla. A sorszámot a Billingo adja.
Futtatás a sandboxbanimport { } from 'tarcajs'
const = ()
const = await ..({
: {
: 'Vevő Kft.',
: { : '1111', : 'Budapest', : 'Fő utca 1.' },
: ['vevo@ceg.hu'],
},
: [{ : 'Webfejlesztés', : 10, : 'óra', : 15_000, : 27 }],
})
.(., .)GET /document-blocks?per_page=100&type=invoice HTTP/1.1GET /partners?page=1&per_page=100&query=Vevő Kft. HTTP/1.1POST /partners HTTP/1.1
content-type: application/json
{
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@ceg.hu"
]
}POST /documents HTTP/1.1
content-type: application/json
{
"type": "invoice",
"fulfillment_date": "2026-11-16",
"due_date": "2026-11-24",
"payment_method": "wire_transfer",
"language": "hu",
"currency": "HUF",
"electronic": false,
"items": [
{
"name": "Webfejlesztés",
"quantity": 10,
"unit": "óra",
"vat": "27%",
"unit_price": 15000,
"unit_price_type": "net"
}
],
"settings": {
"should_send_email": false
},
"block_id": 1,
"partner_id": 1
}HTTP/1.1 200
content-type: application/json
{
"total": 1,
"per_page": 100,
"current_page": 1,
"last_page": 1,
"prev_page_url": null,
"next_page_url": null,
"data": [
{
"id": 1,
"name": "Számlák",
"prefix": "",
"custom_field1": "",
"custom_field2": "",
"type": "invoice"
}
]
}HTTP/1.1 200
content-type: application/json
{
"total": 0,
"per_page": 100,
"current_page": 1,
"last_page": 1,
"prev_page_url": null,
"next_page_url": null,
"data": []
}HTTP/1.1 201
content-type: application/json
{
"id": 1,
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@ceg.hu"
],
"taxcode": "",
"iban": "",
"swift": "",
"account_number": "",
"phone": "",
"general_ledger_number": "",
"tax_type": "",
"custom_billing_settings": {
"payment_method": null,
"document_form": null,
"due_days": null,
"document_currency": null,
"template_language_code": null,
"discount": null,
"custom_label": null
},
"group_member_tax_number": "",
"giro_settings": {
"giro_default_settings": true,
"giro_payment_request_enabled": false,
"giro_different_amount_allowed": false
},
"partner_shipping": {
"match": true,
"name": "",
"mode": "none",
"address": {
"country_code": "HU",
"post_code": "",
"city": "",
"address": ""
}
},
"internal_comment": "",
"partner_show_type": "show_all"
}HTTP/1.1 201
content-type: application/json
{
"id": 1,
"invoice_number": "2026-1",
"type": "invoice",
"cancelled": false,
"block_id": 1,
"payment_status": "outstanding",
"payment_method": "wire_transfer",
"gross_total": 190500,
"currency": "HUF",
"conversion_rate": 1,
"invoice_date": "2026-11-16",
"fulfillment_date": "2026-11-16",
"due_date": "2026-11-24",
"paid_date": "2026-11-16",
"organization": {
"name": "Hamis Billingo teszt szervezet",
"tax_number": "00000000-0-00",
"bank_account": {
"id": null,
"name": "",
"account_number": "",
"account_number_iban": "",
"swift": ""
},
"address": {
"country_code": "HU",
"post_code": "1011",
"city": "Budapest",
"address": "Fő utca 1."
},
"small_taxpayer": false,
"ev_number": "",
"eu_tax_number": "",
"cash_settled": false
},
"partner": {
"id": 1,
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@ceg.hu"
],
"taxcode": "",
"iban": "",
"swift": "",
"account_number": "",
"phone": "",
"general_ledger_number": "",
"tax_type": "",
"custom_billing_settings": {
"payment_method": null,
"document_form": null,
"due_days": null,
"document_currency": null,
"template_language_code": null,
"discount": null,
"custom_label": null
},
"group_member_tax_number": "",
"giro_settings": {
"giro_default_settings": true,
"giro_payment_request_enabled": false,
"giro_different_amount_allowed": false
},
"partner_shipping": {
"match": true,
"name": "",
"mode": "none",
"address": {
"country_code": "HU",
"post_code": "",
"city": "",
"address": ""
}
},
"internal_comment": "",
"partner_show_type": null
},
"document_partner": {
"id": 1,
"name": "Vevő Kft.",
"address": {
"country_code": "HU",
"post_code": "1111",
"city": "Budapest",
"address": "Fő utca 1."
},
"emails": [
"vevo@ceg.hu"
],
"taxcode": "",
"iban": "",
"swift": "",
"account_number": "",
"phone": "",
"tax_type": "",
"partner_shipping": {
"match": true,
"name": "",
"mode": "none",
"address": {
"country_code": "HU",
"post_code": "",
"city": "",
"address": ""
}
}
},
"electronic": false,
"comment": "",
"tags": [],
"notification_status": "none",
"language": "hu",
"items": [
{
"product_id": null,
"name": "Webfejlesztés",
"net_unit_amount": 15000,
"quantity": 10,
"unit": "óra",
"net_amount": 150000,
"gross_amount": 190500,
"vat": "27%",
"vat_amount": 40500,
"entitlement": null,
"comment": "",
"sku": null,
"data_eraser_codes": null,
"is_deposit_fee": false,
"ean": null,
"is_connect_product": false,
"connected_item": null,
"connect_document_item_setting": null
}
],
"summary": {
"net_amount": 150000,
"net_amount_local": 150000,
"gross_amount_local": 190500,
"vat_amount": 40500,
"vat_amount_local": 40500,
"vat_rate_summary": [
{
"vat_name": "27%",
"vat_percentage": 0.27,
"vat_rate_net_amount": 150000,
"vat_rate_vat_amount": 40500,
"vat_rate_vat_amount_local": 40500,
"vat_rate_gross_amount": 190500
}
]
},
"settings": {
"mediated_service": false,
"without_financial_fulfillment": false,
"online_payment": "no",
"should_send_email": false,
"round": "none",
"no_send_onlineszamla_by_user": false,
"dont_send_to_nav_reason": null,
"order_number": "",
"place_id": null,
"instant_payment": true,
"selected_type": null,
"instant_payment_request": null,
"is_waybill_hide_prices": false
},
"online_szamla_status": "processing",
"kobak_receipt_status": null,
"kobak_receipt_message": null,
"related_documents": [],
"discount": null,
"correction_type": "invoice",
"recurring_id": null
}2026-1 190500