Skip to content

April API (3.0)

Download OpenAPI description
Languages
Servers
Sandbox
https://api.sandbox.au.meetapril.io
Production
https://api.au.meetapril.io

Authentication

These endpoints provide various methods for authenticating users from a backend service.

  • POST /auth/signin Sign-in from a backend service on behalf of a consumer customer (B2C) or customer delegate (B2B)
Operations

Customers

A person or business purchasing goods or services from a merchant using Spenda to facilitate the payment. Customers are defined at the merchant level, so if an individual makes payments with multiple merchants, they will have a customer record for each of these merchants.

Spenda supports two broad categories of customers:

Consumer customers are individuals typically making purchases from the merchant via e-commerce websites. They are uniquely identified by emailAddress for a given merchant.

Organisation customers represent businesses wishing to make purchases from the merchant. They are uniquely identified by referenceCustomerId for a given merchant.

Operations

Merchants

A business or individual that uses Spenda to facilitate payments for their customers.

Operations

Payment sources

A payment source represents a reusable source of funds to use for payments.

Operations

Payment tokens

A payment token represents a single use reference to a source of funds that can be used to pay for an order.

Operations

Pay plans

A pay plan represents a payment where the Spenda platform has extended a loan to make a purchase that the customer pays back over one or more instalments.

  • POST /payplans/offer Create a pay plan offer for a registered and KYC'd merchant customer
  • GET /payplans Return a paginated list of matching pay plans
  • POST /payplans Create a pay plan and payment token from a successful pay plan offer
  • GET /payplans/{payPlanId} Return details of a pay plan
  • POST /payplans/max Return the maximum loan amount the given customer is currently eligible for
  • POST /payplans/parameters Calculate the pay plan parameters for the given amount and list of variants
Operations

Orders

An order captures the details of the goods or services that the customer is purchasing from the merchant.

Operations

Simulation

Sandbox only endpoints for simulating external events such as a bank transfer.

  • POST /simulation Sandbox only endpoint to simulate external events such as a bank transfer being performed
Operations

Transactions

A transaction is a payment from the perspective of a merchant. The transaction shows how much the merchant will be paid, if they have been paid already and whether there have been any refunds.

Operations

Marketplaces

A B2B2C setup where an entity with business customers (sub-merchants) uses Spenda to facilitate payments for their customers' customers.

Operations

Webhooks

Webhooks are a mechanism where merchants and marketplaces can register an endpoints against one or more events. When these events occur, a POST HTTP request is made to the registered endpoint with the event details.

  • GET /webhooks Return a paginated list of matching webhook subscriptions
  • POST /webhooks Create a new webhook subscription
  • GET /webhooks/{id} Return details of a webhook subscription
  • PATCH /webhooks/{id} Update an existing webhook subscription
Operations

Loans

Loans are payment products where credit is extended by a loan facility to a borrower. The borrower can be either an individual or a business depending on the loan product in question.

Operations

Query Loan Summaries

Request

Return a paginated list of matching loan summaries.

Security
Enterprise API Key | Marketplace API Key | Merchant Secret Token | Admin JWT | Merchant JWT | Marketplace JWT | Customer JWT
Query
limitinteger(int32)

Maximum results per page. Default to 20, must be between 1 and 500.

pageinteger(int32)

Page number of results to show (starting at page 1).

sortstring

Comma-delimited list of fields to sort by with sort priority from first to last. Fields are sorted by their natural ordering unless prefixed with a - character.

loanIdArray of strings

Filter by loan system identifiers.

referenceLoanIdArray of strings

Filter by reference loan id.

loanProductTypeArray of strings(LoanProductType)

Filter by loan product type.

Items Value"TradingAccount"
merchantIdstring

Filter by merchant identifier

customerIdArray of strings

Filter by customer identifier

currencystring

Filter by currency

Example: currency=AUD
statusArray of strings(Status)

Filter by loan status

Items Enum"enabled""disabled"
createdFromInclusivestring(date-time)required

Return loans that were created at or after this timestamp in ISO-8601 format

Example: createdFromInclusive=2026-02-26T03:26:16.449523247Z
createdToExclusivestring(date-time)

Return loans that were created before this timestamp in ISO-8601 format

curl -i -X GET \
  'https://api.sandbox.au.meetapril.io/loans?limit=0&page=0&sort=string&loanId=string&referenceLoanId=string&loanProductType=TradingAccount&merchantId=string&customerId=string&currency=AUD&status=enabled&createdFromInclusive=2026-02-26T03%3A26%3A16.449523247Z&createdToExclusive=2019-08-24T14%3A15%3A22Z' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Matching items sorted as specified

Headers
Page-Countinteger(int64)required

Total count of pages available for current query.

Total-Record-Countinteger(int64)required

Total number of records matching the query.

Bodyapplication/jsonArray [
loanIdstringrequired

The system identifier for the loan

referenceLoanIdstring

A reference provided by the applicant to identify this loan.

loanAccountNamestringrequired

Account name associated with the loan

loanMetadataobject(JsonObject)

Metadata associated with this loan, if any

timeZonestringrequired

Timezone of loan used to determine statement time windows and for reporting.

loanProductIdstringrequired

The system identifier for the loan product for this loan

loanFacilityIdstringrequired

The system identifier for the loan facility providing the loan product

borrowerMerchantIdstringrequired

The merchant associated with the borrower

borrowerMarketplaceIdstring

The marketplace associated with the merchant in scope, if any

loanMasterAgreementIdstring

The master agreement linked to this loan, if any

currencystringrequired

The currency of the loan

billingPaymentSourceIdstring

Payment source used for automated payments of loan statements, if any.

statusstring(Status)required

The status of the loan product

Enum"enabled""disabled"
specificationTradingAccountProductSpec (object)(Spec)required
One of:
specification.​TradingAccountProductSpecobject(TradingAccountProductSpec1)required
specification.​TradingAccountProductSpec.​customerIdstringrequired

The organisational customer that is the owner of the trade account.

specification.​TradingAccountProductSpec.​customerFeesobject(CustomerFees)required

Customer fees associated with this loan

specification.​TradingAccountProductSpec.​customerFees.​annualFixedFeeinteger(int64)required

Fee automatically charged to the account annually specified in major currency units

specification.​TradingAccountProductSpec.​customerFees.​implementationFixedFeeinteger(int64)

One off fee charged when loan is established specified in major currency units

specification.​TradingAccountProductSpec.​customerFees.​premiumAccountVariableFeenumber

Rate added to all charges for premium accounts, specified as a decimal (e.g. 0.05 for 5%)

specification.​TradingAccountProductSpec.​customerFees.​statementReissueFixedFeeinteger(int64)required

Fee charged to re-issue a statement via email

specification.​TradingAccountProductSpec.​customerFees.​currencyConversionVariableFeenumberrequired

Rate charged to convert drawdowns in foreign currencies to settlement currency

specification.​TradingAccountProductSpec.​customerFees.​internationalProcessingVariableFeenumberrequired

Card transaction using the Mastercard network is made in the settlement currency, but is processed outside of the market where the Service Application form is entered into

specification.​TradingAccountProductSpec.​customerFees.​transactionFixedFeeinteger(int64)

Fee attached to every transaction

specification.​TradingAccountProductSpec.​customerFees.​hotelEnrichmentFixedFeeinteger(int64)

Fee attached to every hotel transaction

specification.​TradingAccountProductSpec.​customerFees.​latePaymentReminderFixedFeeinteger(int64)required

Fee charged if the account payment is not made on time and a Reminder Letter needs to be sent

specification.​TradingAccountProductSpec.​customerFees.​latePaymentInterestVariableFeenumberrequired

Late Payment fees are chargeable on overdue amounts at % cost on an annualised basis

specification.​TradingAccountProductSpec.​metadataTemplateobject(MetadataTemplate)required
specification.​TradingAccountProductSpec.​metadataTemplate.​validationsArray of objects(FieldValidatorEntry)
specification.​TradingAccountProductSpec.​supportedIssuerBrandsArray of strings(IssuerCardBrand)

The list of brands of cards to support issued on the back of this loan.

Items Enum"UATP""Mastercard"
specification.​TradingAccountProductSpec.​statementFrequencyDaily (object) or Fortnightly (object) or Monthly (object) or Weekly (object)(StatementFrequency)required
One of:

How often to issue a customer loan statement.

specification.​TradingAccountProductSpec.​statementFrequency.​Dailyobject(Daily1)required
specification.​TradingAccountProductSpec.​graceDaysinteger(int32)required

Number of days between loan statement issue and due dates.

specification.​TradingAccountProductSpec.​industryGroupstring(IndustryGroup)

The industry group this loan is restricted to, if any.

Enum"travel""procurement"
loanBalancesobject(LoanBalances)required
loanBalances.​availableBalanceinteger(int64)required

The amount available for draw down from the loan in minor currency units

loanBalances.​usedBalanceinteger(int64)required

The amount currently outstanding in customer statements in minor currency units

loanBalances.​reservedBalanceinteger(int64)required

Loan transactions that have yet to appear on a customer statement in minor currency units

loanBalances.​pendingBalanceinteger(int64)required

Repayments in minor currency units where the corresponding funds have yet to settle

loanBalances.​accountLimitinteger(int64)required

The maximum amount that can be owed at any point

loanMasterAgreementBalancesobject(LoanMasterAgreementBalances)
createdAtstring(date-time)required
updatedAtstring(date-time)required
]
Response
application/json
[ { "loanId": "loan_aZ-9VvKvllCPqGs8", "referenceLoanId": "string", "loanAccountName": "string", "loanMetadata": {}, "timeZone": "Australia/Sydney", "loanProductId": "lprod_aZ-9WPKvllCPqGtG", "loanFacilityId": "lfac_aZ-9WPKvllCPqGtF", "borrowerMerchantId": "mcht_aZ-9UfKvllCPqGsZ", "borrowerMarketplaceId": "mktp_aZ-9UfKvllCPqGsi", "loanMasterAgreementId": "lma_aZ-9WPKvllCPqGtH", "currency": "AUD", "billingPaymentSourceId": "psrc_aZ-9UfKvllCPqGsf", "status": "enabled", "specification": {}, "loanBalances": {}, "loanMasterAgreementBalances": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ]

Get Loan Statement Summary

Request

Return a loan statement summary.

Security
Enterprise API Key | Marketplace API Key | Merchant Secret Token | Admin JWT | Merchant JWT | Marketplace JWT | Customer JWT
Path
loanStatementIdstringrequired
curl -i -X GET \
  'https://api.sandbox.au.meetapril.io/loans/statements/{loanStatementId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Bodyapplication/json
loanStatementIdstringrequired

The system identifier of the loan statement.

referenceStatementIdstringrequired

Unique identifier visible to the customer for the loan statement.

loanIdstringrequired

The system identifier for the loan

referenceLoanIdstring

A reference provided by the applicant to identify this loan.

loanAccountNamestringrequired

Account name associated with the loan

loanProductTypestring(LoanProductType)
Value"TradingAccount"
loanMetadataobject(JsonObject)

Metadata associated with this loan, if any

loanTimeZonestringrequired

Timezone of loan used to determine statement time windows and for reporting.

customerIdstring

The customer system identifier in scope for the given loan, if any

referenceCustomerIdstring

A reference provided by the merchant to identify this customer.

customerNamestring

The name of the customer in scope for the given loan, if any

customerTaxIdstring

The tax id for organisational customers, if any

customerMetadataobject(JsonObject)

Metadata associated with this organisational customer, if any

customerAddressobject(BusinessAddress)

Business address associated with this organisational customer, if any

billerNamestringrequired

Legal name of the company issuing the loan statement

billerTaxIdstringrequired

Tax id of the company issuing the loan statement

billerAddressobject(BusinessAddress)required

Address of the company issuing the loan statement

billerAddress.​unitNumberstring

The address unit number

billerAddress.​streetNumberstringrequired

The address street number

billerAddress.​streetNamestringrequired

The address street name

billerAddress.​streetTypestring

The address street type, eg Street or Road – not mandatory because 12 The Esplanade

billerAddress.​suburbstring

The address suburb

billerAddress.​citystring

The address city

billerAddress.​postalCodestringrequired

The address postal code. Should be digits between 4 and 10 characters long.

billerAddress.​statestring

The address state

billerAddress.​countrystring(Country)required

The address country

Enum"AU""HK""NZ""SG""ZA""US"
billerSupportEmailAddressstring

Support email address for the company issuing the loan statement

billerPhoneNumberstringrequired

Phone number for the company issuing the loan statement

borrowerMerchantIdstringrequired

The merchant in scope for the given loan

statementStartDatestring(date)required

The first day of loan entries included in the loan statement.

statementStartAtstring(date-time)required

The start of the first day of loan entries included in the loan statement.

statementEndDatestring(date)required

The last day of loan entries included in the loan statement.

statementEndAtstring(date-time)required

The end of the last day of loan entries included in the loan statement.

billingDatestring(date)required

When was the loan statement issued.

dueDatestring(date)required

When is repayment due for this statement.

settlementCurrencystringrequired

The currency used in this statement

netAmountinteger(int64)required

Sum of all non-insurance entries, before tax, in minor currency units.

insuranceAmountinteger(int64)required

Sum of all insurance entries, before tax, in minor currency units.

taxAmountinteger(int64)required

Sum of tax amount over all entries, in minor currency units.

billedAmountinteger(int64)required

Total amount due on the statement (excluding late fees), in minor currency units.

paidAmountinteger(int64)required

How much has already been paid towards this statement, in minor currency units.

feeAmountinteger(int64)required

Total fees included in this statement (excluding late fees), in minor currency units.

lateFeeAmountinteger(int64)required

Amount owed due to late fees, in minor currency units.

lateFeeLineItemobject(LineItem)

Amount owed due to late fees, in minor currency units.

outstandingAmountinteger(int64)required

Total amount remaining to be paid against this statement including late fees, in minor currency units.

paymentEventsArray of AutoPaymentFromCreditBalance (object) or CreditAppliedToNewStatement (object) or ManualPaymentMarked (object)(PaymentEvent)

Events related to the payment of this statement.

statusstring(Status1)required

Status of the repayment of this loan statement.

Enum"draft""outstanding""due""overdue""paid""cancelled"
totalEntryCountinteger(int64)required

Total number of entries in the loan statement.

createdAtstring(date-time)required

When the statement was created.

Response
application/json
{ "loanStatementId": "lstmt_aZ-9WPKvllCPqGtK", "referenceStatementId": "string", "loanId": "loan_aZ-9VvKvllCPqGs8", "referenceLoanId": "string", "loanAccountName": "string", "loanProductType": "TradingAccount", "loanMetadata": {}, "loanTimeZone": "Australia/Sydney", "customerId": "cust_aZ-9UfKvllCPqGsa", "referenceCustomerId": "string", "customerName": "string", "customerTaxId": "string", "customerMetadata": {}, "customerAddress": { "unitNumber": "string", "streetNumber": "string", "streetName": "string", "streetType": "string", "suburb": "string", "city": "string", "postalCode": 2000, "state": "string", "country": "AU" }, "billerName": "string", "billerTaxId": "string", "billerAddress": { "unitNumber": "string", "streetNumber": "string", "streetName": "string", "streetType": "string", "suburb": "string", "city": "string", "postalCode": 2000, "state": "string", "country": "AU" }, "billerSupportEmailAddress": "lucy.diamond@star.com", "billerPhoneNumber": "+61401234567", "borrowerMerchantId": "mcht_aZ-9UfKvllCPqGsZ", "statementStartDate": "2019-08-24", "statementStartAt": "2019-08-24T14:15:22Z", "statementEndDate": "2019-08-24", "statementEndAt": "2019-08-24T14:15:22Z", "billingDate": "2019-08-24", "dueDate": "2019-08-24", "settlementCurrency": "AUD", "netAmount": 0, "insuranceAmount": 0, "taxAmount": 0, "billedAmount": 0, "paidAmount": 0, "feeAmount": 0, "lateFeeAmount": 0, "lateFeeLineItem": { "entryType": "Charge", "description": "string", "netAmount": 0, "taxAmount": 0, "totalAmount": 0, "taxRate": 0, "taxType": "string", "originalAmount": {} }, "outstandingAmount": 0, "paymentEvents": [ {} ], "status": "draft", "totalEntryCount": 0, "createdAt": "2019-08-24T14:15:22Z" }

Query Loan Statement Summaries

Request

Return a paginated list of matching loan statement summaries.

Security
Enterprise API Key | Marketplace API Key | Merchant Secret Token | Admin JWT | Merchant JWT | Marketplace JWT | Customer JWT
Query
limitinteger(int32)

Maximum results per page. Default to 20, must be between 1 and 500.

pageinteger(int32)

Page number of results to show (starting at page 1).

sortstring

Comma-delimited list of fields to sort by with sort priority from first to last. Fields are sorted by their natural ordering unless prefixed with a - character.

loanIdArray of strings

Filter by loan system identifiers.

loanStatementIdArray of strings

Filter by loan statement system identifier

referenceStatementIdArray of strings

Filter by reference statement identifier

merchantIdstring

Filter by merchant identifier

customerIdArray of strings

Filter by customer identifier

currencystringrequired

Filter by currency

Example: currency=AUD
createdFromInclusivestring(date-time)

Return loan activity that was created at or after this timestamp in ISO-8601 format

Example: createdFromInclusive=2026-02-26T03:26:16.451391677Z
createdToExclusivestring(date-time)

Return loan activity that were created before this timestamp in ISO-8601 format

dueOnFromInclusivestring(date)

Return loan activity that is due on or after this date in ISO-8601 format.

Example: dueOnFromInclusive=2026-02-26
dueOnToInclusivestring(date)

Return loan activity that is due on or before this date in ISO-8601 format.

curl -i -X GET \
  'https://api.sandbox.au.meetapril.io/loans/statements?limit=0&page=0&sort=string&loanId=string&loanStatementId=string&referenceStatementId=string&merchantId=string&customerId=string&currency=AUD&createdFromInclusive=2026-02-26T03%3A26%3A16.451391677Z&createdToExclusive=2019-08-24T14%3A15%3A22Z&dueOnFromInclusive=2026-02-26&dueOnToInclusive=2019-08-24' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Matching items sorted as specified

Headers
Page-Countinteger(int64)required

Total count of pages available for current query.

Total-Record-Countinteger(int64)required

Total number of records matching the query.

Bodyapplication/jsonArray [
loanStatementIdstringrequired

The system identifier of the loan statement.

referenceStatementIdstringrequired

Unique identifier visible to the customer for the loan statement.

loanIdstringrequired

The system identifier for the loan

referenceLoanIdstring

A reference provided by the applicant to identify this loan.

loanAccountNamestringrequired

Account name associated with the loan

loanProductTypestring(LoanProductType)
Value"TradingAccount"
loanMetadataobject(JsonObject)

Metadata associated with this loan, if any

loanTimeZonestringrequired

Timezone of loan used to determine statement time windows and for reporting.

customerIdstring

The customer system identifier in scope for the given loan, if any

referenceCustomerIdstring

A reference provided by the merchant to identify this customer.

customerNamestring

The name of the customer in scope for the given loan, if any

customerTaxIdstring

The tax id for organisational customers, if any

customerMetadataobject(JsonObject)

Metadata associated with this organisational customer, if any

customerAddressobject(BusinessAddress)

Business address associated with this organisational customer, if any

billerNamestringrequired

Legal name of the company issuing the loan statement

billerTaxIdstringrequired

Tax id of the company issuing the loan statement

billerAddressobject(BusinessAddress)required

Address of the company issuing the loan statement

billerAddress.​unitNumberstring

The address unit number

billerAddress.​streetNumberstringrequired

The address street number

billerAddress.​streetNamestringrequired

The address street name

billerAddress.​streetTypestring

The address street type, eg Street or Road – not mandatory because 12 The Esplanade

billerAddress.​suburbstring

The address suburb

billerAddress.​citystring

The address city

billerAddress.​postalCodestringrequired

The address postal code. Should be digits between 4 and 10 characters long.

billerAddress.​statestring

The address state

billerAddress.​countrystring(Country)required

The address country

Enum"AU""HK""NZ""SG""ZA""US"
billerSupportEmailAddressstring

Support email address for the company issuing the loan statement

billerPhoneNumberstringrequired

Phone number for the company issuing the loan statement

borrowerMerchantIdstringrequired

The merchant in scope for the given loan

statementStartDatestring(date)required

The first day of loan entries included in the loan statement.

statementStartAtstring(date-time)required

The start of the first day of loan entries included in the loan statement.

statementEndDatestring(date)required

The last day of loan entries included in the loan statement.

statementEndAtstring(date-time)required

The end of the last day of loan entries included in the loan statement.

billingDatestring(date)required

When was the loan statement issued.

dueDatestring(date)required

When is repayment due for this statement.

settlementCurrencystringrequired

The currency used in this statement

netAmountinteger(int64)required

Sum of all non-insurance entries, before tax, in minor currency units.

insuranceAmountinteger(int64)required

Sum of all insurance entries, before tax, in minor currency units.

taxAmountinteger(int64)required

Sum of tax amount over all entries, in minor currency units.

billedAmountinteger(int64)required

Total amount due on the statement (excluding late fees), in minor currency units.

paidAmountinteger(int64)required

How much has already been paid towards this statement, in minor currency units.

feeAmountinteger(int64)required

Total fees included in this statement (excluding late fees), in minor currency units.

lateFeeAmountinteger(int64)required

Amount owed due to late fees, in minor currency units.

lateFeeLineItemobject(LineItem)

Amount owed due to late fees, in minor currency units.

outstandingAmountinteger(int64)required

Total amount remaining to be paid against this statement including late fees, in minor currency units.

paymentEventsArray of AutoPaymentFromCreditBalance (object) or CreditAppliedToNewStatement (object) or ManualPaymentMarked (object)(PaymentEvent)

Events related to the payment of this statement.

statusstring(Status1)required

Status of the repayment of this loan statement.

Enum"draft""outstanding""due""overdue""paid""cancelled"
totalEntryCountinteger(int64)required

Total number of entries in the loan statement.

createdAtstring(date-time)required

When the statement was created.

]
Response
application/json
[ { "loanStatementId": "lstmt_aZ-9WPKvllCPqGtK", "referenceStatementId": "string", "loanId": "loan_aZ-9VvKvllCPqGs8", "referenceLoanId": "string", "loanAccountName": "string", "loanProductType": "TradingAccount", "loanMetadata": {}, "loanTimeZone": "Australia/Sydney", "customerId": "cust_aZ-9UfKvllCPqGsa", "referenceCustomerId": "string", "customerName": "string", "customerTaxId": "string", "customerMetadata": {}, "customerAddress": {}, "billerName": "string", "billerTaxId": "string", "billerAddress": {}, "billerSupportEmailAddress": "lucy.diamond@star.com", "billerPhoneNumber": "+61401234567", "borrowerMerchantId": "mcht_aZ-9UfKvllCPqGsZ", "statementStartDate": "2019-08-24", "statementStartAt": "2019-08-24T14:15:22Z", "statementEndDate": "2019-08-24", "statementEndAt": "2019-08-24T14:15:22Z", "billingDate": "2019-08-24", "dueDate": "2019-08-24", "settlementCurrency": "AUD", "netAmount": 0, "insuranceAmount": 0, "taxAmount": 0, "billedAmount": 0, "paidAmount": 0, "feeAmount": 0, "lateFeeAmount": 0, "lateFeeLineItem": {}, "outstandingAmount": 0, "paymentEvents": [], "status": "draft", "totalEntryCount": 0, "createdAt": "2019-08-24T14:15:22Z" } ]

Query Loan Statement Entries

Request

Return a paginated list of matching loan statement entries.

Alpha release - Consider this endpoint experimental and very likely to change in future.

Security
Marketplace API Key | Enterprise API Key | Merchant Secret Token | Admin JWT | Merchant JWT | Marketplace JWT | Customer JWT
Query
limitinteger(int32)

Maximum results per page. Default to 20, must be between 1 and 500.

pageinteger(int32)

Page number of results to show (starting at page 1).

sortstring

Comma-delimited list of fields to sort by with sort priority from first to last. Fields are sorted by their natural ordering unless prefixed with a - character.

loanStatementIdArray of strings

Filter by loan statement system identifier

curl -i -X GET \
  'https://api.sandbox.au.meetapril.io/loans/statements/entries?limit=0&page=0&sort=string&loanStatementId=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Headers
Page-Countinteger(int64)required

Total count of pages available for current query.

Total-Record-Countinteger(int64)required

Total number of records matching the query.

Bodyapplication/json
currencystringrequired

Three-letter ISO currency code, in uppercase. See https://www.iso.org/iso-4217-currency-codes.html

entriesArray of objects(LoanStatementEntry)
totalPagesinteger(int64)required
totalRecordsinteger(int64)required
Response
application/json
{ "currency": "AUD", "entries": [ {} ], "totalPages": 0, "totalRecords": 0 }

Download Loan Statement

Request

Return a loan statement report in either CSV, PDF or XML format. The report is provided in a password protected zip file.

Security
Enterprise API Key | Marketplace API Key | Admin JWT | Marketplace JWT | Customer JWT
Path
loanStatementIdstringrequired
Query
mediaTypestring(LoanStatementReportMediaType)required

The file format to use for the report

Enum"PDF""CSV""XML"
curl -i -X GET \
  'https://api.sandbox.au.meetapril.io/loans/enterprise/statements/{loanStatementId}/download?mediaType=PDF' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Headers
Content-Dispositionstringrequired
Bodyapplication/zip
string(binary)
Response
No content

Report Loan Statement Entries

Request

Return a list of all loan statement entries matching the given search criteria. If loanSettlementId or loanId is not specified, currency, and a date range (either created at or due on) must be provided.

Alpha release - Consider this endpoint experimental and very likely to change in future.

Security
Marketplace API Key | Enterprise API Key | Merchant Secret Token | Admin JWT | Merchant JWT | Marketplace JWT | Customer JWT
Query
loanStatementIdArray of strings

Filter by loan statement system identifier

curl -i -X GET \
  'https://api.sandbox.au.meetapril.io/loans/statements/entries/report?loanStatementId=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Bodyapplication/json
currencystringrequired

Three-letter ISO currency code, in uppercase. See https://www.iso.org/iso-4217-currency-codes.html

entriesArray of objects(LoanStatementEntry)
totalPagesinteger(int64)required
totalRecordsinteger(int64)required
Response
application/json
{ "currency": "AUD", "entries": [ {} ], "totalPages": 0, "totalRecords": 0 }

Card issuer

Endpoints related to the issuing of digital cards, typically associated with a trade account based loan.

Operations

PayTo

Operations