Gasell has two active external debt collection integrations (Svea Inkasso, Invoice Inkasso (Qvickly)) plus an internal Self-Collection process. The external ones share the same fixed-width flat file format over SFTP. The formats are legacy Intrum/Svea formats.

Cases OUT — Gasell to Debt collector

Format: Fixed-width text file (batch), uploaded via SFTP Code: Models/DebtCollection/Intrum/NewCasesFile.php

Per case (contract):

Customer identity:

Per invoice:

Energy/site context per invoice:


Status updates IN — Debt collector to Gasell

Gasell sends files but handles no incoming files from debt collector. 

Internal statuses are tracked outbound-only:


Payments from Gasell to debt collector 

When a payment is registered in Gasell on a debt-collected invoice, we notify the collector via a Messages file:

Code: Models/DebtCollection/Intrum/MessagesFile.php

Payment notification (outbound, post 620):

Site event notifications (outbound, posts 660/661/662):


Payments from debt collector to Gasell

Payments are received as standard OCR/BGC bank file payments, not through a separate debt collection format. They are identified as debt collection payments in two ways:

Automatic identification (BGC file)

When a BgMax bank file is imported, the payer name field (bgc_name) is checked:

Code: Models/Payment/File/Row/DbObject.php

Manual registration

In the admin UI ("Unregistered payments"), there is a button "Register debt collection payment" that opens the payment registration form with payment_source_id pre-set to DEBT_COLLECTION_COMPANY.

Code: sites/adm/application/modules/payment/Controllers/PaymentRegistrationController.php

Data captured per payment

FieldDB columnNotes
Amountamount
Payment datepay_date
Payment typepayment_type_idPG, BG, cash, AG, etc.
Payment sourcepayment_source_id2 = DEBT_COLLECTION_COMPANY
Payer namebgc_nameFrom BGC file; basis for auto-identification
Payer addressbgc_addressFrom BGC file
BGC referencebgc_nr
BGC informationbgc_information
OCRocrUsed to match to invoice
Organizationorganization_id

Payment sources: Models/Payment/Source.php