Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create case

Xellent has implemented Collectia's API for "Create case" and the plan is to use that as Xellent "standard". Some additions are needed for the API, but those additions will be configurable so it's possible to use the Collectia "standard". The Collectia standard includes the following information:

Body parameters:

NameTypeRequiredDescriptionXellent
ClientNoIntegerYesClient number to associate case with. The EG customer's client number at ECACustParameters.EXU_EIBReferencenumber
ReferenceStringYesYour reference number for the case.custTable.AccountNum
CommentsList of stringsNoComments regarding the case. Possible to set comment on transactiontmpEXU_ECATable.TransTxt
CurrencyStringYesCurrency of case.tmpEXU_ECATable.CurrencyCode
HasCompFeeBooleanYesHas compensation fee been applied?No
PaymentIdStringNoId for automatic payment registration. OCR-numbertmpEXU_ECATable.PaymId
DebtorsDebtorObjectYesArray/list of DebtorObject.
InvoicesInvoiceObjectYesArray/list of InvoiceObject.

DebtorObject:

NameTypeRequiredDescriptionXellent
DebtorTypeNumberYesSpecification of debtor type
1: Private person
2: Company
3: Sole Proprietorship
1 if CustTable.EXU_AlternativeCustomerCode is "blank", CPR or CPR Match.
2 if CustTable.EXU_AlternativeCustomerCode is CVR
TitleStringNoTitle used to address debtor.tmpEXU_ECATable.custAdditionalName
NameStringYesFull name of the debtor. The name before the first blank is considered the first name, and the rest as the last name.
Alternatively, ‘,’ can be used so separate first and last name (the ‘,’ will be removed in the full name).
Eg. “First name,last name”
tmpEXU_ECATable.custName
AddressStringYesAddress of the debtor.LogisticsPostalAddress.Street
PostalCodeNumberYesPostal code of the address.LogisticsPostalAddress.ZipCode
ZipCodeStringYesZip code of the address.LogisticsPostalAddress.ZipCode
CityStringYesCity of the address.LogisticsPostalAddress.City
CountryCodeStringYesCountry code of the address.
(ISO 3166-1 alpha-2)
LogisticsPostalAddress.CountryRegionId
CompanyTypeStringNoType of company not private person.
(eg. DK: A/S, SE: AB, NO: AS, DE: AG)

CompanyDirectorStringNoName of company director.
IdNoStringNoOfficial identity number.
(DK: CPR or CVR)
If CustTable.EXU_AlternativeCustomerCode is CPR or CPR Match or CVR fetch the identity number from CustTable.EXU_AlternativeCustomerNumber.
PhoneStringNoPrimary phone of the debtor.custTable.Phone
PhoneAlternativesList of stringsNoAlternative debtor phone numbers.
EmailStringNoEmail of the debtor.custTable.Email
BankStringNoName of bank.
BankAccountIbanStringNoIBAN account number.
BankAccountBicStringNoBIC account number.

InvoiceObject:

NameTypeRequiredDescriptionXellent
InvoiceNoStringYesInvoice number.
(Max length 80, letters are allowed)
eCATable.InvoiceId
InvoiceTextStringNoInvoice text. If not provided it will default to the standard text agreed on.
AmountDecimalYesInvoice amount.
(In case currency)
eCATable.BalanceAmountCur
PaidDecimalNoPart of invoice amount already paid. (In case currency)
FeeDecimalNoFee amount.
(In case currency)

InvoiceDateDatetimeYesDate of the invoice.
(YYYY-MM-DD)
eCATable.Transdate
DueDateDatetimeYesDue date of the invoice.
(YYYY-MM-DD)
eCATable.DueDate
ContractDateDatetimeYesDate of contract.
(YYYY-MM-DD)
date2str(today()
PaymentIdStringNoId for automatic payment registration.tmpEXU_ECATable.PaymId
LegalClaimIdIntNoId for legal claim.



Payment update to ECA

If the debtor pays the EG customer information needs to be sent to ECA, The following information is needed

...