Skip to content

Retrieve Account

Request

Retrieves a single accounting code (GL / nominal code) by its ID.

Security
oAuth2ClientCredentials
Path
idstring, (uuid)(Id)required
GET
/v1/accounting/accounts/{id}
import requests

id = "YOUR_id_PARAMETER"
url = "https://api.qargo.com/v1/accounting/accounts/" + id

headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}

response = requests.get(url, headers=headers)

data = response.json()
print(data)

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required

Unique identifier of the record in Qargo.

archivedboolean(Archived)required

Whether this record has been archived.

codestring(Code)required

Accounting code (GL / nominal code).

namestring(Name)required

Display name of the account.

billing_entityobject(BillingEntity)required

Billing entity this account belongs to.

Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "archived": true, "code": "string", "name": "string", "billing_entity": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "legal_name": "Qargo BV", "vat_number": "NL123456789B01", "code": "QARGO", "company_registration_number": "12345678", "is_default": false } }