GET Get company configuration
{{baseUrl}}/companies/:companyId/sync/expenses/config
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/config");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/config")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/config"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/config"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/config");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/config"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/config HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/config"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/config');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/config';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/config',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/config');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/config';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/config"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/config" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/config",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/config');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/config');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/config');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/config' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/config' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/config")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/config"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/config"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/config")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/config') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/config";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/config
http GET {{baseUrl}}/companies/:companyId/sync/expenses/config
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/config
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/config")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "bankAccount": {
    "id": "32"
  },
  "customer": {
    "id": "142"
  },
  "supplier": {
    "id": "124"
  }
}
POST Set company configuration
{{baseUrl}}/companies/:companyId/sync/expenses/config
BODY json

{
  "bankAccount": {
    "id": ""
  },
  "customer": {
    "id": ""
  },
  "supplier": {
    "id": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/config");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/companies/:companyId/sync/expenses/config" {:content-type :json
                                                                                      :form-params {:bankAccount {:id ""}
                                                                                                    :customer {:id ""}
                                                                                                    :supplier {:id ""}}})
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/config"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/config"),
    Content = new StringContent("{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/config");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/config"

	payload := strings.NewReader("{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\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(res)
	fmt.Println(string(body))

}
POST /baseUrl/companies/:companyId/sync/expenses/config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 107

{
  "bankAccount": {
    "id": ""
  },
  "customer": {
    "id": ""
  },
  "supplier": {
    "id": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/config"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .header("content-type", "application/json")
  .body("{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  bankAccount: {
    id: ''
  },
  customer: {
    id: ''
  },
  supplier: {
    id: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/config');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config',
  headers: {'content-type': 'application/json'},
  data: {bankAccount: {id: ''}, customer: {id: ''}, supplier: {id: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"bankAccount":{"id":""},"customer":{"id":""},"supplier":{"id":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "bankAccount": {\n    "id": ""\n  },\n  "customer": {\n    "id": ""\n  },\n  "supplier": {\n    "id": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/config")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/config',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({bankAccount: {id: ''}, customer: {id: ''}, supplier: {id: ''}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config',
  headers: {'content-type': 'application/json'},
  body: {bankAccount: {id: ''}, customer: {id: ''}, supplier: {id: ''}},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/config');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  bankAccount: {
    id: ''
  },
  customer: {
    id: ''
  },
  supplier: {
    id: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/config',
  headers: {'content-type': 'application/json'},
  data: {bankAccount: {id: ''}, customer: {id: ''}, supplier: {id: ''}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"bankAccount":{"id":""},"customer":{"id":""},"supplier":{"id":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"bankAccount": @{ @"id": @"" },
                              @"customer": @{ @"id": @"" },
                              @"supplier": @{ @"id": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/config"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/config" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/config",
  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([
    'bankAccount' => [
        'id' => ''
    ],
    'customer' => [
        'id' => ''
    ],
    'supplier' => [
        'id' => ''
    ]
  ]),
  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;
}
request('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/config', [
  'body' => '{
  "bankAccount": {
    "id": ""
  },
  "customer": {
    "id": ""
  },
  "supplier": {
    "id": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/config');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'bankAccount' => [
    'id' => ''
  ],
  'customer' => [
    'id' => ''
  ],
  'supplier' => [
    'id' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'bankAccount' => [
    'id' => ''
  ],
  'customer' => [
    'id' => ''
  ],
  'supplier' => [
    'id' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/config');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "bankAccount": {
    "id": ""
  },
  "customer": {
    "id": ""
  },
  "supplier": {
    "id": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "bankAccount": {
    "id": ""
  },
  "customer": {
    "id": ""
  },
  "supplier": {
    "id": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/companies/:companyId/sync/expenses/config", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/config"

payload = {
    "bankAccount": { "id": "" },
    "customer": { "id": "" },
    "supplier": { "id": "" }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/config"

payload <- "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/config")

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  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/companies/:companyId/sync/expenses/config') do |req|
  req.body = "{\n  \"bankAccount\": {\n    \"id\": \"\"\n  },\n  \"customer\": {\n    \"id\": \"\"\n  },\n  \"supplier\": {\n    \"id\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/config";

    let payload = json!({
        "bankAccount": json!({"id": ""}),
        "customer": json!({"id": ""}),
        "supplier": json!({"id": ""})
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/config \
  --header 'content-type: application/json' \
  --data '{
  "bankAccount": {
    "id": ""
  },
  "customer": {
    "id": ""
  },
  "supplier": {
    "id": ""
  }
}'
echo '{
  "bankAccount": {
    "id": ""
  },
  "customer": {
    "id": ""
  },
  "supplier": {
    "id": ""
  }
}' |  \
  http POST {{baseUrl}}/companies/:companyId/sync/expenses/config \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "bankAccount": {\n    "id": ""\n  },\n  "customer": {\n    "id": ""\n  },\n  "supplier": {\n    "id": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/config
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "bankAccount": ["id": ""],
  "customer": ["id": ""],
  "supplier": ["id": ""]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/config")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "bankAccount": {
    "id": "32"
  },
  "customer": {
    "id": "142"
  },
  "supplier": {
    "id": "124"
  }
}
POST Create Partner Expense connection
{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/companies/:companyId/sync/expenses/connections/partnerExpense HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/connections/partnerExpense',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/companies/:companyId/sync/expenses/connections/partnerExpense")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/companies/:companyId/sync/expenses/connections/partnerExpense') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense
http POST {{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/connections/partnerExpense")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "created": "2022-10-27T09:53:29Z",
  "id": "ee2eb431-c0fa-4dc9-93fa-d29781c12bcd",
  "integrationId": "bf083d72-62c7-493e-aec9-81b4dbba7e2c",
  "integrationKey": "dfxm",
  "lastSync": "2022-10-27T10:22:43.6464237Z",
  "linkUrl": "https://link-api.codat.io/companies/86bd88cb-44ab-4dfb-b32f-87b19b14287f/connections/ee2eb431-c0fa-4dc9-93fa-d29781c12bcd/start",
  "platformName": "Basiq",
  "sourceId": "bdd831ce-eebd-4896-89a7-20e5ee8989ee",
  "sourceType": "Banking",
  "status": "Linked"
}
POST Create expense-transactions
{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions
BODY json

{
  "items": [
    {
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        {
          "accountRef": {
            "id": ""
          },
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": {},
          "trackingRefs": [
            {}
          ]
        }
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions" {:content-type :json
                                                                                                         :form-params {:items [{:currency ""
                                                                                                                                :currencyRate ""
                                                                                                                                :id ""
                                                                                                                                :issueDate ""
                                                                                                                                :lines [{:accountRef {:id ""}
                                                                                                                                         :netAmount ""
                                                                                                                                         :taxAmount ""
                                                                                                                                         :taxRateRef {}
                                                                                                                                         :trackingRefs [{}]}]
                                                                                                                                :merchantName ""
                                                                                                                                :notes ""
                                                                                                                                :type ""}]}})
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions"),
    Content = new StringContent("{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions"

	payload := strings.NewReader("{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\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(res)
	fmt.Println(string(body))

}
POST /baseUrl/companies/:companyId/sync/expenses/data/expense-transactions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 424

{
  "items": [
    {
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        {
          "accountRef": {
            "id": ""
          },
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": {},
          "trackingRefs": [
            {}
          ]
        }
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions")
  .header("content-type", "application/json")
  .body("{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  items: [
    {
      currency: '',
      currencyRate: '',
      id: '',
      issueDate: '',
      lines: [
        {
          accountRef: {
            id: ''
          },
          netAmount: '',
          taxAmount: '',
          taxRateRef: {},
          trackingRefs: [
            {}
          ]
        }
      ],
      merchantName: '',
      notes: '',
      type: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        currency: '',
        currencyRate: '',
        id: '',
        issueDate: '',
        lines: [
          {
            accountRef: {id: ''},
            netAmount: '',
            taxAmount: '',
            taxRateRef: {},
            trackingRefs: [{}]
          }
        ],
        merchantName: '',
        notes: '',
        type: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"currency":"","currencyRate":"","id":"","issueDate":"","lines":[{"accountRef":{"id":""},"netAmount":"","taxAmount":"","taxRateRef":{},"trackingRefs":[{}]}],"merchantName":"","notes":"","type":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "items": [\n    {\n      "currency": "",\n      "currencyRate": "",\n      "id": "",\n      "issueDate": "",\n      "lines": [\n        {\n          "accountRef": {\n            "id": ""\n          },\n          "netAmount": "",\n          "taxAmount": "",\n          "taxRateRef": {},\n          "trackingRefs": [\n            {}\n          ]\n        }\n      ],\n      "merchantName": "",\n      "notes": "",\n      "type": ""\n    }\n  ]\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/data/expense-transactions',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  items: [
    {
      currency: '',
      currencyRate: '',
      id: '',
      issueDate: '',
      lines: [
        {
          accountRef: {id: ''},
          netAmount: '',
          taxAmount: '',
          taxRateRef: {},
          trackingRefs: [{}]
        }
      ],
      merchantName: '',
      notes: '',
      type: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions',
  headers: {'content-type': 'application/json'},
  body: {
    items: [
      {
        currency: '',
        currencyRate: '',
        id: '',
        issueDate: '',
        lines: [
          {
            accountRef: {id: ''},
            netAmount: '',
            taxAmount: '',
            taxRateRef: {},
            trackingRefs: [{}]
          }
        ],
        merchantName: '',
        notes: '',
        type: ''
      }
    ]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  items: [
    {
      currency: '',
      currencyRate: '',
      id: '',
      issueDate: '',
      lines: [
        {
          accountRef: {
            id: ''
          },
          netAmount: '',
          taxAmount: '',
          taxRateRef: {},
          trackingRefs: [
            {}
          ]
        }
      ],
      merchantName: '',
      notes: '',
      type: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions',
  headers: {'content-type': 'application/json'},
  data: {
    items: [
      {
        currency: '',
        currencyRate: '',
        id: '',
        issueDate: '',
        lines: [
          {
            accountRef: {id: ''},
            netAmount: '',
            taxAmount: '',
            taxRateRef: {},
            trackingRefs: [{}]
          }
        ],
        merchantName: '',
        notes: '',
        type: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"items":[{"currency":"","currencyRate":"","id":"","issueDate":"","lines":[{"accountRef":{"id":""},"netAmount":"","taxAmount":"","taxRateRef":{},"trackingRefs":[{}]}],"merchantName":"","notes":"","type":""}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"items": @[ @{ @"currency": @"", @"currencyRate": @"", @"id": @"", @"issueDate": @"", @"lines": @[ @{ @"accountRef": @{ @"id": @"" }, @"netAmount": @"", @"taxAmount": @"", @"taxRateRef": @{  }, @"trackingRefs": @[ @{  } ] } ], @"merchantName": @"", @"notes": @"", @"type": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions",
  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([
    'items' => [
        [
                'currency' => '',
                'currencyRate' => '',
                'id' => '',
                'issueDate' => '',
                'lines' => [
                                [
                                                                'accountRef' => [
                                                                                                                                'id' => ''
                                                                ],
                                                                'netAmount' => '',
                                                                'taxAmount' => '',
                                                                'taxRateRef' => [
                                                                                                                                
                                                                ],
                                                                'trackingRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'merchantName' => '',
                'notes' => '',
                'type' => ''
        ]
    ]
  ]),
  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;
}
request('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions', [
  'body' => '{
  "items": [
    {
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        {
          "accountRef": {
            "id": ""
          },
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": {},
          "trackingRefs": [
            {}
          ]
        }
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'items' => [
    [
        'currency' => '',
        'currencyRate' => '',
        'id' => '',
        'issueDate' => '',
        'lines' => [
                [
                                'accountRef' => [
                                                                'id' => ''
                                ],
                                'netAmount' => '',
                                'taxAmount' => '',
                                'taxRateRef' => [
                                                                
                                ],
                                'trackingRefs' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'merchantName' => '',
        'notes' => '',
        'type' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'items' => [
    [
        'currency' => '',
        'currencyRate' => '',
        'id' => '',
        'issueDate' => '',
        'lines' => [
                [
                                'accountRef' => [
                                                                'id' => ''
                                ],
                                'netAmount' => '',
                                'taxAmount' => '',
                                'taxRateRef' => [
                                                                
                                ],
                                'trackingRefs' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'merchantName' => '',
        'notes' => '',
        'type' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        {
          "accountRef": {
            "id": ""
          },
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": {},
          "trackingRefs": [
            {}
          ]
        }
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "items": [
    {
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        {
          "accountRef": {
            "id": ""
          },
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": {},
          "trackingRefs": [
            {}
          ]
        }
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/companies/:companyId/sync/expenses/data/expense-transactions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions"

payload = { "items": [
        {
            "currency": "",
            "currencyRate": "",
            "id": "",
            "issueDate": "",
            "lines": [
                {
                    "accountRef": { "id": "" },
                    "netAmount": "",
                    "taxAmount": "",
                    "taxRateRef": {},
                    "trackingRefs": [{}]
                }
            ],
            "merchantName": "",
            "notes": "",
            "type": ""
        }
    ] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions"

payload <- "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions")

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  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/companies/:companyId/sync/expenses/data/expense-transactions') do |req|
  req.body = "{\n  \"items\": [\n    {\n      \"currency\": \"\",\n      \"currencyRate\": \"\",\n      \"id\": \"\",\n      \"issueDate\": \"\",\n      \"lines\": [\n        {\n          \"accountRef\": {\n            \"id\": \"\"\n          },\n          \"netAmount\": \"\",\n          \"taxAmount\": \"\",\n          \"taxRateRef\": {},\n          \"trackingRefs\": [\n            {}\n          ]\n        }\n      ],\n      \"merchantName\": \"\",\n      \"notes\": \"\",\n      \"type\": \"\"\n    }\n  ]\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions";

    let payload = json!({"items": (
            json!({
                "currency": "",
                "currencyRate": "",
                "id": "",
                "issueDate": "",
                "lines": (
                    json!({
                        "accountRef": json!({"id": ""}),
                        "netAmount": "",
                        "taxAmount": "",
                        "taxRateRef": json!({}),
                        "trackingRefs": (json!({}))
                    })
                ),
                "merchantName": "",
                "notes": "",
                "type": ""
            })
        )});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions \
  --header 'content-type: application/json' \
  --data '{
  "items": [
    {
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        {
          "accountRef": {
            "id": ""
          },
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": {},
          "trackingRefs": [
            {}
          ]
        }
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    }
  ]
}'
echo '{
  "items": [
    {
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        {
          "accountRef": {
            "id": ""
          },
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": {},
          "trackingRefs": [
            {}
          ]
        }
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "items": [\n    {\n      "currency": "",\n      "currencyRate": "",\n      "id": "",\n      "issueDate": "",\n      "lines": [\n        {\n          "accountRef": {\n            "id": ""\n          },\n          "netAmount": "",\n          "taxAmount": "",\n          "taxRateRef": {},\n          "trackingRefs": [\n            {}\n          ]\n        }\n      ],\n      "merchantName": "",\n      "notes": "",\n      "type": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["items": [
    [
      "currency": "",
      "currencyRate": "",
      "id": "",
      "issueDate": "",
      "lines": [
        [
          "accountRef": ["id": ""],
          "netAmount": "",
          "taxAmount": "",
          "taxRateRef": [],
          "trackingRefs": [[]]
        ]
      ],
      "merchantName": "",
      "notes": "",
      "type": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/data/expense-transactions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "datasetId": "cd937d46-8e41-43a9-9477-a79158ffd98a"
}
POST Upload attachment
{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments"

response = HTTP::Client.post url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments"

	req, _ := http.NewRequest("POST", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments"))
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments';
const options = {method: 'POST'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.post('/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments";

    let client = reqwest::Client::new();
    let response = client.post(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments
http POST {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId/attachments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Mapping options
{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/mappingOptions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/mappingOptions',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/mappingOptions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/mappingOptions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions
http GET {{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/mappingOptions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "expenseProvider": "Partner Expense"
}
POST Initiate sync
{{baseUrl}}/companies/:companyId/sync/expenses/syncs
BODY json

{
  "datasetIds": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"datasetIds\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/companies/:companyId/sync/expenses/syncs" {:content-type :json
                                                                                     :form-params {:datasetIds []}})
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"datasetIds\": []\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs"),
    Content = new StringContent("{\n  \"datasetIds\": []\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"datasetIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs"

	payload := strings.NewReader("{\n  \"datasetIds\": []\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(res)
	fmt.Println(string(body))

}
POST /baseUrl/companies/:companyId/sync/expenses/syncs HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 22

{
  "datasetIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"datasetIds\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"datasetIds\": []\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"datasetIds\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/companies/:companyId/sync/expenses/syncs")
  .header("content-type", "application/json")
  .body("{\n  \"datasetIds\": []\n}")
  .asString();
const data = JSON.stringify({
  datasetIds: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs',
  headers: {'content-type': 'application/json'},
  data: {datasetIds: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"datasetIds":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "datasetIds": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"datasetIds\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs")
  .post(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({datasetIds: []}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs',
  headers: {'content-type': 'application/json'},
  body: {datasetIds: []},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  datasetIds: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs',
  headers: {'content-type': 'application/json'},
  data: {datasetIds: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"datasetIds":[]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"datasetIds": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"datasetIds\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs",
  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([
    'datasetIds' => [
        
    ]
  ]),
  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;
}
request('POST', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs', [
  'body' => '{
  "datasetIds": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'datasetIds' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'datasetIds' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "datasetIds": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "datasetIds": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"datasetIds\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/companies/:companyId/sync/expenses/syncs", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs"

payload = { "datasetIds": [] }
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs"

payload <- "{\n  \"datasetIds\": []\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs")

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  \"datasetIds\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/companies/:companyId/sync/expenses/syncs') do |req|
  req.body = "{\n  \"datasetIds\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs";

    let payload = json!({"datasetIds": ()});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/syncs \
  --header 'content-type: application/json' \
  --data '{
  "datasetIds": []
}'
echo '{
  "datasetIds": []
}' |  \
  http POST {{baseUrl}}/companies/:companyId/sync/expenses/syncs \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "datasetIds": []\n}' \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/syncs
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["datasetIds": []] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Get Sync status
{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status
QUERY PARAMS

syncId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/status HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/status',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/status")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/status') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status
http GET {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "companyId": "d4d73051-ed31-42b6-99f6-d288cd940992",
  "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce",
  "syncStatus": "Completed",
  "syncStatusCode": 2000,
  "syncUtc": "2022-10-23T00:00:00Z"
}
GET Last successful sync
{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/syncs/lastSuccessful/status HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs/lastSuccessful/status',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/syncs/lastSuccessful/status') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status
http GET {{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/lastSuccessful/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "companyId": "d4d73051-ed31-42b6-99f6-d288cd940992",
  "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce",
  "syncStatus": "Completed",
  "syncStatusCode": 2000,
  "syncUtc": "2022-10-23T00:00:00Z"
}
GET Latest sync status
{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/syncs/latest/status HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs/latest/status',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/syncs/latest/status")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/syncs/latest/status') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status
http GET {{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/latest/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "companyId": "d4d73051-ed31-42b6-99f6-d288cd940992",
  "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce",
  "syncStatus": "Completed",
  "syncStatusCode": 2000,
  "syncUtc": "2022-10-23T00:00:00Z"
}
GET List sync statuses
{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/syncs/list/status HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs/list/status',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/syncs/list/status")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/syncs/list/status') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status
http GET {{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/list/status")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "companyId": "d4d73051-ed31-42b6-99f6-d288cd940992",
    "syncId": "a6a22aff-a43a-411d-a910-2dae73217cce",
    "syncStatus": "Completed",
    "syncStatusCode": 2000,
    "syncUtc": "2022-10-23T00:00:00Z"
  }
]
GET Get Sync Transaction
{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId
QUERY PARAMS

syncId
transactionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId";

    let client = reqwest::Client::new();
    let response = client.get(url)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId
http GET {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions/:transactionId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "integrationType": "expenses",
    "status": "Completed",
    "transactionId": "aa02271d-ed5f-47f5-be76-778d5905225a"
  }
]
GET Get Sync transactions
{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions
QUERY PARAMS

page
syncId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions" {:query-params {:page ""}})
require "http/client"

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions',
  params: {page: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions',
  qs: {page: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions');

req.query({
  page: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions',
  params: {page: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=');

echo $response->getBody();
setUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'page' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'page' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions"

querystring = {"page":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions"

queryString <- list(page = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/companies/:companyId/sync/expenses/syncs/:syncId/transactions') do |req|
  req.params['page'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions";

    let querystring = [
        ("page", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page='
http GET '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/companies/:companyId/sync/expenses/syncs/:syncId/transactions?page=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()