Create Recipient
curl --request POST \
--url https://api.chessa.ai/v1/recipients \
--header 'Content-Type: application/json' \
--data '
{
"accountName": "Maijid Moujaled",
"accountNumber": "+233544444444",
"code": "gh_mtn",
"country": "GH",
"currency": "GHS",
"type": "mobile_money"
}
'import requests
url = "https://api.chessa.ai/v1/recipients"
payload = {
"accountName": "Maijid Moujaled",
"accountNumber": "+233544444444",
"code": "gh_mtn",
"country": "GH",
"currency": "GHS",
"type": "mobile_money"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
accountName: 'Maijid Moujaled',
accountNumber: '+233544444444',
code: 'gh_mtn',
country: 'GH',
currency: 'GHS',
type: 'mobile_money'
})
};
fetch('https://api.chessa.ai/v1/recipients', 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.chessa.ai/v1/recipients",
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([
'accountName' => 'Maijid Moujaled',
'accountNumber' => '+233544444444',
'code' => 'gh_mtn',
'country' => 'GH',
'currency' => 'GHS',
'type' => 'mobile_money'
]),
CURLOPT_HTTPHEADER => [
"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.chessa.ai/v1/recipients"
payload := strings.NewReader("{\n \"accountName\": \"Maijid Moujaled\",\n \"accountNumber\": \"+233544444444\",\n \"code\": \"gh_mtn\",\n \"country\": \"GH\",\n \"currency\": \"GHS\",\n \"type\": \"mobile_money\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.chessa.ai/v1/recipients")
.header("Content-Type", "application/json")
.body("{\n \"accountName\": \"Maijid Moujaled\",\n \"accountNumber\": \"+233544444444\",\n \"code\": \"gh_mtn\",\n \"country\": \"GH\",\n \"currency\": \"GHS\",\n \"type\": \"mobile_money\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chessa.ai/v1/recipients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountName\": \"Maijid Moujaled\",\n \"accountNumber\": \"+233544444444\",\n \"code\": \"gh_mtn\",\n \"country\": \"GH\",\n \"currency\": \"GHS\",\n \"type\": \"mobile_money\"\n}"
response = http.request(request)
puts response.read_body{
"recipient": {
"accountName": "Maijid Moujaled",
"accountNumber": "233544444444",
"code": "gh_mtn",
"country": "GH",
"createdAt": "2025-03-17T15:42:33.789Z",
"currency": "NGN",
"id": "91fcd725-0678-4248-8206-331adde1dcc3",
"type": "mobile_money",
"updatedAt": "2025-03-17T15:42:33.789Z"
}
}{
"details": [
{
"field": "accountName",
"message": "Account name is required"
}
],
"error": "validation_error",
"message": "Validation failed",
"statusCode": 400
}Recipient
Create Recipient
Create a new recipient for bank transfers.
POST
/
v1
/
recipients
Create Recipient
curl --request POST \
--url https://api.chessa.ai/v1/recipients \
--header 'Content-Type: application/json' \
--data '
{
"accountName": "Maijid Moujaled",
"accountNumber": "+233544444444",
"code": "gh_mtn",
"country": "GH",
"currency": "GHS",
"type": "mobile_money"
}
'import requests
url = "https://api.chessa.ai/v1/recipients"
payload = {
"accountName": "Maijid Moujaled",
"accountNumber": "+233544444444",
"code": "gh_mtn",
"country": "GH",
"currency": "GHS",
"type": "mobile_money"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
accountName: 'Maijid Moujaled',
accountNumber: '+233544444444',
code: 'gh_mtn',
country: 'GH',
currency: 'GHS',
type: 'mobile_money'
})
};
fetch('https://api.chessa.ai/v1/recipients', 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.chessa.ai/v1/recipients",
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([
'accountName' => 'Maijid Moujaled',
'accountNumber' => '+233544444444',
'code' => 'gh_mtn',
'country' => 'GH',
'currency' => 'GHS',
'type' => 'mobile_money'
]),
CURLOPT_HTTPHEADER => [
"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.chessa.ai/v1/recipients"
payload := strings.NewReader("{\n \"accountName\": \"Maijid Moujaled\",\n \"accountNumber\": \"+233544444444\",\n \"code\": \"gh_mtn\",\n \"country\": \"GH\",\n \"currency\": \"GHS\",\n \"type\": \"mobile_money\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.chessa.ai/v1/recipients")
.header("Content-Type", "application/json")
.body("{\n \"accountName\": \"Maijid Moujaled\",\n \"accountNumber\": \"+233544444444\",\n \"code\": \"gh_mtn\",\n \"country\": \"GH\",\n \"currency\": \"GHS\",\n \"type\": \"mobile_money\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chessa.ai/v1/recipients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountName\": \"Maijid Moujaled\",\n \"accountNumber\": \"+233544444444\",\n \"code\": \"gh_mtn\",\n \"country\": \"GH\",\n \"currency\": \"GHS\",\n \"type\": \"mobile_money\"\n}"
response = http.request(request)
puts response.read_body{
"recipient": {
"accountName": "Maijid Moujaled",
"accountNumber": "233544444444",
"code": "gh_mtn",
"country": "GH",
"createdAt": "2025-03-17T15:42:33.789Z",
"currency": "NGN",
"id": "91fcd725-0678-4248-8206-331adde1dcc3",
"type": "mobile_money",
"updatedAt": "2025-03-17T15:42:33.789Z"
}
}{
"details": [
{
"field": "accountName",
"message": "Account name is required"
}
],
"error": "validation_error",
"message": "Validation failed",
"statusCode": 400
}Body
application/json
Response
Success Response
Show child attributes
Show child attributes
Was this page helpful?