Share an accounting export (client account)
curl --request POST \
--url https://api.exowpee.com/v1/accounting/client/exports/{export}/shares \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_label": "<string>",
"expires_in_days": 15
}
'import requests
url = "https://api.exowpee.com/v1/accounting/client/exports/{export}/shares"
payload = {
"recipient_label": "<string>",
"expires_in_days": 15
}
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({recipient_label: '<string>', expires_in_days: 15})
};
fetch('https://api.exowpee.com/v1/accounting/client/exports/{export}/shares', 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/client/exports/{export}/shares",
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([
'recipient_label' => '<string>',
'expires_in_days' => 15
]),
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/client/exports/{export}/shares"
payload := strings.NewReader("{\n \"recipient_label\": \"<string>\",\n \"expires_in_days\": 15\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/client/exports/{export}/shares")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"recipient_label\": \"<string>\",\n \"expires_in_days\": 15\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/exports/{export}/shares")
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 \"recipient_label\": \"<string>\",\n \"expires_in_days\": 15\n}"
response = http.request(request)
puts response.read_body"<string>"{
"message": "<string>",
"errors": {}
}Export and share accounting files
Share an accounting export (client account)
Creates a time-limited public link so someone outside the organization, such as an auditor, can download an export without logging in (client space). The secret link is shown only once.
POST
/
accounting
/
client
/
exports
/
{export}
/
shares
Share an accounting export (client account)
curl --request POST \
--url https://api.exowpee.com/v1/accounting/client/exports/{export}/shares \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient_label": "<string>",
"expires_in_days": 15
}
'import requests
url = "https://api.exowpee.com/v1/accounting/client/exports/{export}/shares"
payload = {
"recipient_label": "<string>",
"expires_in_days": 15
}
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({recipient_label: '<string>', expires_in_days: 15})
};
fetch('https://api.exowpee.com/v1/accounting/client/exports/{export}/shares', 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/client/exports/{export}/shares",
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([
'recipient_label' => '<string>',
'expires_in_days' => 15
]),
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/client/exports/{export}/shares"
payload := strings.NewReader("{\n \"recipient_label\": \"<string>\",\n \"expires_in_days\": 15\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/client/exports/{export}/shares")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"recipient_label\": \"<string>\",\n \"expires_in_days\": 15\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/exports/{export}/shares")
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 \"recipient_label\": \"<string>\",\n \"expires_in_days\": 15\n}"
response = http.request(request)
puts response.read_body"<string>"{
"message": "<string>",
"errors": {}
}Client space
Accounting module
For: Accountant · Permission:
accounting_exports.share
Conditions
- The accounting module must be part of the organization’s plan.
- The book must have accounting set up.
- The content also needs a permission: journal_entries.export for fec, statement_filings.export for liasse.
- expires_in_days, when sent, must be an integer from 1 to 30; recipient_label, when sent, is at most 255 characters.
- Creates a share link for the export with a random 64-character token; only the SHA-256 hash of the token is stored, so the token is returned in this response only.
- Sets the expiry to now plus expires_in_days (7 days when omitted) and records the creator.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the accounting export (27-character KSUID string); it must belong to the selected book.
Body
application/json
Optional free-text label saying who the link is for, at most 255 characters. Stored as given and shown in the share list.
Maximum string length:
255Number of days the share link stays valid, from 1 to 30. Optional; defaults to 7.
Required range:
1 <= x <= 30Response
The response is of type string.