# Detalle de registro contable

GET `https://api.bydomu.com/v1/accounting/{id}`

Esta referência é gerada a partir do código da API, por isso as descrições estão em espanhol. Nomes, parâmetros e exemplos são iguais em qualquer idioma.

El registro con su categoría, negocio, contacto y quién lo creó, aprobó o anuló.

Permissão pedida

`accounting:read`

Cabeçalho obrigatório

`X-API-Key` · chave secreta

Nível de acesso

Nível 2 · automático na Inmobiliaria Pro

## Parâmetros de rota

1 · obrigatórios

`id` string · **obrigatório**

ID del registro

## Resposta 200

`AccountingEntryDetail` · 27 campos

**`data` id · referenceNumber · type · status · description · amount · currency · entryDate · approvedAt · notes · attachmentUrl · reimbursable · categoryId · dealId · contactId · createdById · approvedById · voidedAt · voidReason · createdAt · updatedAt · category · deal · contact · createdBy · approvedBy · voidedBy**

`id` string

`referenceNumber` string

`type` string INGRESO, EGRESO

`status` string BORRADOR, APROBADO, ANULADO

`description` string

`amount` string Número decimal serializado como texto.

`currency` string

`entryDate` string

`approvedAt` string

`notes` string

`attachmentUrl` string

`reimbursable` boolean

`categoryId` string

`dealId` string

`contactId` string

`createdById` string

`approvedById` string

`voidedAt` string

`voidReason` string

`createdAt` string

`updatedAt` string

**`category` id · name · type · color · isDefault**

`id` string

`name` string

`type` string INGRESO, EGRESO

`color` string

`isDefault` boolean

**`deal` id · title · status · currency · value**

`id` string

`title` string

`status` string OPEN, WON, LOST

`currency` string

`value` string Número decimal serializado como texto.

**`contact` id · firstName · lastName · phone · email**

`id` string

`firstName` string

`lastName` string

`phone` string `null` si el contacto llegó por un canal sin número (Instagram, Facebook, chat de la web, correo o WhatsApp con usuario y número oculto)

`email` string

**`createdBy` id · firstName · lastName · email**

`id` string

`firstName` string

`lastName` string

`email` string

**`approvedBy` id · firstName · lastName · email**

`id` string

`firstName` string

`lastName` string

`email` string

**`voidedBy` id · firstName · lastName · email**

`id` string

`firstName` string

`lastName` string

`email` string

## Erros possíveis

com a forma `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **404** NOT_FOUND
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/accounting/clx1acc001" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.accounting.getEntry("clx1acc001");
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/accounting/clx1acc001",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Resposta · 200 · exemplo**

```json
{
  "data": {
    "id": "clx1acc001",
    "referenceNumber": "ING-2026-0042",
    "type": "INGRESO",
    "status": "BORRADOR",
    "description": "Comisión por venta Apto Chapinero",
    "amount": "9345000.00",
    "currency": "COP",
    "entryDate": "2026-09-20T00:00:00.000Z",
    "approvedAt": "2026-09-21T09:00:00.000Z",
    "notes": "Aprobado por dirección comercial",
    "attachmentUrl": "https://cdn.bydomu.com/docs/soporte.pdf",
    "reimbursable": false,
    "categoryId": "clx1cat001",
    "dealId": "clx1deal001",
    "contactId": "clx1con001",
    "createdById": "clx1usr001",
    "approvedById": "clx1usr002",
    "voidedAt": "2026-09-22T00:00:00.000Z",
    "voidReason": "Registro duplicado",
    "createdAt": "2026-09-20T16:30:00.000Z",
    "updatedAt": "2026-09-21T09:00:00.000Z",
    "category": {
      "id": "clx1cat001",
      "name": "Comisiones",
      "type": "INGRESO",
      "color": "#10B981",
      "isDefault": true
    },
    "deal": {
      "id": "clx1deal001",
      "title": "Venta Apto Chapinero",
      "status": "OPEN",
      "currency": "COP",
      "value": "350000000.00"
    },
    "contact": {
      "id": "clx1con001",
      "firstName": "María",
      "lastName": "González",
      "phone": "+573001234567",
      "email": "maria@email.com"
    },
    "createdBy": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez",
      "email": "admin@inmobiliariaandes.co"
    },
    "approvedBy": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez",
      "email": "admin@inmobiliariaandes.co"
    },
    "voidedBy": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez",
  …
```
