Send payment claims / invoices
- First check which invoicing options are available for the respective customers:
- Check for an active AvtaleGiro mandate
- Check for an eFaktura agreement (refer to the eFaktura documentation at https://www.efaktura.no/developer/documentation
- Based on the existence of an active AvtaleGiro mandate and/or eFaktura agreement, you can send a transaction as an AvtaleGiro claim, an eFaktura invoice, or a combination of both. Use the API call: addShipment
- Save the UUIDs used in the addShipment call so that you can check the status of the shipment and transactions later.
Input fields
The following input fields are used for
addShipment.
(Key: C = Compulsory, O = Optional, EO = Either Or, NU = Not used)
Check shipment status
Using the shipment UUID, make a call to the endpoint
getShipmentStatus. The response will include the number of transactions accepted, the number of transactions rejected, and the reasons for any rejections.
An overview of all sent shipments with UUIDs within a time period can be requested by using the
getShipment call.
Shipment statuses
IN_PROGRESS - Shipment received and processing. No transaction statuses available.
PROCESSED - Shipment processed and all transactions validated. See transaction level statuses.
STOPPED - Shipment stopped. See transaction level statuses.
Transaction status
It is possible to check the status of individual transactions any time after it has been posted using the API call
getTransactionStatus. Combination transactions will have individual statuses for the AvtaleGiro claim and eFaktura invoice, respectively.
AvtaleGiro transaction statuses
IN_PROGRESS – Transaction received and is being processed.
PENDING – Transaction validated and waiting for distribution to debtor/payer bank. The transaction will undergo further processing and validation at the bank. Transactions are sent to banks once per day at approximately 17:00.
PROCESSED – Transaction validated and distributed to debtor/payer bank. The transaction will undergo further processing and validation at the bank. Transactions are sent to banks once per day at approximately 17:00.
REJECTED – The transaction has been rejected by Mastercard Payment Services. The reason will be included in the status message.
NOT_AN_ATG_TRANSACTION – No AvtaleGiro in this transaction.
If a cancellation process has been initiated for an AvtaleGiro transactions the possible statuses are:
CANCELLATION_IN_PROGRESS - Cancellation received and is being processed.
CANCELLATION_PENDING - Cancellation validated and waiting for bank response.
CANCELLATION_REJECTED - The cancellation has been rejected by Mastercard Payment Services or the payer's bank. The reason will be included in the status message.
CANCELLED - Transaction cancelled by creditor.
eFaktura transaction statuses
IN_PROGRESS – Transaction received and being processed
ACCEPTED – Transaction validated and distributed to debtor/payer
REJECTED – Transaction validated rejected
STOPPED - Transaction stopped by Mastercard Payment Services
CANCELLED – Transaction cancelled by creditor
NOT_AN_EFAKTURA_TRANSACTION – No eFaktura in this transaction
Important to note
If a transaction is sent as a combination of AvtaleGiro and eFaktura and the transaction is rejected by AvtaleGiro, the eFaktura invoice will be parked and not distributed to debtor/payer.
If an AvtaleGiro transaction is sent via this API, any rejected transactions will not appear in lists (e.g. L202, L2603); the status must be found using this API.
Cancel a shipment
To cancel a shipment, use
cancelShipment and include the UUID associated with the shipment being cancelled.
Cancel a transaction
To cancel a transaction, use
cancelTransaction and include the UUID associated with the transaction being cancelled.
Go to topGo back to Developer