Create a bank account
curl --request POST \
--url https://api.check.et/api/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bank": "cbe",
"account_number": "1000876543218",
"label": "Main CBE Account",
"is_primary": true
}
'import requests
url = "https://api.check.et/api/v1/accounts"
payload = {
"bank": "cbe",
"account_number": "1000876543218",
"label": "Main CBE Account",
"is_primary": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bank: 'cbe',
account_number: '1000876543218',
label: 'Main CBE Account',
is_primary: true
})
};
fetch('https://api.check.et/api/v1/accounts', 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.check.et/api/v1/accounts",
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([
'bank' => 'cbe',
'account_number' => '1000876543218',
'label' => 'Main CBE Account',
'is_primary' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.check.et/api/v1/accounts"
payload := strings.NewReader("{\n \"bank\": \"cbe\",\n \"account_number\": \"1000876543218\",\n \"label\": \"Main CBE Account\",\n \"is_primary\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/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.check.et/api/v1/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"bank\": \"cbe\",\n \"account_number\": \"1000876543218\",\n \"label\": \"Main CBE Account\",\n \"is_primary\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.check.et/api/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bank\": \"cbe\",\n \"account_number\": \"1000876543218\",\n \"label\": \"Main CBE Account\",\n \"is_primary\": true\n}"
response = http.request(request)
puts response.read_body{
"account": {
"id": 3,
"bank": "cbe",
"bank_name": "Commercial Bank of Ethiopia",
"account_number": "1000876543218",
"account_last_four": "3218",
"label": "Main CBE Account",
"is_primary": true
}
}Bank Accounts
Create Bank Account
POST /accounts - save a bank account to your branch
POST
/
accounts
Create a bank account
curl --request POST \
--url https://api.check.et/api/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"bank": "cbe",
"account_number": "1000876543218",
"label": "Main CBE Account",
"is_primary": true
}
'import requests
url = "https://api.check.et/api/v1/accounts"
payload = {
"bank": "cbe",
"account_number": "1000876543218",
"label": "Main CBE Account",
"is_primary": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bank: 'cbe',
account_number: '1000876543218',
label: 'Main CBE Account',
is_primary: true
})
};
fetch('https://api.check.et/api/v1/accounts', 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.check.et/api/v1/accounts",
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([
'bank' => 'cbe',
'account_number' => '1000876543218',
'label' => 'Main CBE Account',
'is_primary' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.check.et/api/v1/accounts"
payload := strings.NewReader("{\n \"bank\": \"cbe\",\n \"account_number\": \"1000876543218\",\n \"label\": \"Main CBE Account\",\n \"is_primary\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/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.check.et/api/v1/accounts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"bank\": \"cbe\",\n \"account_number\": \"1000876543218\",\n \"label\": \"Main CBE Account\",\n \"is_primary\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.check.et/api/v1/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bank\": \"cbe\",\n \"account_number\": \"1000876543218\",\n \"label\": \"Main CBE Account\",\n \"is_primary\": true\n}"
response = http.request(request)
puts response.read_body{
"account": {
"id": 3,
"bank": "cbe",
"bank_name": "Commercial Bank of Ethiopia",
"account_number": "1000876543218",
"account_last_four": "3218",
"label": "Main CBE Account",
"is_primary": true
}
}Required fields
| Field | Required | Description |
|---|---|---|
bank | Yes | Bank code (e.g. cbe, telebirr) |
account_number | Yes | Full account number |
label | Yes | Friendly name shown in the dashboard |
is_primary | No | Mark as the default account for this bank |
Once saved, reference this account by
bank_account_id in verify calls instead of repeating account_number every time.Authorizations
API key from your dashboard - starts with chk_. Requires a business account.
Body
application/json
Response
201 - application/json
Created
Show child attributes
Show child attributes
⌘I

