Transactions Batch CSV

It is also possible to create transactions by uploading it using a CSV file. The template CSV file can be found in the portal.

To be able to upload, first you need to validate the file, second upload and create transactions.

info

Uploading a Batch CSV is only available right now for transaction method: EFT

Validating transactions from batch file#

Use this endpoint if you want to validate a transactions batch file.

Method: POST

Endpoint: {{env}}/api/transaction/ValidateBatchFile

{
"TransactionType": "AccountsReceivable",
"WalletId": "30126b59-ab21-491c-8033-008376504210",
"Bytes": "Zmlyc3RfbmFtZSo7bGFzdF9uYW1lKjtidXNpbmVzc19uYW1lO2luc3RpdHV0aW9uX251bWJlcio7YnJhbmNoX251bWJlcio7YWNjb3VudF9udW1iZXIqO2Ftb3VudF9pbl9jZW50cyo7dHJhbnNhY3Rpb25fY29tbWVudDttZW1vKjtzY2hlZHVsZWRfZGF0ZQpKb2huO0RvZTs7MTIzOzEyMzQ1OzEyMzQ1Njc7MTAwO0ludGVybmFsIE1lc3NhZ2U7TWVtbyBtZXNzYWdlOw=="
}

Input parameters

ParameterTypeMandatoryDescription
TransactionTypestringyesTransaction type
WalletIdstringnoThe Wallet Id, according to TransactionType
FundingSourceIdstringnoThe Funding Source Id
BytesstringyesThe file's blob
  • Concerning FundingSourceId and WalletId, just one of them must be sent

Response

ParameterTypeDescription
InvalidTransactionsstringThe amount of invalid transactions
ValidTransactionsintThe amount of valid transactions
StatusstringThe validation status
TotalAmountdecimalThe sum of all transactions amount
Transactions
AccountNumberstringThe account number
AmountdecimalThe transaction's amount
CommentstringThe transaction's comment
CompanyNamestringCompany's name
CustomerIdstringCustomer id
FirstNamestringUser's first name
LastNamestringUser's last name
InstitutionNumberstringInstitution's number
MemostringThe transaction's memo
StatusstringThe status
TransitNumberstringTransit number

Each transaction will return a Status property explaining what is wrong with it

Status

Description
Ok
First Name, Last Name or Company name are mandatory
Either First and Last Name or Company Name should be informed
Institution, Transit and Account numbers are mandatory
Institution Number min length is 3 characters
Transit Number length needs to be 5 characters
Account Number min length is 5 characters
Account Number max length is 12 characters
Invalid amount
Amount must be greater than zero
Duplicated transaction

Creating transactions through batch file#

Use this endpoint if you want to create transactions using a batch file.

Method: POST

Endpoint: {{env}}/api/transaction/ProcessBatchFile

{
"TransactionType": "AccountsReceivable",
"WalletId": "30126b59-ab21-491c-8033-008376504210",
"Bytes": "Zmlyc3RfbmFtZSo7bGFzdF9uYW1lKjtidXNpbmVzc19uYW1lO2luc3RpdHV0aW9uX251bWJlcio7YnJhbmNoX251bWJlcio7YWNjb3VudF9udW1iZXIqO2Ftb3VudF9pbl9jZW50cyo7dHJhbnNhY3Rpb25fY29tbWVudDttZW1vKjtzY2hlZHVsZWRfZGF0ZQpKb2huO0RvZTs7MTIzOzEyMzQ1OzEyMzQ1Njc7MTAwO0ludGVybmFsIE1lc3NhZ2U7TWVtbyBtZXNzYWdlOw=="
}

Input parameters

ParameterTypeMandatoryDescription
TransactionTypestringyesTransaction type
WalletIdstringnoThe Wallet Id, according to TransactionType
FundingSourceIdstringnoThe Funding Source Id
BytesstringyesThe file's blob
WithdrawSumTotalFromFundingSourceboolnoIf set to True, we will do one transaction to pull the entire sum of transactions in the batch from the funding source. This is only applicable for Accounts Payable transactions with more than 1 transaction in the file. It does not work for scheduled transactions. Read more about this feature here.
  • Concerning FundingSourceId and WalletId, just one of them must be sent

TransactionType

TypeDescription
AccountsReceivableExecute accounts receivable AR
AccountsPayableExecute accounts payable AP