curl --request POST \
--url https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lines": [
{
"line_date": "2023-12-25",
"label": "<string>",
"amount": 2,
"reference": "<string>"
}
]
}
'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines"
payload = { "lines": [
{
"line_date": "2023-12-25",
"label": "<string>",
"amount": 2,
"reference": "<string>"
}
] }
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({
lines: [{line_date: '2023-12-25', label: '<string>', amount: 2, reference: '<string>'}]
})
};
fetch('https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines', 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.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines",
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([
'lines' => [
[
'line_date' => '2023-12-25',
'label' => '<string>',
'amount' => 2,
'reference' => '<string>'
]
]
]),
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.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines"
payload := strings.NewReader("{\n \"lines\": [\n {\n \"line_date\": \"2023-12-25\",\n \"label\": \"<string>\",\n \"amount\": 2,\n \"reference\": \"<string>\"\n }\n ]\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.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lines\": [\n {\n \"line_date\": \"2023-12-25\",\n \"label\": \"<string>\",\n \"amount\": 2,\n \"reference\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines")
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 \"lines\": [\n {\n \"line_date\": \"2023-12-25\",\n \"label\": \"<string>\",\n \"amount\": 2,\n \"reference\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"bank_statement_id": "<string>",
"line_date": "2023-12-25",
"label": "<string>",
"reference": "<string>",
"direction": "<string>",
"amount": 123,
"bank_match_id": "<string>"
}
]
}{
"message": "<string>",
"errors": {}
}Add statement lines
Append more bank transaction lines to an open bank statement.
curl --request POST \
--url https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lines": [
{
"line_date": "2023-12-25",
"label": "<string>",
"amount": 2,
"reference": "<string>"
}
]
}
'import requests
url = "https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines"
payload = { "lines": [
{
"line_date": "2023-12-25",
"label": "<string>",
"amount": 2,
"reference": "<string>"
}
] }
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({
lines: [{line_date: '2023-12-25', label: '<string>', amount: 2, reference: '<string>'}]
})
};
fetch('https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines', 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.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines",
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([
'lines' => [
[
'line_date' => '2023-12-25',
'label' => '<string>',
'amount' => 2,
'reference' => '<string>'
]
]
]),
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.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines"
payload := strings.NewReader("{\n \"lines\": [\n {\n \"line_date\": \"2023-12-25\",\n \"label\": \"<string>\",\n \"amount\": 2,\n \"reference\": \"<string>\"\n }\n ]\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.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lines\": [\n {\n \"line_date\": \"2023-12-25\",\n \"label\": \"<string>\",\n \"amount\": 2,\n \"reference\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/organization/books/{bankStatement}/bank-statements/{bank_statement}/lines")
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 \"lines\": [\n {\n \"line_date\": \"2023-12-25\",\n \"label\": \"<string>\",\n \"amount\": 2,\n \"reference\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"bank_statement_id": "<string>",
"line_date": "2023-12-25",
"label": "<string>",
"reference": "<string>",
"direction": "<string>",
"amount": 123,
"bank_match_id": "<string>"
}
]
}{
"message": "<string>",
"errors": {}
}bank_statements.update
Conditions
- The accounting module must be active for the organization.
- The caller must have been granted access to the book in the URL.
- Only the organization’s own book is accepted; a company book or a client book is refused.
- The statement must still be open; a reconciled statement is refused.
- The lines array is required with 1 to 500 lines.
- Every line date must fall between the statement start date and end date, inclusive; one line outside refuses the whole request.
- Each line needs a date, a label, a direction (debit or credit) and a positive integer amount.
- Creates the sent lines on the statement, all unmatched. Nothing is changed on the statement itself and no journal entry is created.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the book segment of the URL (the organization's book); see book.
Identifier of the open bank statement to add lines to (27-character KSUID string).
Query Parameters
Response mode. Default none; none answers 204 No Content.
none, resource Comma-separated JSON keys of the root resource (id is always rendered). Available: id, bank_statement_id, line_date, label, reference, direction, amount, bank_match_id.
Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: .
Body
Statement lines to add. At least 1 and at most 500 are required here.
1 - 500 elementsShow child attributes
Show child attributes
Response
Resource (only with response=resource).
Items of this page.
Show child attributes
Show child attributes