GetbeelDocs
API referenceAutofatture

An autofattura with its SDI status

The autofattura of a foreign purchase: TD type, number, whether the XML is ready, and the SDI status (null until sent, then queued, sent_to_sdi, consegnata, scartata…). Both key modes.

GET
/autofatture/{id}

The autofattura of a foreign purchase: TD type, number, whether the XML is ready, and the SDI status (null until sent, then queued, sent_to_sdi, consegnata, scartata…). Both key modes.

Authorization

apiKey
headerAuthorizationBearer <token>

API key: gb_test_… or gb_live_…

Path Parameters

id*string

Header Parameters

Getbeel-Company?string

Act on one of the account's client companies (its id from GET /companies) instead of the key's own account. 404 company_not_found when the key cannot act on it.

Formatuuid

Response Body

OK

application/json
  1. response
id*string
object*string
date*string

Date of the purchase (bank debit or document)

supplier*string|null
supplier_country*|

IdPaese of the foreign supplier

supplier_invoice_number*string|null
amount*string

Amount of the purchase, as a decimal string

currency*string
tipo_documento*|

TD17, TD18 or TD19 (reverse charge)

numero*|

Number of the autofattura

status*string

not_created, queued, processing, generated (XML ready), error, needs_country

xml_ready*boolean
sdi*
Example Request
curl -X GET 'https://www.getbeel.com/api/v1/autofatture/string'
Example Response
{  "id": "string",  "object": "autofattura",  "date": "string",  "supplier": "string",  "supplier_country": "string",  "supplier_invoice_number": "string",  "amount": "string",  "currency": "string",  "tipo_documento": "string",  "numero": "string",  "status": "string",  "xml_ready": true,  "sdi": {    "status": "string",    "id": "string",    "error": "string",    "updated_at": "string"  }}