• User Documentation 
  • Amaryllis Release Notes 
  • For Developers 

  • User Documentation 
  • Amaryllis Release Notes 
  • For Developers 

Heartland - Dev Portal

  • folder icon closed folder iconIntroduction
  • folder icon closed folder iconAuthentication
  • folder icon closed folder iconManagement
    • Getting Started
    • Platform Accounts Management
      • Get Platform Account Configuration
      • Get Platform Account
      • Create Platform Account
      • Update Platform Account
      • Objects Reference
    • Sub-Accounts Management
      • Get Sub-Account Configurations
      • Get Sub-Account
      • Create Sub-Account
      • Update Sub-Account
      • Objects Reference
    • Users Management
      • Get User by User Id
      • Get User by Username
      • Create User
      • Update User
      • Objects Reference
    • Underwriting Management
      • Get Application
      • Get Application Template
      • Get Application Fields Statuses
      • Get Application Status
      • Get Linked Sub-Accounts
      • Get Resubmission
      • UMS IFrame Authentication
      • UMS IFrame
      • UMS IFrame Authentication in Resubmission Mode
      • UMS IFrame in Resubmission Mode
      • Create Application
      • Update Application
      • Update Application Fields Statuses
      • Update Application Status
      • Objects Reference
      • Response Codes
  • folder icon closed folder iconTransactions Processing
    • Getting Started
    • Credit Card Transactions
      • 3D-Secure
      • Authorization
      • Void
      • Capture
      • Charge
      • Refund
      • Credit
      • Verify
      • Chargeback
      • Cancel
    • Update
    • Adjustment
    • Recurring
    • ACH
    • Response
    • Response Codes
    • Objects Reference
  • folder icon closed folder iconTransactions Echo
    • Getting Started
    • Credit Card Transactions
      • Authorization
      • Void
      • Capture
      • Charge
      • Refund
      • Credit
      • Verify
      • Chargeback
      • Cancel
    • Update
    • Adjustment
    • ACH
    • Echo Response
    • Response Codes
    • Objects Reference
  • folder icon closed folder iconTokenization
    • Processing with a Token
      • Getting Started
      • Processing with Tokenization
    • Tokenization iFrame
      • iFrame Integration
      • iFrame Customization
      • iFrame Testing
      • Response Example
    • Tokenization API
      • Getting Started
      • Tokenization Request
      • Tokenization Response
      • Response Codes
  • folder icon closed folder iconPayouts
    • Getting Started
    • Payout Transactions
    • Response
    • Objects Reference
  • folder icon closed folder iconReports
    • Getting Started
    • Reports API
      • Account Balances
      • Payouts
      • Payouts Reconciliation
      • Transaction Details
      • Settlements
      • Account Summary
      • Transactions
      • Transactions Summary
      • Fees Summary
      • Incoming Fees
      • Expected Future Revenue
      • Profitability Analysis
      • Reconciliation Summary
      • Reconciliation Records
      • Chargeback Analysis
      • Tokens
      • Sign-up Summary
    • Status Codes
  • folder icon closed folder iconErrors
  • folder icon closed folder iconResponse Codes
  1. Home
  2. Docs
  3. Heartland – Dev Portal
  4. Reports
  5. Reports API
  6. Profitability Analysis
Updated on June 9, 2023

Heartland - Dev Portal

  • folder icon closed folder iconIntroduction
  • folder icon closed folder iconAuthentication
  • folder icon closed folder iconManagement
    • Getting Started
    • Platform Accounts Management
      • Get Platform Account Configuration
      • Get Platform Account
      • Create Platform Account
      • Update Platform Account
      • Objects Reference
    • Sub-Accounts Management
      • Get Sub-Account Configurations
      • Get Sub-Account
      • Create Sub-Account
      • Update Sub-Account
      • Objects Reference
    • Users Management
      • Get User by User Id
      • Get User by Username
      • Create User
      • Update User
      • Objects Reference
    • Underwriting Management
      • Get Application
      • Get Application Template
      • Get Application Fields Statuses
      • Get Application Status
      • Get Linked Sub-Accounts
      • Get Resubmission
      • UMS IFrame Authentication
      • UMS IFrame
      • UMS IFrame Authentication in Resubmission Mode
      • UMS IFrame in Resubmission Mode
      • Create Application
      • Update Application
      • Update Application Fields Statuses
      • Update Application Status
      • Objects Reference
      • Response Codes
  • folder icon closed folder iconTransactions Processing
    • Getting Started
    • Credit Card Transactions
      • 3D-Secure
      • Authorization
      • Void
      • Capture
      • Charge
      • Refund
      • Credit
      • Verify
      • Chargeback
      • Cancel
    • Update
    • Adjustment
    • Recurring
    • ACH
    • Response
    • Response Codes
    • Objects Reference
  • folder icon closed folder iconTransactions Echo
    • Getting Started
    • Credit Card Transactions
      • Authorization
      • Void
      • Capture
      • Charge
      • Refund
      • Credit
      • Verify
      • Chargeback
      • Cancel
    • Update
    • Adjustment
    • ACH
    • Echo Response
    • Response Codes
    • Objects Reference
  • folder icon closed folder iconTokenization
    • Processing with a Token
      • Getting Started
      • Processing with Tokenization
    • Tokenization iFrame
      • iFrame Integration
      • iFrame Customization
      • iFrame Testing
      • Response Example
    • Tokenization API
      • Getting Started
      • Tokenization Request
      • Tokenization Response
      • Response Codes
  • folder icon closed folder iconPayouts
    • Getting Started
    • Payout Transactions
    • Response
    • Objects Reference
  • folder icon closed folder iconReports
    • Getting Started
    • Reports API
      • Account Balances
      • Payouts
      • Payouts Reconciliation
      • Transaction Details
      • Settlements
      • Account Summary
      • Transactions
      • Transactions Summary
      • Fees Summary
      • Incoming Fees
      • Expected Future Revenue
      • Profitability Analysis
      • Reconciliation Summary
      • Reconciliation Records
      • Chargeback Analysis
      • Tokens
      • Sign-up Summary
    • Status Codes
  • folder icon closed folder iconErrors
  • folder icon closed folder iconResponse Codes

Profitability Analysis

REST Sandbox URL: https://sandbox.4levers.com/NewReportsApi/api/Reports/profitability-analysis

REST Production URL: https://reports-api.4levers.com/api/Reports/profitability-analysis

Profitability Analysis report displays information about Outgoing Fees and Incoming Fees including mark as External Cost Fees.

Fees with Fee Target = Reserve Balance are ignored in this report.

Request Example (REST Production URL)
 

GET: https://reports-api.4levers.com/api/Reports/profitability-analysis?DateFrom=2020-06-01&DateTo=2020-07-17

Request Parameters

 NameTypeRequiredDescription
 datefromdatetime✓

determines the selection starting/ending time range

date in future (fees due date)

 datetodatetime✓
 clearingacquirercompaniesstring arrayoptionalspecify one or more acquiring companies
 reportperiodtypenumoptional

select the output period for the report

Available Values:
 
  • daily
  • monthly
 paymentmethodsenumoptional

specify the payment method

required in case credit card is populated.

Available Values:
 
  • creditcard
  • ach
  • giftcard
 creditcardsenumoptional

specify a credit card type

Available Values:
 
  • visa
  • mastercard
  • diners
  • isracard
  • americanexpress
  • discover
  • jcb
  • visadebit
  • mastercarddebit
  • delta
  • electron
  • maestro
  • solo
  • interac
 transactiontypeenumoptional

specify a transaction type

Available Values:
 
  • authorization
  • void
  • partialvoid
  • capture
  • partialcapture
  • charge
  • refund
  • partialrefund
  • credit
  • chargeback
  • payout
  • payoutrejectedbyprocessor
  • payoutdeclinedbyuser
  • payoutauthorization
  • retrieval
  • representment
  • arbitration
  • reversal
  • cancel
  • adjustment
  • fee
 statusenumoptional

transaction processing status

Available Values:
 
  • processed
  • declined
 TransactionOriginstring arrayoptionalspecify one or more processing sub-account id(s)
 serviceprovidersinteger/arrayoptionalenter your service provider id(s)
 operatorsinteger/arrayoptionalenter your operator id(s)
 accountsinteger/arrayoptionalenter your platform account id(s)
 subaccountsstring arrayoptionalenter your sub-account id(s)
 skipintegeroptional
these parameters determine which records will be displayed in the report based on specified index number.to get from fifth to twentieth record specify skip = 4 and take = 16
 takeintegeroptional

Response Parameters

 NameDescription
 feeDatesystem date and time
 transactionidtransaction identifier
 transactiontypetype of the transaction
 paymentmethodpayment method: ach, credit card or gift card type.
 transactionstatustransaction status
 transactionamountrelevant transaction amount
 incomingfeesamountamount of all incoming fees collected for the sub-account
 outgoingfeesamountamount of fees paid from the sub-account
 externalcostamountamount of incoming fees that were marked as cost
 profitamountincoming fees amount less external cost amount and outgoing fees amount
 subaccountsub-account identifier
 platformaccountplatform account name
				
					[
  {
        "feeDate": "2021-03-22T23:59:59",              
        "transactionId": "1150000277091582668",                
        "merchantTransactionId": "BOSL-213-023528",                
        "processorTransactionId": "1637084094",                
        "transactionSystemDate": "2021-03-22T22:31:51",                
        "transactionMerchantDate": "2021-03-22T22:06:52",              
        "transactionOrigin": "test_account",               
        "transactionType": "Charge",               
        "transactionDescription": "",              
        "merchantFreeText": "",                
        "paymentMethod": "Master Card",               
        "entryMode": "0-Unknown",              
        "transactionAmount": "25.97",              
        "transactionStatus": "Processed",              
        "processor": "None",               
        "terminalId": "",              
        "incomingFeesAmount": "0.000000",              
        "outgoingFeesAmount": "0.519400",              
        "externalCostAmount": "0.000000",              
        "profitAmount": "-0.519400",               
        "currency": "USD",             
        "subAccount": "test_account",              
        "platformAccount": "test_account"              
    },
    {
        "feeDate": "2021-03-22T23:59:59",              
        "transactionId": "1150000277091582668",                
        "merchantTransactionId": "BOSL-213-023528",                
        "processorTransactionId": "1637084094",                
        "transactionSystemDate": "2021-03-22T22:31:51",                
        "transactionMerchantDate": "2021-03-22T22:06:52",              
        "transactionOrigin": "test_account",               
        "transactionType": "Charge",               
        "transactionDescription": "",              
        "merchantFreeText": "",                
        "paymentMethod": "Master Card",               
        "entryMode": "0-Unknown",              
        "transactionAmount": "25.97",              
        "transactionStatus": "Processed",              
        "processor": "None",               
        "terminalId": "",              
        "incomingFeesAmount": "0.000000",              
        "outgoingFeesAmount": "0.519400",              
        "externalCostAmount": "0.000000",              
        "profitAmount": "-0.519400",               
        "currency": "USD",             
        "subAccount": "test_account",              
        "platformAccount": "test_account"
    }
]				
			
Still stuck? How can we help?
Was this page helpful? Yes No

How can we help?

© Amaryllis Payment Solutions, 2022  All rights reserved.