A példa létrehoz egy forint és egy euró bankszámlát, aztán kiállít egy euró számlát, és a bankAccountId mezővel az euró bankszámlát adja meg hozzá.
Forint és euró bankszámla, és egy euró számla az euró bankszámlával.
Futtatás a sandboxbanimport { } from 'tarcajs'
const = ()
const = await ..({
: 'Fő számla',
: '11111111-22222222-33333333',
: 'HUF',
})
.('forint:', ., .(.), .)
const = await ..({
: 'Euró számla',
: '11111111-22222222-44444444',
: 'HU00111111112222222244444444',
: 'ABCDHUHB',
: 'EUR',
})
.('euró:', ., .)
const = await ..({
: . ?? 0,
: 'EUR',
: 390,
: {
: 'Vevő Kft.',
: { : '1111', : 'Budapest', : 'Fő utca 1.' },
},
: [{ : 'Webfejlesztés', : 1, : 400, : 27 }],
})
.('számla bankszámlája:', .?.?.)POST /bank-accounts HTTP/1.1
content-type: application/json
{
"name": "Fő számla",
"account_number": "11111111-22222222-33333333",
"currency": "HUF"
}POST /bank-accounts HTTP/1.1
content-type: application/json
{
"name": "Euró számla",
"account_number": "11111111-22222222-44444444",
"account_number_iban": "HU00111111112222222244444444",
"swift": "ABCDHUHB",
"currency": "EUR"
}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."
}
}POST /documents HTTP/1.1
content-type: application/json
{
"bank_account_id": 2,
"type": "invoice",
"fulfillment_date": "2026-11-16",
"due_date": "2026-11-24",
"payment_method": "wire_transfer",
"language": "hu",
"currency": "EUR",
"conversion_rate": 390,
"electronic": false,
"items": [
{
"name": "Webfejlesztés",
"quantity": 1,
"unit": "db",
"vat": "27%",
"unit_price": 400,
"unit_price_type": "net"
}
],
"settings": {
"should_send_email": false
},
"block_id": 1,
"partner_id": 1
}HTTP/1.1 201
content-type: application/json
{
"id": 1,
"name": "Fő számla",
"account_number": "11111111-22222222-33333333",
"account_number_iban": "",
"swift": "",
"currency": "HUF",
"need_qr": false
}HTTP/1.1 201
content-type: application/json
{
"id": 2,
"name": "Euró számla",
"account_number": "11111111-22222222-44444444",
"account_number_iban": "HU00111111112222222244444444",
"swift": "ABCDHUHB",
"currency": "EUR",
"need_qr": false
}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": [],
"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": 508,
"currency": "EUR",
"conversion_rate": 390,
"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": 2,
"name": "Euró számla",
"account_number": "11111111-22222222-44444444",
"account_number_iban": "HU00111111112222222244444444",
"swift": "ABCDHUHB"
},
"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": [],
"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": [],
"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": 400,
"quantity": 1,
"unit": "db",
"net_amount": 400,
"gross_amount": 508,
"vat": "27%",
"vat_amount": 108,
"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": 400,
"net_amount_local": 156000,
"gross_amount_local": 198120,
"vat_amount": 108,
"vat_amount_local": 42120,
"vat_rate_summary": [
{
"vat_name": "27%",
"vat_percentage": 0.27,
"vat_rate_net_amount": 400,
"vat_rate_vat_amount": 108,
"vat_rate_vat_amount_local": 42120,
"vat_rate_gross_amount": 508
}
]
},
"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
}forint: 1 "" false
euró: 2 ABCDHUHB
számla bankszámlája: 2Az Elküldött kérések fülön az első CreateBankAccount törzsében csak a három kötelező mező van. A Billingo válasz fülön a válasz kitölti az account_number_iban és a swift mezőt üres szöveggel, a CreateDocument válaszában pedig az organization.bank_account az euró bankszámla.