Skip to main content
POST
Crear el perfil contable del producto de préstamo

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

id
string<uuid>
requerido

Loan product identifier.

Ejemplo:

"550e8400-e29b-41d4-a716-446655440000"

Cuerpo

application/json
accountingMode
enum<string>
requerido

Accounting recognition mode.

Opciones disponibles:
accrual,
cash
Ejemplo:

"accrual"

loanProductVersionId
string<uuid>
requerido

Loan product version identifier.

Ejemplo:

"550e8400-e29b-41d4-a716-446655440001"

postingRules
object[]
requerido

Mapeos de cuentas contables no nulos para cada evento contable. Los perfiles nuevos requieren disbursement, repayment, prepayment, accrual, collection_unapplied, collection_reapply y collection_refund; accrual_tax es opcional.

Required array length: 7 - 8 elements
midazLedgerId
string

Optional per-product Midaz ledger the profile's postings route into; both-or-neither with midazOrganizationId. Required under multi-tenant mode; empty single-tenant profiles fall back to the env default.

Maximum string length: 128
Ejemplo:

"ledger-def"

midazOrganizationId
string

Optional per-product Midaz organization the profile's postings route into; both-or-neither with midazLedgerId. Required under multi-tenant mode; empty single-tenant profiles fall back to the env default.

Maximum string length: 128
Ejemplo:

"org-abc"

Respuesta

Created

accountingMode
string
requerido

Accounting recognition mode (accrual|cash).

Ejemplo:

"accrual"

createdAt
string
requerido

Creation timestamp (RFC3339, UTC).

Ejemplo:

"2026-06-14T12:00:00Z"

id
string
requerido

Server-assigned accounting profile identifier (uuid).

Ejemplo:

"550e8400-e29b-41d4-a716-446655440003"

loanProductVersionId
string
requerido

Loan product version this profile is configured for (uuid).

Ejemplo:

"550e8400-e29b-41d4-a716-446655440001"

postingRules
object[] | null
requerido

Persisted GL account mappings, one per accounting event.