Create a requisition
curl --request POST \
--url https://api.smokeball.com/bankaccounts/{id}/requisitions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '
{
"matterId": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"payeeId": "18c05819-c321-4907-800c-d5a608729c5a",
"source": "Bank Transfer",
"amount": 100.5,
"approverUserId": "18c05819-c321-4907-800c-d5a608729c5a",
"payorId": "18c05819-c321-4907-800c-d5a608729c5a",
"reference": "REF123456",
"effectiveDate": "2023-11-07T05:31:56Z",
"accountName": "John Doe",
"bsb": "123456",
"accountNumber": "12345678",
"organizationOrCompanyName": "ACME Corporation",
"billerCode": "12345",
"billerReference": "REF123456",
"reason": "Payment for services rendered",
"internalNote": "Internal note about this payment"
}
'import requests
url = "https://api.smokeball.com/bankaccounts/{id}/requisitions"
payload = {
"matterId": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"payeeId": "18c05819-c321-4907-800c-d5a608729c5a",
"source": "Bank Transfer",
"amount": 100.5,
"approverUserId": "18c05819-c321-4907-800c-d5a608729c5a",
"payorId": "18c05819-c321-4907-800c-d5a608729c5a",
"reference": "REF123456",
"effectiveDate": "2023-11-07T05:31:56Z",
"accountName": "John Doe",
"bsb": "123456",
"accountNumber": "12345678",
"organizationOrCompanyName": "ACME Corporation",
"billerCode": "12345",
"billerReference": "REF123456",
"reason": "Payment for services rendered",
"internalNote": "Internal note about this payment"
}
headers = {
"x-api-key": "<api-key>",
"Authorization": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
Authorization: '<api-key>',
'Content-Type': 'application/json-patch+json'
},
body: JSON.stringify({
matterId: 'da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262',
payeeId: '18c05819-c321-4907-800c-d5a608729c5a',
source: 'Bank Transfer',
amount: 100.5,
approverUserId: '18c05819-c321-4907-800c-d5a608729c5a',
payorId: '18c05819-c321-4907-800c-d5a608729c5a',
reference: 'REF123456',
effectiveDate: '2023-11-07T05:31:56Z',
accountName: 'John Doe',
bsb: '123456',
accountNumber: '12345678',
organizationOrCompanyName: 'ACME Corporation',
billerCode: '12345',
billerReference: 'REF123456',
reason: 'Payment for services rendered',
internalNote: 'Internal note about this payment'
})
};
fetch('https://api.smokeball.com/bankaccounts/{id}/requisitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smokeball.com/bankaccounts/{id}/requisitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'matterId' => 'da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262',
'payeeId' => '18c05819-c321-4907-800c-d5a608729c5a',
'source' => 'Bank Transfer',
'amount' => 100.5,
'approverUserId' => '18c05819-c321-4907-800c-d5a608729c5a',
'payorId' => '18c05819-c321-4907-800c-d5a608729c5a',
'reference' => 'REF123456',
'effectiveDate' => '2023-11-07T05:31:56Z',
'accountName' => 'John Doe',
'bsb' => '123456',
'accountNumber' => '12345678',
'organizationOrCompanyName' => 'ACME Corporation',
'billerCode' => '12345',
'billerReference' => 'REF123456',
'reason' => 'Payment for services rendered',
'internalNote' => 'Internal note about this payment'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json-patch+json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smokeball.com/bankaccounts/{id}/requisitions"
payload := strings.NewReader("{\n \"matterId\": \"da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262\",\n \"payeeId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"source\": \"Bank Transfer\",\n \"amount\": 100.5,\n \"approverUserId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"payorId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"reference\": \"REF123456\",\n \"effectiveDate\": \"2023-11-07T05:31:56Z\",\n \"accountName\": \"John Doe\",\n \"bsb\": \"123456\",\n \"accountNumber\": \"12345678\",\n \"organizationOrCompanyName\": \"ACME Corporation\",\n \"billerCode\": \"12345\",\n \"billerReference\": \"REF123456\",\n \"reason\": \"Payment for services rendered\",\n \"internalNote\": \"Internal note about this payment\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smokeball.com/bankaccounts/{id}/requisitions")
.header("x-api-key", "<api-key>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"matterId\": \"da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262\",\n \"payeeId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"source\": \"Bank Transfer\",\n \"amount\": 100.5,\n \"approverUserId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"payorId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"reference\": \"REF123456\",\n \"effectiveDate\": \"2023-11-07T05:31:56Z\",\n \"accountName\": \"John Doe\",\n \"bsb\": \"123456\",\n \"accountNumber\": \"12345678\",\n \"organizationOrCompanyName\": \"ACME Corporation\",\n \"billerCode\": \"12345\",\n \"billerReference\": \"REF123456\",\n \"reason\": \"Payment for services rendered\",\n \"internalNote\": \"Internal note about this payment\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smokeball.com/bankaccounts/{id}/requisitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"matterId\": \"da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262\",\n \"payeeId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"source\": \"Bank Transfer\",\n \"amount\": 100.5,\n \"approverUserId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"payorId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"reference\": \"REF123456\",\n \"effectiveDate\": \"2023-11-07T05:31:56Z\",\n \"accountName\": \"John Doe\",\n \"bsb\": \"123456\",\n \"accountNumber\": \"12345678\",\n \"organizationOrCompanyName\": \"ACME Corporation\",\n \"billerCode\": \"12345\",\n \"billerReference\": \"REF123456\",\n \"reason\": \"Payment for services rendered\",\n \"internalNote\": \"Internal note about this payment\"\n}"
response = http.request(request)
puts response.read_body{
"id": "18c05819-c321-4907-800c-d5a608729c5a",
"status": "Approved",
"protectedBalance": 1000,
"availableBalance": 5000,
"totalBalance": 6000,
"pdfPaymentDetail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Bank Accounts
Create a requisition
Creates a requisition against a trust account and supports the account approval workflow.
Whether the requisition requires approval depends on the trust account configuration:
- If approvals are enabled, firm owners can create requisitions without approval, while all other users require approval.
- If approvals are disabled, the requisition is automatically approved upon creation.
POST
/
bankaccounts
/
{id}
/
requisitions
Create a requisition
curl --request POST \
--url https://api.smokeball.com/bankaccounts/{id}/requisitions \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '
{
"matterId": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"payeeId": "18c05819-c321-4907-800c-d5a608729c5a",
"source": "Bank Transfer",
"amount": 100.5,
"approverUserId": "18c05819-c321-4907-800c-d5a608729c5a",
"payorId": "18c05819-c321-4907-800c-d5a608729c5a",
"reference": "REF123456",
"effectiveDate": "2023-11-07T05:31:56Z",
"accountName": "John Doe",
"bsb": "123456",
"accountNumber": "12345678",
"organizationOrCompanyName": "ACME Corporation",
"billerCode": "12345",
"billerReference": "REF123456",
"reason": "Payment for services rendered",
"internalNote": "Internal note about this payment"
}
'import requests
url = "https://api.smokeball.com/bankaccounts/{id}/requisitions"
payload = {
"matterId": "da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262",
"payeeId": "18c05819-c321-4907-800c-d5a608729c5a",
"source": "Bank Transfer",
"amount": 100.5,
"approverUserId": "18c05819-c321-4907-800c-d5a608729c5a",
"payorId": "18c05819-c321-4907-800c-d5a608729c5a",
"reference": "REF123456",
"effectiveDate": "2023-11-07T05:31:56Z",
"accountName": "John Doe",
"bsb": "123456",
"accountNumber": "12345678",
"organizationOrCompanyName": "ACME Corporation",
"billerCode": "12345",
"billerReference": "REF123456",
"reason": "Payment for services rendered",
"internalNote": "Internal note about this payment"
}
headers = {
"x-api-key": "<api-key>",
"Authorization": "<api-key>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
Authorization: '<api-key>',
'Content-Type': 'application/json-patch+json'
},
body: JSON.stringify({
matterId: 'da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262',
payeeId: '18c05819-c321-4907-800c-d5a608729c5a',
source: 'Bank Transfer',
amount: 100.5,
approverUserId: '18c05819-c321-4907-800c-d5a608729c5a',
payorId: '18c05819-c321-4907-800c-d5a608729c5a',
reference: 'REF123456',
effectiveDate: '2023-11-07T05:31:56Z',
accountName: 'John Doe',
bsb: '123456',
accountNumber: '12345678',
organizationOrCompanyName: 'ACME Corporation',
billerCode: '12345',
billerReference: 'REF123456',
reason: 'Payment for services rendered',
internalNote: 'Internal note about this payment'
})
};
fetch('https://api.smokeball.com/bankaccounts/{id}/requisitions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smokeball.com/bankaccounts/{id}/requisitions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'matterId' => 'da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262',
'payeeId' => '18c05819-c321-4907-800c-d5a608729c5a',
'source' => 'Bank Transfer',
'amount' => 100.5,
'approverUserId' => '18c05819-c321-4907-800c-d5a608729c5a',
'payorId' => '18c05819-c321-4907-800c-d5a608729c5a',
'reference' => 'REF123456',
'effectiveDate' => '2023-11-07T05:31:56Z',
'accountName' => 'John Doe',
'bsb' => '123456',
'accountNumber' => '12345678',
'organizationOrCompanyName' => 'ACME Corporation',
'billerCode' => '12345',
'billerReference' => 'REF123456',
'reason' => 'Payment for services rendered',
'internalNote' => 'Internal note about this payment'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json-patch+json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smokeball.com/bankaccounts/{id}/requisitions"
payload := strings.NewReader("{\n \"matterId\": \"da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262\",\n \"payeeId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"source\": \"Bank Transfer\",\n \"amount\": 100.5,\n \"approverUserId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"payorId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"reference\": \"REF123456\",\n \"effectiveDate\": \"2023-11-07T05:31:56Z\",\n \"accountName\": \"John Doe\",\n \"bsb\": \"123456\",\n \"accountNumber\": \"12345678\",\n \"organizationOrCompanyName\": \"ACME Corporation\",\n \"billerCode\": \"12345\",\n \"billerReference\": \"REF123456\",\n \"reason\": \"Payment for services rendered\",\n \"internalNote\": \"Internal note about this payment\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smokeball.com/bankaccounts/{id}/requisitions")
.header("x-api-key", "<api-key>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"matterId\": \"da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262\",\n \"payeeId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"source\": \"Bank Transfer\",\n \"amount\": 100.5,\n \"approverUserId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"payorId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"reference\": \"REF123456\",\n \"effectiveDate\": \"2023-11-07T05:31:56Z\",\n \"accountName\": \"John Doe\",\n \"bsb\": \"123456\",\n \"accountNumber\": \"12345678\",\n \"organizationOrCompanyName\": \"ACME Corporation\",\n \"billerCode\": \"12345\",\n \"billerReference\": \"REF123456\",\n \"reason\": \"Payment for services rendered\",\n \"internalNote\": \"Internal note about this payment\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smokeball.com/bankaccounts/{id}/requisitions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"matterId\": \"da4e7fd1-5394-4ca9-b1c6-e18c4e2bf262\",\n \"payeeId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"source\": \"Bank Transfer\",\n \"amount\": 100.5,\n \"approverUserId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"payorId\": \"18c05819-c321-4907-800c-d5a608729c5a\",\n \"reference\": \"REF123456\",\n \"effectiveDate\": \"2023-11-07T05:31:56Z\",\n \"accountName\": \"John Doe\",\n \"bsb\": \"123456\",\n \"accountNumber\": \"12345678\",\n \"organizationOrCompanyName\": \"ACME Corporation\",\n \"billerCode\": \"12345\",\n \"billerReference\": \"REF123456\",\n \"reason\": \"Payment for services rendered\",\n \"internalNote\": \"Internal note about this payment\"\n}"
response = http.request(request)
puts response.read_body{
"id": "18c05819-c321-4907-800c-d5a608729c5a",
"status": "Approved",
"protectedBalance": 1000,
"availableBalance": 5000,
"totalBalance": 6000,
"pdfPaymentDetail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Body
application/json-patch+jsonapplication/jsonapplication/*+json
Payment source. Required. Possible values:
- "Bank Transfer" - always available
- "Bank Check" - available in AU and UK only
- "Trust Check" - available in AU and UK only
- "Direct Debit" - available in AU and UK only
- "Check" - available in US only
Minimum string length:
1Example:
"Bank Transfer"
Response
When request is accepted. Returns requisition status and balances.