Aera Invoice

Configure Aera Invoice payment provider with Omnium for invoice-based B2B and B2C payments.

Aera Invoice Integration with Omnium

Omnium supports Aera Invoice for invoice-based payment processing. This provider is separate from the main Aera provider and handles invoice-specific operations.

Supported Features

  • Invoice activation (full and partial)
  • Credit/Refund with item-level detail
  • Invoice adjustments
  • Authorization cancellation
  • Status checking

Setup Instructions

Configuration Path

  1. Navigate to: Configuration > Settings > Payment > Payment Types > "..." > Add

  2. Fill out the required fields as outlined below.


Required Fields

FieldDescriptionValue
Unique Payment NameThe unique identifier for the Aera Invoice payment method.AeraInvoice
Payment ServiceThe name of the payment service used for this configuration.AeraInvoice
Provider NameSpecifies which provider to use.AeraInvoice
Display NameThe name shown in the Omnium interface.Aera Invoice or your preferred name
API TokenYour Aera API authentication token.Your API Token from Aera
Merchant IDYour Aera Merchant ID.Your Merchant ID from Aera
Base URLAera API endpoint URL.See Base URL Options

Base URL Options

EnvironmentBase URL
Staging/Testhttps://api-staging.aerahost.com
Productionhttps://api.aerahost.com

Additional Configuration

Properties

PropertyTypeDescription
UsernameStringYour Aera OAuth2 username
PasswordStringYour Aera OAuth2 password

Store-Level Merchant ID

The Merchant ID can be configured at the store level using the AeraMerchantId external ID on stores. This is useful for multi-merchant setups.

Priority Order:

  1. Merchant ID in payment settings (if set)
  2. AeraMerchantId store external ID (fallback)

Supported Operations

OperationSupportedNotes
Capture (Activate)YesFull and partial invoice activation
CancelYesCancel invoice authorization
Release Remaining AuthYesCancel remaining uncaptured amount
Refund (Credit)YesItem-level credit or adjustment
Check StatusYesRetrieve invoice status

Special Features

Transaction Reference Types

Aera Invoice supports two types of transaction references. The provider automatically detects which type is being used:

Reference FormatTypeUsage
GUID formatPayment ReferenceReferences from Aera payment system
Other formatsTransaction IDStandard transaction identifiers

When adding payments via API, GUIDs are treated as payment references while other formats are treated as transaction IDs.

Item ID Mapping

For accurate refund processing, the provider needs to match items with the original invoice. Item IDs are determined in this priority order:

  1. EAN (if available)
  2. First GTIN from product GTINs array (if available)
  3. LineItemId (fallback)

For returns to work correctly, the same ItemId must be sent to Aera as was used when creating the invoice.

Credit vs. Adjustment

The provider uses two different refund mechanisms depending on the scenario:

Credit (Item-Level):

  • Used when return items are provided
  • Sends original item prices and return quantities
  • Aera calculates refund based on returned items
  • Requires valid item IDs (EAN/GTIN/LineItemId)

Adjustment:

  • Used when item details are not available
  • Supports fixed amount adjustments
  • Allows optional comment field
  • Can handle negative amounts

Partial Activation

When capturing less than the full authorized amount:

  • Line items are recalculated to reflect the partial amount
  • Shipping can be included as a line item
  • Total of items must equal the capture amount

B2B and B2C Support

Aera Invoice supports both customer types:

  • B2B: Business-to-business invoicing
  • B2C: Consumer invoicing

The customer type is determined from the order's customer type property.


Invoice Status Values

StatusDescription
PENDING_CHECKInvoice pending verification
ACCEPTEDInvoice accepted
ACTIVATEDInvoice activated (captured)
CANCELEDInvoice cancelled
DELIVEREDInvoice delivered to customer
EXPIREDInvoice authorization expired
DECLINEDInvoice declined
PARTIALLY_PAIDPartial payment received
FULLY_PAIDFull payment received
IN_DEBTInvoice in debt collection
NOT_PAIDInvoice not paid

Adding Payments via API

Payments can be added to orders using the API endpoint:

POST /api/Orders/{orderId}/AddPayments

Requirements:

  • Status must be Processed
  • Payment method name must match the configured setting
  • Transaction ID format determines reference type (GUID = payment reference)

Relationship to Main Aera Provider

FeatureAeraAera Invoice
Payment FlowCard-based sessionsInvoice-based
Session ManagementYesNo
AuthorizationSupportedNot supported
CaptureSupportedSupported (activation)
Item-Level RefundsTransaction-basedFull item detail
Get Payment DetailsSupportedNot supported
Import PaymentsSupportedNot supported

Error Handling

Aera Invoice errors are displayed on the order in the Errors section.

Common Error Scenarios

ScenarioError
Missing Merchant IDCheck payment settings or store AeraMerchantId
Invalid Transaction IDVerify transaction ID is not null/empty
Amount mismatchEnsure item totals equal capture amount
No items to creditProvide return items for credit operation
No remaining authorizationCannot release when remaining amount is 0

Configuration Reference

Payment Service

AeraInvoice

Vue Template

aera-payment

Aera (card-based payments)