cURL
curl --request POST \
--url https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv \
--header 'Content-Type: application/json' \
--data '
{
"reportIds": [
123
],
"exportAll": true,
"format": "<string>",
"filters": {
"page": 123,
"pageSize": 123,
"sortDirection": "<string>",
"status": [],
"employeeId": 123,
"userId": 123,
"businessId": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"search": "<string>",
"department": "<string>",
"minAmount": 123,
"maxAmount": 123,
"sortDescending": true,
"sortBy": "<string>",
"forApproval": true,
"approverId": 123
},
"locale": "<string>"
}
'import requests
url = "https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv"
payload = {
"reportIds": [123],
"exportAll": True,
"format": "<string>",
"filters": {
"page": 123,
"pageSize": 123,
"sortDirection": "<string>",
"status": [],
"employeeId": 123,
"userId": 123,
"businessId": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"search": "<string>",
"department": "<string>",
"minAmount": 123,
"maxAmount": 123,
"sortDescending": True,
"sortBy": "<string>",
"forApproval": True,
"approverId": 123
},
"locale": "<string>"
}
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({
reportIds: [123],
exportAll: true,
format: '<string>',
filters: {
page: 123,
pageSize: 123,
sortDirection: '<string>',
status: [],
employeeId: 123,
userId: 123,
businessId: 123,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
search: '<string>',
department: '<string>',
minAmount: 123,
maxAmount: 123,
sortDescending: true,
sortBy: '<string>',
forApproval: true,
approverId: 123
},
locale: '<string>'
})
};
fetch('https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv', 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.smartbills.io/v1/businesses/{businessId}/approbations/export/csv",
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([
'reportIds' => [
123
],
'exportAll' => true,
'format' => '<string>',
'filters' => [
'page' => 123,
'pageSize' => 123,
'sortDirection' => '<string>',
'status' => [
],
'employeeId' => 123,
'userId' => 123,
'businessId' => 123,
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'search' => '<string>',
'department' => '<string>',
'minAmount' => 123,
'maxAmount' => 123,
'sortDescending' => true,
'sortBy' => '<string>',
'forApproval' => true,
'approverId' => 123
],
'locale' => '<string>'
]),
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.smartbills.io/v1/businesses/{businessId}/approbations/export/csv"
payload := strings.NewReader("{\n \"reportIds\": [\n 123\n ],\n \"exportAll\": true,\n \"format\": \"<string>\",\n \"filters\": {\n \"page\": 123,\n \"pageSize\": 123,\n \"sortDirection\": \"<string>\",\n \"status\": [],\n \"employeeId\": 123,\n \"userId\": 123,\n \"businessId\": 123,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"search\": \"<string>\",\n \"department\": \"<string>\",\n \"minAmount\": 123,\n \"maxAmount\": 123,\n \"sortDescending\": true,\n \"sortBy\": \"<string>\",\n \"forApproval\": true,\n \"approverId\": 123\n },\n \"locale\": \"<string>\"\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.smartbills.io/v1/businesses/{businessId}/approbations/export/csv")
.header("Content-Type", "application/json")
.body("{\n \"reportIds\": [\n 123\n ],\n \"exportAll\": true,\n \"format\": \"<string>\",\n \"filters\": {\n \"page\": 123,\n \"pageSize\": 123,\n \"sortDirection\": \"<string>\",\n \"status\": [],\n \"employeeId\": 123,\n \"userId\": 123,\n \"businessId\": 123,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"search\": \"<string>\",\n \"department\": \"<string>\",\n \"minAmount\": 123,\n \"maxAmount\": 123,\n \"sortDescending\": true,\n \"sortBy\": \"<string>\",\n \"forApproval\": true,\n \"approverId\": 123\n },\n \"locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv")
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 \"reportIds\": [\n 123\n ],\n \"exportAll\": true,\n \"format\": \"<string>\",\n \"filters\": {\n \"page\": 123,\n \"pageSize\": 123,\n \"sortDirection\": \"<string>\",\n \"status\": [],\n \"employeeId\": 123,\n \"userId\": 123,\n \"businessId\": 123,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"search\": \"<string>\",\n \"department\": \"<string>\",\n \"minAmount\": 123,\n \"maxAmount\": 123,\n \"sortDescending\": true,\n \"sortBy\": \"<string>\",\n \"forApproval\": true,\n \"approverId\": 123\n },\n \"locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Approbations
Post v1businesses approbationsexportcsv
POST
/
v1
/
businesses
/
{businessId}
/
approbations
/
export
/
csv
cURL
curl --request POST \
--url https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv \
--header 'Content-Type: application/json' \
--data '
{
"reportIds": [
123
],
"exportAll": true,
"format": "<string>",
"filters": {
"page": 123,
"pageSize": 123,
"sortDirection": "<string>",
"status": [],
"employeeId": 123,
"userId": 123,
"businessId": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"search": "<string>",
"department": "<string>",
"minAmount": 123,
"maxAmount": 123,
"sortDescending": true,
"sortBy": "<string>",
"forApproval": true,
"approverId": 123
},
"locale": "<string>"
}
'import requests
url = "https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv"
payload = {
"reportIds": [123],
"exportAll": True,
"format": "<string>",
"filters": {
"page": 123,
"pageSize": 123,
"sortDirection": "<string>",
"status": [],
"employeeId": 123,
"userId": 123,
"businessId": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"search": "<string>",
"department": "<string>",
"minAmount": 123,
"maxAmount": 123,
"sortDescending": True,
"sortBy": "<string>",
"forApproval": True,
"approverId": 123
},
"locale": "<string>"
}
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({
reportIds: [123],
exportAll: true,
format: '<string>',
filters: {
page: 123,
pageSize: 123,
sortDirection: '<string>',
status: [],
employeeId: 123,
userId: 123,
businessId: 123,
startDate: '2023-11-07T05:31:56Z',
endDate: '2023-11-07T05:31:56Z',
search: '<string>',
department: '<string>',
minAmount: 123,
maxAmount: 123,
sortDescending: true,
sortBy: '<string>',
forApproval: true,
approverId: 123
},
locale: '<string>'
})
};
fetch('https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv', 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.smartbills.io/v1/businesses/{businessId}/approbations/export/csv",
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([
'reportIds' => [
123
],
'exportAll' => true,
'format' => '<string>',
'filters' => [
'page' => 123,
'pageSize' => 123,
'sortDirection' => '<string>',
'status' => [
],
'employeeId' => 123,
'userId' => 123,
'businessId' => 123,
'startDate' => '2023-11-07T05:31:56Z',
'endDate' => '2023-11-07T05:31:56Z',
'search' => '<string>',
'department' => '<string>',
'minAmount' => 123,
'maxAmount' => 123,
'sortDescending' => true,
'sortBy' => '<string>',
'forApproval' => true,
'approverId' => 123
],
'locale' => '<string>'
]),
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.smartbills.io/v1/businesses/{businessId}/approbations/export/csv"
payload := strings.NewReader("{\n \"reportIds\": [\n 123\n ],\n \"exportAll\": true,\n \"format\": \"<string>\",\n \"filters\": {\n \"page\": 123,\n \"pageSize\": 123,\n \"sortDirection\": \"<string>\",\n \"status\": [],\n \"employeeId\": 123,\n \"userId\": 123,\n \"businessId\": 123,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"search\": \"<string>\",\n \"department\": \"<string>\",\n \"minAmount\": 123,\n \"maxAmount\": 123,\n \"sortDescending\": true,\n \"sortBy\": \"<string>\",\n \"forApproval\": true,\n \"approverId\": 123\n },\n \"locale\": \"<string>\"\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.smartbills.io/v1/businesses/{businessId}/approbations/export/csv")
.header("Content-Type", "application/json")
.body("{\n \"reportIds\": [\n 123\n ],\n \"exportAll\": true,\n \"format\": \"<string>\",\n \"filters\": {\n \"page\": 123,\n \"pageSize\": 123,\n \"sortDirection\": \"<string>\",\n \"status\": [],\n \"employeeId\": 123,\n \"userId\": 123,\n \"businessId\": 123,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"search\": \"<string>\",\n \"department\": \"<string>\",\n \"minAmount\": 123,\n \"maxAmount\": 123,\n \"sortDescending\": true,\n \"sortBy\": \"<string>\",\n \"forApproval\": true,\n \"approverId\": 123\n },\n \"locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartbills.io/v1/businesses/{businessId}/approbations/export/csv")
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 \"reportIds\": [\n 123\n ],\n \"exportAll\": true,\n \"format\": \"<string>\",\n \"filters\": {\n \"page\": 123,\n \"pageSize\": 123,\n \"sortDirection\": \"<string>\",\n \"status\": [],\n \"employeeId\": 123,\n \"userId\": 123,\n \"businessId\": 123,\n \"startDate\": \"2023-11-07T05:31:56Z\",\n \"endDate\": \"2023-11-07T05:31:56Z\",\n \"search\": \"<string>\",\n \"department\": \"<string>\",\n \"minAmount\": 123,\n \"maxAmount\": 123,\n \"sortDescending\": true,\n \"sortBy\": \"<string>\",\n \"forApproval\": true,\n \"approverId\": 123\n },\n \"locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Was this page helpful?
⌘I