Jetpay Developer Guide
Send money
Use saved bank details
7 min
use this flow when you have already collected and stored a supplier’s bank account and want to send funds without collecting their details again this is the standard approach for vendor payouts, contractor payments, refunds, or any recurring disbursement workflow once a bank account is securely stored and associated with a contact, you can initiate credits using its identifier no additional bank details are required at payout time prerequisites docid zgmim7qkrraox9jjaqrl your docid\ aex0ssfndr xgalxg2 zf where funds will be deposited docid\ bzwf0wyooqbkgsfugenh0 docid\ vr87t15eacohe 60ckeqv flow overview sequencediagram participant platform backend participant jetpay api platform backend >>jetpay api put /credit (amount, contact id, to bank account) jetpay api >>platform backend credit created (processing) jetpay api >>platform backend webhook credit status updates (initiated, completed, etc )) implementation details create a credit endpoint put /credit https //extapi jetpay baselinepayments com/docs#tag/transactions (v0)/operation/create credit credit put use your contact id ( contact id ), your contact's bank account id ( from bank account ) and your merchant bank account id ( from bank account ) to create a credit transaction base url="https //extapi demo jetpay baselinepayments com" api token="\<your api token>" curl x put "$base url/credit" \\ h "authorization bearer \<your api token>" \\ h "content type application/json" \\ d '{ "amount" 10000, "statement" "supplier payout", "note" "invoice 4821", "from bank account" "platform bank abc", "to bank account" "bank 456", "contact id" "contact 123" }'import requests base url = "https //extapi demo jetpay baselinepayments com" api token = "\<your api token>" headers = { "authorization" f"bearer {api token}", "content type" "application/json" } credit response = requests put( f"{base url}/credit", headers=headers, json={ "amount" 10000, "statement" "supplier payout", "note" "invoice 4821", "from bank account" "platform bank abc", "to bank account" "bank 456", "contact id" "contact 123" } ) print(credit response json())const base url = "https //extapi demo jetpay baselinepayments com"; const api token = "\<your api token>"; const headers = { "authorization" `bearer ${api token}`, "content type" "application/json" }; async function sendpayout() { const response = await fetch(`${base url}/credit`, { method "put", headers, body json stringify({ amount 10000, statement "supplier payout", note "invoice 4821", from bank account "platform bank abc", to bank account "bank 456", contact id "contact 123" }) }); const data = await response json(); console log(data); } sendpayout(); handle the response if the credit is successfully created, a response will be returned with an http status code of 200 and the following response body { "identifier" "credit 123", "link" "http //example com", "amount" 10000 } there is no further step to take once the credit is successfully created track status updates via events/webhooks as the transaction moves through its lifecycle, an event is created for each state update the most efficient way to track these updates in your system is to register for webhooks if you are not yet familiar with our webhooks system, please review the docid 79a4cgvetacholkpjyd5c guide