Skip to main content

Credit Object

Represents a credit transaction that can be either payable (to vendors) or receivable (from clients).
id
number
required
Unique identifier for the credit
renting
Renting
Associated renting agreement if credit originated from a rental
flight
Flight
Associated flight if credit originated from flight services
vendor
AdministrationVendor
Vendor information for payable credits
client
Client
Client information for receivable credits
details
string
required
Description of the credit transaction
type
string
required
Type of credit transaction
opening_date
Date
required
Date when the credit was opened
closing_date
Date
Date when the credit was closed/settled
deadline
Date
required
Payment deadline for the credit
debt
number
required
Total debt amount
payed_amount
number
required
Amount already paid towards the debt
status
string
required
Current status of the credit

Example

{
  "id": 1,
  "client": {
    "id": 42,
    "name": "Aerolíneas del Caribe C.A.",
    "dni": "J-12345678",
    "email": "[email protected]"
  },
  "details": "Flight services for March 2026",
  "type": "COBRAR",
  "opening_date": "2026-03-01T00:00:00Z",
  "deadline": "2026-03-31T00:00:00Z",
  "debt": 15000.00,
  "payed_amount": 5000.00,
  "status": "PENDIENTE"
}

Build docs developers (and LLMs) love