curl --request GET \
--url https://api.example.com/api/manual-journals/{id} \
--header 'Authorization: <authorization>' \
--header 'organization-id: <organization-id>'import requests
url = "https://api.example.com/api/manual-journals/{id}"
headers = {
"Authorization": "<authorization>",
"organization-id": "<organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', 'organization-id': '<organization-id>'}
};
fetch('https://api.example.com/api/manual-journals/{id}', 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.example.com/api/manual-journals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"organization-id: <organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/manual-journals/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("organization-id", "<organization-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/manual-journals/{id}")
.header("Authorization", "<authorization>")
.header("organization-id", "<organization-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/manual-journals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["organization-id"] = '<organization-id>'
response = http.request(request)
puts response.read_body{
"id": 1,
"date": "2024-03-20",
"journalNumber": "MJ-2024-001",
"amount": 1000,
"isPublished": false,
"createdAt": "2024-03-20T09:00:00Z",
"formattedAmount": "$1,000.00",
"formattedDate": "Mar 20, 2024",
"formattedCreatedAt": "Mar 20, 2024",
"entries": [
{
"index": 1,
"accountId": 1,
"credit": 1000,
"debit": 0,
"note": "Payment for services",
"contactId": 1,
"branchId": 1,
"projectId": 1,
"account": {},
"contact": {},
"branch": {}
}
],
"journalType": "General",
"reference": "REF-001",
"currencyCode": "USD",
"exchangeRate": 1,
"description": "Monthly journal entry",
"publishedAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T09:30:00Z",
"branchId": 1,
"formattedPublishedAt": "Mar 20, 2024",
"attachments": [
"<string>"
]
}Retrieves the manual journal details.
curl --request GET \
--url https://api.example.com/api/manual-journals/{id} \
--header 'Authorization: <authorization>' \
--header 'organization-id: <organization-id>'import requests
url = "https://api.example.com/api/manual-journals/{id}"
headers = {
"Authorization": "<authorization>",
"organization-id": "<organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: '<authorization>', 'organization-id': '<organization-id>'}
};
fetch('https://api.example.com/api/manual-journals/{id}', 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.example.com/api/manual-journals/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"organization-id: <organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/manual-journals/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("organization-id", "<organization-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/manual-journals/{id}")
.header("Authorization", "<authorization>")
.header("organization-id", "<organization-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/manual-journals/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
request["organization-id"] = '<organization-id>'
response = http.request(request)
puts response.read_body{
"id": 1,
"date": "2024-03-20",
"journalNumber": "MJ-2024-001",
"amount": 1000,
"isPublished": false,
"createdAt": "2024-03-20T09:00:00Z",
"formattedAmount": "$1,000.00",
"formattedDate": "Mar 20, 2024",
"formattedCreatedAt": "Mar 20, 2024",
"entries": [
{
"index": 1,
"accountId": 1,
"credit": 1000,
"debit": 0,
"note": "Payment for services",
"contactId": 1,
"branchId": 1,
"projectId": 1,
"account": {},
"contact": {},
"branch": {}
}
],
"journalType": "General",
"reference": "REF-001",
"currencyCode": "USD",
"exchangeRate": 1,
"description": "Monthly journal entry",
"publishedAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-20T09:30:00Z",
"branchId": 1,
"formattedPublishedAt": "Mar 20, 2024",
"attachments": [
"<string>"
]
}Headers
Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.
"Bearer bc_1234567890abcdef"
Required if Authorization is a JWT token. The organization ID to operate within.
Path Parameters
The manual journal id
Response
The manual journal details have been successfully retrieved.
Manual Journal ID
1
Journal date
"2024-03-20"
Journal number
"MJ-2024-001"
Total amount
1000
Published status
false
Created date
"2024-03-20T09:00:00Z"
Formatted amount
"$1,000.00"
Formatted date
"Mar 20, 2024"
Formatted created date
"Mar 20, 2024"
Journal entries
Show child attributes
Show child attributes
Journal type
"General"
Reference number
"REF-001"
Currency code
"USD"
Exchange rate
1
Description
"Monthly journal entry"
Published date
"2024-03-20T10:00:00Z"
Updated date
"2024-03-20T09:30:00Z"
Branch ID
1
Formatted published date
"Mar 20, 2024"
Attachments