Jetpay Developer Guide
Using the API
Creating a Debit transaction
7 min
before you can create a debit transaction, make sure you have an getting your api key docid\ hwhhrzbkw1u b1bnjqp6p finding your bank account identifier first, you have to find the identifier for the bank account you wish the money to be deposited in navigate to the settings page on your jetpay dashboard and select the bank accounts tab click on the bank account you wish the transaction to be sent to this will open a side panel with some information about the bank account the identifier is shown at the bottom , in this case ffe2c516 2ef4 4ce8 a1e1 1960c5b321ad press the copy button on the right which will copy the value of the identifier into your clipboard ⚠warning make sure you have already saved the api token before you do this creating the request now that you have an api token and a bank account identifier, you are ready to initiate a transaction see the api docs for the create debit endpoint for more details and additional languages if you have followed the steps how to getting your api key docid\ hwhhrzbkw1u b1bnjqp6p , you can simply proceed to the api call with the parameters we've gathered if you want to test this without setting up a client , you can do this by using curl replace \<your api token here> and \<your bank account id here> with the token and id you just found, and fill in the amount , statement , note , contact email and contact name with the information you want to include the note parameter is optional; it is shown in the jetpay app for your reference and can be long enough to include more details than the statement , which is restricted to 30 characters note that the email address of the contact is included among the parameters of the api call for kyc purposes, but creating the transaction will not send your contact an email example curl s request put \\ \ url 'https //extapi jetpay baselinepayments com/debit' \\ \ header 'content type application/json' \\ \ header 'authorization bearer \<your api token here>' \\ \ data '{ "amount" 100 00, "to bank account" "\<your bank account id here>", "statement" "invoice 4231", "note" "this payment is in regards to invoice 4231 for electrical work completed on june 10th ", "contact email" "johndoe\@mail com", "contact name" "john doe" }' using the response if you have done everything correctly, you will receive a http 201 response from the api indicating that the debit request was created on the right is a sample response the identifier field may be useful in the future if you want to query or cancel the transaction { "identifier" "6277711d f132 4ef0 918c 56fcb1539707", "link" "https //jetpay baselinepayments com/payment/pay/6277711d f132 4ef0 918c 56fcb1539707" } this request is not automatically sent via email, but rather this link must be sent by your company or included in an invoice when your customer clicks the link, it will open a payment checkout page that looks like the image to the right after a payment request has been created, several approaches can be used for collecting a payment docid bwavoj8vipcigakd2vqs