Skip to main content

Partner — client / supplier

Fields

FieldTypeRequired on AddPartnerDescription
Idinteger(auto)Unique identifier
CodestringnoUnique code. Auto-generated if missing
NamestringyesCommercial name
CIF / TaxCodestringnoFiscal code (CIF/CNP)
TaxAttributestringnoRO = VAT payer, null = non-payer
RegistrationNumberstringnoTrade Register number (J40/.../...)
IsCompanybooleannotrue = legal entity, false = individual/PFA
IsClientbooleannoAppears in client lists
IsSupplierbooleannoAppears in supplier lists
AddressstringnoFull address
Soldnumber(read)Current balance — debit positive, credit negative

JSON example

{
"Id": 27501,
"Code": "CLI0001",
"Name": "ACME SRL",
"CIF": "RO12345678",
"TaxAttribute": "RO",
"RegistrationNumber": "J40/123/2010",
"IsCompany": true,
"IsClient": true,
"IsSupplier": false,
"Address": "Bucuresti, Calea Victoriei 100",
"Sold": -1240.55
}

Associated operations

  • GetAllPartners, GetPartnerbyCode, GetPartnerById, GetSold
  • AddPartner, UpdatePartner, AddOrUpdatePartner, UpdateCIF
  • DeletePartnerByCode, DeletePartnerById

Business notes

  • Negative Sold = the ERP owes us (we collected in excess).
  • Positive Sold = the partner owes us (an active receivable).
  • A partner can be both a client and a supplier at the same time.
  • The fiscal code is not unique at database level — partners with the same fiscal code can exist.