v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Finance > LedgerAccountResource

Upserts a Ledger account resource

Create or update a ledger account resource.

post/api/2026-07-01/resources/finance/ledger_account_resources/upsert

Request body

idstring

Factorial unique identifier.

namestring

Name of the ledger account resource.

numberstring

Number of the ledger account resource.

external_idstring

External identifier.

legal_entity_idstring required

Legal entity identifier.

account_idstring

Finance account identifier.

resource_idstring

Factorial unique identifier of the resource associated to the ledger account resource.

resource_type'customcategory' | 'bankaccount' | 'vendor' | 'taxtype' | 'invoice' | 'payrollconcept' required

Ledger account resource type.

balance_type'credit' | 'debit'

Ledger account balance type.

operation_type'purchase' | 'sale'

Ledger account operation type.

Example request

{
  "id": "135",
  "name": "Tax Type",
  "number": "1234567890",
  "external_id": "ext_123",
  "legal_entity_id": "13",
  "account_id": "15",
  "resource_id": "155",
  "resource_type": "taxtype",
  "balance_type": "debit",
  "operation_type": "purchase"
}

Response

OK

idstring required

Factorial unique identifier.

resource_type'customcategory' | 'bankaccount' | 'vendor' | 'taxtype' | 'invoice' | 'payrollconcept' required

Ledger account resource type.

resource_idstring required

Factorial unique identifier of the resource associated to the ledger account resource.

account_idstring required

Factorial Ledger Account identifier.

balance_type'credit' | 'debit'

Ledger account balance type.

updated_atstring required

Last time the resource was updated.

external_idstring

External identifier.

legal_entity_idstring

Factorial unique identifier of the Legal entity.

Example response

{
  "id": "135",
  "resource_type": "taxtype",
  "resource_id": "155",
  "account_id": "15",
  "balance_type": "debit",
  "updated_at": "2021-01-01T00:00:00.000Z",
  "external_id": "ext_123",
  "legal_entity_id": "13"
}