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.
Authentication
The Sibill API uses API keys to authenticate requests. Your 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. All API requests must be made over HTTPS. API requests without authentication will fail.
Errors
Sibill uses conventional HTTP response codes to indicate the success or failure of an API request. In 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. Some 4xx errors that could be handled programmatically (e.g., an invoice is declined) include an error code that briefly explains the error reported.
HTTP Status Code | Meaning | Description |
---|---|---|
200 | OK | Everything worked as expected. |
400 | Bad Request | The request was unacceptable, often due to missing a required parameter. |
401 | Unauthorized | No valid API key provided. |
402 | Request Failed | The parameters were valid but the request failed. |
403 | Forbidden | The API key doesn’t have permissions to perform the request. |
404 | Not Found | The requested resource doesn’t exist. |
500, 502, 503, 504 | Server Errors | Something went wrong on Sibill’s end. |
Environments
There are two available environments: Development and Production. The base_url will change depending on the selected environment:
Triggered when a Document has successfully been updated.
company_id required | string <uuid> Company identifier |
required | object (DocumentSchema) Document data representation |
id required | string <uuid> The id of the event |
event required | string Value: "document.updated" The type of the event that happend to the resource |
{- "company_id": "b2e6a1c3-1a5e-44ae-a8fd-81f76fd715cf",
- "data": {
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "counterpart": {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "destination_code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "creation_date": "2019-08-24",
- "delivery_date": "string",
- "delivery_status": "string",
- "direction": "ISSUED",
- "file_name": "string",
- "flows": [
- {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
], - "format": "FPA12",
- "gross_amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_e_invoice": true,
- "number": "string",
- "status": "DRAFT",
- "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "type": "BILL",
- "updated_at": "2019-08-24T14:15:22Z",
- "vat_amount": {
- "amount": "12.3",
- "currency": "EUR"
}
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "event": "document.updated"
}
List all the companies for the current integrator
expand | string Fields that will be expanded. Expandable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "country": "string",
- "fiscal_regime": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "subscriptions": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "status": "TRIAL"
}
], - "vat_number": "string"
}
]
}
The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page. A cursor is needed to traverse the results.
company_id required | string The company the accounts belong to |
page_size | integer The page size |
cursor | string The pagination cursor. A cursor is used to paginate through a large set of data. It is a unique identifier that represents a specific position in the dataset. |
filter | object List of filters on the resource. Currently the fields that allow to be filtered are: |
sort | string Fields for which we can order the results. Sortable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/accounts \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "available_balance": {
- "amount": "12.3",
- "currency": "EUR"
}, - "balance_date": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "credit_limit": {
- "amount": "12.3",
- "currency": "EUR"
}, - "currency": "AED",
- "current_balance": {
- "amount": "12.3",
- "currency": "EUR"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nickname": "string"
}
], - "page": {
- "cursor": "string",
- "size": 0
}
}
Returns all the information for a specific account from its identifier
company_id required | string The company the account belongs to |
id required | string The account identifier |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/accounts/:account_id \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "available_balance": {
- "amount": "12.3",
- "currency": "EUR"
}, - "balance_date": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "credit_limit": {
- "amount": "12.3",
- "currency": "EUR"
}, - "currency": "AED",
- "current_balance": {
- "amount": "12.3",
- "currency": "EUR"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "nickname": "string"
}
}
The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page. A cursor is needed to traverse the results.
company_id required | string The company the categories belong to |
page_size | integer The page size |
cursor | string The pagination cursor. A cursor is used to paginate through a large set of data. It is a unique identifier that represents a specific position in the dataset. |
filter | object List of filters on the resource. Currently the fields that allow to be filtered are: |
sort | string Fields for which we can order the results. Sortable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/categories \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
], - "page": {
- "cursor": "string",
- "size": 0
}
}
Returns all the information for a specific category from its identifier
company_id required | string The company the category belongs to |
id required | string The category identifier |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/categories/:category_id \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}
}
The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page. A cursor is needed to traverse the results.
company_id required | string The company the counterparts belongs to |
page_size | integer The page size |
cursor | string The pagination cursor. A cursor is used to paginate through a large set of data. It is a unique identifier that represents a specific position in the dataset. |
filter | object List of filters on the resource. Currently the fields that allow to be filtered are: |
sort | string Fields for which we can order the results. Sortable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/counterparts \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "destination_code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}
], - "page": {
- "cursor": "string",
- "size": 0
}
}
company_id required | string The company the counterpart belongs to |
id required | string The counterpart identifier |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/counterparts/:counterpart_id \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "destination_code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}
}
Search for counterpart information from a third-party system.
vat_number required | string The VAT number of the counterpart to search |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/counterparts/search \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}
}
The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page. A cursor is needed to traverse the results.
company_id required | string The company the documents belong to |
page_size | integer The page size |
cursor | string The pagination cursor. A cursor is used to paginate through a large set of data. It is a unique identifier that represents a specific position in the dataset. |
expand | string Fields that will be expanded. Expandable fields: |
filter | object List of filters on the resource. Currently the fields that allow to be filtered are: |
sort | string Fields for which we can order the results. Sortable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/documents \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "counterpart": {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "destination_code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "creation_date": "2019-08-24",
- "delivery_date": "string",
- "delivery_status": "string",
- "direction": "ISSUED",
- "file_name": "string",
- "flows": [
- {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
], - "format": "FPA12",
- "gross_amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_e_invoice": true,
- "number": "string",
- "status": "DRAFT",
- "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "type": "BILL",
- "updated_at": "2019-08-24T14:15:22Z",
- "vat_amount": {
- "amount": "12.3",
- "currency": "EUR"
}
}
], - "page": {
- "cursor": "string",
- "size": 0
}
}
Create an invoice. By default will be created as draft and not issued.
The request body (that could be application/xml or application/json) represent the Italian Electronic invoice format. For example, if the XML content comes from another system — perhaps as a file — the request body will contain the file's content. The content should represent only one invoice; content with multiple invoices is not supported yet.
The 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.
company_id required | string The company where to execute the operation |
issue | boolean 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. |
reconciliation_identifier | string 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 |
content-type required | string Indicate the original mime type of the resource. It could be application/xml or application/json |
The user attributes
Array of objects (Body) | |
object | |
namespace | string |
sistema_emittente | string |
versione | string Enum: "FPA12" "FPR12" |
{- "fattura_elettronica_body": [
- {
- "allegati": [
- {
- "algoritmo_compressione": "string",
- "attachment": "string",
- "descrizione_attachment": "string",
- "formato_attachment": "string",
- "nome_attachment": "string"
}
], - "dati_beni_servizi": {
- "dati_riepilogo": [
- {
- "aliquota_iva": "string",
- "arrotondamento": "string",
- "esigibilita_iva": "string",
- "imponibile_importo": "string",
- "imposta": "string",
- "natura": "N1",
- "riferimento_normativo": "string",
- "spese_accessorie": "string"
}
], - "dettaglio_linee": [
- {
- "aliquota_iva": "string",
- "altri_dati_gestionali": [
- {
- "riferimento_data": "string",
- "riferimento_numero": "string",
- "riferimento_testo": "string",
- "tipo_dato": "string"
}
], - "codice_articolo": [
- {
- "codice_tipo": "string",
- "codice_valore": "string"
}
], - "data_fine_periodo": "string",
- "data_inizio_periodo": "string",
- "descrizione": "string",
- "natura": "N1",
- "numero_linea": "string",
- "prezzo_totale": "string",
- "prezzo_unitario": "string",
- "quantita": "string",
- "riferimento_amministrazione": "string",
- "ritenuta": "string",
- "sconto_maggiorazione": [
- {
- "importo": "string",
- "percentuale": "string",
- "tipo": "string"
}
], - "tipo_cessione_prestazione": "SC",
- "unita_misura": "string"
}
]
}, - "dati_generali": {
- "dati_contratto": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_convenzione": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_ddt": [
- {
- "data_ddt": "string",
- "numero_ddt": "string",
- "riferimento_numero_linea": [
- "string"
]
}
], - "dati_fatture_collegate": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_generali_documento": {
- "arrotondamento": "string",
- "art_73": "SI",
- "causale": [
- "string"
], - "data": "string",
- "dati_bollo": {
- "bollo_virtuale": "string",
- "importo_bollo": "string"
}, - "dati_cassa_previdenziale": [
- {
- "al_cassa": "string",
- "aliquota_iva": "string",
- "imponibile_cassa": "string",
- "importo_contributo_cassa": "string",
- "natura": "N1",
- "riferimento_amministrazione": "string",
- "ritenuta": "string",
- "tipo_cassa": "TC01"
}
], - "dati_ritenuta": [
- {
- "aliquota_ritenuta": "string",
- "causale_pagamento": "A",
- "importo_ritenuta": "string",
- "tipo_ritenuta": "RT01"
}
], - "divisa": "string",
- "importo_totale_documento": "string",
- "numero": "string",
- "sconto_maggiorazione": [
- {
- "importo": "string",
- "percentuale": "string",
- "tipo": "MG"
}
], - "tipo_documento": "TD01"
}, - "dati_ordine_acquisto": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_ricezione": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_sal": [
- {
- "riferimento_fase": "string"
}
], - "dati_trasporto": {
- "causale_trasporto": "string",
- "data_inizio_trasporto": "string",
- "data_ora_consegna": "string",
- "data_ora_ritiro": "string",
- "dati_anagrafici_vettore": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}, - "numero_licenza_guida": "string"
}, - "descrizione": "string",
- "indirizzo_resa": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}, - "mezzo_trasporto": "string",
- "numero_colli": 0,
- "peso_lordo": "string",
- "peso_netto": "string",
- "tipo_resa": "string",
- "unita_misura_peso": "string"
}, - "fattura_principale": {
- "data_fattura_principale": "string",
- "numero_fattura_principale": "string"
}
}, - "dati_pagamento": [
- {
- "condizioni_pagamento": "TP01",
- "dettaglio_pagamento": [
- {
- "abi": "string",
- "beneficiario": "string",
- "bic": "string",
- "cab": "string",
- "cf_quietanzante": "string",
- "cod_ufficio_postale": "string",
- "codice_pagamento": "string",
- "cognome_quietanzante": "string",
- "data_decorrenza_penale": "string",
- "data_limite_pagamento_anticipato": "string",
- "data_riferimento_termini_pagamento": "string",
- "data_scadenza_pagamento": "string",
- "giorni_termini_pagamento": 0,
- "iban": "string",
- "importo_pagamento": "string",
- "istituto_finanziario": "string",
- "modalita_pagamento": "MP01",
- "nome_quietanzante": "string",
- "penalita_pagamenti_ritardati": "string",
- "sconto_pagamento_anticipato": "string",
- "titolo_quietanzante": "string"
}
]
}
], - "dati_veicoli": {
- "data": "string",
- "totale_percorso": "string"
}
}
], - "fattura_elettronica_header": {
- "cedente_prestatore": {
- "contatti": {
- "email": "string",
- "fax": "string",
- "telefono": "string"
}, - "dati_anagrafici": {
- "albo_professionale": "string",
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "data_iscrizione_albo": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}, - "numero_iscrizione_albo": "string",
- "provincia_albo": "string",
- "regime_fiscale": "RF01"
}, - "iscrizione_rea": {
- "capitale_sociale": "string",
- "numero_rea": "string",
- "socio_unico": "SU",
- "stato_liquidazione": "LS",
- "ufficio": "string"
}, - "riferimento_amministrazione": "string",
- "sede": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}, - "stabile_organizzazione": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}
}, - "cessionario_committente": {
- "dati_anagrafici": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}
}, - "rappresentante_fiscale": {
- "cognome": "string",
- "denominazione": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}, - "nome": "string"
}, - "sede": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}, - "stabile_organizzazione": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}
}, - "dati_trasmissione": {
- "codice_destinatario": "string",
- "contatti_trasmittente": {
- "email": "string",
- "telefono": "string"
}, - "formato_trasmissione": "FPA12",
- "id_trasmittente": {
- "id_codice": "string",
- "id_paese": "string"
}, - "pec_destinatario": "string",
- "progressivo_invio": "string"
}, - "rappresentante_fiscale": {
- "dati_anagrafici": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}
}
}, - "soggetto_emittente": "CC",
- "terzo_intermediario_o_soggetto_emittente": {
- "dati_anagrafici": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}
}
}
}, - "namespace": "string",
- "sistema_emittente": "string",
- "versione": "FPA12"
}
{- "data": [
- {
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "counterpart": {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "destination_code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "creation_date": "2019-08-24",
- "delivery_date": "string",
- "delivery_status": "string",
- "direction": "ISSUED",
- "file_name": "string",
- "flows": [
- {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
], - "format": "FPA12",
- "gross_amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_e_invoice": true,
- "number": "string",
- "status": "DRAFT",
- "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "type": "BILL",
- "updated_at": "2019-08-24T14:15:22Z",
- "vat_amount": {
- "amount": "12.3",
- "currency": "EUR"
}
}
]
}
Retrieve a specific document invoice along with a signed url to the xml representation of the invoice. The signed url provides a secure and temporary access to the xml data.
company_id required | string The company the document invoice belongs to |
document_id required | string The document identifier |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/invoice \ --header "Authorization: Bearer ${authorization_token}" \ --header "Content-Type: application/json"
{- "data": {
- "invoice": {
- "fattura_elettronica_body": [
- {
- "allegati": [
- {
- "algoritmo_compressione": "string",
- "attachment": "string",
- "descrizione_attachment": "string",
- "formato_attachment": "string",
- "nome_attachment": "string"
}
], - "dati_beni_servizi": {
- "dati_riepilogo": [
- {
- "aliquota_iva": "string",
- "arrotondamento": "string",
- "esigibilita_iva": "string",
- "imponibile_importo": "string",
- "imposta": "string",
- "natura": "N1",
- "riferimento_normativo": "string",
- "spese_accessorie": "string"
}
], - "dettaglio_linee": [
- {
- "aliquota_iva": "string",
- "altri_dati_gestionali": [
- {
- "riferimento_data": null,
- "riferimento_numero": null,
- "riferimento_testo": null,
- "tipo_dato": null
}
], - "codice_articolo": [
- {
- "codice_tipo": null,
- "codice_valore": null
}
], - "data_fine_periodo": "string",
- "data_inizio_periodo": "string",
- "descrizione": "string",
- "natura": "N1",
- "numero_linea": "string",
- "prezzo_totale": "string",
- "prezzo_unitario": "string",
- "quantita": "string",
- "riferimento_amministrazione": "string",
- "ritenuta": "string",
- "sconto_maggiorazione": [
- {
- "importo": null,
- "percentuale": null,
- "tipo": null
}
], - "tipo_cessione_prestazione": "SC",
- "unita_misura": "string"
}
]
}, - "dati_generali": {
- "dati_contratto": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_convenzione": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_ddt": [
- {
- "data_ddt": "string",
- "numero_ddt": "string",
- "riferimento_numero_linea": [
- "string"
]
}
], - "dati_fatture_collegate": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_generali_documento": {
- "arrotondamento": "string",
- "art_73": "SI",
- "causale": [
- "string"
], - "data": "string",
- "dati_bollo": {
- "bollo_virtuale": "string",
- "importo_bollo": "string"
}, - "dati_cassa_previdenziale": [
- {
- "al_cassa": "string",
- "aliquota_iva": "string",
- "imponibile_cassa": "string",
- "importo_contributo_cassa": "string",
- "natura": "N1",
- "riferimento_amministrazione": "string",
- "ritenuta": "string",
- "tipo_cassa": "TC01"
}
], - "dati_ritenuta": [
- {
- "aliquota_ritenuta": "string",
- "causale_pagamento": "A",
- "importo_ritenuta": "string",
- "tipo_ritenuta": "RT01"
}
], - "divisa": "string",
- "importo_totale_documento": "string",
- "numero": "string",
- "sconto_maggiorazione": [
- {
- "importo": "string",
- "percentuale": "string",
- "tipo": "MG"
}
], - "tipo_documento": "TD01"
}, - "dati_ordine_acquisto": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_ricezione": [
- {
- "codice_cig": "string",
- "codice_commessa_convenzione": "string",
- "codice_cup": "string",
- "data": "string",
- "id_documento": "string",
- "num_item": "string",
- "riferimento_numero_linea": [
- 0
]
}
], - "dati_sal": [
- {
- "riferimento_fase": "string"
}
], - "dati_trasporto": {
- "causale_trasporto": "string",
- "data_inizio_trasporto": "string",
- "data_ora_consegna": "string",
- "data_ora_ritiro": "string",
- "dati_anagrafici_vettore": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}, - "numero_licenza_guida": "string"
}, - "descrizione": "string",
- "indirizzo_resa": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}, - "mezzo_trasporto": "string",
- "numero_colli": 0,
- "peso_lordo": "string",
- "peso_netto": "string",
- "tipo_resa": "string",
- "unita_misura_peso": "string"
}, - "fattura_principale": {
- "data_fattura_principale": "string",
- "numero_fattura_principale": "string"
}
}, - "dati_pagamento": [
- {
- "condizioni_pagamento": "TP01",
- "dettaglio_pagamento": [
- {
- "abi": "string",
- "beneficiario": "string",
- "bic": "string",
- "cab": "string",
- "cf_quietanzante": "string",
- "cod_ufficio_postale": "string",
- "codice_pagamento": "string",
- "cognome_quietanzante": "string",
- "data_decorrenza_penale": "string",
- "data_limite_pagamento_anticipato": "string",
- "data_riferimento_termini_pagamento": "string",
- "data_scadenza_pagamento": "string",
- "giorni_termini_pagamento": 0,
- "iban": "string",
- "importo_pagamento": "string",
- "istituto_finanziario": "string",
- "modalita_pagamento": "MP01",
- "nome_quietanzante": "string",
- "penalita_pagamenti_ritardati": "string",
- "sconto_pagamento_anticipato": "string",
- "titolo_quietanzante": "string"
}
]
}
], - "dati_veicoli": {
- "data": "string",
- "totale_percorso": "string"
}
}
], - "fattura_elettronica_header": {
- "cedente_prestatore": {
- "contatti": {
- "email": "string",
- "fax": "string",
- "telefono": "string"
}, - "dati_anagrafici": {
- "albo_professionale": "string",
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "data_iscrizione_albo": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}, - "numero_iscrizione_albo": "string",
- "provincia_albo": "string",
- "regime_fiscale": "RF01"
}, - "iscrizione_rea": {
- "capitale_sociale": "string",
- "numero_rea": "string",
- "socio_unico": "SU",
- "stato_liquidazione": "LS",
- "ufficio": "string"
}, - "riferimento_amministrazione": "string",
- "sede": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}, - "stabile_organizzazione": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}
}, - "cessionario_committente": {
- "dati_anagrafici": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}
}, - "rappresentante_fiscale": {
- "cognome": "string",
- "denominazione": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}, - "nome": "string"
}, - "sede": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}, - "stabile_organizzazione": {
- "cap": "string",
- "comune": "string",
- "indirizzo": "string",
- "nazione": "string",
- "numero_civico": "string",
- "provincia": "string"
}
}, - "dati_trasmissione": {
- "codice_destinatario": "string",
- "contatti_trasmittente": {
- "email": "string",
- "telefono": "string"
}, - "formato_trasmissione": "FPA12",
- "id_trasmittente": {
- "id_codice": "string",
- "id_paese": "string"
}, - "pec_destinatario": "string",
- "progressivo_invio": "string"
}, - "rappresentante_fiscale": {
- "dati_anagrafici": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}
}
}, - "soggetto_emittente": "CC",
- "terzo_intermediario_o_soggetto_emittente": {
- "dati_anagrafici": {
- "anagrafica": {
- "cod_eori": "string",
- "cognome": "string",
- "denominazione": "string",
- "nome": "string",
- "titolo": "string"
}, - "codice_fiscale": "string",
- "id_fiscale_iva": {
- "id_codice": "string",
- "id_paese": "string"
}
}
}
}, - "namespace": "string",
- "sistema_emittente": "string",
- "versione": "FPA12"
}, - "xml_url": "string"
}
}
Returns all the information for a specific document from its identifier
company_id required | string The company the document belongs to |
id required | string The document identifier |
expand | string Fields that will be expanded. Expandable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/documents/:document_id \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "counterpart": {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "destination_code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "creation_date": "2019-08-24",
- "delivery_date": "string",
- "delivery_status": "string",
- "direction": "ISSUED",
- "file_name": "string",
- "flows": [
- {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
], - "format": "FPA12",
- "gross_amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_e_invoice": true,
- "number": "string",
- "status": "DRAFT",
- "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "type": "BILL",
- "updated_at": "2019-08-24T14:15:22Z",
- "vat_amount": {
- "amount": "12.3",
- "currency": "EUR"
}
}
}
company_id required | string The company where to execute the operation |
id required | string The document identifier |
expand | string Fields that will be expanded. Expandable fields: |
Document
category_id | string or null <uuid> The category identifier |
{- "category_id": "8de4c9fd-61a4-4c0b-bf88-0ed3a0fe3fa2"
}
{- "data": {
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "counterpart": {
- "address": "string",
- "city": "string",
- "company_name": "string",
- "country": "string",
- "destination_code": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "postal_code": "string",
- "province_code": "string",
- "tax_number": "string",
- "vat_number": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "creation_date": "2019-08-24",
- "delivery_date": "string",
- "delivery_status": "string",
- "direction": "ISSUED",
- "file_name": "string",
- "flows": [
- {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
], - "format": "FPA12",
- "gross_amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "is_e_invoice": true,
- "number": "string",
- "status": "DRAFT",
- "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "type": "BILL",
- "updated_at": "2019-08-24T14:15:22Z",
- "vat_amount": {
- "amount": "12.3",
- "currency": "EUR"
}
}
}
The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page. A cursor is needed to traverse the results.
company_id required | string The company the flows belongs to |
document_id required | string The document identifier |
page_size | integer The page size |
cursor | string The pagination cursor. A cursor is used to paginate through a large set of data. It is a unique identifier that represents a specific position in the dataset. |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/flows \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
], - "page": {
- "cursor": "string",
- "size": 0
}
}
company_id required | string The company the flow belongs to |
document_id required | string The document identifier |
id required | string The flow identifier |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/documents/:document_id/flows/:flow_id \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
}
company_id required | string The company where to execute the operation |
document_id required | string The document identifier |
id required | string The flow identifier |
Flow
object Money representation through amount and currency properties | |
expected_payment_date | string <date> The date when the flow is due |
payment_date | string <date> The date when the flow was paid |
payment_method | string or null Enum: "CARD" "CASH" "CHECK" "DEFERRED" "TAX_FORM" "FISCAL_CREDIT" "OTHER" "POSTAL" "RIBA" "SDD" "TRANSFER" The payment method |
payment_status | string Enum: "PAID" "TO_PAY" The payment status |
{- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "expected_payment_date": "2019-08-24",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
{- "data": {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}
}
The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page. A cursor is needed to traverse the results.
company_id required | string The company the reconciliations belong to |
page_size | integer The page size |
cursor | string The pagination cursor. A cursor is used to paginate through a large set of data. It is a unique identifier that represents a specific position in the dataset. |
expand | string Fields that will be expanded. Expandable fields: |
filter | object List of filters on the resource. Currently the fields that allow to be filtered are: |
sort | string Fields for which we can order the results. Sortable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/reconciliations \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "flow": {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}, - "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "transaction": {
- "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "booking_date_time": "2019-08-24T14:15:22Z",
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "clean_description": "string",
- "counterpart_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "reconciliations": [
- { }
], - "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "value_date": "2019-08-24T14:15:22Z"
}, - "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482"
}
], - "page": {
- "cursor": "string",
- "size": 0
}
}
Create a new reconciliation between a flow and a bank transaction.
company_id required | string The company where to execute the operation |
expand | string Fields that will be expanded. Expandable fields: |
Reconciliation
flow_id required | string <uuid> The ID of the relative flow |
transaction_id required | string <uuid> The ID of the relative transaction |
{- "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482"
}
{- "data": {
- "created_at": "2019-08-24T14:15:22Z",
- "flow": {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}, - "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "transaction": {
- "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "booking_date_time": "2019-08-24T14:15:22Z",
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "clean_description": "string",
- "counterpart_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "reconciliations": [
- { }
], - "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "value_date": "2019-08-24T14:15:22Z"
}, - "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482"
}
}
company_id required | string The company where to execute the operation |
id required | string The reconciliation identifier |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request DELETE \ --url ${base_url}/api/v1/companies/:company_id/reconciliations/:id \ --header "Authorization: Bearer ${authorization_token}"
{- "errors": [
- {
- "code": "bad_request",
- "detail": "null value where string expected",
- "source": {
- "pointer": "/data/attributes/name"
}, - "title": "Invalid value"
}
]
}
company_id required | string The company the reconciliation belongs to |
id required | string The reconciliation identifier |
expand | string Fields that will be expanded. Expandable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/reconciliations/:id \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "created_at": "2019-08-24T14:15:22Z",
- "flow": {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}, - "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "transaction": {
- "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "booking_date_time": "2019-08-24T14:15:22Z",
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "clean_description": "string",
- "counterpart_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "reconciliations": [
- { }
], - "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "value_date": "2019-08-24T14:15:22Z"
}, - "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482"
}
}
The return value is paginated. By default the response contains 25 elements per page but can be instructed to return more elements per page. A cursor is needed to traverse the results.
company_id required | string The company the transactions belong to |
page_size | integer The page size |
cursor | string The pagination cursor. A cursor is used to paginate through a large set of data. It is a unique identifier that represents a specific position in the dataset. |
expand | string Fields that will be expanded. Expandable fields: |
filter | object List of filters on the resource. Currently the fields that allow to be filtered are: |
sort | string Fields for which we can order the results. Sortable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/transactions \ --header "Authorization: Bearer ${authorization_token}"
{- "data": [
- {
- "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "booking_date_time": "2019-08-24T14:15:22Z",
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "clean_description": "string",
- "counterpart_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "reconciliations": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "flow": {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}, - "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "transaction": { },
- "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482"
}
], - "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "value_date": "2019-08-24T14:15:22Z"
}
], - "page": {
- "cursor": "string",
- "size": 0
}
}
Returns all the information for a specific transaction from its identifier
company_id required | string The company the transaction belongs to |
id required | string The transaction identifier |
expand | string Fields that will be expanded. Expandable fields: |
base_url="http://example.com" # Replace with the correct Sibill integration API host curl --request GET \ --url ${base_url}/api/v1/companies/:company_id/transactions/:transaction_id \ --header "Authorization: Bearer ${authorization_token}"
{- "data": {
- "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65",
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "booking_date_time": "2019-08-24T14:15:22Z",
- "category": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "clean_description": "string",
- "counterpart_name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "date": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "reconciliations": [
- {
- "created_at": "2019-08-24T14:15:22Z",
- "flow": {
- "amount": {
- "amount": "12.3",
- "currency": "EUR"
}, - "created_at": "2019-08-24T14:15:22Z",
- "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6",
- "expected_payment_date": "2019-08-24",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "payment_date": "2019-08-24",
- "payment_method": "CARD",
- "payment_status": "PAID"
}, - "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "transaction": { },
- "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482"
}
], - "subcategory": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string"
}, - "value_date": "2019-08-24T14:15:22Z"
}
}