Component: Bankgiro

 Show all Hide all

Interacts with Bankgirot and generates and parses related files.

Component mode: Bankgiro Link

Uses the Bankgiro Link web service to send and receive supplier/customer payment orders and to handle automatic transaction assignments (Autogiro) as well as electronic invoices.

For "BankID Security Application" installation instructions, see https://install.bankid.com/.

Supported modes: Bankgiro Link | Process files | FTP via Internet | Third party files via FTP

Bankgiro, plusgiro, and bank account numbers

For bankgiro and plusgiro columns, the component will strip the characters '.', '-', and ' '. All other non-numeric characters will result in an error. The resulting number must contain 10 digits or less.

Bank account numbers should start with the clearing number (four digits) followed by the account number. For clearing numbers with five digits (Swedbank), do not include the fifth digit.

Component settings

File types to download
Only files of the specified types will be downloaded when the component downloads files.

SQL

SQL Call: Get actions (mandatory)

SQL to retrieve what kind of files are being transferred or files already download that should be processed now.
Supports custom errors: No
May modify database: Yes

Resultset: Actions

Resultset with one column for each outgoing filetype and columns to set download behavior.
Repeat mode: repeated exactly once
Row count: exactly one row

Columns:

AGBETMAK optional bit
Withdrawal of automatic transactions. Leave blank or set to zero when not using it. Otherwise set to 1. Triggers call AGBETMAK and 6.
AGBETUND optional bit
Initiation of automatic transactions. Leave blank or set to zero when not using it. Otherwise set to 1. Triggers call AGBETUND and 6.
AGMEDGIVREG optional bit
Registration and/or withdrawal of admission to use bank account for automatic transactions. Leave blank or set to zero when not using it. Otherwise set to 1. Triggers call AGMEDGIVREG and 6.
BatchId mandatory int
The id identifying the current run - will be used in all the following database calls.
BgcCustomerNumber optional int
Sets the customer number to use instead of the application variable BgcWsCustomerNumber.
BgcDownload optional bit
Download files from Bankgirot. Set to any non-zero value when files should be downloaded. Leave blank or set to zero when no files should be downloaded. Triggers call "Files already downloaded" and "Save file from Bankgirot".
BgcDownloadProcess optional bit
Set to any non-zero value to process downloaded files with appropriate action. Set to zero if downloaded files should just be saved to database in order to be processed later. Triggers call 9-15 (depending on downloaded filetypes) and call 16.
EF optional bit
Electronic invoice. Triggers call EF.
EFMEDGIVREG optional bit
Triggers call EFMEDGIVREG.
LBIN optional bit
Outgoing supplier payments. Leave blank or set to zero when not using it. Otherwise set to 1. Triggers call LBIN and 6.

Resultset: Bankgirot customer numbers to receive files for

If this result set is omitted, the component will only download files for one customer number.
Otherwise, the component will only download files for the customer numbers specified in this result set.
Repeat mode: repeated zero or one time
Row count: zero or more rows

Columns:

ReceiveBgcCustomerNumber mandatory int
Bankgirot customer number.

Resultset: Process already downloaded files

Used when processing already downloaded files. The files will be processed in the order given.
Repeat mode: repeated zero or one time
Row count: one or more rows

Columns:

Action mandatory string
Specify file type.
Possible value Description
AG Triggers call AGMEDGIVKONF, AGMEDGIVANM, AGBETRED, or AGBETMAKRED depending on file contents.
BGI Triggers call BGI.
FHO Triggers call FHO, EFA, or EFMEDGIVANM depending on file contents.
LBUT Triggers call LBUT.
BankFile mandatory binary
A file of the type described in "Action".
BankFileId mandatory int
The ID of the file.

SQL Call: Files already downloaded

SQL to tell the component which files have already been downloaded. Files older than 30 days will never be downloaded. If resultset is empty all files will be fetched.
Supports custom errors: No
May modify database: No

Parameters:

@ListFiles mandatory bit
Set to 1 by Softadmin® for this call.

Resultset: List of downloaded files

Resultset with one row for every file that has alreday been downloaded from Bankgirot.
Repeat mode: repeated exactly once
Row count: zero or more rows

Columns:

Bgc_FileId mandatory string
The file id assigned by Bankgirot, retrieved from previous incoming file database calls.

SQL Call: Order supplier payments (LBIN) [To Bankgirot]

SQL with rows corresponding to supplier payments. Is used to send LBIN files to Bankgirot.
Supports custom errors: No
May modify database: No

Parameters:

@Action mandatory string
Set to 'LBIN' by Softadmin® for this call.
@BatchId mandatory string
Passes the current batchid.

Resultset: Payments

Resultset that contains information to be sent to Bankgirot. One row corresponds to one payment.
Repeat mode: repeated exactly once
Row count: zero or more rows

Columns:

Amount mandatory decimal
The amount being transferred. Two decimals for ören or cents, depending on currency.
Should be negative for credit invoices (PaymentType 16 or 17).
BankAccountText mandatory string
A message to the receiver. Texts longer than 12 characters will be truncated.
BankAccountTo optional string
The account to which the payment should be made.
BankgiroFrom mandatory string
The account from which the payment should be made.
BankgiroTo optional string
The account to which the payment should be made.
Currency mandatory string
The currency in which the payment is being made. Currently, Bankgirot only supports SEK.
Possible value Description
SEK Specifies Swedish Krona as the currency for the transaction.
PayDate mandatory datetime
The payment date. For credit invoices, this is the last monitoring date.
PaymentId mandatory string
A number uniquely identifying the payment. Used in the LBUT call.
PaymentType optional int
Specifies the type of payment.

Credit invoices are monitored by Bankgirot until the date specified in the PayDate column, and are automatically matched against debit invoices to the same receiver.

Note: Credit invoices can not be used with PlusGiro.
Possible value Description
14 Payment
16 Credit invoice
17 Credit invoice, whole amounts
PlusGiroTo optional string
The account to which the payment should be made.
Reference mandatory string
OCR number, invoice number, or similar. Texts longer than 25 characters will be truncated.
Salary optional bit
Indicates a salary payment. Only applicable to bank account payments.

SQL Call: Autogiro admissions (AGMEDGIVREG) [To Bankgirot]

Is used to send AGMEDGIVREG files to Bankgirot. SQL with rows corresponding to payers whose admission, to be eligible for automatic transactions, should be registered or withdrawn. Accounts must be registered with AGMEDGIVREG before automatic transactions can be set up using AGBETUND.
Supports custom errors: No
May modify database: No

Parameters:

@Action mandatory string
Set to 'AGMEDGIVREG' for this call.
@BatchId mandatory string
Passes the current batchid.

Resultset: Admissions and withdrawals

Resultset with one row for every admission or withdrawal.
Repeat mode: repeated exactly once
Row count: one or more rows

Columns:

BankgiroFrom optional string
Deprecated. The payer's Bankgiro account. Used as payer number if PayerNumber has not been specified.
BankgiroTo mandatory string
The account to which the payment should be made.
IsRejected optional bit
Set to 1 to reject a new mandate via the Internet bank.
OrganizationNumber optional string
The payer's organization number (10 digits).
PayerBankAccount optional string
The payer's bank acccount number. Must be returned if admission have been announced by mail form. Formatted as XXXXYYYYYYYYYYYY, where XXXX is the clearing number. If the account number is shorter than twelve digits, insert zeroes between clearing no. and account no. If account is "personkonto", using SSNO, the clearing no. should be 3300, if account is in "Handelsbanken" the clearing no. should be 6000. Not used with the service "Autogiro Företag".
PayerElectronicId optional string
ID number from electronic annoucement of admission. Retrieved from an AGMEDGIVANM file. Must be returned if admission has been announced electronically. Not used with the service "Autogiro Företag".
PayerNumber mandatory string
The payer number to use. Can contain at most 16 digits.
SSNO optional string
The payer's social security number. Formatted as YYYYMMDDXXXX. Used as payer number if PayerNumber has not been specified.
Withdraw optional bit
Set to one to withdraw admission. Leave blank or set to zero to register.

SQL Call: Autogiro payments (AGBETUND) [To Bankgirot]

Is used to send AGBETUND files to Bankgirot. SQL returning details for automatic transaction initiation. Payers must have been registered for automatic transactions by means of AGMEDGIVREG previously.
Supports custom errors: No
May modify database: No

Parameters:

@Action mandatory string
Set to 'AGBETUND' for this call.
@BatchId mandatory string
Passes the current batchid.

Resultset: Autogiro transactions

Resultset with one row for every assignment of automatic transactions.
Repeat mode: repeated exactly once
Row count: one or more rows

Columns:

Amount mandatory decimal
The amount to be debited at every occasion within the assignment. If negative, the amount will be credited. Accepts the amount with up to two decimal spaces.
BankgiroFrom optional string
Deprecated. The payer's Bankgiro account. Used as payer number if PayerNumber has not been specified.
BankgiroTo mandatory string
The account to which the payment should be made.
PayDate mandatory datetime
The date when first payment for this assignment should be made. If is NULL the payment will be carried out as soon as possible (only allowed if PaymentInterval is set to "ONCE").
PayerNumber mandatory string
The payer number to use. Can contain at most 16 digits.
PaymentCount mandatory int
Number of times payment should be carried out until the assignment expires. If value is omitted or NULL, the assignment will run indefinitely.
PaymentInterval mandatory string
Interval between payments.
Possible value Description
FULLYEAR Transaction occurs yearly.
HALFYEAR Transaction occurs every half year.
MONTH Transaction occurs monthly.
ONCE Transaction occurs only once.
QUARTER Transaction occurs quarterly.
Reference mandatory string
OCR No, Invoice No. or similar. Maximum length 16 characters.
SSNO optional string
Deprecated. The payer's social security number. Formatted as YYYYMMDDXXXX. Used as payer number if PayerNumber has not been specified.

SQL Call: Withdraw autogiro assignments (AGBETMAK) [To Bankgirot]

Is used to send AGBETMAK files to Bankgirot. SQL returning identification info for assignment to be withdrawn. Withdrawal will be effective for all assigments corresponding to a combination of payer number and BankgiroTo number. Only revokes the assignments from AGBETUND, not the admission through AGMEDGIVREG.

The following combinations are available for cancellations:
PayerNumber
The above + DueDate
The above + Amount
The above + Reference

The following combinations are available for amendments:
NewDueDate
The above + DueDate
The above + PayerNumber
The above + Amount
The above + Reference

Recurring payments can not be amended.
Supports custom errors: No
May modify database: No

Parameters:

@Action mandatory string
Set to 'AGBETMAK' for this call.
@BatchId mandatory string
Passes the current batchid.

Resultset: Withdraw assignments

Resultset with one row for every combination of Bankgiro number and payer SSNO whose assignments should be withdrawn.
Repeat mode: repeated exactly once
Row count: one or more rows

Columns:

Amount optional decimal
The cancellation/amendment only applies to payments with this amount.
BankgiroFrom optional string
Deprecated. The payer's Bankgiro account. Used as payer number if PayerNumber has not been specified.
BankgiroTo mandatory string
The account to which the payment should be made.
DueDate optional date
The cancellation/amendment only applies to payments with this due date.
NewDueDate optional date
Indicates that this is an amendment instead of a cancellation, and that the due date should be changed to this due date.
PayerNumber mandatory string
The payer number to use. Can contain at most 16 digits.
Reference optional string
The cancellation/amendment only applies to payments with this reference.
SSNO optional string
Deprecated. The payer's social security number. Formatted as YYYYMMDDXXXX. Used as payer number if PayerNumber has not been specified.

SQL Call: File sent to Bankgirot

SQL to save the finished generated file and is called after the file has been sent to Bankgirot. A Success report is included in the call. It is used with "LBIN", "AGMEDGIVREG", "AGBETUND", "AGBETMAK", or "EF".
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Indicates the type of file sent.
Possible value Description
AGBETMAK Withdraw autogiro assignment.
AGBETUND Autogiro assignment.
AGMEDGIVREG Autogiro admission.
EF eInvoice
LBIN Supplier payment
@BankFile mandatory binary
Passes the finished file.
@BatchId mandatory string
Passes the current batchid.
@StatusMessage mandatory string
Bankgirot-specific statusmessage - set to "OK" if file was valid.

SQL Call: Save file from Bankgirot

SQL for saving downloaded files to database. N.b. Bgc_FileId should be stored in database for future use.
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Type of file.
Possible value Description
AG
BGI
LBUT
OTHER
@BankFile mandatory binary
Passes the downloaded file.
@BatchId mandatory string
Passes the current batchid.
@Bgc_FileId mandatory string
The Bankgirot-assigned id of the file.

Resultset: File id

Resultset that contains the id of the file.
Repeat mode: repeated exactly once
Row count: exactly one row

Columns:

BankFileId mandatory int
File id.

SQL Call: Report on supplier payments (LBUT) [From Bankgirot]

SQL with details of supplier payments. Is only used with LBUT.
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Set to 'LBUT' for this call.
@Amount mandatory decimal
The amount. Negative for credit invoices.
@BankAccountText mandatory string
Freetext.
@BankAccountTo mandatory string
Account to which the payment was made.
@BankFileId mandatory int
The previously assigned id of the file.
@BankgiroFrom mandatory string
Account from which the payment was made.
@BankgiroTo mandatory string
Account to which the payment was made.
@DateTime mandatory datetime
Date when the payment was made.
@Error mandatory bit
Indicates an error with the payment.
@ErrorCode mandatory string
Bankgirot-specific errorcode.
@ErrorDescription mandatory string
Explanatory error message from Bankgirot.
@PaymentId mandatory string
The PaymentId specified in LBIN.
@PlusgiroTo mandatory string
Account to which the payment was made.
@Reference mandatory string
OCR number, Invoice number, or similar.

SQL Call: Customer payments (BGI) [From Bankgirot]

SQL with details of customer payments. Is only used with BGI.
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Set to 'BGI' for this call.
@Amount mandatory decimal
The amount being transferred.
@BankAccountReceiver mandatory string
Account to which the payment was made.
@BankFileId mandatory int
The previously assigned id of the file.
@BankgiroReceiver mandatory string
Account to which the payment was made.
@Currency mandatory string
The currency in which the payment was being made.
@DateTime mandatory datetime
Date for the payment.
@Information mandatory string
Extra information.
@InsertId mandatory string
Id of the payment - Bankgirot-specific and unique for two years.
@PayerAddress mandatory string
Address of the payer.
@PayerCity mandatory string
City of the payer.
@PayerCountry mandatory string
Country of the payer.
@PayerName mandatory string
Name of payer.
@PayerPostalCode mandatory string
Postalcode of the payer.
@PlusgiroReceiver mandatory string
Account to which the payment was made.
@Reference mandatory string
OCR number, Invoice number, or similar. May contain multiple references separated by ', '.

SQL Call: Autogiro consent confirmation (AGMEDGIVKONF) [From Bankgirot]

SQL to save confirmations of automatic transaction admission registration or withdrawal.
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Set to 'AGMEDGIVKONF' for this call.
@BankAccount mandatory string
@BankFileId mandatory int
The previously assigned id of the file.
@BankgiroReceiver mandatory string
Account to which payments should be made.
@DateTime mandatory datetime
Date when the measure confirmed was carried out.
@Error mandatory bit
Returns zero if the operation was successful based on the error code from Bankgirot. One if not.
@ErrorCode mandatory int
Error code from Bankgirot.
@ErrorDescription mandatory string
Explanatory error message from Bankgirot.
@PayerNumber mandatory string
The payer's social security number if service is "Autogiro Privat". The payer's Bankgiro account for "Autogiro Företag".
@Source mandatory string
Source which initiated the operation now confirmed.
Possible value Description
BANK
PAYER
RECEIVER
SENDER
@SourceCode mandatory int
Bankgirot-specific source code.
@SourceDescription mandatory string
Explanatory source message from Bankgirot.
@ValidDateTime optional datetime
Date when registered account will valid for automatic transactions, i.e. when it can be debited. Only present in the old file format.
@Withdrawal optional bit
Returns one if the operation now confirmed was a withdrawal, zero if not. Not returned if unknown. The bit is derived by the component as an interpretation of the errorcode.

SQL Call: Autogiro electronic announcement (AGMEDGIVANM) [From Bankgirot]

SQL to save electronic annoucements of admissions for automatic transactions.
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Set to 'AGMEDGIVANM' for this call.
@BankFileId mandatory int
The previously assigned id of the file.
@BankgiroReceiver mandatory string
Account to which payments should be made.
@OrgNo mandatory string
@PayerCity mandatory string
City of the payer.
@PayerElectronicId mandatory string
Unique identification for electronic announcement. Should be passed back to Bankgirot in AGMEDGIVREG.
@PayerInformation mandatory string
Name and address or the payer.
@PayerMessage optional string
Message from the payer.
@PayerNumber mandatory string
The payer's social security number.
@PayerPostalCode mandatory string
Postal code of the payer.
@Ssno mandatory string

SQL Call: Automatic transaction status (AGBETRED) [From Bankgirot]

SQL to save reports of success or failure of automatic transactions.

May also include refund information. This only applies to New Autogiro files.
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Set to 'AGBETRED' for this call.
@Amount mandatory decimal
The amount debited. Negative if credited. Value is given with two decimals.
@BankFileId mandatory int
The previously assigned id of the file.
@BankgiroReceiver mandatory string
Account to which payments were made.
@DateTime mandatory datetime
Date for the transaction.
@Error mandatory bit
Returns zero if operation was successful. One if not. The bit is derived by the component as an interpretation of the error code.
@ErrorCode mandatory string
Bankgirot specific error code.
@ErrorDescription mandatory string
Explanatory error message from Bankgirot.
@PayerNumber mandatory string
The payer's social security number if service is "Autogiro Privat". The payer's Bankgiro account for "Autogiro Företag".
@Reference mandatory string
OCR number, Invoice number, or similar.
@RefundAmount mandatory decimal
The refund amount (positive), if this is a refund. The parameters without the Refund prefix refer to the original payment. Only applies to New Autogiro files.
@RefundBankAccount mandatory string
Refund receiver bank account. Only applies to New Autogiro files.
@RefundCode mandatory int
Code indicating the reason for the refund. Only applies to New Autogiro files.
@RefundDate mandatory date
Date when the refund was made. Only applies to New Autogiro files.
@RefundDescription mandatory string
Explanation of the refund code. Only applies to New Autogiro files.

SQL Call: Automatic transaction withdrawal status (AGBETMAKRED) [From Bankgirot]

SQL to save reports of success or failure for withdrawal of automatic transaction assignments.
Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Set to 'AGBETMAKRED' for this call.
@Amount mandatory decimal
See AgBetMak for details. This parameter is only set if it has a value.
@BankFileId mandatory int
The previously assigned id of the file.
@BankgiroReceiver mandatory string
Account to which payments were to be made.
@DueDate mandatory date
See AgBetMak for details. This parameter is only set if it has a value.
@Error mandatory bit
Returns zero if operation was successful. One if not. The bit is derived by the component as an interpretation of the error code.
@ErrorCode mandatory string
Bankgirot specific error code.
@ErrorDescription mandatory string
Explanatory error message from Bankgirot.
@NewDueDate mandatory date
See AgBetMak for details. This parameter is only set if it has a value.
@PayerNumber mandatory string
The payer's social security number if service is "Autogiro Privat". The payer's Bankgiro account for "Autogiro Företag".
@Reference mandatory string
See AgBetMak for details. This parameter is only set if it has a value.

SQL Call: File successfully parsed

SQL to report when file has been parsed with correct action.
Supports custom errors: No
May modify database: Yes

Parameters:

@BankFileId mandatory int
The ID of the file.
@Finished mandatory bit
Set to '1' by Softadmin® to indicate successful parsing.

SQL Call: Create electronic invoice to receiver (EF) [To Bankgirot]

Is used to send BGC INVOICE files to Bankgirot.
The call is only made if the EF column is set in the 'Get Actions' database call.
Supports custom errors: No
May modify database: No

Parameters:

@Action mandatory string
'EF'
@BatchId mandatory string

Resultset: Batch info

Repeat mode: repeated exactly once
Row count: zero or one row

Columns:

SenderAccountBG mandatory string
The bankgiro account of the Sender.

Ett bankgiro- eller plusgironr anges som ett rent numeriskt värde. Numret har fastlängd, 10 tecken, högerställt samt nollutfyllt utan bindestreck enligt formatet ZZNNNNNNNN.
SenderAccountPG optional string
The postgiro account of the Sender.

Ett bankgiro- eller plusgironr anges som ett rent numeriskt värde. Numret har fastlängd, 10 tecken, högerställt samt nollutfyllt utan bindestreck enligt formatet ZZNNNNNNNN.
SenderAddress1 optional string
The first address row of the Sender.
SenderAddress2 optional string
The second addressrow of the Sender.
SenderAddressCity optional string
The city of the Senders address.
SenderAddressCountry optional string
The country name of the Senders address.
SenderAddressCountryCode optional string
The country code of the Senders address.
SenderAddressZipCode optional string
The zip code of the Senders address.
SenderName mandatory string
The name of the Sender.
SenderOrgNo mandatory string
The organization number of the Sender.
SenderVATNo mandatory string
The VAT number of the Sender.
SenderVATText optional string
The VAT info of the Sender. i.e. "Innehar F-skattsedel".
TestCode optional string
Electronic invoices can only be sent to Bankgirot in a production environment.
To do a test, a test code has to be applied.
Valid codes are C (Certify) or T (Test).
In a B2C scenario:
- Applying "C" or "T", the invoices will only reach Bankgirot.
In a B2B scenario:
- Applying "C", the invoices will only reach Bankgirot but will be validated against the receivers unique controls.
- Applying "T", the invoices will be sent so the receiver. The receiver has to be able to handle the test.

Resultset: Invoice headings

The order will be used in the output to Bankgirot.
Repeat mode: repeated exactly once
Row count: one or more rows

Columns:

AmountNet mandatory decimal
The net amount of the invoice.
AmountTotal mandatory decimal
The total amount of the invoice.
AmountVat mandatory decimal
The VAT amount of the invoice.
Autogiro optional bit
Set to '1' if receiver pay by autogiro
ChangeableAmount optional bit
Set to 1 if the amount can be changed.
Currency mandatory string
The currency of the invoice.
DueDate mandatory datetime
The due date of the invoice.
InvoiceAddress1 optional string
The first address line of the invoice.
InvoiceAddress2 optional string
The second address line of the invoice.
InvoiceAddressCity optional string
The city of the invoice address.
InvoiceAddressCountry optional string
The country name of the invoice address.
InvoiceAddressCountryCode optional string
The country code of the invoice address.
InvoiceAddressZipCode optional string
The zip code of the invoice address.
InvoiceDate mandatory datetime
The invoice date of the invoice.
InvoiceNumber mandatory int
The invoice number of the invoice.
This is the key column. Any duplicates will be ignored.
ReceiverBankCode optional string
The code that indentifies the receivers bank (B2C). Mandatory for B2C.
Possible value Description
AAB Ålandsbanken
FINN Sparbanken Öresund
FSPA Swedbank
ICA ICA banken
LFB Länsförsäk.bank
NB Nordea
OEB Danske Bank
SBAB SBAB
SEB SEB
SHB Handelsbanken
SKB Skandiabanken
SYD Sparbanken Syd
ReceiverBankId optional int
MUST be included if the receiver has "automatiskt kvitterad anmälan". DO NOT INCLUDE OTHERWISE.

For a table of bank id values, see the last page of the manual "E-faktura Anmälningsärende", available online at https://www.bankgirot.se/globalassets/dokument/tekniska-manualer/e-faktura_tekniskmanual_anmalningsarende_sv.pdf
ReceiverCostCenter optional string
The cost center given by the invoice Receiver.
ReceiverName mandatory string
The name of the invoice Receiver.
ReceiverNr optional string
The Senders number of the invoice Receiver.
ReceiverOrderNr optional string
The order number given by the invoice Receiver.
ReceiverReference optional string
The reference given by the invoice Receiver.
ReceiverRegNo mandatory string
The 12 digit Social Security Number (B2C) or the 10 digit Organization Number (B2B) of the invoice Receiver.
Reference mandatory string
Must be a valid OCR number.
SenderEmail optional string
An email address given by the invoice Sender.
SenderFax optional string
A fax number given by the invoice Sender.
SenderMessage optional string
A message given by the invoice Sender.
SenderOrderNr optional string
An ordernumber given by the invoice Sender.
SenderPhone optional string
A phone number given by the invoice Sender.
SenderReference optional string
A reference given by the invoice Sender.

Resultset: Invoice rows

The order will be used in the output to Bankgirot.
Repeat mode: repeated exactly once
Row count: one or more rows

Columns:

APriceNet optional decimal
The unit net price of the invoice row.
APriceVat optional decimal
The unit VAT price of the invoice row.
ArticleNr optional string
The article number of the invoice row.
Description mandatory string
The article description of the invoice row.
InvoiceNumber mandatory int
The invoice number (OCR) of the invoice that the invoice row belongs to.
If this number has no match in the previous action, the row will be ignored.
Quantity optional int
The quantity of the invoice row.
QuantityUnit optional string
The quantity unit of the invoice row.
RowIndex mandatory int
Combined with the invoice number this is the unique key of the invoice row.
The row index do not override the order of output. It is only a key in the collection.
If there is a match in the previous rows, the row will be ignored.
RowText optional string
A text describing the invoice row.

SQL Call: Report on erroneous eInvoices (FHO) [From Bankgirot]

Supports custom errors: No
May modify database: No

Parameters:

@Action mandatory string
'FHO'
@Amount mandatory decimal
@BankFileId mandatory string
@DueDate mandatory datetime
@ErrorCode mandatory string
@ErrorText mandatory string
@InvoiceDate mandatory datetime
@InvoiceReferenceNumber mandatory string
@PayerNumber mandatory string
@ReceiverBankgiroNumber mandatory string
@UniqueId mandatory string
ÅÅÅÅ-MM-DD-TT.MM.SS

SQL Call: Report on eInvoice registrations (e-faktura anmälningsärende) (EFA) [From Bankgirot]

Fakturautställaren kan definiera egna fält för anmälningsärenden. Temptabellen #Fields(Name char(3), Value varchar(max)) innehåller de fält som fyllts i av fakturamottagaren.
Supports custom errors: No
May modify database: No

Parameters:

@Action mandatory string
Set to 'EFA'
@Bank mandatory string
The invoice receiver's bank on the format BANK.SE.
@BankFileId mandatory string
@DateTime mandatory datetime
Registration/deregistration datetime
@InvoiceIssuerOrgNo mandatory string
Organization number of the invoice issuer.
@InvoiceIssuerSequenceNumber mandatory string
Sequence number for the invoice issuer.
@IsTest mandatory bit
Possible value Description
0 Production.
1 Registrations were sent for testing.
@Section mandatory int
Sekvensnummer för anmälningstyp.
@Ssno mandatory string
The social security number for the invoice receiver
@Withdrawal mandatory bit

SQL Call: Electronic Invoice announcement (EFMEDGIVANM) [From Bankgirot]

Supports custom errors: No
May modify database: Yes

Parameters:

@Action mandatory string
Set to 'EFMEDGIVANM'
@Amount mandatory decimal
The amount, if the registration was in conjunction with a payment.
@BankFileId mandatory int
@BankgiroNumber mandatory string
@BankId mandatory int
The numerical identity of the bank. Not available if the consent information comes from the EGiro format.

See the last page of the manual "E-faktura Anmälningsärende", available online at https://www.bankgirot.se/globalassets/dokument/tekniska-manualer/e-faktura_tekniskmanual_anmalningsarende_sv.pdf
@DateTime mandatory string
@DueDate mandatory datetime
The due date of the invoice, if the registration was in conjunction with a payment.
@EGiroNumber mandatory string
@Error mandatory bit
Returns zero if operation was successful. One if not.
@ErrorCode mandatory int
Bankgirot specific error code.
@ErrorDescription mandatory string
Explanatory error message from Bankgirot.
@IsTest mandatory bit
@MaxAmount mandatory int
Max amount given for e-faktura acceptance.
@Ocr mandatory string
The OCR number, if the registration was in conjunction with a payment.
@OrgNo mandatory string
@PayerNumber mandatory string
@Source mandatory string
Source which initated the operation.
@SourceCode mandatory int
Bankgirot specific source code.
@SourceDescription mandatory string
Explanatory source message from Bankgirot.
@Ssno mandatory string
@ValidDateTime mandatory datetime
@Withdrawal mandatory bit
Returns one if the operation was a withdrawal, zero if not. Not returned if unknown. The bit is derived by the component as an interpretation of the error code.

SQL Call: Validate parameters

Allows you to validate the parameters supplied by the user before any other SQL is run in the component. This call is only made if the component has visible parameters, the SQL is a stored procedure, and 'Validate parameters' is checked.
Supports custom errors: No
May modify database: No

Parameters:

@force optional bit
@validateparams mandatory bit
This parameter is set to 1 by Softadmin® when this call is made.

Custom access control and logging

SQL Call: Custom access control and logging

Use this call to restrict which entries a user is allowed to view and edit, and to log which entries a user views.

Access to a menu item is normally controlled through functions and roles alone but some entities need more fine grained control. For example, a user may have access to the View Member menu item for normal members but not for members with a protected identity.

The menu items a user visits are always logged (in ADMINLogMenuItem) but for sensitive data you may need to log exactly what entries are viewed. Do the logging in this call as the common ways of viewing data (grid and InfoSQL) are not allowed to modify the database.

If you bind a scalar function instead of a stored procedure to this call then its name must end with '_GrantAccess'.
Supports custom errors: No
May modify database: Yes

Resultset: Access permissions

Return whether the user is allowed to visit the menu item with the current parameters.
Repeat mode: repeated exactly once
Row count: exactly one row

Columns:

GrantAccess mandatory bit
1 if the user is allowed to view the menu item, 0 if the user should not be allowed to view the menu item.

If 0 then an error will be logged as the user should not have been able to reach the menu item with the given parameters in the first place.

URL

Querystring parameters

menuitemheading optional
String that replaces the menu item name when the menu item is loaded. It does not replace the name before that (like for example in the navigator). It is ignored if the menu item is displayed as a part in a multipart in which case the name can be set from the multipart procedure.