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.
Format: Fixed-width text file (batch), uploaded via SFTP Code: Models/DebtCollection/Intrum/NewCasesFile.php
Per case (contract):
Customer identity:
-/+)Per invoice:
01 Grid invoice part 102 Standard/power invoice06 Collection fee14 Reminder fee89 Production facilityEnergy/site context per invoice:
Gasell sends files but handles no incoming files from debt collector.
Internal statuses are tracked outbound-only:
DEMAND_PROCESS_REQUEST_1LATECOMER_REQUEST_2INJUNCTION_TO_PAYDEMAND_PROCESS_INVOICEWhen 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 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:
When a BgMax bank file is imported, the payer name field (bgc_name) is checked:
"SVEA INKASSO AB" → payment_source_id = DEBT_COLLECTION_COMPANY"INVOICE INKASSO AB" → payment_source_id = DEBT_COLLECTION_COMPANYCode: Models/Payment/File/Row/DbObject.php
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
| Field | DB column | Notes |
|---|---|---|
| Amount | amount | |
| Payment date | pay_date | |
| Payment type | payment_type_id | PG, BG, cash, AG, etc. |
| Payment source | payment_source_id | 2 = DEBT_COLLECTION_COMPANY |
| Payer name | bgc_name | From BGC file; basis for auto-identification |
| Payer address | bgc_address | From BGC file |
| BGC reference | bgc_nr | |
| BGC information | bgc_information | |
| OCR | ocr | Used to match to invoice |
| Organization | organization_id |
Payment sources: Models/Payment/Source.php
1 = Customer2 = Debt collection company3 = External company (Markedskraft)4 = External company (Svea Ekonomi)