Transactions

Creation of an ACH draft by a merchant or customer in exchange for the products or services of a merchant. Transactions utilize the customer's routing and account information.

Create Transaction

HTTP Method: POST

Use this method to create a transaction.

Endpoint: https://1d3.api.vericheck.com/transactions

Request Content – Example #1

Shell

APIKey="api_aaabbbcccdddeeefffggghhhiiijjjkkklll";
MerchantID="mer_7sdkf023jossdjf2398ald";
time curl -u $APIKey: -XPOST -d '{
"merchant_id":"'$MerchantID'",
"amount":542.51,
"description":"Office Furniture",
"type":"debit",
"standard_entry_class":"WEB",
"customer":{
    "name":"Testy BooJack",
    "account_number":"2619383845",
    "routing_number":"082000073",
    "account_type":"checking"
    }
}' https://1d3.api.vericheck.com/transactions

Request Content – Example #2

JSON

{
  "merchant_id":"mer_7sdkf023jossdjf2398ald",
  "amount":65.14,
  "description":"Office Furniture",
  "type":"debit",
  "standard_entry_class":"WEB",
  "customer":{
    "id":"cus_2k1620ikf0k3235gf343"
  }
}

Response Example

JSON

{
  "success":true,
  "payload":{
    "id":"txn_2387jmsjm234asdf02sf2"
  }
}

Transaction Object

FieldData TypeRequiredDescription
idstringnotransaction identifier that begins with prefix 'txn_xxxxxxxxxxx'
merchant_idstringyesunique identifier of the merchant that begins with prefix 'mer_xxxxxxxxx'
amountnumberyesthe monetary value
descriptionstringyesdescription of the transaction
typestring ('debit', 'credit')yesdebit is ACH transaction that is intended to withdraw funds from a Receiver's account for deposit into Merchant's Settlement Account. credit is ACH transaction that is intended to deposit funds into a Receiver's account which has been withdrawn from Merchant's Settlement Account.
standard_entry_classstringyesthe standard_entry_classes are 3 character codes used to identify various types of entries. See http://www.vericheck.com/ach-transaction-types/ for more details.
check_numberstringyes for BOC, POPthe check_number is the identifying number of a check.
check_image_frontstring; base64 encodedyes for POP, ICL, BOCfront image copy of the check associated with the account.
check_image_backstring; base64 encodedyes for POP, ICL, BOCback image copy of the check associated with the account.
customerobject; either id or whole objectyesfull customer credentials which includes name, routing number, account number, and account type or customer token that begins with prefix 'cus_xxxxxxxxxxx'.

Void Transaction

HTTP Method: PUT

Endpoint: https://1d3.api.vericheck.com/transactions/{transaction_id}/void

Does not require a request body.

Reverse Transaction

HTTP Method: PUT

Endpoint: https://1d3.api.vericheck.com/transactions/{transaction_id}/reverse

Does not require a request body.

Reverse Request – Example

Shell

TransactionUUID="txn_aaabbbcccdddeeefffggghhhiiijjjkkklll";
APIKey="api_aaabbbcccdddeeefffggghhhiiijjjkkklll";
MerchantID="mer_aaabbbcccdddeeefffggghhhiiijjjkkklll";
time curl -X PUT https://1d3.api.vericheck.com/transactions/txn_aaabbbcccdddeeefffggghhhiiijjjk

Response Example

JSON
{  
 "success":true,
   "payload":{  
      "id":"txn_2387jmsjm234asdf02sf2"
   }
}

Did this page help you?