Skip to content

Instantly share code, notes, and snippets.

@gregbell
Created July 6, 2010 02:28
Show Gist options
  • Save gregbell/464925 to your computer and use it in GitHub Desktop.
Save gregbell/464925 to your computer and use it in GitHub Desktop.

VersaPay REST API v 0.1

Messages

Response Formats

Add one of the following formats to the end of the url

.json .xml

Messages

*Create a Transaction* POST secure.versapay.com/api/transactions.json

Parameters *“send” and “request” Transactions

transaction Transaction amount in cents transaction ‘send’, ‘request’ transaction Recipients email address

transaction[message]              Optional - A message describing the transaction.

*“direct_debit” and “direct_credit” Transactions

transaction Transaction amount in cents transaction ‘direct_credit’, ‘direct_debit’ transaction Optional transaction Bank Account institution number. 3 digits. transaction Bank Account branch number. Between 4-5 digits. transaction Bank Account number. Between 1-12 digits

transaction[memo]                 Optional - Memo displayed on customer banking statement.

_Response Parameters_



token The transaction identifier amount Transaction amount in cents message Transaction message email Recipients email address state Transactions current state from_account Name of the originating account to_account Name of the recipient account from_fund Name of the balance or bank account used when transaction_type is ‘send’ or ‘direct_credit’ to_fund Name of the balance or bank account destinated when transaction_type is ‘request’ or ‘direct_debit’ created_by_user Name of the user. The API token appears if the transaction was created with the api. —

*View a transaction*

GET secure.versapay.com/api/transactions/[token].json Parameters

None. Transaction token should be used in the endpoint. _Repsonse Parameters_

Same as ‘CREATE’ response parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment