{"components":{"responses":{},"schemas":{"SubcategoryCreate":{"description":"Create subcategory data object","properties":{"category_id":{"description":"The id of the parent category","format":"uuid","type":"string"},"name":{"description":"The name of the subcategory","type":"string"}},"required":["name","category_id"],"title":"SubcategoryCreate","type":"object"},"DocumentSectionalList":{"description":"List of document sectional representations","properties":{"data":{"items":{"$ref":"#/components/schemas/DocumentSectionalSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"DocumentSectionalList","type":"object"},"AccountList":{"description":"List of account representations","properties":{"data":{"items":{"$ref":"#/components/schemas/AccountSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"AccountList","type":"object"},"FlowCreate":{"description":"Create flow data object","properties":{"account_id":{"description":"The id of the account","example":"019ee045-935c-7dc9-8617-5a7f81c1539e","format":"uuid","nullable":true,"type":"string"},"amount":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"expected_payment_date":{"description":"The date when the flow is due","format":"date","type":"string"},"payment_date":{"description":"The date when the flow was paid","format":"date","type":"string"},"payment_method":{"description":"The payment method.\n\nPossible values are:\n- `CARD`: Payment by debit or credit card.\n- `CASH`: Payment in cash.\n- `CHECK`: Payment by bank check.\n- `DEFERRED`: Amount not collected at the time of sale (e.g. ticket, corrispettivo).\n- `TAX_FORM`: Payment via tax withholding form (e.g. F24 ritenute d'acconto).\n- `FISCAL_CREDIT`: Payment offset by a fiscal/tax credit.\n- `OTHER`: Any payment method not covered by the other values.\n- `POSTAL`: Payment via postal order or postal current account (bollettino postale).\n- `RIBA`: Ricevuta Bancaria — Italian bank receipt collection instrument.\n- `SDD`: SEPA Direct Debit — recurring bank debit authorised by the payer.\n- `TRANSFER`: Bank wire transfer (bonifico bancario).\n","enum":["CARD","CASH","CHECK","DEFERRED","TAX_FORM","FISCAL_CREDIT","OTHER","POSTAL","RIBA","SDD","TRANSFER"],"nullable":true,"type":"string"},"payment_status":{"description":"The payment status.\n\nPossible values are:\n- `PAID`: The flow has been paid.\n- `TO_PAY`: The flow is to be paid.\n","enum":["PAID","TO_PAY"],"type":"string"}},"required":["amount","expected_payment_date","payment_date","payment_status"],"title":"FlowCreate","type":"object"},"DocumentSectionalUpdate":{"description":"Update document sectional data object","properties":{"minimum_digits":{"description":"The minimum number of digits used to pad the progressive number","nullable":true,"type":"integer"},"prefix":{"description":"The prefix prepended to the progressive number to form the document number","nullable":true,"type":"string"},"suffix":{"description":"The suffix appended to the progressive number to form the document number","nullable":true,"type":"string"},"year":{"description":"The year the sectional applies to","type":"integer"}},"title":"DocumentSectionalUpdate","type":"object"},"SubscriptionData":{"description":"Subscription data representation","properties":{"created_at":{"description":"Creation date","format":"date-time","readOnly":true,"type":"string"},"status":{"description":"Shows the status of the subscription.\n\nPossible values are:\n\n- `TRIAL`: The subscription is in trial\n- `TRIAL_WILL_END`: Trial period is nearing its end\n- `TRIAL_WITH_PAYMENT_METHOD`: The subscription is in trial and a payment method had been provided\n- `ACTIVE`: The subscription is active\n- `PAST_DUE`: The trial has ended and no valid payment method has been provided\n- `CANCELED`: The subscription has been canceled\n- `INCOMPLETE`: The payment for the subscription has failed\n","enum":["PRE_TRIAL","TRIAL","TRIAL_WILL_END","TRIAL_WITH_PAYMENT_METHOD","ACTIVE","PAST_DUE","CANCELED","INCOMPLETE"],"readOnly":true,"type":"string"}},"title":"SubscriptionData","type":"object"},"FlowSchema":{"description":"Flow data representation","properties":{"account_id":{"description":"The id of the account","example":"019ee045-92fa-7a0b-b697-a7a388738db9","format":"uuid","nullable":true,"readOnly":true,"type":"string"},"amount":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"created_at":{"description":"The date of creation","format":"date-time","readOnly":true,"type":"string"},"document_id":{"description":"The id of the document","example":"019ee045-92fa-7888-8e37-57a7e5cc8f1a","format":"uuid","readOnly":true,"type":"string"},"expected_payment_date":{"description":"The date when the flow is due/The date when the flow was paid when the flow is reconciled","format":"date","readOnly":true,"type":"string"},"id":{"description":"The flow identifier","example":"019ee045-5bcf-7275-8a50-ddda00275d19","format":"uuid","readOnly":true,"type":"string"},"payment_date":{"description":"The date when the flow is due","format":"date","readOnly":true,"type":"string"},"payment_method":{"description":"The payment method.\n\nPossible values are:\n- `CARD`: Payment by debit or credit card.\n- `CASH`: Payment in cash.\n- `CHECK`: Payment by bank check.\n- `DEFERRED`: Amount not collected at the time of sale (e.g. ticket, corrispettivo).\n- `TAX_FORM`: Payment via tax withholding form (e.g. F24 ritenute d'acconto).\n- `FISCAL_CREDIT`: Payment offset by a fiscal/tax credit.\n- `OTHER`: Any payment method not covered by the other values.\n- `POSTAL`: Payment via postal order or postal current account (bollettino postale).\n- `RIBA`: Ricevuta Bancaria — Italian bank receipt collection instrument.\n- `SDD`: SEPA Direct Debit — recurring bank debit authorised by the payer.\n- `TRANSFER`: Bank wire transfer (bonifico bancario).\n","enum":["CARD","CASH","CHECK","DEFERRED","TAX_FORM","FISCAL_CREDIT","OTHER","POSTAL","RIBA","SDD","TRANSFER"],"nullable":true,"readOnly":true,"type":"string"},"payment_status":{"description":"The payment status.\n\nPossible values are:\n- `PAID`: The flow has been paid.\n- `TO_PAY`: The flow is to be paid.\n","enum":["PAID","TO_PAY"],"readOnly":true,"type":"string"}},"title":"FlowSchema","type":"object"},"SubcategoryUpdate":{"description":"Update subcategory data object","properties":{"name":{"description":"The name of the subcategory","type":"string"}},"title":"SubcategoryUpdate","type":"object"},"ProductCreate":{"description":"Create product data object","properties":{"code":{"description":"The internal code that identifies the product","nullable":true,"type":"string"},"description":{"description":"The description of the product","type":"string"},"tax_exemption":{"description":"The tax exemption code, required when `vat_percentage` is `0`","nullable":true,"type":"string"},"unit_of_measure":{"description":"The unit of measure of the product (e.g. `pcs`, `kg`, `h`)","nullable":true,"type":"string"},"unit_price":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"vat_percentage":{"description":"The VAT percentage applied to the product","format":"float","type":"number"}},"required":["description","unit_price","vat_percentage"],"title":"ProductCreate","type":"object"},"FlowList":{"description":"List of flow representations","properties":{"data":{"items":{"$ref":"#/components/schemas/FlowSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"FlowList","type":"object"},"CategoryCreate":{"description":"Create category data object","properties":{"color":{"description":"The color used to visually represent the category, encoded as a hex string (e.g. `#ff0000`). Defaults to `#ffffff` if not provided.","type":"string"},"name":{"description":"The name of the category","type":"string"}},"required":["name"],"title":"CategoryCreate","type":"object"},"DettaglioLinee":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee","properties":{"aliquota_iva":{"type":"string"},"altri_dati_gestionali":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.AltriDatiGestionali","properties":{"riferimento_data":{"type":"string"},"riferimento_numero":{"type":"string"},"riferimento_testo":{"type":"string"},"tipo_dato":{"type":"string"}},"title":"AltriDatiGestionali","type":"object"},"type":"array"},"codice_articolo":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.CodiceArticolo","properties":{"codice_tipo":{"type":"string"},"codice_valore":{"type":"string"}},"title":"CodiceArticolo","type":"object"},"type":"array"},"data_fine_periodo":{"type":"string"},"data_inizio_periodo":{"type":"string"},"descrizione":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"numero_linea":{"type":"string"},"prezzo_totale":{"type":"string"},"prezzo_unitario":{"type":"string"},"quantita":{"type":"string"},"riferimento_amministrazione":{"type":"string"},"ritenuta":{"type":"string"},"sconto_maggiorazione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.ScontoMaggiorazione","properties":{"importo":{"type":"string"},"percentuale":{"type":"string"},"tipo":{"type":"string"}},"title":"ScontoMaggiorazione","type":"object"},"type":"array"},"tipo_cessione_prestazione":{"enum":["SC","PR","AB","AC"],"type":"string"},"unita_misura":{"type":"string"}},"required":["numero_linea","prezzo_unitario"],"title":"DettaglioLinee","type":"object"},"DocumentList":{"description":"List of document representations","properties":{"data":{"items":{"$ref":"#/components/schemas/DocumentSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"DocumentList","type":"object"},"DatiSAL":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiSAL","properties":{"riferimento_fase":{"type":"string"}},"title":"DatiSAL","type":"object"},"CategoryList":{"description":"List of category representations","properties":{"data":{"items":{"$ref":"#/components/schemas/CategorySchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"CategoryList","type":"object"},"DettaglioPagamento":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiPagamento.DettaglioPagamento","properties":{"abi":{"type":"string"},"beneficiario":{"type":"string"},"bic":{"type":"string"},"cab":{"type":"string"},"cf_quietanzante":{"type":"string"},"cod_ufficio_postale":{"type":"string"},"codice_pagamento":{"type":"string"},"cognome_quietanzante":{"type":"string"},"data_decorrenza_penale":{"type":"string"},"data_limite_pagamento_anticipato":{"type":"string"},"data_riferimento_termini_pagamento":{"type":"string"},"data_scadenza_pagamento":{"type":"string"},"giorni_termini_pagamento":{"type":"integer"},"iban":{"type":"string"},"importo_pagamento":{"type":"string"},"istituto_finanziario":{"type":"string"},"modalita_pagamento":{"enum":["MP01","MP02","MP03","MP04","MP05","MP06","MP07","MP08","MP09","MP10","MP11","MP12","MP13","MP14","MP15","MP16","MP17","MP18","MP19","MP20","MP21","MP22","MP23"],"type":"string"},"nome_quietanzante":{"type":"string"},"penalita_pagamenti_ritardati":{"type":"string"},"sconto_pagamento_anticipato":{"type":"string"},"titolo_quietanzante":{"type":"string"}},"required":["modalita_pagamento","importo_pagamento"],"title":"DettaglioPagamento","type":"object"},"ProductList":{"description":"List of product representations","properties":{"data":{"items":{"$ref":"#/components/schemas/ProductSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"ProductList","type":"object"},"SubcategoryList":{"description":"List of subcategory representations","properties":{"data":{"items":{"$ref":"#/components/schemas/SubcategorySchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"SubcategoryList","type":"object"},"InvoiceData":{"description":"Invoice data object","properties":{"data":{"properties":{"invoice":{"$ref":"#/components/schemas/Invoice"},"xml_url":{"description":"Signed url for XML representation of the invoice. This field is available as soon as the invoice is sent to the SDI. This URL is valid for a limited time and should be used promptly. Please note that the URL will expire after a certain period of time, so it is recommended to download the XML file as soon as possible.","nullable":true,"readOnly":true,"type":"string"}},"type":"object"}},"title":"InvoiceData","type":"object"},"SubcategorySchema":{"description":"Subcategory data representation","properties":{"category_id":{"description":"The id of the parent category","format":"uuid","readOnly":true,"type":"string"},"id":{"description":"The id of the subcategory","example":"019ee045-5c18-7e29-b7b4-411e2cd1f9bb","format":"uuid","readOnly":true,"type":"string"},"name":{"description":"The name of the subcategory","readOnly":true,"type":"string"}},"title":"SubcategorySchema","type":"object"},"FlowData":{"description":"Flow data object","properties":{"data":{"$ref":"#/components/schemas/FlowSchema"}},"title":"FlowData","type":"object"},"DocumentIssuedList":{"description":"List of issued document representations","properties":{"data":{"items":{"$ref":"#/components/schemas/DocumentSchema"},"type":"array"}},"title":"DocumentIssuedList","type":"object"},"TransactionList":{"description":"List of transaction representations","properties":{"data":{"items":{"$ref":"#/components/schemas/TransactionSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"TransactionList","type":"object"},"CounterpartSearchData":{"description":"Counterpart search result representation","properties":{"data":{"$ref":"#/components/schemas/CounterpartSearchSchema"}},"title":"CounterpartSearchData","type":"object"},"DatiRitenuta":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.DatiRitenuta","properties":{"aliquota_ritenuta":{"type":"string"},"causale_pagamento":{"enum":["A","B","C","D","E","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","L1","M1","M2","O1","V1","V2","ZO"],"type":"string"},"importo_ritenuta":{"type":"string"},"tipo_ritenuta":{"enum":["RT01","RT02","RT03","RT04","RT05","RT06"],"type":"string"}},"title":"DatiRitenuta","type":"object"},"CounterpartUpdate":{"description":"Update counterpart data object","properties":{"address":{"description":"The address","nullable":true,"type":"string"},"city":{"description":"The city","nullable":true,"type":"string"},"company_name":{"description":"The company name of the counterpart","nullable":true,"type":"string"},"country":{"description":"The country (ISO code)","nullable":true,"type":"string"},"destination_code":{"description":"The destination code (if applicable) for the Italian Electronic system (SDI).","nullable":true,"type":"string"},"postal_code":{"description":"The postal code (if applicable)","nullable":true,"type":"string"},"province_code":{"description":"The province code (if applicable)","nullable":true,"type":"string"}},"title":"CounterpartUpdate","type":"object"},"CompanyList":{"description":"List of company representations","properties":{"data":{"items":{"properties":{"country":{"description":"Company country, expressed in ISO format","readOnly":true,"type":"string"},"fiscal_regime":{"description":"Company fiscal regime. It's expressed as a code, like RF0{n}","readOnly":true,"type":"string"},"id":{"description":"Company unique identifier","example":"019ee045-5ac0-7d02-abdb-3dc25a1f63e5","format":"uuid","readOnly":true,"type":"string"},"name":{"description":"Company name","readOnly":true,"type":"string"},"subscriptions":{"description":"A list of subscriptions","items":{"$ref":"#/components/schemas/SubscriptionData"},"nullable":true,"readOnly":true,"type":"array"},"vat_number":{"description":"Company value added tax (VAT) number","readOnly":true,"type":"string"}},"type":"object"},"type":"array"}},"title":"CompanyList","type":"object"},"CodiceArticolo":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.CodiceArticolo","properties":{"codice_tipo":{"type":"string"},"codice_valore":{"type":"string"}},"title":"CodiceArticolo","type":"object"},"AccountData":{"description":"Account data object","properties":{"data":{"$ref":"#/components/schemas/AccountSchema"}},"title":"AccountData","type":"object"},"Page":{"properties":{"cursor":{"description":"A cursor that can be used to fetch the next page of results","nullable":true,"type":"string"},"size":{"description":"The current page size","type":"integer"}},"title":"Page","type":"object"},"CategoryUpdate":{"description":"Update category data object","properties":{"color":{"description":"The color used to visually represent the category, encoded as a hex string (e.g. `#ff0000`)","type":"string"},"name":{"description":"The name of the category","type":"string"}},"title":"CategoryUpdate","type":"object"},"DatiRiepilogo":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DatiRiepilogo","properties":{"aliquota_iva":{"type":"string"},"arrotondamento":{"type":"string"},"esigibilita_iva":{"type":"string"},"imponibile_importo":{"type":"string"},"imposta":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"riferimento_normativo":{"type":"string"},"spese_accessorie":{"type":"string"}},"title":"DatiRiepilogo","type":"object"},"ReconciliationData":{"description":"Reconciliation data object","properties":{"data":{"$ref":"#/components/schemas/ReconciliationSchema"}},"title":"ReconciliationData","type":"object"},"AccountSchema":{"description":"Account data representation","properties":{"available_balance":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"nullable":true,"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"balance_date":{"description":"The date when the account balance was last updated","format":"date-time","nullable":true,"readOnly":true,"type":"string"},"created_at":{"description":"Creation date of the record","format":"date-time","readOnly":true,"type":"string"},"credit_limit":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"nullable":true,"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"currency":{"description":"The currency of the account.\n\nPossible values are:\n\"- AED\\n- AFN\\n- ALL\\n- AMD\\n- ANG\\n- AOA\\n- ARS\\n- AUD\\n- AWG\\n- AZN\\n- BAM\\n- BBD\\n- BDT\\n- BGN\\n- BHD\\n- BIF\\n- BMD\\n- BND\\n- BOB\\n- BOV\\n- BRL\\n- BSD\\n- BTN\\n- BWP\\n- BYN\\n- BZD\\n- CAD\\n- CDF\\n- CHE\\n- CHF\\n- CHW\\n- CLF\\n- CLP\\n- CNY\\n- COP\\n- COU\\n- CRC\\n- CUC\\n- CUP\\n- CVE\\n- CZK\\n- DJF\\n- DKK\\n- DOP\\n- DZD\\n- EGP\\n- ERN\\n- ETB\\n- EUR\\n- FJD\\n- FKP\\n- GBP\\n- GEL\\n- GHS\\n- GIP\\n- GMD\\n- GNF\\n- GTQ\\n- GYD\\n- HKD\\n- HNL\\n- HRK\\n- HTG\\n- HUF\\n- IDR\\n- ILS\\n- INR\\n- IQD\\n- IRR\\n- ISK\\n- JMD\\n- JOD\\n- JPY\\n- KES\\n- KGS\\n- KHR\\n- KMF\\n- KPW\\n- KRW\\n- KWD\\n- KYD\\n- KZT\\n- LAK\\n- LBP\\n- LKR\\n- LRD\\n- LSL\\n- LYD\\n- MAD\\n- MDL\\n- MGA\\n- MKD\\n- MMK\\n- MNT\\n- MOP\\n- MRU\\n- MUR\\n- MVR\\n- MWK\\n- MXN\\n- MXV\\n- MYR\\n- MZN\\n- NAD\\n- NGN\\n- NIO\\n- NOK\\n- NPR\\n- NZD\\n- OMR\\n- PAB\\n- PEN\\n- PGK\\n- PHP\\n- PKR\\n- PLN\\n- PYG\\n- QAR\\n- RON\\n- RSD\\n- RUB\\n- RWF\\n- SAR\\n- SBD\\n- SCR\\n- SDG\\n- SEK\\n- SGD\\n- SHP\\n- SLL\\n- SOS\\n- SRD\\n- SSP\\n- STN\\n- SVC\\n- SYP\\n- SZL\\n- THB\\n- TJS\\n- TMT\\n- TND\\n- TOP\\n- TRY\\n- TTD\\n- TWD\\n- TZS\\n- UAH\\n- UGX\\n- USD\\n- USN\\n- UYI\\n- UYU\\n- UYW\\n- UZS\\n- VES\\n- VND\\n- VUV\\n- WST\\n- XAF\\n- XAG\\n- XAU\\n- XBA\\n- XBB\\n- XBC\\n- XBD\\n- XCD\\n- XDR\\n- XOF\\n- XPD\\n- XPF\\n- XPT\\n- XSU\\n- XTS\\n- XUA\\n- XXX\\n- YER\\n- ZAR\\n- ZMW\\n- ZWL\"\n","enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"nullable":true,"readOnly":true,"type":"string"},"current_balance":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"nullable":true,"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"id":{"description":"The id of the account","example":"019ee045-5a9e-7fa0-a622-8ab6f5029f15","format":"uuid","readOnly":true,"type":"string"},"nickname":{"description":"A friendly name for the account","nullable":true,"readOnly":true,"type":"string"}},"title":"AccountSchema","type":"object"},"IntegrationError":{"properties":{"errors":{"description":"The list of errors encountered during the operation with detailed information","items":{"properties":{"code":{"description":"Short code identifying an error type","example":"bad_request","type":"string"},"detail":{"description":"The message detail that describes the error","example":"null value where string expected","nullable":true,"type":"string"},"source":{"nullable":true,"properties":{"pointer":{"description":"The exact position in the request where the error occurred","example":"/data/attributes/name","type":"string"}},"type":"object"},"title":{"description":"The message title that describes the error. It is a short, human-readable summary of the problem","example":"Invalid value","type":"string"}},"type":"object"},"type":"array"}},"required":["errors"],"title":"IntegrationError","type":"object"},"TransactionData":{"description":"Transaction data object","properties":{"data":{"$ref":"#/components/schemas/TransactionSchema"}},"title":"TransactionData","type":"object"},"AltriDatiGestionali":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.AltriDatiGestionali","properties":{"riferimento_data":{"type":"string"},"riferimento_numero":{"type":"string"},"riferimento_testo":{"type":"string"},"tipo_dato":{"type":"string"}},"title":"AltriDatiGestionali","type":"object"},"DocumentSectionalCreate":{"description":"Create document sectional data object","properties":{"minimum_digits":{"description":"The minimum number of digits used to pad the progressive number","nullable":true,"type":"integer"},"prefix":{"description":"The prefix prepended to the progressive number to form the document number. Either `prefix` or `suffix` must be provided.","nullable":true,"type":"string"},"suffix":{"description":"The suffix appended to the progressive number to form the document number. Either `prefix` or `suffix` must be provided.","nullable":true,"type":"string"},"year":{"description":"The year the sectional applies to","type":"integer"}},"required":["year"],"title":"DocumentSectionalCreate","type":"object"},"SubcategoryData":{"description":"Subcategory data object","properties":{"data":{"$ref":"#/components/schemas/SubcategorySchema"}},"title":"SubcategoryData","type":"object"},"Body":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body","properties":{"allegati":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.Allegati","properties":{"algoritmo_compressione":{"type":"string"},"attachment":{"type":"string"},"descrizione_attachment":{"type":"string"},"formato_attachment":{"type":"string"},"nome_attachment":{"type":"string"}},"title":"Allegati","type":"object"},"type":"array"},"dati_beni_servizi":{"properties":{"dati_riepilogo":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DatiRiepilogo","properties":{"aliquota_iva":{"type":"string"},"arrotondamento":{"type":"string"},"esigibilita_iva":{"type":"string"},"imponibile_importo":{"type":"string"},"imposta":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"riferimento_normativo":{"type":"string"},"spese_accessorie":{"type":"string"}},"title":"DatiRiepilogo","type":"object"},"type":"array"},"dettaglio_linee":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee","properties":{"aliquota_iva":{"type":"string"},"altri_dati_gestionali":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.AltriDatiGestionali","properties":{"riferimento_data":{"type":"string"},"riferimento_numero":{"type":"string"},"riferimento_testo":{"type":"string"},"tipo_dato":{"type":"string"}},"title":"AltriDatiGestionali","type":"object"},"type":"array"},"codice_articolo":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.CodiceArticolo","properties":{"codice_tipo":{"type":"string"},"codice_valore":{"type":"string"}},"title":"CodiceArticolo","type":"object"},"type":"array"},"data_fine_periodo":{"type":"string"},"data_inizio_periodo":{"type":"string"},"descrizione":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"numero_linea":{"type":"string"},"prezzo_totale":{"type":"string"},"prezzo_unitario":{"type":"string"},"quantita":{"type":"string"},"riferimento_amministrazione":{"type":"string"},"ritenuta":{"type":"string"},"sconto_maggiorazione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.ScontoMaggiorazione","properties":{"importo":{"type":"string"},"percentuale":{"type":"string"},"tipo":{"type":"string"}},"title":"ScontoMaggiorazione","type":"object"},"type":"array"},"tipo_cessione_prestazione":{"enum":["SC","PR","AB","AC"],"type":"string"},"unita_misura":{"type":"string"}},"required":["numero_linea","prezzo_unitario"],"title":"DettaglioLinee","type":"object"},"type":"array"}},"required":["dettaglio_linee","dati_riepilogo"],"type":"object"},"dati_generali":{"properties":{"dati_contratto":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_convenzione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_ddt":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiDDT","properties":{"data_ddt":{"type":"string"},"numero_ddt":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"string"},"type":"array"}},"required":["data_ddt"],"title":"DatiDDT","type":"object"},"type":"array"},"dati_fatture_collegate":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_generali_documento":{"properties":{"arrotondamento":{"type":"string"},"art_73":{"enum":["SI"],"type":"string"},"causale":{"items":{"type":"string"},"type":"array"},"data":{"type":"string"},"dati_bollo":{"properties":{"bollo_virtuale":{"type":"string"},"importo_bollo":{"type":"string"}},"type":"object"},"dati_cassa_previdenziale":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.DatiCassaPrevidenziale","properties":{"al_cassa":{"type":"string"},"aliquota_iva":{"type":"string"},"imponibile_cassa":{"type":"string"},"importo_contributo_cassa":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"riferimento_amministrazione":{"type":"string"},"ritenuta":{"type":"string"},"tipo_cassa":{"enum":["TC01","TC02","TC03","TC04","TC05","TC06","TC07","TC08","TC09","TC10","TC11","TC12","TC13","TC14","TC15","TC16","TC17","TC18","TC19","TC20","TC21","TC22"],"type":"string"}},"title":"DatiCassaPrevidenziale","type":"object"},"type":"array"},"dati_ritenuta":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.DatiRitenuta","properties":{"aliquota_ritenuta":{"type":"string"},"causale_pagamento":{"enum":["A","B","C","D","E","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","L1","M1","M2","O1","V1","V2","ZO"],"type":"string"},"importo_ritenuta":{"type":"string"},"tipo_ritenuta":{"enum":["RT01","RT02","RT03","RT04","RT05","RT06"],"type":"string"}},"title":"DatiRitenuta","type":"object"},"type":"array"},"divisa":{"type":"string"},"importo_totale_documento":{"type":"string"},"numero":{"type":"string"},"sconto_maggiorazione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.ScontoMaggiorazione","properties":{"importo":{"type":"string"},"percentuale":{"type":"string"},"tipo":{"enum":["MG","SC"],"type":"string"}},"title":"ScontoMaggiorazione","type":"object"},"type":"array"},"tipo_documento":{"enum":["TD01","TD02","TD03","TD04","TD05","TD06","TD07","TD08","TD09","TD10","TD11","TD16","TD17","TD18","TD19","TD20","TD21","TD22","TD23","TD24","TD25","TD26","TD27","TD28","TD29"],"type":"string"}},"required":["data","tipo_documento"],"type":"object"},"dati_ordine_acquisto":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_ricezione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_sal":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiSAL","properties":{"riferimento_fase":{"type":"string"}},"title":"DatiSAL","type":"object"},"type":"array"},"dati_trasporto":{"properties":{"causale_trasporto":{"type":"string"},"data_inizio_trasporto":{"type":"string"},"data_ora_consegna":{"type":"string"},"data_ora_ritiro":{"type":"string"},"dati_anagrafici_vettore":{"properties":{"anagrafica":{"properties":{"cod_eori":{"type":"string"},"cognome":{"type":"string"},"denominazione":{"type":"string"},"nome":{"type":"string"},"titolo":{"type":"string"}},"type":"object"},"codice_fiscale":{"type":"string"},"id_fiscale_iva":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_paese"],"type":"object"},"numero_licenza_guida":{"type":"string"}},"required":["id_fiscale_iva","anagrafica"],"type":"object"},"descrizione":{"type":"string"},"indirizzo_resa":{"properties":{"cap":{"type":"string"},"comune":{"type":"string"},"indirizzo":{"type":"string"},"nazione":{"type":"string"},"numero_civico":{"type":"string"},"provincia":{"type":"string"}},"type":"object"},"mezzo_trasporto":{"type":"string"},"numero_colli":{"type":"integer"},"peso_lordo":{"type":"string"},"peso_netto":{"type":"string"},"tipo_resa":{"type":"string"},"unita_misura_peso":{"type":"string"}},"type":"object"},"fattura_principale":{"properties":{"data_fattura_principale":{"type":"string"},"numero_fattura_principale":{"type":"string"}},"type":"object"}},"type":"object"},"dati_pagamento":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiPagamento","properties":{"condizioni_pagamento":{"enum":["TP01","TP02","TP03"],"type":"string"},"dettaglio_pagamento":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiPagamento.DettaglioPagamento","properties":{"abi":{"type":"string"},"beneficiario":{"type":"string"},"bic":{"type":"string"},"cab":{"type":"string"},"cf_quietanzante":{"type":"string"},"cod_ufficio_postale":{"type":"string"},"codice_pagamento":{"type":"string"},"cognome_quietanzante":{"type":"string"},"data_decorrenza_penale":{"type":"string"},"data_limite_pagamento_anticipato":{"type":"string"},"data_riferimento_termini_pagamento":{"type":"string"},"data_scadenza_pagamento":{"type":"string"},"giorni_termini_pagamento":{"type":"integer"},"iban":{"type":"string"},"importo_pagamento":{"type":"string"},"istituto_finanziario":{"type":"string"},"modalita_pagamento":{"enum":["MP01","MP02","MP03","MP04","MP05","MP06","MP07","MP08","MP09","MP10","MP11","MP12","MP13","MP14","MP15","MP16","MP17","MP18","MP19","MP20","MP21","MP22","MP23"],"type":"string"},"nome_quietanzante":{"type":"string"},"penalita_pagamenti_ritardati":{"type":"string"},"sconto_pagamento_anticipato":{"type":"string"},"titolo_quietanzante":{"type":"string"}},"required":["modalita_pagamento","importo_pagamento"],"title":"DettaglioPagamento","type":"object"},"type":"array"}},"title":"DatiPagamento","type":"object"},"type":"array"},"dati_veicoli":{"properties":{"data":{"type":"string"},"totale_percorso":{"type":"string"}},"type":"object"}},"required":["dati_beni_servizi","dati_generali"],"title":"Body","type":"object"},"ProductData":{"description":"Product data object","properties":{"data":{"$ref":"#/components/schemas/ProductSchema"}},"title":"ProductData","type":"object"},"CounterpartData":{"description":"Counterpart data representation","properties":{"data":{"$ref":"#/components/schemas/CounterpartSchema"}},"title":"CounterpartData","type":"object"},"CategoryData":{"description":"Category data object","properties":{"data":{"$ref":"#/components/schemas/CategorySchema"}},"title":"CategoryData","type":"object"},"ReconciliationList":{"description":"List of reconciliation representations","properties":{"data":{"items":{"$ref":"#/components/schemas/ReconciliationSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"ReconciliationList","type":"object"},"CounterpartSearchSchema":{"description":"Counterpart search result representation","properties":{"address":{"description":"The address","nullable":true,"readOnly":true,"type":"string"},"city":{"description":"The city","nullable":true,"readOnly":true,"type":"string"},"company_name":{"description":"The company name of the counterpart","nullable":true,"readOnly":true,"type":"string"},"country":{"description":"The country","nullable":true,"readOnly":true,"type":"string"},"postal_code":{"description":"The postal code (if applicable)","nullable":true,"readOnly":true,"type":"string"},"province_code":{"description":"The province code (if applicable)","nullable":true,"readOnly":true,"type":"string"},"tax_number":{"description":"The tax number","nullable":true,"readOnly":true,"type":"string"},"vat_number":{"description":"The VAT number","nullable":true,"readOnly":true,"type":"string"}},"title":"CounterpartSearchSchema","type":"object"},"Invoice":{"description":"Invoice data representation","properties":{"fattura_elettronica_body":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body","properties":{"allegati":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.Allegati","properties":{"algoritmo_compressione":{"type":"string"},"attachment":{"type":"string"},"descrizione_attachment":{"type":"string"},"formato_attachment":{"type":"string"},"nome_attachment":{"type":"string"}},"title":"Allegati","type":"object"},"type":"array"},"dati_beni_servizi":{"properties":{"dati_riepilogo":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DatiRiepilogo","properties":{"aliquota_iva":{"type":"string"},"arrotondamento":{"type":"string"},"esigibilita_iva":{"type":"string"},"imponibile_importo":{"type":"string"},"imposta":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"riferimento_normativo":{"type":"string"},"spese_accessorie":{"type":"string"}},"title":"DatiRiepilogo","type":"object"},"type":"array"},"dettaglio_linee":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee","properties":{"aliquota_iva":{"type":"string"},"altri_dati_gestionali":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.AltriDatiGestionali","properties":{"riferimento_data":{"type":"string"},"riferimento_numero":{"type":"string"},"riferimento_testo":{"type":"string"},"tipo_dato":{"type":"string"}},"title":"AltriDatiGestionali","type":"object"},"type":"array"},"codice_articolo":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.CodiceArticolo","properties":{"codice_tipo":{"type":"string"},"codice_valore":{"type":"string"}},"title":"CodiceArticolo","type":"object"},"type":"array"},"data_fine_periodo":{"type":"string"},"data_inizio_periodo":{"type":"string"},"descrizione":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"numero_linea":{"type":"string"},"prezzo_totale":{"type":"string"},"prezzo_unitario":{"type":"string"},"quantita":{"type":"string"},"riferimento_amministrazione":{"type":"string"},"ritenuta":{"type":"string"},"sconto_maggiorazione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.ScontoMaggiorazione","properties":{"importo":{"type":"string"},"percentuale":{"type":"string"},"tipo":{"type":"string"}},"title":"ScontoMaggiorazione","type":"object"},"type":"array"},"tipo_cessione_prestazione":{"enum":["SC","PR","AB","AC"],"type":"string"},"unita_misura":{"type":"string"}},"required":["numero_linea","prezzo_unitario"],"title":"DettaglioLinee","type":"object"},"type":"array"}},"required":["dettaglio_linee","dati_riepilogo"],"type":"object"},"dati_generali":{"properties":{"dati_contratto":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_convenzione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_ddt":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiDDT","properties":{"data_ddt":{"type":"string"},"numero_ddt":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"string"},"type":"array"}},"required":["data_ddt"],"title":"DatiDDT","type":"object"},"type":"array"},"dati_fatture_collegate":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_generali_documento":{"properties":{"arrotondamento":{"type":"string"},"art_73":{"enum":["SI"],"type":"string"},"causale":{"items":{"type":"string"},"type":"array"},"data":{"type":"string"},"dati_bollo":{"properties":{"bollo_virtuale":{"type":"string"},"importo_bollo":{"type":"string"}},"type":"object"},"dati_cassa_previdenziale":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.DatiCassaPrevidenziale","properties":{"al_cassa":{"type":"string"},"aliquota_iva":{"type":"string"},"imponibile_cassa":{"type":"string"},"importo_contributo_cassa":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"riferimento_amministrazione":{"type":"string"},"ritenuta":{"type":"string"},"tipo_cassa":{"enum":["TC01","TC02","TC03","TC04","TC05","TC06","TC07","TC08","TC09","TC10","TC11","TC12","TC13","TC14","TC15","TC16","TC17","TC18","TC19","TC20","TC21","TC22"],"type":"string"}},"title":"DatiCassaPrevidenziale","type":"object"},"type":"array"},"dati_ritenuta":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.DatiRitenuta","properties":{"aliquota_ritenuta":{"type":"string"},"causale_pagamento":{"enum":["A","B","C","D","E","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","L1","M1","M2","O1","V1","V2","ZO"],"type":"string"},"importo_ritenuta":{"type":"string"},"tipo_ritenuta":{"enum":["RT01","RT02","RT03","RT04","RT05","RT06"],"type":"string"}},"title":"DatiRitenuta","type":"object"},"type":"array"},"divisa":{"type":"string"},"importo_totale_documento":{"type":"string"},"numero":{"type":"string"},"sconto_maggiorazione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.ScontoMaggiorazione","properties":{"importo":{"type":"string"},"percentuale":{"type":"string"},"tipo":{"enum":["MG","SC"],"type":"string"}},"title":"ScontoMaggiorazione","type":"object"},"type":"array"},"tipo_documento":{"enum":["TD01","TD02","TD03","TD04","TD05","TD06","TD07","TD08","TD09","TD10","TD11","TD16","TD17","TD18","TD19","TD20","TD21","TD22","TD23","TD24","TD25","TD26","TD27","TD28","TD29"],"type":"string"}},"required":["data","tipo_documento"],"type":"object"},"dati_ordine_acquisto":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_ricezione":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"type":"array"},"dati_sal":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiSAL","properties":{"riferimento_fase":{"type":"string"}},"title":"DatiSAL","type":"object"},"type":"array"},"dati_trasporto":{"properties":{"causale_trasporto":{"type":"string"},"data_inizio_trasporto":{"type":"string"},"data_ora_consegna":{"type":"string"},"data_ora_ritiro":{"type":"string"},"dati_anagrafici_vettore":{"properties":{"anagrafica":{"properties":{"cod_eori":{"type":"string"},"cognome":{"type":"string"},"denominazione":{"type":"string"},"nome":{"type":"string"},"titolo":{"type":"string"}},"type":"object"},"codice_fiscale":{"type":"string"},"id_fiscale_iva":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_paese"],"type":"object"},"numero_licenza_guida":{"type":"string"}},"required":["id_fiscale_iva","anagrafica"],"type":"object"},"descrizione":{"type":"string"},"indirizzo_resa":{"properties":{"cap":{"type":"string"},"comune":{"type":"string"},"indirizzo":{"type":"string"},"nazione":{"type":"string"},"numero_civico":{"type":"string"},"provincia":{"type":"string"}},"type":"object"},"mezzo_trasporto":{"type":"string"},"numero_colli":{"type":"integer"},"peso_lordo":{"type":"string"},"peso_netto":{"type":"string"},"tipo_resa":{"type":"string"},"unita_misura_peso":{"type":"string"}},"type":"object"},"fattura_principale":{"properties":{"data_fattura_principale":{"type":"string"},"numero_fattura_principale":{"type":"string"}},"type":"object"}},"type":"object"},"dati_pagamento":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiPagamento","properties":{"condizioni_pagamento":{"enum":["TP01","TP02","TP03"],"type":"string"},"dettaglio_pagamento":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiPagamento.DettaglioPagamento","properties":{"abi":{"type":"string"},"beneficiario":{"type":"string"},"bic":{"type":"string"},"cab":{"type":"string"},"cf_quietanzante":{"type":"string"},"cod_ufficio_postale":{"type":"string"},"codice_pagamento":{"type":"string"},"cognome_quietanzante":{"type":"string"},"data_decorrenza_penale":{"type":"string"},"data_limite_pagamento_anticipato":{"type":"string"},"data_riferimento_termini_pagamento":{"type":"string"},"data_scadenza_pagamento":{"type":"string"},"giorni_termini_pagamento":{"type":"integer"},"iban":{"type":"string"},"importo_pagamento":{"type":"string"},"istituto_finanziario":{"type":"string"},"modalita_pagamento":{"enum":["MP01","MP02","MP03","MP04","MP05","MP06","MP07","MP08","MP09","MP10","MP11","MP12","MP13","MP14","MP15","MP16","MP17","MP18","MP19","MP20","MP21","MP22","MP23"],"type":"string"},"nome_quietanzante":{"type":"string"},"penalita_pagamenti_ritardati":{"type":"string"},"sconto_pagamento_anticipato":{"type":"string"},"titolo_quietanzante":{"type":"string"}},"required":["modalita_pagamento","importo_pagamento"],"title":"DettaglioPagamento","type":"object"},"type":"array"}},"title":"DatiPagamento","type":"object"},"type":"array"},"dati_veicoli":{"properties":{"data":{"type":"string"},"totale_percorso":{"type":"string"}},"type":"object"}},"required":["dati_beni_servizi","dati_generali"],"title":"Body","type":"object"},"type":"array"},"fattura_elettronica_header":{"properties":{"cedente_prestatore":{"properties":{"contatti":{"properties":{"email":{"type":"string"},"fax":{"type":"string"},"telefono":{"type":"string"}},"type":"object"},"dati_anagrafici":{"properties":{"albo_professionale":{"type":"string"},"anagrafica":{"properties":{"cod_eori":{"type":"string"},"cognome":{"type":"string"},"denominazione":{"type":"string"},"nome":{"type":"string"},"titolo":{"type":"string"}},"type":"object"},"codice_fiscale":{"type":"string"},"data_iscrizione_albo":{"type":"string"},"id_fiscale_iva":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_codice","id_paese"],"type":"object"},"numero_iscrizione_albo":{"type":"string"},"provincia_albo":{"type":"string"},"regime_fiscale":{"enum":["RF01","RF02","RF04","RF05","RF06","RF07","RF08","RF09","RF10","RF11","RF12","RF13","RF14","RF15","RF16","RF17","RF18","RF19","RF20"],"type":"string"}},"required":["id_fiscale_iva","anagrafica","regime_fiscale"],"type":"object"},"iscrizione_rea":{"properties":{"capitale_sociale":{"type":"string"},"numero_rea":{"type":"string"},"socio_unico":{"enum":["SU","SM"],"type":"string"},"stato_liquidazione":{"enum":["LS","LN"],"type":"string"},"ufficio":{"type":"string"}},"type":"object"},"riferimento_amministrazione":{"type":"string"},"sede":{"properties":{"cap":{"type":"string"},"comune":{"type":"string"},"indirizzo":{"type":"string"},"nazione":{"type":"string"},"numero_civico":{"type":"string"},"provincia":{"type":"string"}},"required":["cap"],"type":"object"},"stabile_organizzazione":{"properties":{"cap":{"type":"string"},"comune":{"type":"string"},"indirizzo":{"type":"string"},"nazione":{"type":"string"},"numero_civico":{"type":"string"},"provincia":{"type":"string"}},"type":"object"}},"required":["sede","dati_anagrafici"],"type":"object"},"cessionario_committente":{"properties":{"dati_anagrafici":{"properties":{"anagrafica":{"properties":{"cod_eori":{"type":"string"},"cognome":{"type":"string"},"denominazione":{"type":"string"},"nome":{"type":"string"},"titolo":{"type":"string"}},"type":"object"},"codice_fiscale":{"type":"string"},"id_fiscale_iva":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_codice","id_paese"],"type":"object"}},"required":["anagrafica"],"type":"object"},"rappresentante_fiscale":{"properties":{"cognome":{"type":"string"},"denominazione":{"type":"string"},"id_fiscale_iva":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_codice","id_paese"],"type":"object"},"nome":{"type":"string"}},"type":"object"},"sede":{"properties":{"cap":{"type":"string"},"comune":{"type":"string"},"indirizzo":{"type":"string"},"nazione":{"type":"string"},"numero_civico":{"type":"string"},"provincia":{"type":"string"}},"required":["cap"],"type":"object"},"stabile_organizzazione":{"properties":{"cap":{"type":"string"},"comune":{"type":"string"},"indirizzo":{"type":"string"},"nazione":{"type":"string"},"numero_civico":{"type":"string"},"provincia":{"type":"string"}},"type":"object"}},"required":["sede","dati_anagrafici"],"type":"object"},"dati_trasmissione":{"properties":{"codice_destinatario":{"type":"string"},"contatti_trasmittente":{"properties":{"email":{"type":"string"},"telefono":{"type":"string"}},"type":"object"},"formato_trasmissione":{"enum":["FPA12","FPR12"],"type":"string"},"id_trasmittente":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_codice","id_paese"],"type":"object"},"pec_destinatario":{"type":"string"},"progressivo_invio":{"type":"string"}},"required":["formato_trasmissione","codice_destinatario"],"type":"object"},"rappresentante_fiscale":{"properties":{"dati_anagrafici":{"properties":{"anagrafica":{"properties":{"cod_eori":{"type":"string"},"cognome":{"type":"string"},"denominazione":{"type":"string"},"nome":{"type":"string"},"titolo":{"type":"string"}},"type":"object"},"codice_fiscale":{"type":"string"},"id_fiscale_iva":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_codice","id_paese"],"type":"object"}},"required":["id_fiscale_iva","anagrafica"],"type":"object"}},"required":["dati_anagrafici"],"type":"object"},"soggetto_emittente":{"enum":["CC","TZ"],"type":"string"},"terzo_intermediario_o_soggetto_emittente":{"properties":{"dati_anagrafici":{"properties":{"anagrafica":{"properties":{"cod_eori":{"type":"string"},"cognome":{"type":"string"},"denominazione":{"type":"string"},"nome":{"type":"string"},"titolo":{"type":"string"}},"type":"object"},"codice_fiscale":{"type":"string"},"id_fiscale_iva":{"properties":{"id_codice":{"type":"string"},"id_paese":{"type":"string"}},"required":["id_paese"],"type":"object"}},"required":["anagrafica"],"type":"object"}},"type":"object"}},"required":["cessionario_committente","cedente_prestatore","dati_trasmissione"],"type":"object"},"namespace":{"type":"string"},"sistema_emittente":{"type":"string"},"versione":{"enum":["FPA12","FPR12"],"type":"string"}},"title":"Invoice","type":"object"},"ReconciliationSchema":{"description":"Reconciliation data representation","properties":{"created_at":{"description":"Creation date of the reconciliation","format":"date-time","readOnly":true,"type":"string"},"flow":{"anyOf":[{"$ref":"#/components/schemas/FlowSchema"}],"nullable":true,"readOnly":true},"flow_id":{"description":"The ID of the relative flow","example":"019ee045-5bf3-777b-9528-101a6a4bf3d5","format":"uuid","readOnly":true,"type":"string"},"id":{"description":"The processed reconciliation identifier","example":"019ee045-5bf3-7736-9fe6-aaad0cf1e33b","format":"uuid","readOnly":true,"type":"string"},"transaction":{"anyOf":[{"$ref":"#/components/schemas/TransactionSchema"}],"nullable":true,"readOnly":true},"transaction_id":{"description":"The ID of the relative transaction","example":"019ee045-5bf3-78c6-aa4b-7cd270d9627e","format":"uuid","readOnly":true,"type":"string"}},"required":["id","flow_id","transaction_id"],"title":"ReconciliationSchema","type":"object"},"Allegati":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.Allegati","properties":{"algoritmo_compressione":{"type":"string"},"attachment":{"type":"string"},"descrizione_attachment":{"type":"string"},"formato_attachment":{"type":"string"},"nome_attachment":{"type":"string"}},"title":"Allegati","type":"object"},"CategorySchema":{"description":"Category data representation","properties":{"color":{"description":"The color used to visually represent the category, encoded as a hex string (e.g. `#ff0000`)","readOnly":true,"type":"string"},"id":{"description":"The id of the category","example":"019ee045-5ab5-7fa3-b906-5239308a807b","format":"uuid","readOnly":true,"type":"string"},"name":{"description":"The name of the category","readOnly":true,"type":"string"}},"title":"CategorySchema","type":"object"},"DatiDDT":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiDDT","properties":{"data_ddt":{"type":"string"},"numero_ddt":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"string"},"type":"array"}},"required":["data_ddt"],"title":"DatiDDT","type":"object"},"ScontoMaggiorazione":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiBeniServizi.DettaglioLinee.ScontoMaggiorazione","properties":{"importo":{"type":"string"},"percentuale":{"type":"string"},"tipo":{"type":"string"}},"title":"ScontoMaggiorazione","type":"object"},"CounterpartList":{"description":"List of counterpart representations","properties":{"data":{"items":{"$ref":"#/components/schemas/CounterpartSchema"},"type":"array"},"page":{"$ref":"#/components/schemas/Page"}},"title":"CounterpartList","type":"object"},"ReconciliationCreate":{"description":"Create reconciliation data object","properties":{"flow_id":{"description":"The ID of the relative flow","example":"019ee045-5f6e-7b66-a4fd-5d7066ab9276","format":"uuid","type":"string"},"transaction_id":{"description":"The ID of the relative transaction","example":"019ee045-5f6f-792d-8c47-4a5e5afae69f","format":"uuid","type":"string"}},"required":["flow_id","transaction_id"],"title":"ReconciliationCreate","type":"object"},"DocumentSectionalSchema":{"description":"Document sectional data representation","properties":{"id":{"description":"The id of the document sectional","example":"019ee045-5b22-7352-8f4b-ea7fe2f28859","format":"uuid","readOnly":true,"type":"string"},"minimum_digits":{"description":"The minimum number of digits used to pad the progressive number","nullable":true,"readOnly":true,"type":"integer"},"prefix":{"description":"The prefix prepended to the progressive number to form the document number","example":"NC/","nullable":true,"readOnly":true,"type":"string"},"suffix":{"description":"The suffix appended to the progressive number to form the document number","example":"/2026","nullable":true,"readOnly":true,"type":"string"},"year":{"description":"The year the sectional applies to","example":2026,"readOnly":true,"type":"integer"}},"title":"DocumentSectionalSchema","type":"object"},"DatiPagamento":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiPagamento","properties":{"condizioni_pagamento":{"enum":["TP01","TP02","TP03"],"type":"string"},"dettaglio_pagamento":{"items":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiPagamento.DettaglioPagamento","properties":{"abi":{"type":"string"},"beneficiario":{"type":"string"},"bic":{"type":"string"},"cab":{"type":"string"},"cf_quietanzante":{"type":"string"},"cod_ufficio_postale":{"type":"string"},"codice_pagamento":{"type":"string"},"cognome_quietanzante":{"type":"string"},"data_decorrenza_penale":{"type":"string"},"data_limite_pagamento_anticipato":{"type":"string"},"data_riferimento_termini_pagamento":{"type":"string"},"data_scadenza_pagamento":{"type":"string"},"giorni_termini_pagamento":{"type":"integer"},"iban":{"type":"string"},"importo_pagamento":{"type":"string"},"istituto_finanziario":{"type":"string"},"modalita_pagamento":{"enum":["MP01","MP02","MP03","MP04","MP05","MP06","MP07","MP08","MP09","MP10","MP11","MP12","MP13","MP14","MP15","MP16","MP17","MP18","MP19","MP20","MP21","MP22","MP23"],"type":"string"},"nome_quietanzante":{"type":"string"},"penalita_pagamenti_ritardati":{"type":"string"},"sconto_pagamento_anticipato":{"type":"string"},"titolo_quietanzante":{"type":"string"}},"required":["modalita_pagamento","importo_pagamento"],"title":"DettaglioPagamento","type":"object"},"type":"array"}},"title":"DatiPagamento","type":"object"},"DocumentSchema":{"description":"Document data representation","properties":{"category":{"description":"Category data representation","nullable":true,"properties":{"id":{"description":"The id of the category","example":"019ee045-60d2-7a03-98c9-6da1470237a1","format":"uuid","readOnly":true,"type":"string"},"name":{"description":"The description of the category","readOnly":true,"type":"string"}},"readOnly":true,"type":"object"},"counterpart":{"anyOf":[{"$ref":"#/components/schemas/CounterpartSchema"}],"nullable":true,"readOnly":true},"created_at":{"description":"The creation date time","format":"date-time","readOnly":true,"type":"string"},"creation_date":{"description":"The date of the document. It represents the date which, in the case of an immediate invoice, coincides with the transaction date","format":"date","readOnly":true,"type":"string"},"delivery_date":{"description":"A date representing when the document were delivered","nullable":true,"readOnly":true,"type":"string"},"delivery_status":{"description":"The status of the document delivery","nullable":true,"readOnly":true,"type":"string"},"direction":{"description":"Shows whether the document has been issued or received.\n\nPossible values are:\n\n- `ISSUED`: The document was issued by this company\n- `RECEIVED`: The document was received. Beware that self invoices issued by the company will have direction `RECEIVED`\n","enum":["ISSUED","RECEIVED"],"readOnly":true,"type":"string"},"file_name":{"description":"The name of the file sent to the Italian Electronic system (SDI)","nullable":true,"readOnly":true,"type":"string"},"flows":{"description":"A list of payments related to the document","items":{"$ref":"#/components/schemas/FlowSchema"},"readOnly":true,"type":"array"},"format":{"description":"The document format","enum":["FPA12","FPR12","FSM10"],"readOnly":true,"type":"string"},"gross_amount":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"id":{"description":"The processed document identifier","example":"019ee045-60d2-7362-ae29-e216e6b3eb0e","format":"uuid","readOnly":true,"type":"string"},"is_e_invoice":{"description":"Represents whether the document is an electronic invoice; if true, the document is an electronic invoice for the Italian Electronic system (SDI)","nullable":true,"readOnly":true,"type":"boolean"},"notes":{"nullable":true,"readOnly":true,"type":"string"},"number":{"description":"The invoice number","example":"NC/12345/2026","readOnly":true,"type":"string"},"progressive":{"description":"The progressive number within the sectional","example":"12345","nullable":true,"readOnly":true,"type":"string"},"reasons_and_remarks":{"description":"Document reasons and remarks","items":{"type":"string"},"nullable":false,"readOnly":true,"type":"array"},"sectional":{"description":"The sectional associated with the document number","nullable":true,"properties":{"id":{"description":"The sectional identifier","format":"uuid","readOnly":true,"type":"string"},"minimum_digits":{"description":"The minimum number of digits used to pad the progressive number","nullable":true,"readOnly":true,"type":"integer"},"prefix":{"description":"The prefix prepended to the progressive number to form the document number","example":"NC/","nullable":true,"readOnly":true,"type":"string"},"suffix":{"description":"The suffix appended to the progressive number to form the document number","example":"/2026","nullable":true,"readOnly":true,"type":"string"}},"readOnly":true,"type":"object"},"status":{"description":"Current internal document status. This field is a mix of status that reflects the document's progress, both in Sibill and the target tax authority service.\nFor the Italian market the tax authority service is SDI.\n\nPossible values are:\n\n- `DRAFT`: The document in draft state. In this state the document is not yet finalized.\n- `CREATED`: The document is finalized. If the document is marked as an electronic invoice, it is sent to the target tax authority service.\n- `SENT`: The document is successfully transmitted to the target tax authority service.\n- `DELIVERED`: The document is transmitted to the tax authority service and successfully delivered to the recipient.\n- `NOT_DELIVERED`: The document is successfully transmitted to the target tax authority service butnot delivered to the recipient.\n- `DISCARDED`: The document is discarded. This typically happens when the document is not valid for the target tax authority service.\n- `REFUSED`: The document is refused. This typically happens for Public Administration entities only. It means that the document is not accepted by the recipient.\n","enum":["DRAFT","CREATED","SENT","DISCARDED","DELIVERED","NOT_DELIVERED","REFUSED"],"readOnly":true,"type":"string"},"subcategory":{"description":"Subcategory data representation","nullable":true,"properties":{"id":{"description":"The id of the subcategory","example":"019ee045-921c-7c1e-9370-93c46c8b5fd2","format":"uuid","readOnly":true,"type":"string"},"name":{"description":"The description of the subcategory","readOnly":true,"type":"string"}},"readOnly":true,"type":"object"},"type":{"description":"Current internal document type.\n\nPossible values are:\n\n- `BILL`: Represents a bill.\n- `CREDIT_NOTE`: Represents a credit note.\n- `DEBIT_NOTE`: Represents a debit note.\n- `INVOICE`: Represents an invoice.\n- `OTHER`: Represents other types of document.\n- `PARCEL`: Represents a parcel.\n- `SELF_INVOICE`: Represents a self-invoice.\n- `DELIVERY_NOTE`: Represents a delivery note (DDT).\n- `QUOTE`: Represents a quote.\n","enum":["BILL","RECEIPT","CREDIT_NOTE","DEBIT_NOTE","INVOICE","OTHER","PARCEL","SELF_INVOICE","DELIVERY_NOTE","QUOTE","PAYROLL"],"readOnly":true,"type":"string"},"updated_at":{"description":"The update date time","format":"date-time","readOnly":true,"type":"string"},"vat_amount":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"}},"title":"DocumentSchema","type":"object"},"DocumentData":{"description":"Document data object","properties":{"data":{"$ref":"#/components/schemas/DocumentSchema"}},"title":"DocumentData","type":"object"},"TransactionUpdate":{"description":"Update transaction data object","properties":{"category_id":{"description":"The category identifier. Pass `null` to clear the category and the subcategory.","example":"019ee045-9293-790f-be27-af26dc78ff74","format":"uuid","nullable":true,"type":"string"},"subcategory_id":{"description":"The subcategory identifier. Must belong to the category_id set in the same request, or to the current category if category_id is not provided, otherwise the request returns `422 Unprocessable Entity`.","example":"019ee045-9293-7f14-b833-4960d7ed34ba","format":"uuid","nullable":true,"type":"string"}},"title":"TransactionUpdate","type":"object"},"CounterpartCreate":{"description":"Create counterpart data object","properties":{"address":{"description":"The address","nullable":true,"type":"string"},"city":{"description":"The city","nullable":true,"type":"string"},"company_name":{"description":"The company name of the counterpart","nullable":true,"type":"string"},"country":{"description":"The country (ISO code)","type":"string"},"destination_code":{"description":"The destination code (if applicable) for the Italian Electronic system (SDI).","nullable":true,"type":"string"},"identity_type":{"description":"The type of the counterpart.\n\nPossible values are:\n- `COMPANY`: a company\n- `PA`: a public authority\n- `PERSON`: a person\n- `CONTRACTOR`: a contractor\n","enum":["COMPANY","PA","PERSON","CONTRACTOR"],"nullable":true,"type":"string"},"postal_code":{"description":"The postal code (if applicable)","nullable":true,"type":"string"},"province_code":{"description":"The province code (if applicable)","nullable":true,"type":"string"},"tax_number":{"description":"The tax number","nullable":true,"type":"string"},"vat_number":{"description":"The VAT number","nullable":true,"type":"string"}},"required":["country"],"title":"CounterpartCreate","type":"object"},"RelatedData":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.RelatedData","properties":{"codice_cig":{"type":"string"},"codice_commessa_convenzione":{"type":"string"},"codice_cup":{"type":"string"},"data":{"type":"string"},"id_documento":{"type":"string"},"num_item":{"type":"string"},"riferimento_numero_linea":{"items":{"type":"integer"},"type":"array"}},"title":"RelatedData","type":"object"},"DatiCassaPrevidenziale":{"description":"Schema for Sibill.Accounting.Adapter.IT.FPX12.Body.DatiGenerali.DatiGeneraliDocumento.DatiCassaPrevidenziale","properties":{"al_cassa":{"type":"string"},"aliquota_iva":{"type":"string"},"imponibile_cassa":{"type":"string"},"importo_contributo_cassa":{"type":"string"},"natura":{"enum":["N1","N2","N2.1","N2.2","N3","N3.1","N3.2","N3.3","N3.4","N3.5","N3.6","N4","N5","N6","N6.1","N6.2","N6.3","N6.4","N6.5","N6.6","N6.7","N6.8","N6.9","N7"],"type":"string"},"riferimento_amministrazione":{"type":"string"},"ritenuta":{"type":"string"},"tipo_cassa":{"enum":["TC01","TC02","TC03","TC04","TC05","TC06","TC07","TC08","TC09","TC10","TC11","TC12","TC13","TC14","TC15","TC16","TC17","TC18","TC19","TC20","TC21","TC22"],"type":"string"}},"title":"DatiCassaPrevidenziale","type":"object"},"CounterpartSchema":{"description":"Counterpart data representation","properties":{"address":{"description":"The address","nullable":true,"readOnly":true,"type":"string"},"city":{"description":"The city","nullable":true,"readOnly":true,"type":"string"},"company_name":{"description":"The company name of the counterpart","nullable":true,"readOnly":true,"type":"string"},"country":{"description":"The country","nullable":true,"readOnly":true,"type":"string"},"destination_code":{"description":"The destination code (if applicable) for the Italian Electronic system (SDI).\nAll the letters must be uppercase.\n\nPossible (suggested) values are:\n  - `2R4GTO8`: for San Marino.\n  - `XXXXXXX`: for not Italian Country.\n  - `0000000`: for italian identity_type `PERSON`.\n  - defaulted to `999999`: italian identity_type `PA`.\n  - defaulted to `0000000`: if it's unknown.\n\nFor identity_type `COMPANY` and `CONTRACTOR` the lenght must be `7`.\nFor identity_type `PA` the lenght must be `6`.\n","nullable":true,"readOnly":true,"type":"string"},"id":{"description":"The id of the counterpart","example":"019ee045-5b0b-7968-95e6-3965ecb679db","format":"uuid","readOnly":true,"type":"string"},"identity_type":{"description":"The type of the counterpart.\n\nPossible values are:\n- `COMPANY`: a company\n- `PA`: a public authority\n- `PERSON`: a person\n- `CONTRACTOR`: a contractor\n","enum":["COMPANY","PA","PERSON","CONTRACTOR"],"nullable":true,"readOnly":true,"type":"string"},"postal_code":{"description":"The postal code (if applicable)","nullable":true,"readOnly":true,"type":"string"},"province_code":{"description":"The province code (if applicable)","nullable":true,"readOnly":true,"type":"string"},"tax_number":{"description":"The tax number","nullable":true,"readOnly":true,"type":"string"},"vat_number":{"description":"The VAT number","nullable":true,"readOnly":true,"type":"string"}},"title":"CounterpartSchema","type":"object"},"FlowUpdate":{"description":"Update flow data object","properties":{"amount":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"expected_payment_date":{"description":"The date when the flow is due","format":"date","type":"string"},"id":{"description":"The flow identifier","example":"019ee045-9379-72b2-9efc-06a34bdf67e5","format":"uuid","readOnly":true,"type":"string"},"payment_date":{"description":"The date when the flow was paid","format":"date","type":"string"},"payment_method":{"description":"The payment method","enum":["CARD","CASH","CHECK","DEFERRED","TAX_FORM","FISCAL_CREDIT","OTHER","POSTAL","RIBA","SDD","TRANSFER"],"nullable":true,"type":"string"},"payment_status":{"description":"The payment status","enum":["PAID","TO_PAY"],"type":"string"}},"title":"FlowUpdate","type":"object"},"DocumentUpdate":{"description":"Update document data object","properties":{"category_id":{"description":"The category identifier. Pass `null` to clear the category and the subcategory.","example":"019ee045-92ea-74bc-a46f-902cd7657fec","format":"uuid","nullable":true,"type":"string"},"notes":{"description":"Document notes (max 1000 characters)","maxLength":1000,"nullable":true,"type":"string"},"subcategory_id":{"description":"The subcategory identifier. Must belong to the category_id set in the same request, or to the current category if category_id is not provided, otherwise the request returns `422 Unprocessable Entity`.","example":"019ee045-92ea-7064-ac30-1249eae6b056","format":"uuid","nullable":true,"type":"string"}},"title":"DocumentUpdate","type":"object"},"TransactionSchema":{"description":"Transaction data representation","properties":{"account_id":{"description":"The id of the bank account","example":"019ee045-5c50-787a-a0ff-a5f4d4b3e2b1","format":"uuid","readOnly":true,"type":"string"},"amount":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"bank_code":{"description":"The bank code referring to the type of a bank transaction.","nullable":true,"readOnly":true,"type":"string"},"booking_date_time":{"description":"The date when the transaction was done","format":"date-time","nullable":true,"readOnly":true,"type":"string"},"category":{"nullable":true,"properties":{"id":{"description":"The id of the category","example":"019ee045-9235-75a7-b7e1-506c604bb4a8","format":"uuid","readOnly":true,"type":"string"},"name":{"description":"The description of the category","readOnly":true,"type":"string"}},"readOnly":true,"type":"object"},"clean_description":{"description":"The description of the transaction after it has been cleaned up","nullable":true,"readOnly":true,"type":"string"},"counterpart_name":{"description":"The name of the counterpart","nullable":true,"readOnly":true,"type":"string"},"created_at":{"description":"Creation date of the record","format":"date-time","readOnly":true,"type":"string"},"date":{"description":"The date when the transaction was done","format":"date-time","nullable":true,"readOnly":true,"type":"string"},"description":{"description":"The original description of the transaction","nullable":true,"readOnly":true,"type":"string"},"id":{"description":"The id of the transaction","example":"019ee045-5c50-7f94-97ee-a0f2e83f3fe7","format":"uuid","readOnly":true,"type":"string"},"reconciliations":{"description":"A list of reconciliations related to the transaction","items":{"$ref":"#/components/schemas/ReconciliationSchema"},"readOnly":true,"type":"array"},"subcategory":{"nullable":true,"properties":{"id":{"description":"The id of the subcategory","example":"019ee045-9235-78ea-be9a-2cc06258f1ac","format":"uuid","readOnly":true,"type":"string"},"name":{"description":"The description of the subcategory","readOnly":true,"type":"string"}},"readOnly":true,"type":"object"},"value_date_time":{"description":"The date when the exchange of money took place","format":"date-time","nullable":true,"readOnly":true,"type":"string"}},"title":"TransactionSchema","type":"object"},"ProductSchema":{"description":"Product data representation","properties":{"code":{"description":"The internal code that identifies the product","nullable":true,"readOnly":true,"type":"string"},"description":{"description":"The description of the product","readOnly":true,"type":"string"},"id":{"description":"The id of the product","example":"019ee045-5be6-76d5-ad4c-2c3834d922fa","format":"uuid","readOnly":true,"type":"string"},"tax_exemption":{"description":"The tax exemption code, required when `vat_percentage` is `0`","nullable":true,"readOnly":true,"type":"string"},"unit_of_measure":{"description":"The unit of measure of the product (e.g. `pcs`, `kg`, `h`)","nullable":true,"readOnly":true,"type":"string"},"unit_price":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":true,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":true,"type":"string"}},"required":["currency","amount"],"type":"object"},"vat_percentage":{"description":"The VAT percentage applied to the product","format":"float","readOnly":true,"type":"number"}},"title":"ProductSchema","type":"object"},"ProductUpdate":{"description":"Update product data object","properties":{"code":{"description":"The internal code that identifies the product","nullable":true,"type":"string"},"description":{"description":"The description of the product","type":"string"},"tax_exemption":{"description":"The tax exemption code, required when `vat_percentage` is `0`","nullable":true,"type":"string"},"unit_of_measure":{"description":"The unit of measure of the product (e.g. `pcs`, `kg`, `h`)","nullable":true,"type":"string"},"unit_price":{"description":"Money representation through amount and currency properties","example":{"amount":"12.3","currency":"EUR"},"properties":{"amount":{"minLength":1,"pattern":"^[0-9]*\\.?[0-9]+$","readOnly":false,"type":"string"},"currency":{"enum":["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"],"readOnly":false,"type":"string"}},"required":["currency","amount"],"type":"object"},"vat_percentage":{"description":"The VAT percentage applied to the product","format":"float","type":"number"}},"title":"ProductUpdate","type":"object"},"SendInvoiceData":{"description":"Send an invoice courtesy copy data object","properties":{"body":{"description":"The body of the email.\n\nIf not provided, a default body will be used:\n\n- in Italian:\n  Buongiorno,\n  abbiamo provveduto all'invio della {INVOICE_TYPE} n. {INVOICE_NUMBER}. È possibile visualizzarla o scaricarne una copia in versione PDF cliccando sul bottone sottostante.\n\n  Grazie e buon lavoro\n","type":"string"},"reply_to":{"format":"email","minLength":1,"nullable":false,"type":"string"},"subject":{"description":"The subject of the email.\n\nIf not provided, a default subject will be used:\n\n- in Italian:\n  Nostra {INVOICE_TYPE} n. {INVOICE_NUMBER}\n","type":"string"},"to":{"nullable":false,"oneOf":[{"format":"email","minLength":1,"nullable":false,"type":"string"},{"items":{"format":"email","minLength":1,"nullable":false,"type":"string"},"minItems":1,"nullable":false,"type":"array"}]}},"required":["to","reply_to"],"title":"SendInvoiceData","type":"object"},"DocumentSectionalData":{"description":"Document sectional data object","properties":{"data":{"$ref":"#/components/schemas/DocumentSectionalSchema"}},"title":"DocumentSectionalData","type":"object"}},"securitySchemes":{"authorization":{"description":"Sibill Integration API scheme documentation","scheme":"bearer","type":"https"}}},"info":{"title":"Sibill Integration API","version":"1.0.0","x-logo":{"altText":"Sibill logo","backgroundColor":"#FFFFFF","url":"https://sibill.com/wp-content/uploads/2022/12/logo-sibill.svg"}},"openapi":"3.0.0","paths":{"/api/v1/companies":{"get":{"callbacks":{},"description":"List all the companies for the current integrator","operationId":"SibillWeb.Integration.V1.CompaniesController.index","parameters":[{"description":"Fields that will be expanded. Expandable fields: `subscriptions`","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyList"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all the available companies","tags":["Company"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/accounts":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.AccountsController.index","parameters":[{"description":"The company the accounts belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `id`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `created_at`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all accounts for the company","tags":["Account"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/accounts \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/accounts HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/accounts\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/accounts\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/accounts\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/accounts\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/accounts/{id}":{"get":{"callbacks":{},"description":"Returns all the information for a specific account from its identifier","operationId":"SibillWeb.Integration.V1.AccountsController.show","parameters":[{"description":"The company the account belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The account identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a account","tags":["Account"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/accounts/:account_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/accounts/:account_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/accounts/:account_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/accounts/:account_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/accounts/:account_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/accounts/:account_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/categories":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.CategoriesController.index","parameters":[{"description":"The company the categories belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `id`, `name`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `name`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all categories for the company","tags":["Category"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/categories \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/categories HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/categories\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/categories\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/categories\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/categories\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"post":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.CategoriesController.create","parameters":[{"description":"The company the category belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreate"}}},"description":"Category","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryData"}}},"description":"Category created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Create a new category","tags":["Category"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/categories \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/categories HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/categories\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/categories\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/categories\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/categories\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/categories/{id}":{"delete":{"callbacks":{},"description":"Deletes the category and clears its reference from associated transactions,\nrecurrences and counterparts.\n","operationId":"SibillWeb.Integration.V1.CategoriesController.delete","parameters":[{"description":"The company the category belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The category identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Category deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Delete a category","tags":["Category"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request DELETE \\\n     --url ${base_url}/api/v1/companies/:company_id/categories/:category_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"DELETE /api/v1/companies/:company_id/categories/:category_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/categories/:category_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.delete(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/categories/:category_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/categories/:category_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .DELETE()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/categories/:category_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"get":{"callbacks":{},"description":"Returns all the information for a specific category from its identifier","operationId":"SibillWeb.Integration.V1.CategoriesController.show","parameters":[{"description":"The company the category belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The category identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a category","tags":["Category"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/categories/:category_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/categories/:category_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/categories/:category_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/categories/:category_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/categories/:category_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/categories/:category_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.CategoriesController.update","parameters":[{"description":"The company the category belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The category identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryUpdate"}}},"description":"Category","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryData"}}},"description":"Category updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Update an existing category","tags":["Category"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/categories/:category_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/categories/:category_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/categories/:category_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/categories/:category_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/categories/:category_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/categories/:category_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/counterparts":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.CounterpartsController.index","parameters":[{"description":"The company the counterparts belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `vat_number`, `tax_number`, `company_name`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `company_name`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartList"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"}},"security":[{"authorization":[]}],"summary":"Get the list of counterparts","tags":["Counterpart"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/counterparts \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/counterparts HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/counterparts\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/counterparts\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/counterparts\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/counterparts\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"post":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.CounterpartsController.create","parameters":[{"description":"The company the counterpart belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartCreate"}}},"description":"Counterpart","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartData"}}},"description":"Counterpart created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"}},"security":[{"authorization":[]}],"summary":"Create a new counterpart","tags":["Counterpart"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/counterparts \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/counterparts HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/counterparts\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/counterparts\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/counterparts\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/counterparts\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/counterparts/{id}":{"get":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.CounterpartsController.show","parameters":[{"description":"The company the counterpart belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The counterpart identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"}},"security":[{"authorization":[]}],"summary":"Get a specific counterpart","tags":["Counterpart"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/counterparts/:counterpart_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/counterparts/:counterpart_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/counterparts/:counterpart_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/counterparts/:counterpart_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/counterparts/:counterpart_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/counterparts/:counterpart_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.CounterpartsController.update","parameters":[{"description":"The company the counterpart belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The counterpart identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartUpdate"}}},"description":"Counterpart","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartData"}}},"description":"Counterpart updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"}},"security":[{"authorization":[]}],"summary":"Update an existing counterpart","tags":["Counterpart"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/counterparts/:counterpart_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/counterparts/:counterpart_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/counterparts/:counterpart_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/counterparts/:counterpart_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/counterparts/:counterpart_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/counterparts/:counterpart_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/document-sectionals":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.DocumentSectionalsController.index","parameters":[{"description":"The company the document sectionals belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `id`, `prefix`, `suffix`, `year`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `created_at`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSectionalList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all document sectionals for the company","tags":["DocumentSectional"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/document-sectionals \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/document-sectionals HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/document-sectionals\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/document-sectionals\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/document-sectionals\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/document-sectionals\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"post":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.DocumentSectionalsController.create","parameters":[{"description":"The company the document sectional belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSectionalCreate"}}},"description":"DocumentSectional","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSectionalData"}}},"description":"Document sectional created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Create a new document sectional","tags":["DocumentSectional"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/document-sectionals \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/document-sectionals HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/document-sectionals\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/document-sectionals\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/document-sectionals\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/document-sectionals\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/document-sectionals/{id}":{"get":{"callbacks":{},"description":"Returns all the information for a specific document sectional from its identifier","operationId":"SibillWeb.Integration.V1.DocumentSectionalsController.show","parameters":[{"description":"The company the document sectional belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document sectional identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSectionalData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a document sectional","tags":["DocumentSectional"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/document-sectionals/:document_sectional_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/document-sectionals/:document_sectional_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.DocumentSectionalsController.update","parameters":[{"description":"The company the document sectional belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document sectional identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSectionalUpdate"}}},"description":"DocumentSectional","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSectionalData"}}},"description":"Document sectional updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Update an existing document sectional","tags":["DocumentSectional"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/document-sectionals/:document_sectional_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/document-sectionals/:document_sectional_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/document-sectionals/:document_sectional_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/documents":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.DocumentsController.index","parameters":[{"description":"The company the documents belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `category`, `counterpart`, `flows`, `subcategory`","in":"query","name":"expand","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `creation_date`, `delivery_date`, `direction`, `status`, `type`, `number`,`counterpart_company_name`, `notes`, `progressive`, `sectional_id`, `source_id`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `created_at`, `creation_date`, `delivery_date`, `number`, `progressive`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all the company's documents","tags":["Document"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/documents \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/documents HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/documents/invoice":{"post":{"callbacks":{},"description":"Create an invoice. By default will be created as draft and not issued.\n\n\nThe request body (that could be <b>application/xml</b> or <b>application/json</b>) represent the <a href='https://www.fatturapa.gov.it/it/norme-e-regole/documentazione-fattura-elettronica/formato-fatturapa/' target='_blank'>Italian Electronic invoice format</a>.\nFor example, if the XML content comes from another system — perhaps as a file — the request body will contain the file's content.\nThe content should represent only one invoice; content with multiple invoices is not supported yet.\n\nThe invoice `numero` is under customer control (i.e. customer must choose it), while the `file name` and the `progressivo invio` are automatically generated by the system.\n","operationId":"SibillWeb.Integration.V1.DocumentsActionsController.create_invoice","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"Issue the invoice after creating it. If true, the invoice is issued. Default value is false. In this case, the invoice is created as a draft and not issued.","in":"query","name":"issue","required":false,"schema":{"type":"boolean"}},{"description":"A unique identifier used to match an invoice with its corresponding transaction. This can be, for example, an ID coming from your collection system (ex. Transaction ID on Stripe or Paypal) that you want to pass when issuing the invoice to be able to reconcile the movement and the invoice automatically","in":"query","name":"reconciliation_identifier","required":false,"schema":{"type":"string"}},{"description":"The sectional identifier to associate with the document","in":"query","name":"sectional_id","required":false,"schema":{"type":"string"}},{"description":"Automatically populate/override invoice number with the next number of `sectional_id`. If `sectional_id` is null, it generates a number without sectional","in":"query","name":"automatic_number","required":false,"schema":{"type":"boolean"}},{"description":"Indicate the original mime type of the resource. It could be <b>application/xml</b> or <b>application/json</b>","in":"header","name":"content-type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}},"application/xml":{"example":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FatturaElettronica xmlns=\"http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2\"\n  xsi:schemaLocation=\"http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2 schema.xsd\"\n  versione=\"FPA12\"\n  SistemaEmittente=\"{L}LapLI{s\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n  <FatturaElettronicaHeader xmlns=\"\">\n    <DatiTrasmissione>\n      <IdTrasmittente>\n        <IdPaese>KO</IdPaese>\n        <IdCodice>string</IdCodice>\n      </IdTrasmittente>\n      <ProgressivoInvio>IIs{{s</ProgressivoInvio>\n      <FormatoTrasmissione>FPA12</FormatoTrasmissione>\n      <CodiceDestinatario>EM1A07</CodiceDestinatario>\n      <ContattiTrasmittente />\n      <PECDestinatario>%+R--}--.#V!=@+?=?yUK?*3A?yj++?+--.Z.*!-=fmuh</PECDestinatario>\n    </DatiTrasmissione>\n    <CedentePrestatore>\n      <DatiAnagrafici>\n        <IdFiscaleIVA>\n          <IdPaese>WX</IdPaese>\n          <IdCodice>string</IdCodice>\n        </IdFiscaleIVA>\n        <Anagrafica>\n          <Nome>BBpuIutaaIScBBII</Nome>\n          <Cognome>a</Cognome>\n        </Anagrafica>\n        <RegimeFiscale>RF01</RegimeFiscale>\n      </DatiAnagrafici>\n      <Sede>\n        <Indirizzo>ea</Indirizzo>\n        <CAP>37675</CAP>\n        <Comune>Lue</Comune>\n        <Nazione>IT</Nazione>\n      </Sede>\n      <StabileOrganizzazione>\n        <Indirizzo>aiu</Indirizzo>\n        <CAP>66435</CAP>\n        <Comune>{ceSaBpiBmep</Comune>\n        <Nazione>IT</Nazione>\n      </StabileOrganizzazione>\n      <IscrizioneREA>\n        <Ufficio>FT</Ufficio>\n        <NumeroREA>tLIa}pp{}apsan]c{]a]</NumeroREA>\n        <StatoLiquidazione>LN</StatoLiquidazione>\n      </IscrizioneREA>\n      <Contatti />\n      <RiferimentoAmministrazione>ns{IiicpaaIip}IiaLa{</RiferimentoAmministrazione>\n    </CedentePrestatore>\n    <RappresentanteFiscale>\n      <DatiAnagrafici>\n        <IdFiscaleIVA>\n          <IdPaese>MK</IdPaese>\n          <IdCodice>string</IdCodice>\n        </IdFiscaleIVA>\n        <Anagrafica>\n          <Denominazione>I{BipIs{a}ap{LucBiu</Denominazione>\n        </Anagrafica>\n      </DatiAnagrafici>\n    </RappresentanteFiscale>\n    <CessionarioCommittente>\n      <DatiAnagrafici>\n        <Anagrafica>\n          <Denominazione>em</Denominazione>\n        </Anagrafica>\n      </DatiAnagrafici>\n      <Sede>\n        <Indirizzo>BmeiSp{eu}eLSL</Indirizzo>\n        <CAP>65255</CAP>\n        <Comune>ippea}ntBSLIu{IBplSce}{SmB}{{{LL</Comune>\n        <Nazione>IT</Nazione>\n      </Sede>\n      <StabileOrganizzazione>\n        <Indirizzo>{B{}eaeniLp{aBlpaa{p{LBLincpLI}{SBc{SeS}}}ae{e</Indirizzo>\n        <CAP>48679</CAP>\n        <Comune>lLtBpa</Comune>\n        <Nazione>IT</Nazione>\n      </StabileOrganizzazione>\n      <RappresentanteFiscale>\n        <IdFiscaleIVA>\n          <IdPaese>ZO</IdPaese>\n          <IdCodice>string</IdCodice>\n        </IdFiscaleIVA>\n        <Denominazione>LBcc}e}aLBcsSLS{BI}aeapcce}n</Denominazione>\n      </RappresentanteFiscale>\n    </CessionarioCommittente>\n    <TerzoIntermediarioOSoggettoEmittente>\n      <DatiAnagrafici>\n        <Anagrafica>\n          <Nome>t}iaScccpa{ieLnSLp}BncieSci{uI{i{pce}cScSSaLBBcpIlSa}Bnpcac</Nome>\n          <Cognome>aaSm}{LI{BBc}i}a{nncms}eelSeBpuiBapi}ciLpLeaci{n}</Cognome>\n        </Anagrafica>\n      </DatiAnagrafici>\n    </TerzoIntermediarioOSoggettoEmittente>\n    <SoggettoEmittente>CC</SoggettoEmittente>\n  </FatturaElettronicaHeader>\n  <FatturaElettronicaBody xmlns=\"\">\n    <DatiGenerali>\n      <DatiGeneraliDocumento>\n        <TipoDocumento>TD16</TipoDocumento>\n        <Divisa>TUL</Divisa>\n        <Data>2017-10-03</Data>\n        <Numero>iniaaB</Numero>\n      </DatiGeneraliDocumento>\n      <DatiOrdineAcquisto>\n        <IdDocumento>Li]ci{pc}iII]</IdDocumento>\n      </DatiOrdineAcquisto>\n      <DatiContratto>\n        <IdDocumento>tp{t}IBippn{}B]</IdDocumento>\n      </DatiContratto>\n      <DatiConvenzione>\n        <IdDocumento>ap]L}BniaLa{pcn</IdDocumento>\n      </DatiConvenzione>\n      <DatiRicezione>\n        <IdDocumento>ccILstLB</IdDocumento>\n      </DatiRicezione>\n      <DatiFattureCollegate>\n        <IdDocumento>I}Ip{tpa]]ac]IL}pBsn</IdDocumento>\n      </DatiFattureCollegate>\n      <DatiSAL>\n        <RiferimentoFase>361</RiferimentoFase>\n      </DatiSAL>\n      <DatiDDT>\n        <NumeroDDT>sBi}nat</NumeroDDT>\n        <DataDDT>1972-12-17</DataDDT>\n      </DatiDDT>\n      <DatiTrasporto />\n      <FatturaPrincipale>\n        <NumeroFatturaPrincipale>{]nppLpiB</NumeroFatturaPrincipale>\n        <DataFatturaPrincipale>1970-08-14</DataFatturaPrincipale>\n      </FatturaPrincipale>\n    </DatiGenerali>\n    <DatiBeniServizi>\n      <DettaglioLinee>\n        <NumeroLinea>8284</NumeroLinea>\n        <Descrizione>n</Descrizione>\n        <PrezzoUnitario>1369450.2349058</PrezzoUnitario>\n        <PrezzoTotale>-805869.765094196</PrezzoTotale>\n        <AliquotaIVA>4402260</AliquotaIVA>\n      </DettaglioLinee>\n      <DatiRiepilogo>\n        <AliquotaIVA>3148340</AliquotaIVA>\n        <ImponibileImporto>4413100.2349058</ImponibileImporto>\n        <Imposta>3371250.2349058</Imposta>\n      </DatiRiepilogo>\n    </DatiBeniServizi>\n    <DatiVeicoli>\n      <Data>2012-11-25</Data>\n      <TotalePercorso>}BtL{L</TotalePercorso>\n    </DatiVeicoli>\n    <DatiPagamento>\n      <CondizioniPagamento>TP01</CondizioniPagamento>\n      <DettaglioPagamento>\n        <ModalitaPagamento>MP17</ModalitaPagamento>\n        <ImportoPagamento>-3583049.7650942</ImportoPagamento>\n      </DettaglioPagamento>\n    </DatiPagamento>\n    <Allegati>\n      <NomeAttachment>pel</NomeAttachment>\n      <AlgoritmoCompressione>pctaaL}LIa</AlgoritmoCompressione>\n      <FormatoAttachment>{cIsIpaIIi</FormatoAttachment>\n      <DescrizioneAttachment>SsLcp</DescrizioneAttachment>\n      <Attachment>YTM0NZomIzI2OTsmIzM0NTueYQ==</Attachment>\n    </Allegati>\n  </FatturaElettronicaBody>\n  <FatturaElettronicaBody xmlns=\"\">\n    <DatiGenerali>\n      <DatiGeneraliDocumento>\n        <TipoDocumento>TD05</TipoDocumento>\n        <Divisa>MWH</Divisa>\n        <Data>1996-10-28</Data>\n        <Numero>aBt{i}{tiIptpnac]</Numero>\n      </DatiGeneraliDocumento>\n      <DatiOrdineAcquisto>\n        <IdDocumento>{cnIpc}i]Is]c</IdDocumento>\n      </DatiOrdineAcquisto>\n      <DatiContratto>\n        <IdDocumento>n]i}</IdDocumento>\n      </DatiContratto>\n      <DatiConvenzione>\n        <IdDocumento>]a}I}}c}aa</IdDocumento>\n      </DatiConvenzione>\n      <DatiRicezione>\n        <IdDocumento>a{}s}</IdDocumento>\n      </DatiRicezione>\n      <DatiFattureCollegate>\n        <IdDocumento>ct}LI</IdDocumento>\n      </DatiFattureCollegate>\n      <DatiSAL>\n        <RiferimentoFase>369</RiferimentoFase>\n      </DatiSAL>\n      <DatiDDT>\n        <NumeroDDT>Ban</NumeroDDT>\n        <DataDDT>1972-11-14</DataDDT>\n      </DatiDDT>\n      <DatiTrasporto />\n      <FatturaPrincipale>\n        <NumeroFatturaPrincipale>t}{i}napBic</NumeroFatturaPrincipale>\n        <DataFatturaPrincipale>2016-12-16</DataFatturaPrincipale>\n      </FatturaPrincipale>\n    </DatiGenerali>\n    <DatiBeniServizi>\n      <DettaglioLinee>\n        <NumeroLinea>2867</NumeroLinea>\n        <Descrizione>pL</Descrizione>\n        <PrezzoUnitario>-2058329.7650942</PrezzoUnitario>\n        <PrezzoTotale>3961400.2349058</PrezzoTotale>\n        <AliquotaIVA>-1219789.7650942</AliquotaIVA>\n      </DettaglioLinee>\n      <DatiRiepilogo>\n        <AliquotaIVA>2690430</AliquotaIVA>\n        <ImponibileImporto>-4257529.7650942</ImponibileImporto>\n        <Imposta>2794280.2349058</Imposta>\n      </DatiRiepilogo>\n    </DatiBeniServizi>\n    <DatiVeicoli>\n      <Data>1996-12-06</Data>\n      <TotalePercorso>aBcpcBLtc{tBi}s</TotalePercorso>\n    </DatiVeicoli>\n    <DatiPagamento>\n      <CondizioniPagamento>TP03</CondizioniPagamento>\n      <DettaglioPagamento>\n        <ModalitaPagamento>MP18</ModalitaPagamento>\n        <ImportoPagamento>-4401059.7650942</ImportoPagamento>\n      </DettaglioPagamento>\n    </DatiPagamento>\n    <Allegati>\n      <NomeAttachment>t}ae</NomeAttachment>\n      <AlgoritmoCompressione>snn}Bt}n{</AlgoritmoCompressione>\n      <FormatoAttachment>iLBnsnLanc</FormatoAttachment>\n      <DescrizioneAttachment>}spLLILSeSaBlSLiiiinSIc}ptBI{SccasstI</DescrizioneAttachment>\n      <Attachment>YTM0NZomIzI2OTsmIzM0NTueYQ==</Attachment>\n    </Allegati>\n  </FatturaElettronicaBody>\n  <FatturaElettronicaBody xmlns=\"\">\n    <DatiGenerali>\n      <DatiGeneraliDocumento>\n        <TipoDocumento>TD18</TipoDocumento>\n        <Divisa>FAB</Divisa>\n        <Data>1970-08-27</Data>\n        <Numero>snpan{acB]aantB</Numero>\n      </DatiGeneraliDocumento>\n      <DatiOrdineAcquisto>\n        <IdDocumento>s</IdDocumento>\n      </DatiOrdineAcquisto>\n      <DatiContratto>\n        <IdDocumento>B</IdDocumento>\n      </DatiContratto>\n      <DatiConvenzione>\n        <IdDocumento>InIasi]p]a</IdDocumento>\n      </DatiConvenzione>\n      <DatiRicezione>\n        <IdDocumento>{capBc</IdDocumento>\n      </DatiRicezione>\n      <DatiFattureCollegate>\n        <IdDocumento>pIL]}tLL}n]B}n]iBtLc</IdDocumento>\n      </DatiFattureCollegate>\n      <DatiSAL>\n        <RiferimentoFase>519</RiferimentoFase>\n      </DatiSAL>\n      <DatiDDT>\n        <NumeroDDT>BnLc{ni</NumeroDDT>\n        <DataDDT>1973-11-05</DataDDT>\n      </DatiDDT>\n      <DatiTrasporto />\n      <FatturaPrincipale>\n        <NumeroFatturaPrincipale>L</NumeroFatturaPrincipale>\n        <DataFatturaPrincipale>1991-11-06</DataFatturaPrincipale>\n      </FatturaPrincipale>\n    </DatiGenerali>\n    <DatiBeniServizi>\n      <DettaglioLinee>\n        <NumeroLinea>8217</NumeroLinea>\n        <Descrizione>I{SlLceItci</Descrizione>\n        <PrezzoUnitario>-3196579.7650942</PrezzoUnitario>\n        <PrezzoTotale>-2138439.7650942</PrezzoTotale>\n        <AliquotaIVA>-869189.765094196</AliquotaIVA>\n      </DettaglioLinee>\n      <DatiRiepilogo>\n        <AliquotaIVA>1031150</AliquotaIVA>\n        <ImponibileImporto>-3900039.7650942</ImponibileImporto>\n        <Imposta>1213930.2349058</Imposta>\n      </DatiRiepilogo>\n    </DatiBeniServizi>\n    <DatiVeicoli>\n      <Data>1981-10-23</Data>\n      <TotalePercorso>I}pptsL}{I</TotalePercorso>\n    </DatiVeicoli>\n    <DatiPagamento>\n      <CondizioniPagamento>TP02</CondizioniPagamento>\n      <DettaglioPagamento>\n        <ModalitaPagamento>MP08</ModalitaPagamento>\n        <ImportoPagamento>1109440.2349058</ImportoPagamento>\n      </DettaglioPagamento>\n    </DatiPagamento>\n    <Allegati>\n      <NomeAttachment>Bpl{BeL{tmIaeIStaic{pe}Bec{Ic}</NomeAttachment>\n      <AlgoritmoCompressione>IB</AlgoritmoCompressione>\n      <FormatoAttachment>nnn}}IBic}</FormatoAttachment>\n      <DescrizioneAttachment>}e</DescrizioneAttachment>\n      <Attachment>YTM0NZomIzI2OTsmIzM0NTueYQ==</Attachment>\n    </Allegati>\n  </FatturaElettronicaBody>\n</FatturaElettronica>","schema":{"$ref":"#/components/schemas/Invoice"}}},"description":"The user attributes","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentIssuedList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Create an invoice and issue it","tags":["Document"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/invoice?issue=:issue \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/xml\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/documents/invoice?issue=:issue HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/xml\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/invoice?issue=:issue\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/xml\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/invoice?issue=:issue\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/xml\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/invoice?issue=:issue\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/xml\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/invoice?issue=:issue\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/xml\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/documents/{document_id}/flows":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.FlowsController.index","parameters":[{"description":"The company the flows belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"document_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowList"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get the list of flows for the given document","tags":["Flow"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/flows \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/documents/:document_id/flows HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id/flows\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id/flows\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"post":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.FlowsController.create","parameters":[{"description":"The company the flow belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"document_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowCreate"}}},"description":"Flow","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowData"}}},"description":"Flow created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"}},"security":[{"authorization":[]}],"summary":"Create a new flow for the given document","tags":["Flow"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/flows \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/documents/:document_id/flows HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id/flows\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id/flows\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/documents/{document_id}/flows/{id}":{"delete":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.FlowsController.delete","parameters":[{"description":"The company the flow belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"document_id","required":true,"schema":{"type":"string"}},{"description":"The flow identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Flow delete response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Delete a flow for the given document","tags":["Flow"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request DELETE \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"DELETE /api/v1/companies/:company_id/documents/:document_id/flows/:flow_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.delete(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .DELETE()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"get":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.FlowsController.show","parameters":[{"description":"The company the flow belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"document_id","required":true,"schema":{"type":"string"}},{"description":"The flow identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a specific flow for the document","tags":["Flow"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/documents/:document_id/flows/:flow_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.FlowsController.update","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"document_id","required":true,"schema":{"type":"string"}},{"description":"The flow identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowUpdate"}}},"description":"Flow","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowData"}}},"description":"Flow updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Update an existing flow","tags":["Flow"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/documents/:document_id/flows/:flow_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/documents/{document_id}/invoice":{"get":{"callbacks":{},"description":"Retrieve a specific document invoice along with a signed url to the xml representation of the invoice.\nThe signed url provides a secure and temporary access to the xml data.\n","operationId":"SibillWeb.Integration.V1.DocumentsActionsController.get_invoice","parameters":[{"description":"The company the document invoice belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"document_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceData"}}},"description":"Document invoice response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a document invoice by its identifier","tags":["Document"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/invoice \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/documents/:document_id/invoice HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id/invoice\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id/invoice\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id/invoice\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id/invoice\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/documents/{document_id}/share-invoice":{"post":{"callbacks":{},"description":"Send an invoice courtesy copy through email to some recipient provided in the request body.\n\nThe email will contain a link to the actual invoice and maybe contain a personalized body and subject.\nIf these are not provided, the email will contain a default body and subject.\n\nIf the response is successful, the email will be sent to the recipient but we do not guarantee that the email will be delivered successfully.\nThe success of the response means that the system has accepted the request and will attempt to send the email.\n","operationId":"SibillWeb.Integration.V1.DocumentsActionsController.share_invoice","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"document_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendInvoiceData"}}},"description":"Request","required":false},"responses":{"200":{"content":{"application/json":{}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Send an invoice courtesy copy through email","tags":["Document"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/share-invoice \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/documents/:document_id/share-invoice HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id/share-invoice\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id/share-invoice\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id/share-invoice\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id/share-invoice\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/documents/{id}":{"delete":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.DocumentsController.delete","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Document delete response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Delete an existing document","tags":["Document"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request DELETE \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"DELETE /api/v1/companies/:company_id/documents/:document_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.delete(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .DELETE()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"get":{"callbacks":{},"description":"Returns all the information for a specific document from its identifier","operationId":"SibillWeb.Integration.V1.DocumentsController.show","parameters":[{"description":"The company the document belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `category`, `counterpart`, `flows`, `sectional`, `subcategory`","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a document","tags":["Document"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/documents/:document_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.DocumentsController.update","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The document identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `category`, `counterpart`, `flows`, `subcategory`","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdate"}}},"description":"Document","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentData"}}},"description":"Document updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Update an existing document","tags":["Document"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/documents/:document_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/documents/:document_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/documents/:document_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/documents/:document_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/documents/:document_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/documents/:document_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/products":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.ProductsController.index","parameters":[{"description":"The company the products belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `code`, `description`, `search`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `code`, `description`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get the list of products","tags":["Product"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/products \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/products HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/products\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/products\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/products\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/products\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"post":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.ProductsController.create","parameters":[{"description":"The company the product belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductCreate"}}},"description":"Product","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductData"}}},"description":"Product created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Create a new product","tags":["Product"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/products \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/products HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/products\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/products\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/products\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/products\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/products/{id}":{"delete":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.ProductsController.delete","parameters":[{"description":"The company the product belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The product identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Product deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Delete a product","tags":["Product"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request DELETE \\\n     --url ${base_url}/api/v1/companies/:company_id/products/:product_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"DELETE /api/v1/companies/:company_id/products/:product_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/products/:product_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.delete(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/products/:product_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/products/:product_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .DELETE()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/products/:product_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"get":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.ProductsController.show","parameters":[{"description":"The company the product belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The product identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a specific product","tags":["Product"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/products/:product_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/products/:product_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/products/:product_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/products/:product_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/products/:product_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/products/:product_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.ProductsController.update","parameters":[{"description":"The company the product belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The product identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductUpdate"}}},"description":"Product","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductData"}}},"description":"Product updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Update an existing product","tags":["Product"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/products/:product_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/products/:product_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/products/:product_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/products/:product_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/products/:product_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/products/:product_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/reconciliations":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.ReconciliationsController.index","parameters":[{"description":"The company the reconciliations belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `flow`, `transaction`, `transaction.category`, `transaction.subcategory`","in":"query","name":"expand","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `transaction_id`, `flow_id`, `created_at`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `created_at`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all the company's reconciliations","tags":["Reconciliation"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/reconciliations \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/reconciliations HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/reconciliations\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/reconciliations\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/reconciliations\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/reconciliations\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"post":{"callbacks":{},"description":"Create a new reconciliation between a flow and a bank transaction.\n","operationId":"SibillWeb.Integration.V1.ReconciliationsController.create","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `flow`, `transaction`, `transaction.category`, `transaction.subcategory`","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationCreate"}}},"description":"Reconciliation","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationData"}}},"description":"Reconciliation created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Create a new reconciliation","tags":["Reconciliation"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/reconciliations \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/reconciliations HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/reconciliations\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/reconciliations\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/reconciliations\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/reconciliations\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/reconciliations/{id}":{"delete":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.ReconciliationsController.delete","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The reconciliation identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Reconciliation delete response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Delete an existing reconciliation","tags":["Reconciliation"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request DELETE \\\n     --url ${base_url}/api/v1/companies/:company_id/reconciliations/:id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"DELETE /api/v1/companies/:company_id/reconciliations/:id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/reconciliations/:id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.delete(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/reconciliations/:id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/reconciliations/:id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .DELETE()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/reconciliations/:id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"get":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.ReconciliationsController.show","parameters":[{"description":"The company the reconciliation belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The reconciliation identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `flow`, `transaction`, `transaction.category`, `transaction.subcategory`","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a specific reconciliation","tags":["Reconciliation"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/reconciliations/:id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/reconciliations/:id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/reconciliations/:id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/reconciliations/:id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/reconciliations/:id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/reconciliations/:id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/requests/f24/ocr":{"post":{"callbacks":{},"description":"Upload a raw F24 PDF for asynchronous OCR processing.\n\nThe PDF is stored in S3 under a company-scoped path and an `F24Upload`\nrecord is created with status `WAITING_OCR`. The response contains a\n`request_id` that uniquely identifies the processing job — use it to\ncorrelate the OCR result delivered later via webhook.\n\nThe request body must be the raw binary content of the PDF file with\n`Content-Type: application/pdf`. The `file_name` query parameter is\nrequired and should reflect the original file name; `label` is optional\nand can be used to attach a human-readable description to the upload.\n\nRequires the `*` wildcard permission or the `payments:f24:write` permission.\n","operationId":"SibillWeb.Integration.V1.RequestsController.f24_ocr","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"User-provided file_name for the operation","in":"query","name":"file_name","required":true,"schema":{"type":"string"}},{"description":"User-provided label for the operation","in":"query","name":"label","required":true,"schema":{"type":"string"}},{"description":"Indicate the original mime type of the resource. It could be <b>application/pdf</b>","in":"header","name":"content-type","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/pdf":{"schema":{"format":"binary","type":"object"}}},"description":"PDF file","required":false},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"request_id":{"type":"string"}},"required":["request_id"],"type":"object"}}},"description":"OCR request accepted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Submit an F24 PDF for OCR processing","tags":["Payment"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/requests/f24/ocr?file_name=:file_name&label=:label \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/pdf\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/requests/f24/ocr?file_name=:file_name&label=:label HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/pdf\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/requests/f24/ocr?file_name=:file_name&label=:label\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/pdf\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/requests/f24/ocr?file_name=:file_name&label=:label\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/pdf\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/requests/f24/ocr?file_name=:file_name&label=:label\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/pdf\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/requests/f24/ocr?file_name=:file_name&label=:label\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/pdf\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/subcategories":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.SubcategoriesController.index","parameters":[{"description":"The company the subcategories belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `id`, `category_id`, `name`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `category_id`, `name`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubcategoryList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all subcategories for the company","tags":["Subcategory"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/subcategories \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/subcategories HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/subcategories\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/subcategories\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/subcategories\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/subcategories\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"post":{"callbacks":{},"description":"Creates a new subcategory under a parent category. The parent category must\nbelong to the same company; otherwise the request returns `404 Not Found`.\n","operationId":"SibillWeb.Integration.V1.SubcategoriesController.create","parameters":[{"description":"The company the subcategory belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubcategoryCreate"}}},"description":"Subcategory","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubcategoryData"}}},"description":"Subcategory created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Create a new subcategory","tags":["Subcategory"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request POST \\\n     --url ${base_url}/api/v1/companies/:company_id/subcategories \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"POST /api/v1/companies/:company_id/subcategories HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/subcategories\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.post(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/subcategories\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.post(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/subcategories\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .POST(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/subcategories\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/subcategories/{id}":{"delete":{"callbacks":{},"description":"Deletes the subcategory and clears its reference from associated transactions.\n","operationId":"SibillWeb.Integration.V1.SubcategoriesController.delete","parameters":[{"description":"The company the subcategory belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The subcategory identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"application/json":{}},"description":"Subcategory deleted"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Delete a subcategory","tags":["Subcategory"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request DELETE \\\n     --url ${base_url}/api/v1/companies/:company_id/subcategories/:subcategory_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"DELETE /api/v1/companies/:company_id/subcategories/:subcategory_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/subcategories/:subcategory_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.delete(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/subcategories/:subcategory_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.delete(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/subcategories/:subcategory_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .DELETE()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/subcategories/:subcategory_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"get":{"callbacks":{},"description":"Returns all the information for a specific subcategory from its identifier","operationId":"SibillWeb.Integration.V1.SubcategoriesController.show","parameters":[{"description":"The company the subcategory belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The subcategory identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubcategoryData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a subcategory","tags":["Subcategory"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/subcategories/:subcategory_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/subcategories/:subcategory_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/subcategories/:subcategory_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/subcategories/:subcategory_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/subcategories/:subcategory_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/subcategories/:subcategory_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.SubcategoriesController.update","parameters":[{"description":"The company the subcategory belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The subcategory identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubcategoryUpdate"}}},"description":"Subcategory","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubcategoryData"}}},"description":"Subcategory updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Update an existing subcategory","tags":["Subcategory"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/subcategories/:subcategory_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/subcategories/:subcategory_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/subcategories/:subcategory_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/subcategories/:subcategory_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/subcategories/:subcategory_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/subcategories/:subcategory_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/transactions":{"get":{"callbacks":{},"description":"The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page.\nA cursor is needed to traverse the results.\n","operationId":"SibillWeb.Integration.V1.TransactionsController.index","parameters":[{"description":"The company the transactions belong to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}},{"description":"The pagination cursor. A cursor is used to paginate through a large set of data.\nIt is a unique identifier that represents a specific position in the dataset.\n","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `category`, `subcategory`, `reconciliations`, `reconciliations.flow`","in":"query","name":"expand","required":false,"schema":{"type":"string"}},{"description":"List of filters on the resource. Currently the fields that allow to be filtered are: `account_id`, `booking_date_time`, `clean_description`, `counterpart_name`, `date`, `type`","in":"query","name":"filter","required":false,"schema":{"type":"object"}},{"description":"Fields for which we can order the results. Sortable fields: `amount`, `created_at`, `date`","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionList"}}},"description":"Ok"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"List all transactions for the company","tags":["Transaction"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/transactions \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/transactions HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/transactions\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/transactions\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/transactions\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/transactions\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/companies/{company_id}/transactions/{id}":{"get":{"callbacks":{},"description":"Returns all the information for a specific transaction from its identifier","operationId":"SibillWeb.Integration.V1.TransactionsController.show","parameters":[{"description":"The company the transaction belongs to","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The transaction identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `category`, `subcategory`, `reconciliations`, `reconciliations.flow`","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Get a transaction","tags":["Transaction"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/companies/:company_id/transactions/:transaction_id \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/companies/:company_id/transactions/:transaction_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/transactions/:transaction_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/transactions/:transaction_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/transactions/:transaction_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/transactions/:transaction_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]},"patch":{"callbacks":{},"operationId":"SibillWeb.Integration.V1.TransactionsController.update","parameters":[{"description":"The company where to execute the operation","in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"description":"The transaction identifier","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Fields that will be expanded. Expandable fields: `category`, `subcategory`, `reconciliations`, `reconciliations.flow`","in":"query","name":"expand","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionUpdate"}}},"description":"Transaction","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionData"}}},"description":"Transaction updated"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unprocessable Entity"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Update an existing transaction","tags":["Transaction"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request PATCH \\\n     --url ${base_url}/api/v1/companies/:company_id/transactions/:transaction_id \\\n     --header \"Authorization: Bearer ${authorization_token}\" \\\n     --header \"Content-Type: application/json\" \\\n     --data '${your payload here}'\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"PATCH /api/v1/companies/:company_id/transactions/:transaction_id HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\nContent-Type: application/json\n${your payload here}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/companies/:company_id/transactions/:transaction_id\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}, {\"Content-Type\", \"application/json\"}]\npayload = ${your payload here}\n\nReq.patch(url, headers: headers, body: payload)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/companies/:company_id/transactions/:transaction_id\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\", \"Content-Type\": \"application/json\"}\npayload = ${your payload here}\n\nresponse = requests.patch(url, headers=headers, json=payload)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/companies/:company_id/transactions/:transaction_id\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .header(\"Content-Type\", \"application/json\")\n  .PATCH(HttpRequest.BodyPublishers.ofString(${your payload here}))\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/companies/:company_id/transactions/:transaction_id\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PATCH\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\",\n    \"Content-Type: application/json\"\n]);\ncurl_setopt($ch, CURLOPT_POSTFIELDS, <<<BODY\n${your payload here}\nBODY\n);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}},"/api/v1/counterparts/search":{"get":{"callbacks":{},"description":"Search for counterpart information from a third-party system.\n","operationId":"SibillWeb.Integration.V1.CounterpartsActionsController.search","parameters":[{"description":"The VAT number of the counterpart to search","in":"query","name":"vat_number","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CounterpartSearchData"}}},"description":"Ok"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Not found"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Too Many Requests"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationError"}}},"description":"Internal Server Error"}},"security":[{"authorization":[]}],"summary":"Search counterpart informations","tags":["Counterpart"],"x-codeSamples":[{"label":"⚡ cURL","lang":"Shell","source":"base_url=\"http://example.com\" # Replace with the correct Sibill integration API host\n\ncurl --request GET \\\n     --url ${base_url}/api/v1/counterparts/search \\\n     --header \"Authorization: Bearer ${authorization_token}\"\n"},{"label":"🌐 HTTP","lang":"HTTP","source":"GET /api/v1/counterparts/search HTTP/1.1\nHost: example.com # Replace with the correct Sibill integration API host\nAuthorization: Bearer ${authorization_token}\n"},{"label":"💜 Elixir","lang":"Elixir","source":"Mix.install([:req])\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url <> \"/api/v1/counterparts/search\"\nheaders = [{\"Authorization\", \"Bearer ${authorization_token}\"}]\n\nReq.get(url, headers: headers)\n"},{"label":"🐍 Python","lang":"Python","source":"import requests\n\nbase_url = \"http://example.com\" # Replace with the correct Sibill integration API host\nurl = base_url + \"/api/v1/counterparts/search\"\nheaders = {\"Authorization\": \"Bearer ${authorization_token}\"}\n\nresponse = requests.get(url, headers=headers)\nprint(response.text)\n"},{"label":"☕ Java","lang":"Java","source":"import java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\nimport java.net.URI;\n\nString base_url = \"http://example.com\"; // Replace with the correct Sibill integration API host\nString url = base_url + \"/api/v1/counterparts/search\";\n\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n  .uri(URI.create(url))\n  .header(\"Authorization\", \"Bearer ${authorization_token}\")\n  .GET()\n  .build();\n\nHttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.body());\n"},{"label":"🐘 PHP","lang":"PHP","source":"<?php\n\n$url = \"http://example.com/api/v1/counterparts/search\"; // Replace with the correct Sibill integration API host\n\n$ch = curl_init($url);\n\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"GET\");\n\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer ${authorization_token}\"\n]);\n\n$response = curl_exec($ch);\n\nif (curl_errno($ch)) {\n    echo 'Curl error: ' . curl_error($ch);\n} else {\n    echo 'Response:' . PHP_EOL;\n    echo $response;\n}\n\ncurl_close($ch);\n"}]}}},"security":[],"servers":[{"url":"https://integration.sibill.com","variables":{}}],"tags":[{"description":"The Sibill API is organized around REST. Our API has predictable resource-oriented URLs, accepts multiple encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.\n\n<b>Authentication</b>\n\nThe Sibill API uses API keys to authenticate requests.\nYour API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.\nAll API requests must be made over HTTPS. API requests without authentication will fail.\n\n<b>Errors</b>\n\nSibill uses conventional HTTP response codes to indicate the success or failure of an API request.\nIn general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.). Codes in the 5xx range indicate an error with Sibill’s servers.\nSome 4xx errors that could be handled programmatically (e.g., an invoice is declined) include an error code that briefly explains the error reported.\n\n<table>\n    <thead>\n        <tr>\n            <th>HTTP Status Code</th>\n            <th>Meaning</th>\n            <th>Description</th>\n        </tr>\n    </thead>\n    <tbody>\n        <tr>\n            <td>200</td>\n            <td>OK</td>\n            <td>Everything worked as expected.</td>\n        </tr>\n        <tr>\n            <td>400</td>\n            <td>Bad Request</td>\n            <td>The request was unacceptable, often due to missing a required parameter.</td>\n        </tr>\n        <tr>\n            <td>401</td>\n            <td>Unauthorized</td>\n            <td>No valid API key provided.</td>\n        </tr>\n        <tr>\n            <td>402</td>\n            <td>Request Failed</td>\n            <td>The parameters were valid but the request failed.</td>\n        </tr>\n        <tr>\n            <td>403</td>\n            <td>Forbidden</td>\n            <td>The API key doesn’t have permissions to perform the request.</td>\n        </tr>\n        <tr>\n            <td>404</td>\n            <td>Not Found</td>\n            <td>The requested resource doesn’t exist.</td>\n        </tr>\n        <tr>\n            <td>422</td>\n            <td>Unprocessable entity</td>\n            <td>The server understood the content type of the request content, and the syntax of the request content was correct, but it was unable to process the contained instructions.</td>\n        </tr>\n        <tr>\n            <td>429</td>\n            <td>Too Many Requests</td>\n            <td>The client has sent too many requests in a given amount of time. This mechanism of asking the client to slow down the rate of requests, that is of 10 requests per second.</td>\n        </tr>\n        <tr>\n            <td>500, 502, 503, 504</td>\n            <td>Server Errors</td>\n            <td>Something went wrong on Sibill’s end.</td>\n        </tr>\n    </tbody>\n</table>\n\n<b>Environments</b>\n\nThere are two available environments: <b>Development</b> and <b>Production</b>. The <b>base_url</b> will change depending on the selected environment:\n- <b>Development</b>: https://integration.dev.sibill.com\n- <b>Production</b>: https://integration.sibill.com\n","name":"API reference"}]}