POST Creates a Payroll Calendar
{{baseUrl}}/PayrollCalendars
BODY json

[
  {
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayrollCalendars");

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  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/PayrollCalendars" {:content-type :json
                                                             :form-params [{:CalendarType ""
                                                                            :Name ""
                                                                            :PaymentDate ""
                                                                            :PayrollCalendarID ""
                                                                            :StartDate ""
                                                                            :UpdatedDateUTC ""
                                                                            :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/PayrollCalendars"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/PayrollCalendars"),
    Content = new StringContent("[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/PayrollCalendars");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayrollCalendars"

	payload := strings.NewReader("[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/PayrollCalendars HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 220

[
  {
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/PayrollCalendars")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayrollCalendars"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/PayrollCalendars")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/PayrollCalendars")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    CalendarType: '',
    Name: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    StartDate: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/PayrollCalendars');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayrollCalendars',
  headers: {'content-type': 'application/json'},
  data: [
    {
      CalendarType: '',
      Name: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      StartDate: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayrollCalendars';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"CalendarType":"","Name":"","PaymentDate":"","PayrollCalendarID":"","StartDate":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/PayrollCalendars',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "CalendarType": "",\n    "Name": "",\n    "PaymentDate": "",\n    "PayrollCalendarID": "",\n    "StartDate": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/PayrollCalendars")
  .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/PayrollCalendars',
  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([
  {
    CalendarType: '',
    Name: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    StartDate: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayrollCalendars',
  headers: {'content-type': 'application/json'},
  body: [
    {
      CalendarType: '',
      Name: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      StartDate: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/PayrollCalendars');

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

req.type('json');
req.send([
  {
    CalendarType: '',
    Name: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    StartDate: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/PayrollCalendars',
  headers: {'content-type': 'application/json'},
  data: [
    {
      CalendarType: '',
      Name: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      StartDate: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/PayrollCalendars';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"CalendarType":"","Name":"","PaymentDate":"","PayrollCalendarID":"","StartDate":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"CalendarType": @"", @"Name": @"", @"PaymentDate": @"", @"PayrollCalendarID": @"", @"StartDate": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/PayrollCalendars"]
                                                       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}}/PayrollCalendars" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayrollCalendars",
  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([
    [
        'CalendarType' => '',
        'Name' => '',
        'PaymentDate' => '',
        'PayrollCalendarID' => '',
        'StartDate' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/PayrollCalendars', [
  'body' => '[
  {
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/PayrollCalendars');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'CalendarType' => '',
    'Name' => '',
    'PaymentDate' => '',
    'PayrollCalendarID' => '',
    'StartDate' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'CalendarType' => '',
    'Name' => '',
    'PaymentDate' => '',
    'PayrollCalendarID' => '',
    'StartDate' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/PayrollCalendars');
$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}}/PayrollCalendars' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayrollCalendars' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/PayrollCalendars", payload, headers)

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

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

url = "{{baseUrl}}/PayrollCalendars"

payload = [
    {
        "CalendarType": "",
        "Name": "",
        "PaymentDate": "",
        "PayrollCalendarID": "",
        "StartDate": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/PayrollCalendars"

payload <- "[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/PayrollCalendars")

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  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/PayrollCalendars') do |req|
  req.body = "[\n  {\n    \"CalendarType\": \"\",\n    \"Name\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"StartDate\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/PayrollCalendars";

    let payload = (
        json!({
            "CalendarType": "",
            "Name": "",
            "PaymentDate": "",
            "PayrollCalendarID": "",
            "StartDate": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/PayrollCalendars \
  --header 'content-type: application/json' \
  --data '[
  {
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/PayrollCalendars \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "CalendarType": "",\n    "Name": "",\n    "PaymentDate": "",\n    "PayrollCalendarID": "",\n    "StartDate": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/PayrollCalendars
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "CalendarType": "",
    "Name": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "StartDate": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayrollCalendars")! 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

{ "Id":"113db83f-1769-4352-a097-7ac5c333aa40", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1584125518649)\/", "PayrollCalendars":[ { "PayrollCalendarID":"57accbfe-f729-4be3-b3cb-8c3445c61d3a", "Name":"MyCal37127", "CalendarType":"WEEKLY", "StartDate":"\/Date(1572998400000+0000)\/", "PaymentDate":"\/Date(1573516800000+0000)\/", "UpdatedDateUTC":"\/Date(1584125518633+0000)\/" } ] }
POST Creates a leave application
{{baseUrl}}/LeaveApplications
BODY json

[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/LeaveApplications");

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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/LeaveApplications" {:content-type :json
                                                              :form-params [{:Description ""
                                                                             :EmployeeID ""
                                                                             :EndDate ""
                                                                             :LeaveApplicationID ""
                                                                             :LeavePeriods [{:LeavePeriodStatus ""
                                                                                             :NumberOfUnits ""
                                                                                             :PayPeriodEndDate ""
                                                                                             :PayPeriodStartDate ""}]
                                                                             :LeaveTypeID ""
                                                                             :StartDate ""
                                                                             :Title ""
                                                                             :UpdatedDateUTC ""
                                                                             :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/LeaveApplications"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications"),
    Content = new StringContent("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/LeaveApplications"

	payload := strings.NewReader("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/LeaveApplications HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 434

[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/LeaveApplications")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/LeaveApplications"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/LeaveApplications")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/LeaveApplications")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    Description: '',
    EmployeeID: '',
    EndDate: '',
    LeaveApplicationID: '',
    LeavePeriods: [
      {
        LeavePeriodStatus: '',
        NumberOfUnits: '',
        PayPeriodEndDate: '',
        PayPeriodStartDate: ''
      }
    ],
    LeaveTypeID: '',
    StartDate: '',
    Title: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/LeaveApplications');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/LeaveApplications',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Description: '',
      EmployeeID: '',
      EndDate: '',
      LeaveApplicationID: '',
      LeavePeriods: [
        {
          LeavePeriodStatus: '',
          NumberOfUnits: '',
          PayPeriodEndDate: '',
          PayPeriodStartDate: ''
        }
      ],
      LeaveTypeID: '',
      StartDate: '',
      Title: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/LeaveApplications';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Description":"","EmployeeID":"","EndDate":"","LeaveApplicationID":"","LeavePeriods":[{"LeavePeriodStatus":"","NumberOfUnits":"","PayPeriodEndDate":"","PayPeriodStartDate":""}],"LeaveTypeID":"","StartDate":"","Title":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/LeaveApplications',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "Description": "",\n    "EmployeeID": "",\n    "EndDate": "",\n    "LeaveApplicationID": "",\n    "LeavePeriods": [\n      {\n        "LeavePeriodStatus": "",\n        "NumberOfUnits": "",\n        "PayPeriodEndDate": "",\n        "PayPeriodStartDate": ""\n      }\n    ],\n    "LeaveTypeID": "",\n    "StartDate": "",\n    "Title": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/LeaveApplications")
  .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/LeaveApplications',
  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([
  {
    Description: '',
    EmployeeID: '',
    EndDate: '',
    LeaveApplicationID: '',
    LeavePeriods: [
      {
        LeavePeriodStatus: '',
        NumberOfUnits: '',
        PayPeriodEndDate: '',
        PayPeriodStartDate: ''
      }
    ],
    LeaveTypeID: '',
    StartDate: '',
    Title: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/LeaveApplications',
  headers: {'content-type': 'application/json'},
  body: [
    {
      Description: '',
      EmployeeID: '',
      EndDate: '',
      LeaveApplicationID: '',
      LeavePeriods: [
        {
          LeavePeriodStatus: '',
          NumberOfUnits: '',
          PayPeriodEndDate: '',
          PayPeriodStartDate: ''
        }
      ],
      LeaveTypeID: '',
      StartDate: '',
      Title: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/LeaveApplications');

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

req.type('json');
req.send([
  {
    Description: '',
    EmployeeID: '',
    EndDate: '',
    LeaveApplicationID: '',
    LeavePeriods: [
      {
        LeavePeriodStatus: '',
        NumberOfUnits: '',
        PayPeriodEndDate: '',
        PayPeriodStartDate: ''
      }
    ],
    LeaveTypeID: '',
    StartDate: '',
    Title: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/LeaveApplications',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Description: '',
      EmployeeID: '',
      EndDate: '',
      LeaveApplicationID: '',
      LeavePeriods: [
        {
          LeavePeriodStatus: '',
          NumberOfUnits: '',
          PayPeriodEndDate: '',
          PayPeriodStartDate: ''
        }
      ],
      LeaveTypeID: '',
      StartDate: '',
      Title: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/LeaveApplications';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Description":"","EmployeeID":"","EndDate":"","LeaveApplicationID":"","LeavePeriods":[{"LeavePeriodStatus":"","NumberOfUnits":"","PayPeriodEndDate":"","PayPeriodStartDate":""}],"LeaveTypeID":"","StartDate":"","Title":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"Description": @"", @"EmployeeID": @"", @"EndDate": @"", @"LeaveApplicationID": @"", @"LeavePeriods": @[ @{ @"LeavePeriodStatus": @"", @"NumberOfUnits": @"", @"PayPeriodEndDate": @"", @"PayPeriodStartDate": @"" } ], @"LeaveTypeID": @"", @"StartDate": @"", @"Title": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/LeaveApplications"]
                                                       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}}/LeaveApplications" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/LeaveApplications",
  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([
    [
        'Description' => '',
        'EmployeeID' => '',
        'EndDate' => '',
        'LeaveApplicationID' => '',
        'LeavePeriods' => [
                [
                                'LeavePeriodStatus' => '',
                                'NumberOfUnits' => '',
                                'PayPeriodEndDate' => '',
                                'PayPeriodStartDate' => ''
                ]
        ],
        'LeaveTypeID' => '',
        'StartDate' => '',
        'Title' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/LeaveApplications', [
  'body' => '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/LeaveApplications');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'Description' => '',
    'EmployeeID' => '',
    'EndDate' => '',
    'LeaveApplicationID' => '',
    'LeavePeriods' => [
        [
                'LeavePeriodStatus' => '',
                'NumberOfUnits' => '',
                'PayPeriodEndDate' => '',
                'PayPeriodStartDate' => ''
        ]
    ],
    'LeaveTypeID' => '',
    'StartDate' => '',
    'Title' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'Description' => '',
    'EmployeeID' => '',
    'EndDate' => '',
    'LeaveApplicationID' => '',
    'LeavePeriods' => [
        [
                'LeavePeriodStatus' => '',
                'NumberOfUnits' => '',
                'PayPeriodEndDate' => '',
                'PayPeriodStartDate' => ''
        ]
    ],
    'LeaveTypeID' => '',
    'StartDate' => '',
    'Title' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/LeaveApplications');
$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}}/LeaveApplications' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/LeaveApplications' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/LeaveApplications", payload, headers)

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

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

url = "{{baseUrl}}/LeaveApplications"

payload = [
    {
        "Description": "",
        "EmployeeID": "",
        "EndDate": "",
        "LeaveApplicationID": "",
        "LeavePeriods": [
            {
                "LeavePeriodStatus": "",
                "NumberOfUnits": "",
                "PayPeriodEndDate": "",
                "PayPeriodStartDate": ""
            }
        ],
        "LeaveTypeID": "",
        "StartDate": "",
        "Title": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/LeaveApplications"

payload <- "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications")

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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/LeaveApplications') do |req|
  req.body = "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications";

    let payload = (
        json!({
            "Description": "",
            "EmployeeID": "",
            "EndDate": "",
            "LeaveApplicationID": "",
            "LeavePeriods": (
                json!({
                    "LeavePeriodStatus": "",
                    "NumberOfUnits": "",
                    "PayPeriodEndDate": "",
                    "PayPeriodStartDate": ""
                })
            ),
            "LeaveTypeID": "",
            "StartDate": "",
            "Title": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/LeaveApplications \
  --header 'content-type: application/json' \
  --data '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/LeaveApplications \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "Description": "",\n    "EmployeeID": "",\n    "EndDate": "",\n    "LeaveApplicationID": "",\n    "LeavePeriods": [\n      {\n        "LeavePeriodStatus": "",\n        "NumberOfUnits": "",\n        "PayPeriodEndDate": "",\n        "PayPeriodStartDate": ""\n      }\n    ],\n    "LeaveTypeID": "",\n    "StartDate": "",\n    "Title": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/LeaveApplications
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      [
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      ]
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/LeaveApplications")! 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

{ "Id": "7bbc3541-befd-482e-a6a3-a8cf7a93461e", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573679791917)/", "LeaveApplications": [ { "LeaveApplicationID": "5f7097e4-51f2-46cc-921b-45bc73ea7831", "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "LeavePeriods": [ { "PayPeriodStartDate": "/Date(1572566400000+0000)/", "PayPeriodEndDate": "/Date(1573084800000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0.6 } ], "Title": "Hello World", "StartDate": "/Date(1572559200000+0000)/", "EndDate": "/Date(1572645600000+0000)/", "UpdatedDateUTC": "/Date(1573679791897+0000)/" } ] }
POST Creates a pay item
{{baseUrl}}/PayItems
BODY json

{
  "DeductionTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    }
  ],
  "EarningsRates": [
    {
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "LeaveTypes": [
    {
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "ReimbursementTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayItems");

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  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}");

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

(client/post "{{baseUrl}}/PayItems" {:content-type :json
                                                     :form-params {:DeductionTypes [{:AccountCode ""
                                                                                     :CurrentRecord false
                                                                                     :DeductionCategory ""
                                                                                     :DeductionTypeID ""
                                                                                     :IsExemptFromW1 false
                                                                                     :Name ""
                                                                                     :ReducesSuper false
                                                                                     :ReducesTax false
                                                                                     :UpdatedDateUTC ""}]
                                                                   :EarningsRates [{:AccountCode ""
                                                                                    :AccrueLeave false
                                                                                    :AllowanceType ""
                                                                                    :Amount ""
                                                                                    :CurrentRecord false
                                                                                    :EarningsRateID ""
                                                                                    :EarningsType ""
                                                                                    :EmploymentTerminationPaymentType ""
                                                                                    :IsExemptFromSuper false
                                                                                    :IsExemptFromTax false
                                                                                    :IsReportableAsW1 false
                                                                                    :Multiplier ""
                                                                                    :Name ""
                                                                                    :RatePerUnit ""
                                                                                    :RateType ""
                                                                                    :TypeOfUnits ""
                                                                                    :UpdatedDateUTC ""}]
                                                                   :LeaveTypes [{:CurrentRecord false
                                                                                 :IsPaidLeave false
                                                                                 :LeaveLoadingRate ""
                                                                                 :LeaveTypeID ""
                                                                                 :Name ""
                                                                                 :NormalEntitlement ""
                                                                                 :ShowOnPayslip false
                                                                                 :TypeOfUnits ""
                                                                                 :UpdatedDateUTC ""}]
                                                                   :ReimbursementTypes [{:AccountCode ""
                                                                                         :CurrentRecord false
                                                                                         :Name ""
                                                                                         :ReimbursementTypeID ""
                                                                                         :UpdatedDateUTC ""}]}})
require "http/client"

url = "{{baseUrl}}/PayItems"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\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}}/PayItems"),
    Content = new StringContent("{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\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}}/PayItems");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayItems"

	payload := strings.NewReader("{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\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/PayItems HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1251

{
  "DeductionTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    }
  ],
  "EarningsRates": [
    {
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "LeaveTypes": [
    {
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "ReimbursementTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/PayItems")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayItems"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\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  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/PayItems")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/PayItems")
  .header("content-type", "application/json")
  .body("{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  DeductionTypes: [
    {
      AccountCode: '',
      CurrentRecord: false,
      DeductionCategory: '',
      DeductionTypeID: '',
      IsExemptFromW1: false,
      Name: '',
      ReducesSuper: false,
      ReducesTax: false,
      UpdatedDateUTC: ''
    }
  ],
  EarningsRates: [
    {
      AccountCode: '',
      AccrueLeave: false,
      AllowanceType: '',
      Amount: '',
      CurrentRecord: false,
      EarningsRateID: '',
      EarningsType: '',
      EmploymentTerminationPaymentType: '',
      IsExemptFromSuper: false,
      IsExemptFromTax: false,
      IsReportableAsW1: false,
      Multiplier: '',
      Name: '',
      RatePerUnit: '',
      RateType: '',
      TypeOfUnits: '',
      UpdatedDateUTC: ''
    }
  ],
  LeaveTypes: [
    {
      CurrentRecord: false,
      IsPaidLeave: false,
      LeaveLoadingRate: '',
      LeaveTypeID: '',
      Name: '',
      NormalEntitlement: '',
      ShowOnPayslip: false,
      TypeOfUnits: '',
      UpdatedDateUTC: ''
    }
  ],
  ReimbursementTypes: [
    {
      AccountCode: '',
      CurrentRecord: false,
      Name: '',
      ReimbursementTypeID: '',
      UpdatedDateUTC: ''
    }
  ]
});

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

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

xhr.open('POST', '{{baseUrl}}/PayItems');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayItems',
  headers: {'content-type': 'application/json'},
  data: {
    DeductionTypes: [
      {
        AccountCode: '',
        CurrentRecord: false,
        DeductionCategory: '',
        DeductionTypeID: '',
        IsExemptFromW1: false,
        Name: '',
        ReducesSuper: false,
        ReducesTax: false,
        UpdatedDateUTC: ''
      }
    ],
    EarningsRates: [
      {
        AccountCode: '',
        AccrueLeave: false,
        AllowanceType: '',
        Amount: '',
        CurrentRecord: false,
        EarningsRateID: '',
        EarningsType: '',
        EmploymentTerminationPaymentType: '',
        IsExemptFromSuper: false,
        IsExemptFromTax: false,
        IsReportableAsW1: false,
        Multiplier: '',
        Name: '',
        RatePerUnit: '',
        RateType: '',
        TypeOfUnits: '',
        UpdatedDateUTC: ''
      }
    ],
    LeaveTypes: [
      {
        CurrentRecord: false,
        IsPaidLeave: false,
        LeaveLoadingRate: '',
        LeaveTypeID: '',
        Name: '',
        NormalEntitlement: '',
        ShowOnPayslip: false,
        TypeOfUnits: '',
        UpdatedDateUTC: ''
      }
    ],
    ReimbursementTypes: [
      {
        AccountCode: '',
        CurrentRecord: false,
        Name: '',
        ReimbursementTypeID: '',
        UpdatedDateUTC: ''
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayItems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"DeductionTypes":[{"AccountCode":"","CurrentRecord":false,"DeductionCategory":"","DeductionTypeID":"","IsExemptFromW1":false,"Name":"","ReducesSuper":false,"ReducesTax":false,"UpdatedDateUTC":""}],"EarningsRates":[{"AccountCode":"","AccrueLeave":false,"AllowanceType":"","Amount":"","CurrentRecord":false,"EarningsRateID":"","EarningsType":"","EmploymentTerminationPaymentType":"","IsExemptFromSuper":false,"IsExemptFromTax":false,"IsReportableAsW1":false,"Multiplier":"","Name":"","RatePerUnit":"","RateType":"","TypeOfUnits":"","UpdatedDateUTC":""}],"LeaveTypes":[{"CurrentRecord":false,"IsPaidLeave":false,"LeaveLoadingRate":"","LeaveTypeID":"","Name":"","NormalEntitlement":"","ShowOnPayslip":false,"TypeOfUnits":"","UpdatedDateUTC":""}],"ReimbursementTypes":[{"AccountCode":"","CurrentRecord":false,"Name":"","ReimbursementTypeID":"","UpdatedDateUTC":""}]}'
};

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}}/PayItems',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "DeductionTypes": [\n    {\n      "AccountCode": "",\n      "CurrentRecord": false,\n      "DeductionCategory": "",\n      "DeductionTypeID": "",\n      "IsExemptFromW1": false,\n      "Name": "",\n      "ReducesSuper": false,\n      "ReducesTax": false,\n      "UpdatedDateUTC": ""\n    }\n  ],\n  "EarningsRates": [\n    {\n      "AccountCode": "",\n      "AccrueLeave": false,\n      "AllowanceType": "",\n      "Amount": "",\n      "CurrentRecord": false,\n      "EarningsRateID": "",\n      "EarningsType": "",\n      "EmploymentTerminationPaymentType": "",\n      "IsExemptFromSuper": false,\n      "IsExemptFromTax": false,\n      "IsReportableAsW1": false,\n      "Multiplier": "",\n      "Name": "",\n      "RatePerUnit": "",\n      "RateType": "",\n      "TypeOfUnits": "",\n      "UpdatedDateUTC": ""\n    }\n  ],\n  "LeaveTypes": [\n    {\n      "CurrentRecord": false,\n      "IsPaidLeave": false,\n      "LeaveLoadingRate": "",\n      "LeaveTypeID": "",\n      "Name": "",\n      "NormalEntitlement": "",\n      "ShowOnPayslip": false,\n      "TypeOfUnits": "",\n      "UpdatedDateUTC": ""\n    }\n  ],\n  "ReimbursementTypes": [\n    {\n      "AccountCode": "",\n      "CurrentRecord": false,\n      "Name": "",\n      "ReimbursementTypeID": "",\n      "UpdatedDateUTC": ""\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  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/PayItems")
  .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/PayItems',
  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({
  DeductionTypes: [
    {
      AccountCode: '',
      CurrentRecord: false,
      DeductionCategory: '',
      DeductionTypeID: '',
      IsExemptFromW1: false,
      Name: '',
      ReducesSuper: false,
      ReducesTax: false,
      UpdatedDateUTC: ''
    }
  ],
  EarningsRates: [
    {
      AccountCode: '',
      AccrueLeave: false,
      AllowanceType: '',
      Amount: '',
      CurrentRecord: false,
      EarningsRateID: '',
      EarningsType: '',
      EmploymentTerminationPaymentType: '',
      IsExemptFromSuper: false,
      IsExemptFromTax: false,
      IsReportableAsW1: false,
      Multiplier: '',
      Name: '',
      RatePerUnit: '',
      RateType: '',
      TypeOfUnits: '',
      UpdatedDateUTC: ''
    }
  ],
  LeaveTypes: [
    {
      CurrentRecord: false,
      IsPaidLeave: false,
      LeaveLoadingRate: '',
      LeaveTypeID: '',
      Name: '',
      NormalEntitlement: '',
      ShowOnPayslip: false,
      TypeOfUnits: '',
      UpdatedDateUTC: ''
    }
  ],
  ReimbursementTypes: [
    {
      AccountCode: '',
      CurrentRecord: false,
      Name: '',
      ReimbursementTypeID: '',
      UpdatedDateUTC: ''
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayItems',
  headers: {'content-type': 'application/json'},
  body: {
    DeductionTypes: [
      {
        AccountCode: '',
        CurrentRecord: false,
        DeductionCategory: '',
        DeductionTypeID: '',
        IsExemptFromW1: false,
        Name: '',
        ReducesSuper: false,
        ReducesTax: false,
        UpdatedDateUTC: ''
      }
    ],
    EarningsRates: [
      {
        AccountCode: '',
        AccrueLeave: false,
        AllowanceType: '',
        Amount: '',
        CurrentRecord: false,
        EarningsRateID: '',
        EarningsType: '',
        EmploymentTerminationPaymentType: '',
        IsExemptFromSuper: false,
        IsExemptFromTax: false,
        IsReportableAsW1: false,
        Multiplier: '',
        Name: '',
        RatePerUnit: '',
        RateType: '',
        TypeOfUnits: '',
        UpdatedDateUTC: ''
      }
    ],
    LeaveTypes: [
      {
        CurrentRecord: false,
        IsPaidLeave: false,
        LeaveLoadingRate: '',
        LeaveTypeID: '',
        Name: '',
        NormalEntitlement: '',
        ShowOnPayslip: false,
        TypeOfUnits: '',
        UpdatedDateUTC: ''
      }
    ],
    ReimbursementTypes: [
      {
        AccountCode: '',
        CurrentRecord: false,
        Name: '',
        ReimbursementTypeID: '',
        UpdatedDateUTC: ''
      }
    ]
  },
  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}}/PayItems');

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

req.type('json');
req.send({
  DeductionTypes: [
    {
      AccountCode: '',
      CurrentRecord: false,
      DeductionCategory: '',
      DeductionTypeID: '',
      IsExemptFromW1: false,
      Name: '',
      ReducesSuper: false,
      ReducesTax: false,
      UpdatedDateUTC: ''
    }
  ],
  EarningsRates: [
    {
      AccountCode: '',
      AccrueLeave: false,
      AllowanceType: '',
      Amount: '',
      CurrentRecord: false,
      EarningsRateID: '',
      EarningsType: '',
      EmploymentTerminationPaymentType: '',
      IsExemptFromSuper: false,
      IsExemptFromTax: false,
      IsReportableAsW1: false,
      Multiplier: '',
      Name: '',
      RatePerUnit: '',
      RateType: '',
      TypeOfUnits: '',
      UpdatedDateUTC: ''
    }
  ],
  LeaveTypes: [
    {
      CurrentRecord: false,
      IsPaidLeave: false,
      LeaveLoadingRate: '',
      LeaveTypeID: '',
      Name: '',
      NormalEntitlement: '',
      ShowOnPayslip: false,
      TypeOfUnits: '',
      UpdatedDateUTC: ''
    }
  ],
  ReimbursementTypes: [
    {
      AccountCode: '',
      CurrentRecord: false,
      Name: '',
      ReimbursementTypeID: '',
      UpdatedDateUTC: ''
    }
  ]
});

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}}/PayItems',
  headers: {'content-type': 'application/json'},
  data: {
    DeductionTypes: [
      {
        AccountCode: '',
        CurrentRecord: false,
        DeductionCategory: '',
        DeductionTypeID: '',
        IsExemptFromW1: false,
        Name: '',
        ReducesSuper: false,
        ReducesTax: false,
        UpdatedDateUTC: ''
      }
    ],
    EarningsRates: [
      {
        AccountCode: '',
        AccrueLeave: false,
        AllowanceType: '',
        Amount: '',
        CurrentRecord: false,
        EarningsRateID: '',
        EarningsType: '',
        EmploymentTerminationPaymentType: '',
        IsExemptFromSuper: false,
        IsExemptFromTax: false,
        IsReportableAsW1: false,
        Multiplier: '',
        Name: '',
        RatePerUnit: '',
        RateType: '',
        TypeOfUnits: '',
        UpdatedDateUTC: ''
      }
    ],
    LeaveTypes: [
      {
        CurrentRecord: false,
        IsPaidLeave: false,
        LeaveLoadingRate: '',
        LeaveTypeID: '',
        Name: '',
        NormalEntitlement: '',
        ShowOnPayslip: false,
        TypeOfUnits: '',
        UpdatedDateUTC: ''
      }
    ],
    ReimbursementTypes: [
      {
        AccountCode: '',
        CurrentRecord: false,
        Name: '',
        ReimbursementTypeID: '',
        UpdatedDateUTC: ''
      }
    ]
  }
};

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

const url = '{{baseUrl}}/PayItems';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"DeductionTypes":[{"AccountCode":"","CurrentRecord":false,"DeductionCategory":"","DeductionTypeID":"","IsExemptFromW1":false,"Name":"","ReducesSuper":false,"ReducesTax":false,"UpdatedDateUTC":""}],"EarningsRates":[{"AccountCode":"","AccrueLeave":false,"AllowanceType":"","Amount":"","CurrentRecord":false,"EarningsRateID":"","EarningsType":"","EmploymentTerminationPaymentType":"","IsExemptFromSuper":false,"IsExemptFromTax":false,"IsReportableAsW1":false,"Multiplier":"","Name":"","RatePerUnit":"","RateType":"","TypeOfUnits":"","UpdatedDateUTC":""}],"LeaveTypes":[{"CurrentRecord":false,"IsPaidLeave":false,"LeaveLoadingRate":"","LeaveTypeID":"","Name":"","NormalEntitlement":"","ShowOnPayslip":false,"TypeOfUnits":"","UpdatedDateUTC":""}],"ReimbursementTypes":[{"AccountCode":"","CurrentRecord":false,"Name":"","ReimbursementTypeID":"","UpdatedDateUTC":""}]}'
};

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 = @{ @"DeductionTypes": @[ @{ @"AccountCode": @"", @"CurrentRecord": @NO, @"DeductionCategory": @"", @"DeductionTypeID": @"", @"IsExemptFromW1": @NO, @"Name": @"", @"ReducesSuper": @NO, @"ReducesTax": @NO, @"UpdatedDateUTC": @"" } ],
                              @"EarningsRates": @[ @{ @"AccountCode": @"", @"AccrueLeave": @NO, @"AllowanceType": @"", @"Amount": @"", @"CurrentRecord": @NO, @"EarningsRateID": @"", @"EarningsType": @"", @"EmploymentTerminationPaymentType": @"", @"IsExemptFromSuper": @NO, @"IsExemptFromTax": @NO, @"IsReportableAsW1": @NO, @"Multiplier": @"", @"Name": @"", @"RatePerUnit": @"", @"RateType": @"", @"TypeOfUnits": @"", @"UpdatedDateUTC": @"" } ],
                              @"LeaveTypes": @[ @{ @"CurrentRecord": @NO, @"IsPaidLeave": @NO, @"LeaveLoadingRate": @"", @"LeaveTypeID": @"", @"Name": @"", @"NormalEntitlement": @"", @"ShowOnPayslip": @NO, @"TypeOfUnits": @"", @"UpdatedDateUTC": @"" } ],
                              @"ReimbursementTypes": @[ @{ @"AccountCode": @"", @"CurrentRecord": @NO, @"Name": @"", @"ReimbursementTypeID": @"", @"UpdatedDateUTC": @"" } ] };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/PayItems"]
                                                       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}}/PayItems" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayItems",
  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([
    'DeductionTypes' => [
        [
                'AccountCode' => '',
                'CurrentRecord' => null,
                'DeductionCategory' => '',
                'DeductionTypeID' => '',
                'IsExemptFromW1' => null,
                'Name' => '',
                'ReducesSuper' => null,
                'ReducesTax' => null,
                'UpdatedDateUTC' => ''
        ]
    ],
    'EarningsRates' => [
        [
                'AccountCode' => '',
                'AccrueLeave' => null,
                'AllowanceType' => '',
                'Amount' => '',
                'CurrentRecord' => null,
                'EarningsRateID' => '',
                'EarningsType' => '',
                'EmploymentTerminationPaymentType' => '',
                'IsExemptFromSuper' => null,
                'IsExemptFromTax' => null,
                'IsReportableAsW1' => null,
                'Multiplier' => '',
                'Name' => '',
                'RatePerUnit' => '',
                'RateType' => '',
                'TypeOfUnits' => '',
                'UpdatedDateUTC' => ''
        ]
    ],
    'LeaveTypes' => [
        [
                'CurrentRecord' => null,
                'IsPaidLeave' => null,
                'LeaveLoadingRate' => '',
                'LeaveTypeID' => '',
                'Name' => '',
                'NormalEntitlement' => '',
                'ShowOnPayslip' => null,
                'TypeOfUnits' => '',
                'UpdatedDateUTC' => ''
        ]
    ],
    'ReimbursementTypes' => [
        [
                'AccountCode' => '',
                'CurrentRecord' => null,
                'Name' => '',
                'ReimbursementTypeID' => '',
                'UpdatedDateUTC' => ''
        ]
    ]
  ]),
  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}}/PayItems', [
  'body' => '{
  "DeductionTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    }
  ],
  "EarningsRates": [
    {
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "LeaveTypes": [
    {
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "ReimbursementTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/PayItems');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'DeductionTypes' => [
    [
        'AccountCode' => '',
        'CurrentRecord' => null,
        'DeductionCategory' => '',
        'DeductionTypeID' => '',
        'IsExemptFromW1' => null,
        'Name' => '',
        'ReducesSuper' => null,
        'ReducesTax' => null,
        'UpdatedDateUTC' => ''
    ]
  ],
  'EarningsRates' => [
    [
        'AccountCode' => '',
        'AccrueLeave' => null,
        'AllowanceType' => '',
        'Amount' => '',
        'CurrentRecord' => null,
        'EarningsRateID' => '',
        'EarningsType' => '',
        'EmploymentTerminationPaymentType' => '',
        'IsExemptFromSuper' => null,
        'IsExemptFromTax' => null,
        'IsReportableAsW1' => null,
        'Multiplier' => '',
        'Name' => '',
        'RatePerUnit' => '',
        'RateType' => '',
        'TypeOfUnits' => '',
        'UpdatedDateUTC' => ''
    ]
  ],
  'LeaveTypes' => [
    [
        'CurrentRecord' => null,
        'IsPaidLeave' => null,
        'LeaveLoadingRate' => '',
        'LeaveTypeID' => '',
        'Name' => '',
        'NormalEntitlement' => '',
        'ShowOnPayslip' => null,
        'TypeOfUnits' => '',
        'UpdatedDateUTC' => ''
    ]
  ],
  'ReimbursementTypes' => [
    [
        'AccountCode' => '',
        'CurrentRecord' => null,
        'Name' => '',
        'ReimbursementTypeID' => '',
        'UpdatedDateUTC' => ''
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'DeductionTypes' => [
    [
        'AccountCode' => '',
        'CurrentRecord' => null,
        'DeductionCategory' => '',
        'DeductionTypeID' => '',
        'IsExemptFromW1' => null,
        'Name' => '',
        'ReducesSuper' => null,
        'ReducesTax' => null,
        'UpdatedDateUTC' => ''
    ]
  ],
  'EarningsRates' => [
    [
        'AccountCode' => '',
        'AccrueLeave' => null,
        'AllowanceType' => '',
        'Amount' => '',
        'CurrentRecord' => null,
        'EarningsRateID' => '',
        'EarningsType' => '',
        'EmploymentTerminationPaymentType' => '',
        'IsExemptFromSuper' => null,
        'IsExemptFromTax' => null,
        'IsReportableAsW1' => null,
        'Multiplier' => '',
        'Name' => '',
        'RatePerUnit' => '',
        'RateType' => '',
        'TypeOfUnits' => '',
        'UpdatedDateUTC' => ''
    ]
  ],
  'LeaveTypes' => [
    [
        'CurrentRecord' => null,
        'IsPaidLeave' => null,
        'LeaveLoadingRate' => '',
        'LeaveTypeID' => '',
        'Name' => '',
        'NormalEntitlement' => '',
        'ShowOnPayslip' => null,
        'TypeOfUnits' => '',
        'UpdatedDateUTC' => ''
    ]
  ],
  'ReimbursementTypes' => [
    [
        'AccountCode' => '',
        'CurrentRecord' => null,
        'Name' => '',
        'ReimbursementTypeID' => '',
        'UpdatedDateUTC' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/PayItems');
$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}}/PayItems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "DeductionTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    }
  ],
  "EarningsRates": [
    {
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "LeaveTypes": [
    {
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "ReimbursementTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayItems' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "DeductionTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    }
  ],
  "EarningsRates": [
    {
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "LeaveTypes": [
    {
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "ReimbursementTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    }
  ]
}'
import http.client

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

payload = "{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ]\n}"

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

conn.request("POST", "/baseUrl/PayItems", payload, headers)

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

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

url = "{{baseUrl}}/PayItems"

payload = {
    "DeductionTypes": [
        {
            "AccountCode": "",
            "CurrentRecord": False,
            "DeductionCategory": "",
            "DeductionTypeID": "",
            "IsExemptFromW1": False,
            "Name": "",
            "ReducesSuper": False,
            "ReducesTax": False,
            "UpdatedDateUTC": ""
        }
    ],
    "EarningsRates": [
        {
            "AccountCode": "",
            "AccrueLeave": False,
            "AllowanceType": "",
            "Amount": "",
            "CurrentRecord": False,
            "EarningsRateID": "",
            "EarningsType": "",
            "EmploymentTerminationPaymentType": "",
            "IsExemptFromSuper": False,
            "IsExemptFromTax": False,
            "IsReportableAsW1": False,
            "Multiplier": "",
            "Name": "",
            "RatePerUnit": "",
            "RateType": "",
            "TypeOfUnits": "",
            "UpdatedDateUTC": ""
        }
    ],
    "LeaveTypes": [
        {
            "CurrentRecord": False,
            "IsPaidLeave": False,
            "LeaveLoadingRate": "",
            "LeaveTypeID": "",
            "Name": "",
            "NormalEntitlement": "",
            "ShowOnPayslip": False,
            "TypeOfUnits": "",
            "UpdatedDateUTC": ""
        }
    ],
    "ReimbursementTypes": [
        {
            "AccountCode": "",
            "CurrentRecord": False,
            "Name": "",
            "ReimbursementTypeID": "",
            "UpdatedDateUTC": ""
        }
    ]
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/PayItems"

payload <- "{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\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}}/PayItems")

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  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\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/PayItems') do |req|
  req.body = "{\n  \"DeductionTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"DeductionCategory\": \"\",\n      \"DeductionTypeID\": \"\",\n      \"IsExemptFromW1\": false,\n      \"Name\": \"\",\n      \"ReducesSuper\": false,\n      \"ReducesTax\": false,\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"EarningsRates\": [\n    {\n      \"AccountCode\": \"\",\n      \"AccrueLeave\": false,\n      \"AllowanceType\": \"\",\n      \"Amount\": \"\",\n      \"CurrentRecord\": false,\n      \"EarningsRateID\": \"\",\n      \"EarningsType\": \"\",\n      \"EmploymentTerminationPaymentType\": \"\",\n      \"IsExemptFromSuper\": false,\n      \"IsExemptFromTax\": false,\n      \"IsReportableAsW1\": false,\n      \"Multiplier\": \"\",\n      \"Name\": \"\",\n      \"RatePerUnit\": \"\",\n      \"RateType\": \"\",\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"LeaveTypes\": [\n    {\n      \"CurrentRecord\": false,\n      \"IsPaidLeave\": false,\n      \"LeaveLoadingRate\": \"\",\n      \"LeaveTypeID\": \"\",\n      \"Name\": \"\",\n      \"NormalEntitlement\": \"\",\n      \"ShowOnPayslip\": false,\n      \"TypeOfUnits\": \"\",\n      \"UpdatedDateUTC\": \"\"\n    }\n  ],\n  \"ReimbursementTypes\": [\n    {\n      \"AccountCode\": \"\",\n      \"CurrentRecord\": false,\n      \"Name\": \"\",\n      \"ReimbursementTypeID\": \"\",\n      \"UpdatedDateUTC\": \"\"\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}}/PayItems";

    let payload = json!({
        "DeductionTypes": (
            json!({
                "AccountCode": "",
                "CurrentRecord": false,
                "DeductionCategory": "",
                "DeductionTypeID": "",
                "IsExemptFromW1": false,
                "Name": "",
                "ReducesSuper": false,
                "ReducesTax": false,
                "UpdatedDateUTC": ""
            })
        ),
        "EarningsRates": (
            json!({
                "AccountCode": "",
                "AccrueLeave": false,
                "AllowanceType": "",
                "Amount": "",
                "CurrentRecord": false,
                "EarningsRateID": "",
                "EarningsType": "",
                "EmploymentTerminationPaymentType": "",
                "IsExemptFromSuper": false,
                "IsExemptFromTax": false,
                "IsReportableAsW1": false,
                "Multiplier": "",
                "Name": "",
                "RatePerUnit": "",
                "RateType": "",
                "TypeOfUnits": "",
                "UpdatedDateUTC": ""
            })
        ),
        "LeaveTypes": (
            json!({
                "CurrentRecord": false,
                "IsPaidLeave": false,
                "LeaveLoadingRate": "",
                "LeaveTypeID": "",
                "Name": "",
                "NormalEntitlement": "",
                "ShowOnPayslip": false,
                "TypeOfUnits": "",
                "UpdatedDateUTC": ""
            })
        ),
        "ReimbursementTypes": (
            json!({
                "AccountCode": "",
                "CurrentRecord": false,
                "Name": "",
                "ReimbursementTypeID": "",
                "UpdatedDateUTC": ""
            })
        )
    });

    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}}/PayItems \
  --header 'content-type: application/json' \
  --data '{
  "DeductionTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    }
  ],
  "EarningsRates": [
    {
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "LeaveTypes": [
    {
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "ReimbursementTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    }
  ]
}'
echo '{
  "DeductionTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    }
  ],
  "EarningsRates": [
    {
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "LeaveTypes": [
    {
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    }
  ],
  "ReimbursementTypes": [
    {
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    }
  ]
}' |  \
  http POST {{baseUrl}}/PayItems \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "DeductionTypes": [\n    {\n      "AccountCode": "",\n      "CurrentRecord": false,\n      "DeductionCategory": "",\n      "DeductionTypeID": "",\n      "IsExemptFromW1": false,\n      "Name": "",\n      "ReducesSuper": false,\n      "ReducesTax": false,\n      "UpdatedDateUTC": ""\n    }\n  ],\n  "EarningsRates": [\n    {\n      "AccountCode": "",\n      "AccrueLeave": false,\n      "AllowanceType": "",\n      "Amount": "",\n      "CurrentRecord": false,\n      "EarningsRateID": "",\n      "EarningsType": "",\n      "EmploymentTerminationPaymentType": "",\n      "IsExemptFromSuper": false,\n      "IsExemptFromTax": false,\n      "IsReportableAsW1": false,\n      "Multiplier": "",\n      "Name": "",\n      "RatePerUnit": "",\n      "RateType": "",\n      "TypeOfUnits": "",\n      "UpdatedDateUTC": ""\n    }\n  ],\n  "LeaveTypes": [\n    {\n      "CurrentRecord": false,\n      "IsPaidLeave": false,\n      "LeaveLoadingRate": "",\n      "LeaveTypeID": "",\n      "Name": "",\n      "NormalEntitlement": "",\n      "ShowOnPayslip": false,\n      "TypeOfUnits": "",\n      "UpdatedDateUTC": ""\n    }\n  ],\n  "ReimbursementTypes": [\n    {\n      "AccountCode": "",\n      "CurrentRecord": false,\n      "Name": "",\n      "ReimbursementTypeID": "",\n      "UpdatedDateUTC": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/PayItems
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "DeductionTypes": [
    [
      "AccountCode": "",
      "CurrentRecord": false,
      "DeductionCategory": "",
      "DeductionTypeID": "",
      "IsExemptFromW1": false,
      "Name": "",
      "ReducesSuper": false,
      "ReducesTax": false,
      "UpdatedDateUTC": ""
    ]
  ],
  "EarningsRates": [
    [
      "AccountCode": "",
      "AccrueLeave": false,
      "AllowanceType": "",
      "Amount": "",
      "CurrentRecord": false,
      "EarningsRateID": "",
      "EarningsType": "",
      "EmploymentTerminationPaymentType": "",
      "IsExemptFromSuper": false,
      "IsExemptFromTax": false,
      "IsReportableAsW1": false,
      "Multiplier": "",
      "Name": "",
      "RatePerUnit": "",
      "RateType": "",
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    ]
  ],
  "LeaveTypes": [
    [
      "CurrentRecord": false,
      "IsPaidLeave": false,
      "LeaveLoadingRate": "",
      "LeaveTypeID": "",
      "Name": "",
      "NormalEntitlement": "",
      "ShowOnPayslip": false,
      "TypeOfUnits": "",
      "UpdatedDateUTC": ""
    ]
  ],
  "ReimbursementTypes": [
    [
      "AccountCode": "",
      "CurrentRecord": false,
      "Name": "",
      "ReimbursementTypeID": "",
      "UpdatedDateUTC": ""
    ]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayItems")! 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

{ "Id": "8c15b526-ea07-42e6-9351-1fa00a9516ea", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1593448963288)/", "PayItems": { "EarningsRates": [ { "EarningsRateID": "1fa4e226-b711-46ba-a8a7-4344c9c5fb87", "Name": "MyRate", "EarningsType": "ORDINARYTIMEEARNINGS", "RateType": "MULTIPLE", "AccountCode": "400", "Multiplier": 1.5, "IsExemptFromTax": true, "IsExemptFromSuper": true, "AccrueLeave": false, "IsReportableAsW1": false, "UpdatedDateUTC": "/Date(1593448963210+0000)/", "CurrentRecord": true }, { "EarningsRateID": "c6905c26-0716-4746-9098-608545e04dd2", "Name": "Redundancy", "EarningsType": "LUMPSUMD", "RateType": "FIXEDAMOUNT", "AccountCode": "477", "IsExemptFromTax": true, "IsExemptFromSuper": true, "IsReportableAsW1": true, "UpdatedDateUTC": "/Date(1476729649000+0000)/", "CurrentRecord": true }, { "EarningsRateID": "33820094-656e-4db3-b04b-8bd3e2db0a9b", "Name": "ETP Leave Earning", "EarningsType": "EMPLOYMENTTERMINATIONPAYMENT", "RateType": "RATEPERUNIT", "AccountCode": "477", "TypeOfUnits": "Hours", "IsExemptFromTax": false, "IsExemptFromSuper": true, "IsReportableAsW1": true, "UpdatedDateUTC": "/Date(1520900705000+0000)/", "EmploymentTerminationPaymentType": "O", "CurrentRecord": true } ] } }
POST Creates a pay run
{{baseUrl}}/PayRuns
BODY json

[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayRuns");

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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]");

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

(client/post "{{baseUrl}}/PayRuns" {:content-type :json
                                                    :form-params [{:Deductions ""
                                                                   :NetPay ""
                                                                   :PayRunID ""
                                                                   :PayRunPeriodEndDate ""
                                                                   :PayRunPeriodStartDate ""
                                                                   :PayRunStatus ""
                                                                   :PaymentDate ""
                                                                   :PayrollCalendarID ""
                                                                   :PayslipMessage ""
                                                                   :Payslips [{:Deductions ""
                                                                               :EmployeeGroup ""
                                                                               :EmployeeID ""
                                                                               :FirstName ""
                                                                               :LastName ""
                                                                               :NetPay ""
                                                                               :PayslipID ""
                                                                               :Reimbursements ""
                                                                               :Super ""
                                                                               :Tax ""
                                                                               :UpdatedDateUTC ""
                                                                               :Wages ""}]
                                                                   :Reimbursement ""
                                                                   :Super ""
                                                                   :Tax ""
                                                                   :UpdatedDateUTC ""
                                                                   :ValidationErrors [{:Message ""}]
                                                                   :Wages ""}]})
require "http/client"

url = "{{baseUrl}}/PayRuns"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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}}/PayRuns"),
    Content = new StringContent("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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}}/PayRuns");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayRuns"

	payload := strings.NewReader("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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/PayRuns HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 745

[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/PayRuns")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayRuns"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/PayRuns")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/PayRuns")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    Deductions: '',
    NetPay: '',
    PayRunID: '',
    PayRunPeriodEndDate: '',
    PayRunPeriodStartDate: '',
    PayRunStatus: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    PayslipMessage: '',
    Payslips: [
      {
        Deductions: '',
        EmployeeGroup: '',
        EmployeeID: '',
        FirstName: '',
        LastName: '',
        NetPay: '',
        PayslipID: '',
        Reimbursements: '',
        Super: '',
        Tax: '',
        UpdatedDateUTC: '',
        Wages: ''
      }
    ],
    Reimbursement: '',
    Super: '',
    Tax: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ],
    Wages: ''
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/PayRuns');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayRuns',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Deductions: '',
      NetPay: '',
      PayRunID: '',
      PayRunPeriodEndDate: '',
      PayRunPeriodStartDate: '',
      PayRunStatus: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      PayslipMessage: '',
      Payslips: [
        {
          Deductions: '',
          EmployeeGroup: '',
          EmployeeID: '',
          FirstName: '',
          LastName: '',
          NetPay: '',
          PayslipID: '',
          Reimbursements: '',
          Super: '',
          Tax: '',
          UpdatedDateUTC: '',
          Wages: ''
        }
      ],
      Reimbursement: '',
      Super: '',
      Tax: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}],
      Wages: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayRuns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Deductions":"","NetPay":"","PayRunID":"","PayRunPeriodEndDate":"","PayRunPeriodStartDate":"","PayRunStatus":"","PaymentDate":"","PayrollCalendarID":"","PayslipMessage":"","Payslips":[{"Deductions":"","EmployeeGroup":"","EmployeeID":"","FirstName":"","LastName":"","NetPay":"","PayslipID":"","Reimbursements":"","Super":"","Tax":"","UpdatedDateUTC":"","Wages":""}],"Reimbursement":"","Super":"","Tax":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}],"Wages":""}]'
};

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}}/PayRuns',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "Deductions": "",\n    "NetPay": "",\n    "PayRunID": "",\n    "PayRunPeriodEndDate": "",\n    "PayRunPeriodStartDate": "",\n    "PayRunStatus": "",\n    "PaymentDate": "",\n    "PayrollCalendarID": "",\n    "PayslipMessage": "",\n    "Payslips": [\n      {\n        "Deductions": "",\n        "EmployeeGroup": "",\n        "EmployeeID": "",\n        "FirstName": "",\n        "LastName": "",\n        "NetPay": "",\n        "PayslipID": "",\n        "Reimbursements": "",\n        "Super": "",\n        "Tax": "",\n        "UpdatedDateUTC": "",\n        "Wages": ""\n      }\n    ],\n    "Reimbursement": "",\n    "Super": "",\n    "Tax": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ],\n    "Wages": ""\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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/PayRuns")
  .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/PayRuns',
  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([
  {
    Deductions: '',
    NetPay: '',
    PayRunID: '',
    PayRunPeriodEndDate: '',
    PayRunPeriodStartDate: '',
    PayRunStatus: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    PayslipMessage: '',
    Payslips: [
      {
        Deductions: '',
        EmployeeGroup: '',
        EmployeeID: '',
        FirstName: '',
        LastName: '',
        NetPay: '',
        PayslipID: '',
        Reimbursements: '',
        Super: '',
        Tax: '',
        UpdatedDateUTC: '',
        Wages: ''
      }
    ],
    Reimbursement: '',
    Super: '',
    Tax: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}],
    Wages: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayRuns',
  headers: {'content-type': 'application/json'},
  body: [
    {
      Deductions: '',
      NetPay: '',
      PayRunID: '',
      PayRunPeriodEndDate: '',
      PayRunPeriodStartDate: '',
      PayRunStatus: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      PayslipMessage: '',
      Payslips: [
        {
          Deductions: '',
          EmployeeGroup: '',
          EmployeeID: '',
          FirstName: '',
          LastName: '',
          NetPay: '',
          PayslipID: '',
          Reimbursements: '',
          Super: '',
          Tax: '',
          UpdatedDateUTC: '',
          Wages: ''
        }
      ],
      Reimbursement: '',
      Super: '',
      Tax: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}],
      Wages: ''
    }
  ],
  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}}/PayRuns');

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

req.type('json');
req.send([
  {
    Deductions: '',
    NetPay: '',
    PayRunID: '',
    PayRunPeriodEndDate: '',
    PayRunPeriodStartDate: '',
    PayRunStatus: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    PayslipMessage: '',
    Payslips: [
      {
        Deductions: '',
        EmployeeGroup: '',
        EmployeeID: '',
        FirstName: '',
        LastName: '',
        NetPay: '',
        PayslipID: '',
        Reimbursements: '',
        Super: '',
        Tax: '',
        UpdatedDateUTC: '',
        Wages: ''
      }
    ],
    Reimbursement: '',
    Super: '',
    Tax: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ],
    Wages: ''
  }
]);

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}}/PayRuns',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Deductions: '',
      NetPay: '',
      PayRunID: '',
      PayRunPeriodEndDate: '',
      PayRunPeriodStartDate: '',
      PayRunStatus: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      PayslipMessage: '',
      Payslips: [
        {
          Deductions: '',
          EmployeeGroup: '',
          EmployeeID: '',
          FirstName: '',
          LastName: '',
          NetPay: '',
          PayslipID: '',
          Reimbursements: '',
          Super: '',
          Tax: '',
          UpdatedDateUTC: '',
          Wages: ''
        }
      ],
      Reimbursement: '',
      Super: '',
      Tax: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}],
      Wages: ''
    }
  ]
};

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

const url = '{{baseUrl}}/PayRuns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Deductions":"","NetPay":"","PayRunID":"","PayRunPeriodEndDate":"","PayRunPeriodStartDate":"","PayRunStatus":"","PaymentDate":"","PayrollCalendarID":"","PayslipMessage":"","Payslips":[{"Deductions":"","EmployeeGroup":"","EmployeeID":"","FirstName":"","LastName":"","NetPay":"","PayslipID":"","Reimbursements":"","Super":"","Tax":"","UpdatedDateUTC":"","Wages":""}],"Reimbursement":"","Super":"","Tax":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}],"Wages":""}]'
};

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 = @[ @{ @"Deductions": @"", @"NetPay": @"", @"PayRunID": @"", @"PayRunPeriodEndDate": @"", @"PayRunPeriodStartDate": @"", @"PayRunStatus": @"", @"PaymentDate": @"", @"PayrollCalendarID": @"", @"PayslipMessage": @"", @"Payslips": @[ @{ @"Deductions": @"", @"EmployeeGroup": @"", @"EmployeeID": @"", @"FirstName": @"", @"LastName": @"", @"NetPay": @"", @"PayslipID": @"", @"Reimbursements": @"", @"Super": @"", @"Tax": @"", @"UpdatedDateUTC": @"", @"Wages": @"" } ], @"Reimbursement": @"", @"Super": @"", @"Tax": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ], @"Wages": @"" } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/PayRuns"]
                                                       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}}/PayRuns" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayRuns",
  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([
    [
        'Deductions' => '',
        'NetPay' => '',
        'PayRunID' => '',
        'PayRunPeriodEndDate' => '',
        'PayRunPeriodStartDate' => '',
        'PayRunStatus' => '',
        'PaymentDate' => '',
        'PayrollCalendarID' => '',
        'PayslipMessage' => '',
        'Payslips' => [
                [
                                'Deductions' => '',
                                'EmployeeGroup' => '',
                                'EmployeeID' => '',
                                'FirstName' => '',
                                'LastName' => '',
                                'NetPay' => '',
                                'PayslipID' => '',
                                'Reimbursements' => '',
                                'Super' => '',
                                'Tax' => '',
                                'UpdatedDateUTC' => '',
                                'Wages' => ''
                ]
        ],
        'Reimbursement' => '',
        'Super' => '',
        'Tax' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ],
        'Wages' => ''
    ]
  ]),
  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}}/PayRuns', [
  'body' => '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/PayRuns');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'Deductions' => '',
    'NetPay' => '',
    'PayRunID' => '',
    'PayRunPeriodEndDate' => '',
    'PayRunPeriodStartDate' => '',
    'PayRunStatus' => '',
    'PaymentDate' => '',
    'PayrollCalendarID' => '',
    'PayslipMessage' => '',
    'Payslips' => [
        [
                'Deductions' => '',
                'EmployeeGroup' => '',
                'EmployeeID' => '',
                'FirstName' => '',
                'LastName' => '',
                'NetPay' => '',
                'PayslipID' => '',
                'Reimbursements' => '',
                'Super' => '',
                'Tax' => '',
                'UpdatedDateUTC' => '',
                'Wages' => ''
        ]
    ],
    'Reimbursement' => '',
    'Super' => '',
    'Tax' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ],
    'Wages' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'Deductions' => '',
    'NetPay' => '',
    'PayRunID' => '',
    'PayRunPeriodEndDate' => '',
    'PayRunPeriodStartDate' => '',
    'PayRunStatus' => '',
    'PaymentDate' => '',
    'PayrollCalendarID' => '',
    'PayslipMessage' => '',
    'Payslips' => [
        [
                'Deductions' => '',
                'EmployeeGroup' => '',
                'EmployeeID' => '',
                'FirstName' => '',
                'LastName' => '',
                'NetPay' => '',
                'PayslipID' => '',
                'Reimbursements' => '',
                'Super' => '',
                'Tax' => '',
                'UpdatedDateUTC' => '',
                'Wages' => ''
        ]
    ],
    'Reimbursement' => '',
    'Super' => '',
    'Tax' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ],
    'Wages' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/PayRuns');
$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}}/PayRuns' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayRuns' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]'
import http.client

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

payload = "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]"

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

conn.request("POST", "/baseUrl/PayRuns", payload, headers)

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

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

url = "{{baseUrl}}/PayRuns"

payload = [
    {
        "Deductions": "",
        "NetPay": "",
        "PayRunID": "",
        "PayRunPeriodEndDate": "",
        "PayRunPeriodStartDate": "",
        "PayRunStatus": "",
        "PaymentDate": "",
        "PayrollCalendarID": "",
        "PayslipMessage": "",
        "Payslips": [
            {
                "Deductions": "",
                "EmployeeGroup": "",
                "EmployeeID": "",
                "FirstName": "",
                "LastName": "",
                "NetPay": "",
                "PayslipID": "",
                "Reimbursements": "",
                "Super": "",
                "Tax": "",
                "UpdatedDateUTC": "",
                "Wages": ""
            }
        ],
        "Reimbursement": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }],
        "Wages": ""
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/PayRuns"

payload <- "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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}}/PayRuns")

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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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/PayRuns') do |req|
  req.body = "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PayRuns";

    let payload = (
        json!({
            "Deductions": "",
            "NetPay": "",
            "PayRunID": "",
            "PayRunPeriodEndDate": "",
            "PayRunPeriodStartDate": "",
            "PayRunStatus": "",
            "PaymentDate": "",
            "PayrollCalendarID": "",
            "PayslipMessage": "",
            "Payslips": (
                json!({
                    "Deductions": "",
                    "EmployeeGroup": "",
                    "EmployeeID": "",
                    "FirstName": "",
                    "LastName": "",
                    "NetPay": "",
                    "PayslipID": "",
                    "Reimbursements": "",
                    "Super": "",
                    "Tax": "",
                    "UpdatedDateUTC": "",
                    "Wages": ""
                })
            ),
            "Reimbursement": "",
            "Super": "",
            "Tax": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""})),
            "Wages": ""
        })
    );

    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}}/PayRuns \
  --header 'content-type: application/json' \
  --data '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]'
echo '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]' |  \
  http POST {{baseUrl}}/PayRuns \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "Deductions": "",\n    "NetPay": "",\n    "PayRunID": "",\n    "PayRunPeriodEndDate": "",\n    "PayRunPeriodStartDate": "",\n    "PayRunStatus": "",\n    "PaymentDate": "",\n    "PayrollCalendarID": "",\n    "PayslipMessage": "",\n    "Payslips": [\n      {\n        "Deductions": "",\n        "EmployeeGroup": "",\n        "EmployeeID": "",\n        "FirstName": "",\n        "LastName": "",\n        "NetPay": "",\n        "PayslipID": "",\n        "Reimbursements": "",\n        "Super": "",\n        "Tax": "",\n        "UpdatedDateUTC": "",\n        "Wages": ""\n      }\n    ],\n    "Reimbursement": "",\n    "Super": "",\n    "Tax": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ],\n    "Wages": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/PayRuns
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      [
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      ]
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]],
    "Wages": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayRuns")! 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

{ "Id": "386f86d9-ae93-4a1d-9a10-eb46495c1184", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573685818311)/", "PayRuns": [ { "PayRunID": "d1348fab-f47a-4697-beea-922ee262407a", "PayrollCalendarID": "78bb86b9-e1ea-47ac-b75d-f087a81931de", "PayRunPeriodStartDate": "/Date(1572566400000+0000)/", "PayRunPeriodEndDate": "/Date(1573084800000+0000)/", "PaymentDate": "/Date(1573171200000+0000)/", "PayRunStatus": "DRAFT", "UpdatedDateUTC": "/Date(1573685818311+0000)/" } ] }
POST Creates a payroll employee
{{baseUrl}}/Employees
BODY json

[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Employees");

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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/Employees" {:content-type :json
                                                      :form-params [{:BankAccounts [{:AccountName ""
                                                                                     :AccountNumber ""
                                                                                     :Amount ""
                                                                                     :BSB ""
                                                                                     :Remainder false
                                                                                     :StatementText ""}]
                                                                     :Classification ""
                                                                     :DateOfBirth ""
                                                                     :Email ""
                                                                     :EmployeeGroupName ""
                                                                     :EmployeeID ""
                                                                     :FirstName ""
                                                                     :Gender ""
                                                                     :HomeAddress {:AddressLine1 ""
                                                                                   :AddressLine2 ""
                                                                                   :City ""
                                                                                   :Country ""
                                                                                   :PostalCode ""
                                                                                   :Region ""}
                                                                     :IsAuthorisedToApproveLeave false
                                                                     :IsAuthorisedToApproveTimesheets false
                                                                     :JobTitle ""
                                                                     :LastName ""
                                                                     :LeaveBalances [{:LeaveName ""
                                                                                      :LeaveTypeID ""
                                                                                      :NumberOfUnits ""
                                                                                      :TypeOfUnits ""}]
                                                                     :LeaveLines [{:AnnualNumberOfUnits ""
                                                                                   :CalculationType ""
                                                                                   :EmploymentTerminationPaymentType ""
                                                                                   :EntitlementFinalPayPayoutType ""
                                                                                   :FullTimeNumberOfUnitsPerPeriod ""
                                                                                   :IncludeSuperannuationGuaranteeContribution false
                                                                                   :LeaveTypeID ""
                                                                                   :NumberOfUnits ""}]
                                                                     :MiddleNames ""
                                                                     :Mobile ""
                                                                     :OpeningBalances {:DeductionLines [{:Amount ""
                                                                                                         :CalculationType ""
                                                                                                         :DeductionTypeID ""
                                                                                                         :NumberOfUnits ""
                                                                                                         :Percentage ""}]
                                                                                       :EarningsLines [{:Amount ""
                                                                                                        :AnnualSalary ""
                                                                                                        :CalculationType ""
                                                                                                        :EarningsRateID ""
                                                                                                        :FixedAmount ""
                                                                                                        :NormalNumberOfUnits ""
                                                                                                        :NumberOfUnits ""
                                                                                                        :NumberOfUnitsPerWeek ""
                                                                                                        :RatePerUnit ""}]
                                                                                       :LeaveLines [{}]
                                                                                       :OpeningBalanceDate ""
                                                                                       :ReimbursementLines [{:Amount ""
                                                                                                             :Description ""
                                                                                                             :ExpenseAccount ""
                                                                                                             :ReimbursementTypeID ""}]
                                                                                       :SuperLines [{:Amount ""
                                                                                                     :CalculationType ""
                                                                                                     :ContributionType ""
                                                                                                     :ExpenseAccountCode ""
                                                                                                     :LiabilityAccountCode ""
                                                                                                     :MinimumMonthlyEarnings ""
                                                                                                     :Percentage ""
                                                                                                     :SuperMembershipID ""}]
                                                                                       :Tax ""}
                                                                     :OrdinaryEarningsRateID ""
                                                                     :PayTemplate {:DeductionLines [{}]
                                                                                   :EarningsLines [{}]
                                                                                   :LeaveLines [{}]
                                                                                   :ReimbursementLines [{}]
                                                                                   :SuperLines [{}]}
                                                                     :PayrollCalendarID ""
                                                                     :Phone ""
                                                                     :StartDate ""
                                                                     :Status ""
                                                                     :SuperMemberships [{:EmployeeNumber ""
                                                                                         :SuperFundID ""
                                                                                         :SuperMembershipID ""}]
                                                                     :TaxDeclaration {:ApprovedWithholdingVariationPercentage ""
                                                                                      :AustralianResidentForTaxPurposes false
                                                                                      :EligibleToReceiveLeaveLoading false
                                                                                      :EmployeeID ""
                                                                                      :EmploymentBasis ""
                                                                                      :HasHELPDebt false
                                                                                      :HasSFSSDebt false
                                                                                      :HasStudentStartupLoan false
                                                                                      :HasTradeSupportLoanDebt false
                                                                                      :ResidencyStatus ""
                                                                                      :TFNExemptionType ""
                                                                                      :TaxFileNumber ""
                                                                                      :TaxFreeThresholdClaimed false
                                                                                      :TaxOffsetEstimatedAmount ""
                                                                                      :UpdatedDateUTC ""
                                                                                      :UpwardVariationTaxWithholdingAmount ""}
                                                                     :TerminationDate ""
                                                                     :Title ""
                                                                     :TwitterUserName ""
                                                                     :UpdatedDateUTC ""
                                                                     :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/Employees"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees"),
    Content = new StringContent("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Employees"

	payload := strings.NewReader("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Employees HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3652

[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Employees")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Employees"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Employees")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Employees")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    BankAccounts: [
      {
        AccountName: '',
        AccountNumber: '',
        Amount: '',
        BSB: '',
        Remainder: false,
        StatementText: ''
      }
    ],
    Classification: '',
    DateOfBirth: '',
    Email: '',
    EmployeeGroupName: '',
    EmployeeID: '',
    FirstName: '',
    Gender: '',
    HomeAddress: {
      AddressLine1: '',
      AddressLine2: '',
      City: '',
      Country: '',
      PostalCode: '',
      Region: ''
    },
    IsAuthorisedToApproveLeave: false,
    IsAuthorisedToApproveTimesheets: false,
    JobTitle: '',
    LastName: '',
    LeaveBalances: [
      {
        LeaveName: '',
        LeaveTypeID: '',
        NumberOfUnits: '',
        TypeOfUnits: ''
      }
    ],
    LeaveLines: [
      {
        AnnualNumberOfUnits: '',
        CalculationType: '',
        EmploymentTerminationPaymentType: '',
        EntitlementFinalPayPayoutType: '',
        FullTimeNumberOfUnitsPerPeriod: '',
        IncludeSuperannuationGuaranteeContribution: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    MiddleNames: '',
    Mobile: '',
    OpeningBalances: {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveLines: [
        {}
      ],
      OpeningBalanceDate: '',
      ReimbursementLines: [
        {
          Amount: '',
          Description: '',
          ExpenseAccount: '',
          ReimbursementTypeID: ''
        }
      ],
      SuperLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      Tax: ''
    },
    OrdinaryEarningsRateID: '',
    PayTemplate: {
      DeductionLines: [
        {}
      ],
      EarningsLines: [
        {}
      ],
      LeaveLines: [
        {}
      ],
      ReimbursementLines: [
        {}
      ],
      SuperLines: [
        {}
      ]
    },
    PayrollCalendarID: '',
    Phone: '',
    StartDate: '',
    Status: '',
    SuperMemberships: [
      {
        EmployeeNumber: '',
        SuperFundID: '',
        SuperMembershipID: ''
      }
    ],
    TaxDeclaration: {
      ApprovedWithholdingVariationPercentage: '',
      AustralianResidentForTaxPurposes: false,
      EligibleToReceiveLeaveLoading: false,
      EmployeeID: '',
      EmploymentBasis: '',
      HasHELPDebt: false,
      HasSFSSDebt: false,
      HasStudentStartupLoan: false,
      HasTradeSupportLoanDebt: false,
      ResidencyStatus: '',
      TFNExemptionType: '',
      TaxFileNumber: '',
      TaxFreeThresholdClaimed: false,
      TaxOffsetEstimatedAmount: '',
      UpdatedDateUTC: '',
      UpwardVariationTaxWithholdingAmount: ''
    },
    TerminationDate: '',
    Title: '',
    TwitterUserName: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/Employees');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Employees',
  headers: {'content-type': 'application/json'},
  data: [
    {
      BankAccounts: [
        {
          AccountName: '',
          AccountNumber: '',
          Amount: '',
          BSB: '',
          Remainder: false,
          StatementText: ''
        }
      ],
      Classification: '',
      DateOfBirth: '',
      Email: '',
      EmployeeGroupName: '',
      EmployeeID: '',
      FirstName: '',
      Gender: '',
      HomeAddress: {
        AddressLine1: '',
        AddressLine2: '',
        City: '',
        Country: '',
        PostalCode: '',
        Region: ''
      },
      IsAuthorisedToApproveLeave: false,
      IsAuthorisedToApproveTimesheets: false,
      JobTitle: '',
      LastName: '',
      LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
      LeaveLines: [
        {
          AnnualNumberOfUnits: '',
          CalculationType: '',
          EmploymentTerminationPaymentType: '',
          EntitlementFinalPayPayoutType: '',
          FullTimeNumberOfUnitsPerPeriod: '',
          IncludeSuperannuationGuaranteeContribution: false,
          LeaveTypeID: '',
          NumberOfUnits: ''
        }
      ],
      MiddleNames: '',
      Mobile: '',
      OpeningBalances: {
        DeductionLines: [
          {
            Amount: '',
            CalculationType: '',
            DeductionTypeID: '',
            NumberOfUnits: '',
            Percentage: ''
          }
        ],
        EarningsLines: [
          {
            Amount: '',
            AnnualSalary: '',
            CalculationType: '',
            EarningsRateID: '',
            FixedAmount: '',
            NormalNumberOfUnits: '',
            NumberOfUnits: '',
            NumberOfUnitsPerWeek: '',
            RatePerUnit: ''
          }
        ],
        LeaveLines: [{}],
        OpeningBalanceDate: '',
        ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
        SuperLines: [
          {
            Amount: '',
            CalculationType: '',
            ContributionType: '',
            ExpenseAccountCode: '',
            LiabilityAccountCode: '',
            MinimumMonthlyEarnings: '',
            Percentage: '',
            SuperMembershipID: ''
          }
        ],
        Tax: ''
      },
      OrdinaryEarningsRateID: '',
      PayTemplate: {
        DeductionLines: [{}],
        EarningsLines: [{}],
        LeaveLines: [{}],
        ReimbursementLines: [{}],
        SuperLines: [{}]
      },
      PayrollCalendarID: '',
      Phone: '',
      StartDate: '',
      Status: '',
      SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
      TaxDeclaration: {
        ApprovedWithholdingVariationPercentage: '',
        AustralianResidentForTaxPurposes: false,
        EligibleToReceiveLeaveLoading: false,
        EmployeeID: '',
        EmploymentBasis: '',
        HasHELPDebt: false,
        HasSFSSDebt: false,
        HasStudentStartupLoan: false,
        HasTradeSupportLoanDebt: false,
        ResidencyStatus: '',
        TFNExemptionType: '',
        TaxFileNumber: '',
        TaxFreeThresholdClaimed: false,
        TaxOffsetEstimatedAmount: '',
        UpdatedDateUTC: '',
        UpwardVariationTaxWithholdingAmount: ''
      },
      TerminationDate: '',
      Title: '',
      TwitterUserName: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Employees';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"BankAccounts":[{"AccountName":"","AccountNumber":"","Amount":"","BSB":"","Remainder":false,"StatementText":""}],"Classification":"","DateOfBirth":"","Email":"","EmployeeGroupName":"","EmployeeID":"","FirstName":"","Gender":"","HomeAddress":{"AddressLine1":"","AddressLine2":"","City":"","Country":"","PostalCode":"","Region":""},"IsAuthorisedToApproveLeave":false,"IsAuthorisedToApproveTimesheets":false,"JobTitle":"","LastName":"","LeaveBalances":[{"LeaveName":"","LeaveTypeID":"","NumberOfUnits":"","TypeOfUnits":""}],"LeaveLines":[{"AnnualNumberOfUnits":"","CalculationType":"","EmploymentTerminationPaymentType":"","EntitlementFinalPayPayoutType":"","FullTimeNumberOfUnitsPerPeriod":"","IncludeSuperannuationGuaranteeContribution":false,"LeaveTypeID":"","NumberOfUnits":""}],"MiddleNames":"","Mobile":"","OpeningBalances":{"DeductionLines":[{"Amount":"","CalculationType":"","DeductionTypeID":"","NumberOfUnits":"","Percentage":""}],"EarningsLines":[{"Amount":"","AnnualSalary":"","CalculationType":"","EarningsRateID":"","FixedAmount":"","NormalNumberOfUnits":"","NumberOfUnits":"","NumberOfUnitsPerWeek":"","RatePerUnit":""}],"LeaveLines":[{}],"OpeningBalanceDate":"","ReimbursementLines":[{"Amount":"","Description":"","ExpenseAccount":"","ReimbursementTypeID":""}],"SuperLines":[{"Amount":"","CalculationType":"","ContributionType":"","ExpenseAccountCode":"","LiabilityAccountCode":"","MinimumMonthlyEarnings":"","Percentage":"","SuperMembershipID":""}],"Tax":""},"OrdinaryEarningsRateID":"","PayTemplate":{"DeductionLines":[{}],"EarningsLines":[{}],"LeaveLines":[{}],"ReimbursementLines":[{}],"SuperLines":[{}]},"PayrollCalendarID":"","Phone":"","StartDate":"","Status":"","SuperMemberships":[{"EmployeeNumber":"","SuperFundID":"","SuperMembershipID":""}],"TaxDeclaration":{"ApprovedWithholdingVariationPercentage":"","AustralianResidentForTaxPurposes":false,"EligibleToReceiveLeaveLoading":false,"EmployeeID":"","EmploymentBasis":"","HasHELPDebt":false,"HasSFSSDebt":false,"HasStudentStartupLoan":false,"HasTradeSupportLoanDebt":false,"ResidencyStatus":"","TFNExemptionType":"","TaxFileNumber":"","TaxFreeThresholdClaimed":false,"TaxOffsetEstimatedAmount":"","UpdatedDateUTC":"","UpwardVariationTaxWithholdingAmount":""},"TerminationDate":"","Title":"","TwitterUserName":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/Employees',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "BankAccounts": [\n      {\n        "AccountName": "",\n        "AccountNumber": "",\n        "Amount": "",\n        "BSB": "",\n        "Remainder": false,\n        "StatementText": ""\n      }\n    ],\n    "Classification": "",\n    "DateOfBirth": "",\n    "Email": "",\n    "EmployeeGroupName": "",\n    "EmployeeID": "",\n    "FirstName": "",\n    "Gender": "",\n    "HomeAddress": {\n      "AddressLine1": "",\n      "AddressLine2": "",\n      "City": "",\n      "Country": "",\n      "PostalCode": "",\n      "Region": ""\n    },\n    "IsAuthorisedToApproveLeave": false,\n    "IsAuthorisedToApproveTimesheets": false,\n    "JobTitle": "",\n    "LastName": "",\n    "LeaveBalances": [\n      {\n        "LeaveName": "",\n        "LeaveTypeID": "",\n        "NumberOfUnits": "",\n        "TypeOfUnits": ""\n      }\n    ],\n    "LeaveLines": [\n      {\n        "AnnualNumberOfUnits": "",\n        "CalculationType": "",\n        "EmploymentTerminationPaymentType": "",\n        "EntitlementFinalPayPayoutType": "",\n        "FullTimeNumberOfUnitsPerPeriod": "",\n        "IncludeSuperannuationGuaranteeContribution": false,\n        "LeaveTypeID": "",\n        "NumberOfUnits": ""\n      }\n    ],\n    "MiddleNames": "",\n    "Mobile": "",\n    "OpeningBalances": {\n      "DeductionLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "DeductionTypeID": "",\n          "NumberOfUnits": "",\n          "Percentage": ""\n        }\n      ],\n      "EarningsLines": [\n        {\n          "Amount": "",\n          "AnnualSalary": "",\n          "CalculationType": "",\n          "EarningsRateID": "",\n          "FixedAmount": "",\n          "NormalNumberOfUnits": "",\n          "NumberOfUnits": "",\n          "NumberOfUnitsPerWeek": "",\n          "RatePerUnit": ""\n        }\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "OpeningBalanceDate": "",\n      "ReimbursementLines": [\n        {\n          "Amount": "",\n          "Description": "",\n          "ExpenseAccount": "",\n          "ReimbursementTypeID": ""\n        }\n      ],\n      "SuperLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "ContributionType": "",\n          "ExpenseAccountCode": "",\n          "LiabilityAccountCode": "",\n          "MinimumMonthlyEarnings": "",\n          "Percentage": "",\n          "SuperMembershipID": ""\n        }\n      ],\n      "Tax": ""\n    },\n    "OrdinaryEarningsRateID": "",\n    "PayTemplate": {\n      "DeductionLines": [\n        {}\n      ],\n      "EarningsLines": [\n        {}\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "ReimbursementLines": [\n        {}\n      ],\n      "SuperLines": [\n        {}\n      ]\n    },\n    "PayrollCalendarID": "",\n    "Phone": "",\n    "StartDate": "",\n    "Status": "",\n    "SuperMemberships": [\n      {\n        "EmployeeNumber": "",\n        "SuperFundID": "",\n        "SuperMembershipID": ""\n      }\n    ],\n    "TaxDeclaration": {\n      "ApprovedWithholdingVariationPercentage": "",\n      "AustralianResidentForTaxPurposes": false,\n      "EligibleToReceiveLeaveLoading": false,\n      "EmployeeID": "",\n      "EmploymentBasis": "",\n      "HasHELPDebt": false,\n      "HasSFSSDebt": false,\n      "HasStudentStartupLoan": false,\n      "HasTradeSupportLoanDebt": false,\n      "ResidencyStatus": "",\n      "TFNExemptionType": "",\n      "TaxFileNumber": "",\n      "TaxFreeThresholdClaimed": false,\n      "TaxOffsetEstimatedAmount": "",\n      "UpdatedDateUTC": "",\n      "UpwardVariationTaxWithholdingAmount": ""\n    },\n    "TerminationDate": "",\n    "Title": "",\n    "TwitterUserName": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/Employees")
  .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/Employees',
  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([
  {
    BankAccounts: [
      {
        AccountName: '',
        AccountNumber: '',
        Amount: '',
        BSB: '',
        Remainder: false,
        StatementText: ''
      }
    ],
    Classification: '',
    DateOfBirth: '',
    Email: '',
    EmployeeGroupName: '',
    EmployeeID: '',
    FirstName: '',
    Gender: '',
    HomeAddress: {
      AddressLine1: '',
      AddressLine2: '',
      City: '',
      Country: '',
      PostalCode: '',
      Region: ''
    },
    IsAuthorisedToApproveLeave: false,
    IsAuthorisedToApproveTimesheets: false,
    JobTitle: '',
    LastName: '',
    LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
    LeaveLines: [
      {
        AnnualNumberOfUnits: '',
        CalculationType: '',
        EmploymentTerminationPaymentType: '',
        EntitlementFinalPayPayoutType: '',
        FullTimeNumberOfUnitsPerPeriod: '',
        IncludeSuperannuationGuaranteeContribution: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    MiddleNames: '',
    Mobile: '',
    OpeningBalances: {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveLines: [{}],
      OpeningBalanceDate: '',
      ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
      SuperLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      Tax: ''
    },
    OrdinaryEarningsRateID: '',
    PayTemplate: {
      DeductionLines: [{}],
      EarningsLines: [{}],
      LeaveLines: [{}],
      ReimbursementLines: [{}],
      SuperLines: [{}]
    },
    PayrollCalendarID: '',
    Phone: '',
    StartDate: '',
    Status: '',
    SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
    TaxDeclaration: {
      ApprovedWithholdingVariationPercentage: '',
      AustralianResidentForTaxPurposes: false,
      EligibleToReceiveLeaveLoading: false,
      EmployeeID: '',
      EmploymentBasis: '',
      HasHELPDebt: false,
      HasSFSSDebt: false,
      HasStudentStartupLoan: false,
      HasTradeSupportLoanDebt: false,
      ResidencyStatus: '',
      TFNExemptionType: '',
      TaxFileNumber: '',
      TaxFreeThresholdClaimed: false,
      TaxOffsetEstimatedAmount: '',
      UpdatedDateUTC: '',
      UpwardVariationTaxWithholdingAmount: ''
    },
    TerminationDate: '',
    Title: '',
    TwitterUserName: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Employees',
  headers: {'content-type': 'application/json'},
  body: [
    {
      BankAccounts: [
        {
          AccountName: '',
          AccountNumber: '',
          Amount: '',
          BSB: '',
          Remainder: false,
          StatementText: ''
        }
      ],
      Classification: '',
      DateOfBirth: '',
      Email: '',
      EmployeeGroupName: '',
      EmployeeID: '',
      FirstName: '',
      Gender: '',
      HomeAddress: {
        AddressLine1: '',
        AddressLine2: '',
        City: '',
        Country: '',
        PostalCode: '',
        Region: ''
      },
      IsAuthorisedToApproveLeave: false,
      IsAuthorisedToApproveTimesheets: false,
      JobTitle: '',
      LastName: '',
      LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
      LeaveLines: [
        {
          AnnualNumberOfUnits: '',
          CalculationType: '',
          EmploymentTerminationPaymentType: '',
          EntitlementFinalPayPayoutType: '',
          FullTimeNumberOfUnitsPerPeriod: '',
          IncludeSuperannuationGuaranteeContribution: false,
          LeaveTypeID: '',
          NumberOfUnits: ''
        }
      ],
      MiddleNames: '',
      Mobile: '',
      OpeningBalances: {
        DeductionLines: [
          {
            Amount: '',
            CalculationType: '',
            DeductionTypeID: '',
            NumberOfUnits: '',
            Percentage: ''
          }
        ],
        EarningsLines: [
          {
            Amount: '',
            AnnualSalary: '',
            CalculationType: '',
            EarningsRateID: '',
            FixedAmount: '',
            NormalNumberOfUnits: '',
            NumberOfUnits: '',
            NumberOfUnitsPerWeek: '',
            RatePerUnit: ''
          }
        ],
        LeaveLines: [{}],
        OpeningBalanceDate: '',
        ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
        SuperLines: [
          {
            Amount: '',
            CalculationType: '',
            ContributionType: '',
            ExpenseAccountCode: '',
            LiabilityAccountCode: '',
            MinimumMonthlyEarnings: '',
            Percentage: '',
            SuperMembershipID: ''
          }
        ],
        Tax: ''
      },
      OrdinaryEarningsRateID: '',
      PayTemplate: {
        DeductionLines: [{}],
        EarningsLines: [{}],
        LeaveLines: [{}],
        ReimbursementLines: [{}],
        SuperLines: [{}]
      },
      PayrollCalendarID: '',
      Phone: '',
      StartDate: '',
      Status: '',
      SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
      TaxDeclaration: {
        ApprovedWithholdingVariationPercentage: '',
        AustralianResidentForTaxPurposes: false,
        EligibleToReceiveLeaveLoading: false,
        EmployeeID: '',
        EmploymentBasis: '',
        HasHELPDebt: false,
        HasSFSSDebt: false,
        HasStudentStartupLoan: false,
        HasTradeSupportLoanDebt: false,
        ResidencyStatus: '',
        TFNExemptionType: '',
        TaxFileNumber: '',
        TaxFreeThresholdClaimed: false,
        TaxOffsetEstimatedAmount: '',
        UpdatedDateUTC: '',
        UpwardVariationTaxWithholdingAmount: ''
      },
      TerminationDate: '',
      Title: '',
      TwitterUserName: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/Employees');

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

req.type('json');
req.send([
  {
    BankAccounts: [
      {
        AccountName: '',
        AccountNumber: '',
        Amount: '',
        BSB: '',
        Remainder: false,
        StatementText: ''
      }
    ],
    Classification: '',
    DateOfBirth: '',
    Email: '',
    EmployeeGroupName: '',
    EmployeeID: '',
    FirstName: '',
    Gender: '',
    HomeAddress: {
      AddressLine1: '',
      AddressLine2: '',
      City: '',
      Country: '',
      PostalCode: '',
      Region: ''
    },
    IsAuthorisedToApproveLeave: false,
    IsAuthorisedToApproveTimesheets: false,
    JobTitle: '',
    LastName: '',
    LeaveBalances: [
      {
        LeaveName: '',
        LeaveTypeID: '',
        NumberOfUnits: '',
        TypeOfUnits: ''
      }
    ],
    LeaveLines: [
      {
        AnnualNumberOfUnits: '',
        CalculationType: '',
        EmploymentTerminationPaymentType: '',
        EntitlementFinalPayPayoutType: '',
        FullTimeNumberOfUnitsPerPeriod: '',
        IncludeSuperannuationGuaranteeContribution: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    MiddleNames: '',
    Mobile: '',
    OpeningBalances: {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveLines: [
        {}
      ],
      OpeningBalanceDate: '',
      ReimbursementLines: [
        {
          Amount: '',
          Description: '',
          ExpenseAccount: '',
          ReimbursementTypeID: ''
        }
      ],
      SuperLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      Tax: ''
    },
    OrdinaryEarningsRateID: '',
    PayTemplate: {
      DeductionLines: [
        {}
      ],
      EarningsLines: [
        {}
      ],
      LeaveLines: [
        {}
      ],
      ReimbursementLines: [
        {}
      ],
      SuperLines: [
        {}
      ]
    },
    PayrollCalendarID: '',
    Phone: '',
    StartDate: '',
    Status: '',
    SuperMemberships: [
      {
        EmployeeNumber: '',
        SuperFundID: '',
        SuperMembershipID: ''
      }
    ],
    TaxDeclaration: {
      ApprovedWithholdingVariationPercentage: '',
      AustralianResidentForTaxPurposes: false,
      EligibleToReceiveLeaveLoading: false,
      EmployeeID: '',
      EmploymentBasis: '',
      HasHELPDebt: false,
      HasSFSSDebt: false,
      HasStudentStartupLoan: false,
      HasTradeSupportLoanDebt: false,
      ResidencyStatus: '',
      TFNExemptionType: '',
      TaxFileNumber: '',
      TaxFreeThresholdClaimed: false,
      TaxOffsetEstimatedAmount: '',
      UpdatedDateUTC: '',
      UpwardVariationTaxWithholdingAmount: ''
    },
    TerminationDate: '',
    Title: '',
    TwitterUserName: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/Employees',
  headers: {'content-type': 'application/json'},
  data: [
    {
      BankAccounts: [
        {
          AccountName: '',
          AccountNumber: '',
          Amount: '',
          BSB: '',
          Remainder: false,
          StatementText: ''
        }
      ],
      Classification: '',
      DateOfBirth: '',
      Email: '',
      EmployeeGroupName: '',
      EmployeeID: '',
      FirstName: '',
      Gender: '',
      HomeAddress: {
        AddressLine1: '',
        AddressLine2: '',
        City: '',
        Country: '',
        PostalCode: '',
        Region: ''
      },
      IsAuthorisedToApproveLeave: false,
      IsAuthorisedToApproveTimesheets: false,
      JobTitle: '',
      LastName: '',
      LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
      LeaveLines: [
        {
          AnnualNumberOfUnits: '',
          CalculationType: '',
          EmploymentTerminationPaymentType: '',
          EntitlementFinalPayPayoutType: '',
          FullTimeNumberOfUnitsPerPeriod: '',
          IncludeSuperannuationGuaranteeContribution: false,
          LeaveTypeID: '',
          NumberOfUnits: ''
        }
      ],
      MiddleNames: '',
      Mobile: '',
      OpeningBalances: {
        DeductionLines: [
          {
            Amount: '',
            CalculationType: '',
            DeductionTypeID: '',
            NumberOfUnits: '',
            Percentage: ''
          }
        ],
        EarningsLines: [
          {
            Amount: '',
            AnnualSalary: '',
            CalculationType: '',
            EarningsRateID: '',
            FixedAmount: '',
            NormalNumberOfUnits: '',
            NumberOfUnits: '',
            NumberOfUnitsPerWeek: '',
            RatePerUnit: ''
          }
        ],
        LeaveLines: [{}],
        OpeningBalanceDate: '',
        ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
        SuperLines: [
          {
            Amount: '',
            CalculationType: '',
            ContributionType: '',
            ExpenseAccountCode: '',
            LiabilityAccountCode: '',
            MinimumMonthlyEarnings: '',
            Percentage: '',
            SuperMembershipID: ''
          }
        ],
        Tax: ''
      },
      OrdinaryEarningsRateID: '',
      PayTemplate: {
        DeductionLines: [{}],
        EarningsLines: [{}],
        LeaveLines: [{}],
        ReimbursementLines: [{}],
        SuperLines: [{}]
      },
      PayrollCalendarID: '',
      Phone: '',
      StartDate: '',
      Status: '',
      SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
      TaxDeclaration: {
        ApprovedWithholdingVariationPercentage: '',
        AustralianResidentForTaxPurposes: false,
        EligibleToReceiveLeaveLoading: false,
        EmployeeID: '',
        EmploymentBasis: '',
        HasHELPDebt: false,
        HasSFSSDebt: false,
        HasStudentStartupLoan: false,
        HasTradeSupportLoanDebt: false,
        ResidencyStatus: '',
        TFNExemptionType: '',
        TaxFileNumber: '',
        TaxFreeThresholdClaimed: false,
        TaxOffsetEstimatedAmount: '',
        UpdatedDateUTC: '',
        UpwardVariationTaxWithholdingAmount: ''
      },
      TerminationDate: '',
      Title: '',
      TwitterUserName: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/Employees';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"BankAccounts":[{"AccountName":"","AccountNumber":"","Amount":"","BSB":"","Remainder":false,"StatementText":""}],"Classification":"","DateOfBirth":"","Email":"","EmployeeGroupName":"","EmployeeID":"","FirstName":"","Gender":"","HomeAddress":{"AddressLine1":"","AddressLine2":"","City":"","Country":"","PostalCode":"","Region":""},"IsAuthorisedToApproveLeave":false,"IsAuthorisedToApproveTimesheets":false,"JobTitle":"","LastName":"","LeaveBalances":[{"LeaveName":"","LeaveTypeID":"","NumberOfUnits":"","TypeOfUnits":""}],"LeaveLines":[{"AnnualNumberOfUnits":"","CalculationType":"","EmploymentTerminationPaymentType":"","EntitlementFinalPayPayoutType":"","FullTimeNumberOfUnitsPerPeriod":"","IncludeSuperannuationGuaranteeContribution":false,"LeaveTypeID":"","NumberOfUnits":""}],"MiddleNames":"","Mobile":"","OpeningBalances":{"DeductionLines":[{"Amount":"","CalculationType":"","DeductionTypeID":"","NumberOfUnits":"","Percentage":""}],"EarningsLines":[{"Amount":"","AnnualSalary":"","CalculationType":"","EarningsRateID":"","FixedAmount":"","NormalNumberOfUnits":"","NumberOfUnits":"","NumberOfUnitsPerWeek":"","RatePerUnit":""}],"LeaveLines":[{}],"OpeningBalanceDate":"","ReimbursementLines":[{"Amount":"","Description":"","ExpenseAccount":"","ReimbursementTypeID":""}],"SuperLines":[{"Amount":"","CalculationType":"","ContributionType":"","ExpenseAccountCode":"","LiabilityAccountCode":"","MinimumMonthlyEarnings":"","Percentage":"","SuperMembershipID":""}],"Tax":""},"OrdinaryEarningsRateID":"","PayTemplate":{"DeductionLines":[{}],"EarningsLines":[{}],"LeaveLines":[{}],"ReimbursementLines":[{}],"SuperLines":[{}]},"PayrollCalendarID":"","Phone":"","StartDate":"","Status":"","SuperMemberships":[{"EmployeeNumber":"","SuperFundID":"","SuperMembershipID":""}],"TaxDeclaration":{"ApprovedWithholdingVariationPercentage":"","AustralianResidentForTaxPurposes":false,"EligibleToReceiveLeaveLoading":false,"EmployeeID":"","EmploymentBasis":"","HasHELPDebt":false,"HasSFSSDebt":false,"HasStudentStartupLoan":false,"HasTradeSupportLoanDebt":false,"ResidencyStatus":"","TFNExemptionType":"","TaxFileNumber":"","TaxFreeThresholdClaimed":false,"TaxOffsetEstimatedAmount":"","UpdatedDateUTC":"","UpwardVariationTaxWithholdingAmount":""},"TerminationDate":"","Title":"","TwitterUserName":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"BankAccounts": @[ @{ @"AccountName": @"", @"AccountNumber": @"", @"Amount": @"", @"BSB": @"", @"Remainder": @NO, @"StatementText": @"" } ], @"Classification": @"", @"DateOfBirth": @"", @"Email": @"", @"EmployeeGroupName": @"", @"EmployeeID": @"", @"FirstName": @"", @"Gender": @"", @"HomeAddress": @{ @"AddressLine1": @"", @"AddressLine2": @"", @"City": @"", @"Country": @"", @"PostalCode": @"", @"Region": @"" }, @"IsAuthorisedToApproveLeave": @NO, @"IsAuthorisedToApproveTimesheets": @NO, @"JobTitle": @"", @"LastName": @"", @"LeaveBalances": @[ @{ @"LeaveName": @"", @"LeaveTypeID": @"", @"NumberOfUnits": @"", @"TypeOfUnits": @"" } ], @"LeaveLines": @[ @{ @"AnnualNumberOfUnits": @"", @"CalculationType": @"", @"EmploymentTerminationPaymentType": @"", @"EntitlementFinalPayPayoutType": @"", @"FullTimeNumberOfUnitsPerPeriod": @"", @"IncludeSuperannuationGuaranteeContribution": @NO, @"LeaveTypeID": @"", @"NumberOfUnits": @"" } ], @"MiddleNames": @"", @"Mobile": @"", @"OpeningBalances": @{ @"DeductionLines": @[ @{ @"Amount": @"", @"CalculationType": @"", @"DeductionTypeID": @"", @"NumberOfUnits": @"", @"Percentage": @"" } ], @"EarningsLines": @[ @{ @"Amount": @"", @"AnnualSalary": @"", @"CalculationType": @"", @"EarningsRateID": @"", @"FixedAmount": @"", @"NormalNumberOfUnits": @"", @"NumberOfUnits": @"", @"NumberOfUnitsPerWeek": @"", @"RatePerUnit": @"" } ], @"LeaveLines": @[ @{  } ], @"OpeningBalanceDate": @"", @"ReimbursementLines": @[ @{ @"Amount": @"", @"Description": @"", @"ExpenseAccount": @"", @"ReimbursementTypeID": @"" } ], @"SuperLines": @[ @{ @"Amount": @"", @"CalculationType": @"", @"ContributionType": @"", @"ExpenseAccountCode": @"", @"LiabilityAccountCode": @"", @"MinimumMonthlyEarnings": @"", @"Percentage": @"", @"SuperMembershipID": @"" } ], @"Tax": @"" }, @"OrdinaryEarningsRateID": @"", @"PayTemplate": @{ @"DeductionLines": @[ @{  } ], @"EarningsLines": @[ @{  } ], @"LeaveLines": @[ @{  } ], @"ReimbursementLines": @[ @{  } ], @"SuperLines": @[ @{  } ] }, @"PayrollCalendarID": @"", @"Phone": @"", @"StartDate": @"", @"Status": @"", @"SuperMemberships": @[ @{ @"EmployeeNumber": @"", @"SuperFundID": @"", @"SuperMembershipID": @"" } ], @"TaxDeclaration": @{ @"ApprovedWithholdingVariationPercentage": @"", @"AustralianResidentForTaxPurposes": @NO, @"EligibleToReceiveLeaveLoading": @NO, @"EmployeeID": @"", @"EmploymentBasis": @"", @"HasHELPDebt": @NO, @"HasSFSSDebt": @NO, @"HasStudentStartupLoan": @NO, @"HasTradeSupportLoanDebt": @NO, @"ResidencyStatus": @"", @"TFNExemptionType": @"", @"TaxFileNumber": @"", @"TaxFreeThresholdClaimed": @NO, @"TaxOffsetEstimatedAmount": @"", @"UpdatedDateUTC": @"", @"UpwardVariationTaxWithholdingAmount": @"" }, @"TerminationDate": @"", @"Title": @"", @"TwitterUserName": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Employees"]
                                                       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}}/Employees" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Employees",
  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([
    [
        'BankAccounts' => [
                [
                                'AccountName' => '',
                                'AccountNumber' => '',
                                'Amount' => '',
                                'BSB' => '',
                                'Remainder' => null,
                                'StatementText' => ''
                ]
        ],
        'Classification' => '',
        'DateOfBirth' => '',
        'Email' => '',
        'EmployeeGroupName' => '',
        'EmployeeID' => '',
        'FirstName' => '',
        'Gender' => '',
        'HomeAddress' => [
                'AddressLine1' => '',
                'AddressLine2' => '',
                'City' => '',
                'Country' => '',
                'PostalCode' => '',
                'Region' => ''
        ],
        'IsAuthorisedToApproveLeave' => null,
        'IsAuthorisedToApproveTimesheets' => null,
        'JobTitle' => '',
        'LastName' => '',
        'LeaveBalances' => [
                [
                                'LeaveName' => '',
                                'LeaveTypeID' => '',
                                'NumberOfUnits' => '',
                                'TypeOfUnits' => ''
                ]
        ],
        'LeaveLines' => [
                [
                                'AnnualNumberOfUnits' => '',
                                'CalculationType' => '',
                                'EmploymentTerminationPaymentType' => '',
                                'EntitlementFinalPayPayoutType' => '',
                                'FullTimeNumberOfUnitsPerPeriod' => '',
                                'IncludeSuperannuationGuaranteeContribution' => null,
                                'LeaveTypeID' => '',
                                'NumberOfUnits' => ''
                ]
        ],
        'MiddleNames' => '',
        'Mobile' => '',
        'OpeningBalances' => [
                'DeductionLines' => [
                                [
                                                                'Amount' => '',
                                                                'CalculationType' => '',
                                                                'DeductionTypeID' => '',
                                                                'NumberOfUnits' => '',
                                                                'Percentage' => ''
                                ]
                ],
                'EarningsLines' => [
                                [
                                                                'Amount' => '',
                                                                'AnnualSalary' => '',
                                                                'CalculationType' => '',
                                                                'EarningsRateID' => '',
                                                                'FixedAmount' => '',
                                                                'NormalNumberOfUnits' => '',
                                                                'NumberOfUnits' => '',
                                                                'NumberOfUnitsPerWeek' => '',
                                                                'RatePerUnit' => ''
                                ]
                ],
                'LeaveLines' => [
                                [
                                                                
                                ]
                ],
                'OpeningBalanceDate' => '',
                'ReimbursementLines' => [
                                [
                                                                'Amount' => '',
                                                                'Description' => '',
                                                                'ExpenseAccount' => '',
                                                                'ReimbursementTypeID' => ''
                                ]
                ],
                'SuperLines' => [
                                [
                                                                'Amount' => '',
                                                                'CalculationType' => '',
                                                                'ContributionType' => '',
                                                                'ExpenseAccountCode' => '',
                                                                'LiabilityAccountCode' => '',
                                                                'MinimumMonthlyEarnings' => '',
                                                                'Percentage' => '',
                                                                'SuperMembershipID' => ''
                                ]
                ],
                'Tax' => ''
        ],
        'OrdinaryEarningsRateID' => '',
        'PayTemplate' => [
                'DeductionLines' => [
                                [
                                                                
                                ]
                ],
                'EarningsLines' => [
                                [
                                                                
                                ]
                ],
                'LeaveLines' => [
                                [
                                                                
                                ]
                ],
                'ReimbursementLines' => [
                                [
                                                                
                                ]
                ],
                'SuperLines' => [
                                [
                                                                
                                ]
                ]
        ],
        'PayrollCalendarID' => '',
        'Phone' => '',
        'StartDate' => '',
        'Status' => '',
        'SuperMemberships' => [
                [
                                'EmployeeNumber' => '',
                                'SuperFundID' => '',
                                'SuperMembershipID' => ''
                ]
        ],
        'TaxDeclaration' => [
                'ApprovedWithholdingVariationPercentage' => '',
                'AustralianResidentForTaxPurposes' => null,
                'EligibleToReceiveLeaveLoading' => null,
                'EmployeeID' => '',
                'EmploymentBasis' => '',
                'HasHELPDebt' => null,
                'HasSFSSDebt' => null,
                'HasStudentStartupLoan' => null,
                'HasTradeSupportLoanDebt' => null,
                'ResidencyStatus' => '',
                'TFNExemptionType' => '',
                'TaxFileNumber' => '',
                'TaxFreeThresholdClaimed' => null,
                'TaxOffsetEstimatedAmount' => '',
                'UpdatedDateUTC' => '',
                'UpwardVariationTaxWithholdingAmount' => ''
        ],
        'TerminationDate' => '',
        'Title' => '',
        'TwitterUserName' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/Employees', [
  'body' => '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/Employees');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'BankAccounts' => [
        [
                'AccountName' => '',
                'AccountNumber' => '',
                'Amount' => '',
                'BSB' => '',
                'Remainder' => null,
                'StatementText' => ''
        ]
    ],
    'Classification' => '',
    'DateOfBirth' => '',
    'Email' => '',
    'EmployeeGroupName' => '',
    'EmployeeID' => '',
    'FirstName' => '',
    'Gender' => '',
    'HomeAddress' => [
        'AddressLine1' => '',
        'AddressLine2' => '',
        'City' => '',
        'Country' => '',
        'PostalCode' => '',
        'Region' => ''
    ],
    'IsAuthorisedToApproveLeave' => null,
    'IsAuthorisedToApproveTimesheets' => null,
    'JobTitle' => '',
    'LastName' => '',
    'LeaveBalances' => [
        [
                'LeaveName' => '',
                'LeaveTypeID' => '',
                'NumberOfUnits' => '',
                'TypeOfUnits' => ''
        ]
    ],
    'LeaveLines' => [
        [
                'AnnualNumberOfUnits' => '',
                'CalculationType' => '',
                'EmploymentTerminationPaymentType' => '',
                'EntitlementFinalPayPayoutType' => '',
                'FullTimeNumberOfUnitsPerPeriod' => '',
                'IncludeSuperannuationGuaranteeContribution' => null,
                'LeaveTypeID' => '',
                'NumberOfUnits' => ''
        ]
    ],
    'MiddleNames' => '',
    'Mobile' => '',
    'OpeningBalances' => [
        'DeductionLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'DeductionTypeID' => '',
                                'NumberOfUnits' => '',
                                'Percentage' => ''
                ]
        ],
        'EarningsLines' => [
                [
                                'Amount' => '',
                                'AnnualSalary' => '',
                                'CalculationType' => '',
                                'EarningsRateID' => '',
                                'FixedAmount' => '',
                                'NormalNumberOfUnits' => '',
                                'NumberOfUnits' => '',
                                'NumberOfUnitsPerWeek' => '',
                                'RatePerUnit' => ''
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'OpeningBalanceDate' => '',
        'ReimbursementLines' => [
                [
                                'Amount' => '',
                                'Description' => '',
                                'ExpenseAccount' => '',
                                'ReimbursementTypeID' => ''
                ]
        ],
        'SuperLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'ContributionType' => '',
                                'ExpenseAccountCode' => '',
                                'LiabilityAccountCode' => '',
                                'MinimumMonthlyEarnings' => '',
                                'Percentage' => '',
                                'SuperMembershipID' => ''
                ]
        ],
        'Tax' => ''
    ],
    'OrdinaryEarningsRateID' => '',
    'PayTemplate' => [
        'DeductionLines' => [
                [
                                
                ]
        ],
        'EarningsLines' => [
                [
                                
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'ReimbursementLines' => [
                [
                                
                ]
        ],
        'SuperLines' => [
                [
                                
                ]
        ]
    ],
    'PayrollCalendarID' => '',
    'Phone' => '',
    'StartDate' => '',
    'Status' => '',
    'SuperMemberships' => [
        [
                'EmployeeNumber' => '',
                'SuperFundID' => '',
                'SuperMembershipID' => ''
        ]
    ],
    'TaxDeclaration' => [
        'ApprovedWithholdingVariationPercentage' => '',
        'AustralianResidentForTaxPurposes' => null,
        'EligibleToReceiveLeaveLoading' => null,
        'EmployeeID' => '',
        'EmploymentBasis' => '',
        'HasHELPDebt' => null,
        'HasSFSSDebt' => null,
        'HasStudentStartupLoan' => null,
        'HasTradeSupportLoanDebt' => null,
        'ResidencyStatus' => '',
        'TFNExemptionType' => '',
        'TaxFileNumber' => '',
        'TaxFreeThresholdClaimed' => null,
        'TaxOffsetEstimatedAmount' => '',
        'UpdatedDateUTC' => '',
        'UpwardVariationTaxWithholdingAmount' => ''
    ],
    'TerminationDate' => '',
    'Title' => '',
    'TwitterUserName' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'BankAccounts' => [
        [
                'AccountName' => '',
                'AccountNumber' => '',
                'Amount' => '',
                'BSB' => '',
                'Remainder' => null,
                'StatementText' => ''
        ]
    ],
    'Classification' => '',
    'DateOfBirth' => '',
    'Email' => '',
    'EmployeeGroupName' => '',
    'EmployeeID' => '',
    'FirstName' => '',
    'Gender' => '',
    'HomeAddress' => [
        'AddressLine1' => '',
        'AddressLine2' => '',
        'City' => '',
        'Country' => '',
        'PostalCode' => '',
        'Region' => ''
    ],
    'IsAuthorisedToApproveLeave' => null,
    'IsAuthorisedToApproveTimesheets' => null,
    'JobTitle' => '',
    'LastName' => '',
    'LeaveBalances' => [
        [
                'LeaveName' => '',
                'LeaveTypeID' => '',
                'NumberOfUnits' => '',
                'TypeOfUnits' => ''
        ]
    ],
    'LeaveLines' => [
        [
                'AnnualNumberOfUnits' => '',
                'CalculationType' => '',
                'EmploymentTerminationPaymentType' => '',
                'EntitlementFinalPayPayoutType' => '',
                'FullTimeNumberOfUnitsPerPeriod' => '',
                'IncludeSuperannuationGuaranteeContribution' => null,
                'LeaveTypeID' => '',
                'NumberOfUnits' => ''
        ]
    ],
    'MiddleNames' => '',
    'Mobile' => '',
    'OpeningBalances' => [
        'DeductionLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'DeductionTypeID' => '',
                                'NumberOfUnits' => '',
                                'Percentage' => ''
                ]
        ],
        'EarningsLines' => [
                [
                                'Amount' => '',
                                'AnnualSalary' => '',
                                'CalculationType' => '',
                                'EarningsRateID' => '',
                                'FixedAmount' => '',
                                'NormalNumberOfUnits' => '',
                                'NumberOfUnits' => '',
                                'NumberOfUnitsPerWeek' => '',
                                'RatePerUnit' => ''
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'OpeningBalanceDate' => '',
        'ReimbursementLines' => [
                [
                                'Amount' => '',
                                'Description' => '',
                                'ExpenseAccount' => '',
                                'ReimbursementTypeID' => ''
                ]
        ],
        'SuperLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'ContributionType' => '',
                                'ExpenseAccountCode' => '',
                                'LiabilityAccountCode' => '',
                                'MinimumMonthlyEarnings' => '',
                                'Percentage' => '',
                                'SuperMembershipID' => ''
                ]
        ],
        'Tax' => ''
    ],
    'OrdinaryEarningsRateID' => '',
    'PayTemplate' => [
        'DeductionLines' => [
                [
                                
                ]
        ],
        'EarningsLines' => [
                [
                                
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'ReimbursementLines' => [
                [
                                
                ]
        ],
        'SuperLines' => [
                [
                                
                ]
        ]
    ],
    'PayrollCalendarID' => '',
    'Phone' => '',
    'StartDate' => '',
    'Status' => '',
    'SuperMemberships' => [
        [
                'EmployeeNumber' => '',
                'SuperFundID' => '',
                'SuperMembershipID' => ''
        ]
    ],
    'TaxDeclaration' => [
        'ApprovedWithholdingVariationPercentage' => '',
        'AustralianResidentForTaxPurposes' => null,
        'EligibleToReceiveLeaveLoading' => null,
        'EmployeeID' => '',
        'EmploymentBasis' => '',
        'HasHELPDebt' => null,
        'HasSFSSDebt' => null,
        'HasStudentStartupLoan' => null,
        'HasTradeSupportLoanDebt' => null,
        'ResidencyStatus' => '',
        'TFNExemptionType' => '',
        'TaxFileNumber' => '',
        'TaxFreeThresholdClaimed' => null,
        'TaxOffsetEstimatedAmount' => '',
        'UpdatedDateUTC' => '',
        'UpwardVariationTaxWithholdingAmount' => ''
    ],
    'TerminationDate' => '',
    'Title' => '',
    'TwitterUserName' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Employees');
$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}}/Employees' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Employees' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/Employees", payload, headers)

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

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

url = "{{baseUrl}}/Employees"

payload = [
    {
        "BankAccounts": [
            {
                "AccountName": "",
                "AccountNumber": "",
                "Amount": "",
                "BSB": "",
                "Remainder": False,
                "StatementText": ""
            }
        ],
        "Classification": "",
        "DateOfBirth": "",
        "Email": "",
        "EmployeeGroupName": "",
        "EmployeeID": "",
        "FirstName": "",
        "Gender": "",
        "HomeAddress": {
            "AddressLine1": "",
            "AddressLine2": "",
            "City": "",
            "Country": "",
            "PostalCode": "",
            "Region": ""
        },
        "IsAuthorisedToApproveLeave": False,
        "IsAuthorisedToApproveTimesheets": False,
        "JobTitle": "",
        "LastName": "",
        "LeaveBalances": [
            {
                "LeaveName": "",
                "LeaveTypeID": "",
                "NumberOfUnits": "",
                "TypeOfUnits": ""
            }
        ],
        "LeaveLines": [
            {
                "AnnualNumberOfUnits": "",
                "CalculationType": "",
                "EmploymentTerminationPaymentType": "",
                "EntitlementFinalPayPayoutType": "",
                "FullTimeNumberOfUnitsPerPeriod": "",
                "IncludeSuperannuationGuaranteeContribution": False,
                "LeaveTypeID": "",
                "NumberOfUnits": ""
            }
        ],
        "MiddleNames": "",
        "Mobile": "",
        "OpeningBalances": {
            "DeductionLines": [
                {
                    "Amount": "",
                    "CalculationType": "",
                    "DeductionTypeID": "",
                    "NumberOfUnits": "",
                    "Percentage": ""
                }
            ],
            "EarningsLines": [
                {
                    "Amount": "",
                    "AnnualSalary": "",
                    "CalculationType": "",
                    "EarningsRateID": "",
                    "FixedAmount": "",
                    "NormalNumberOfUnits": "",
                    "NumberOfUnits": "",
                    "NumberOfUnitsPerWeek": "",
                    "RatePerUnit": ""
                }
            ],
            "LeaveLines": [{}],
            "OpeningBalanceDate": "",
            "ReimbursementLines": [
                {
                    "Amount": "",
                    "Description": "",
                    "ExpenseAccount": "",
                    "ReimbursementTypeID": ""
                }
            ],
            "SuperLines": [
                {
                    "Amount": "",
                    "CalculationType": "",
                    "ContributionType": "",
                    "ExpenseAccountCode": "",
                    "LiabilityAccountCode": "",
                    "MinimumMonthlyEarnings": "",
                    "Percentage": "",
                    "SuperMembershipID": ""
                }
            ],
            "Tax": ""
        },
        "OrdinaryEarningsRateID": "",
        "PayTemplate": {
            "DeductionLines": [{}],
            "EarningsLines": [{}],
            "LeaveLines": [{}],
            "ReimbursementLines": [{}],
            "SuperLines": [{}]
        },
        "PayrollCalendarID": "",
        "Phone": "",
        "StartDate": "",
        "Status": "",
        "SuperMemberships": [
            {
                "EmployeeNumber": "",
                "SuperFundID": "",
                "SuperMembershipID": ""
            }
        ],
        "TaxDeclaration": {
            "ApprovedWithholdingVariationPercentage": "",
            "AustralianResidentForTaxPurposes": False,
            "EligibleToReceiveLeaveLoading": False,
            "EmployeeID": "",
            "EmploymentBasis": "",
            "HasHELPDebt": False,
            "HasSFSSDebt": False,
            "HasStudentStartupLoan": False,
            "HasTradeSupportLoanDebt": False,
            "ResidencyStatus": "",
            "TFNExemptionType": "",
            "TaxFileNumber": "",
            "TaxFreeThresholdClaimed": False,
            "TaxOffsetEstimatedAmount": "",
            "UpdatedDateUTC": "",
            "UpwardVariationTaxWithholdingAmount": ""
        },
        "TerminationDate": "",
        "Title": "",
        "TwitterUserName": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/Employees"

payload <- "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees")

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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Employees') do |req|
  req.body = "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees";

    let payload = (
        json!({
            "BankAccounts": (
                json!({
                    "AccountName": "",
                    "AccountNumber": "",
                    "Amount": "",
                    "BSB": "",
                    "Remainder": false,
                    "StatementText": ""
                })
            ),
            "Classification": "",
            "DateOfBirth": "",
            "Email": "",
            "EmployeeGroupName": "",
            "EmployeeID": "",
            "FirstName": "",
            "Gender": "",
            "HomeAddress": json!({
                "AddressLine1": "",
                "AddressLine2": "",
                "City": "",
                "Country": "",
                "PostalCode": "",
                "Region": ""
            }),
            "IsAuthorisedToApproveLeave": false,
            "IsAuthorisedToApproveTimesheets": false,
            "JobTitle": "",
            "LastName": "",
            "LeaveBalances": (
                json!({
                    "LeaveName": "",
                    "LeaveTypeID": "",
                    "NumberOfUnits": "",
                    "TypeOfUnits": ""
                })
            ),
            "LeaveLines": (
                json!({
                    "AnnualNumberOfUnits": "",
                    "CalculationType": "",
                    "EmploymentTerminationPaymentType": "",
                    "EntitlementFinalPayPayoutType": "",
                    "FullTimeNumberOfUnitsPerPeriod": "",
                    "IncludeSuperannuationGuaranteeContribution": false,
                    "LeaveTypeID": "",
                    "NumberOfUnits": ""
                })
            ),
            "MiddleNames": "",
            "Mobile": "",
            "OpeningBalances": json!({
                "DeductionLines": (
                    json!({
                        "Amount": "",
                        "CalculationType": "",
                        "DeductionTypeID": "",
                        "NumberOfUnits": "",
                        "Percentage": ""
                    })
                ),
                "EarningsLines": (
                    json!({
                        "Amount": "",
                        "AnnualSalary": "",
                        "CalculationType": "",
                        "EarningsRateID": "",
                        "FixedAmount": "",
                        "NormalNumberOfUnits": "",
                        "NumberOfUnits": "",
                        "NumberOfUnitsPerWeek": "",
                        "RatePerUnit": ""
                    })
                ),
                "LeaveLines": (json!({})),
                "OpeningBalanceDate": "",
                "ReimbursementLines": (
                    json!({
                        "Amount": "",
                        "Description": "",
                        "ExpenseAccount": "",
                        "ReimbursementTypeID": ""
                    })
                ),
                "SuperLines": (
                    json!({
                        "Amount": "",
                        "CalculationType": "",
                        "ContributionType": "",
                        "ExpenseAccountCode": "",
                        "LiabilityAccountCode": "",
                        "MinimumMonthlyEarnings": "",
                        "Percentage": "",
                        "SuperMembershipID": ""
                    })
                ),
                "Tax": ""
            }),
            "OrdinaryEarningsRateID": "",
            "PayTemplate": json!({
                "DeductionLines": (json!({})),
                "EarningsLines": (json!({})),
                "LeaveLines": (json!({})),
                "ReimbursementLines": (json!({})),
                "SuperLines": (json!({}))
            }),
            "PayrollCalendarID": "",
            "Phone": "",
            "StartDate": "",
            "Status": "",
            "SuperMemberships": (
                json!({
                    "EmployeeNumber": "",
                    "SuperFundID": "",
                    "SuperMembershipID": ""
                })
            ),
            "TaxDeclaration": json!({
                "ApprovedWithholdingVariationPercentage": "",
                "AustralianResidentForTaxPurposes": false,
                "EligibleToReceiveLeaveLoading": false,
                "EmployeeID": "",
                "EmploymentBasis": "",
                "HasHELPDebt": false,
                "HasSFSSDebt": false,
                "HasStudentStartupLoan": false,
                "HasTradeSupportLoanDebt": false,
                "ResidencyStatus": "",
                "TFNExemptionType": "",
                "TaxFileNumber": "",
                "TaxFreeThresholdClaimed": false,
                "TaxOffsetEstimatedAmount": "",
                "UpdatedDateUTC": "",
                "UpwardVariationTaxWithholdingAmount": ""
            }),
            "TerminationDate": "",
            "Title": "",
            "TwitterUserName": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/Employees \
  --header 'content-type: application/json' \
  --data '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/Employees \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "BankAccounts": [\n      {\n        "AccountName": "",\n        "AccountNumber": "",\n        "Amount": "",\n        "BSB": "",\n        "Remainder": false,\n        "StatementText": ""\n      }\n    ],\n    "Classification": "",\n    "DateOfBirth": "",\n    "Email": "",\n    "EmployeeGroupName": "",\n    "EmployeeID": "",\n    "FirstName": "",\n    "Gender": "",\n    "HomeAddress": {\n      "AddressLine1": "",\n      "AddressLine2": "",\n      "City": "",\n      "Country": "",\n      "PostalCode": "",\n      "Region": ""\n    },\n    "IsAuthorisedToApproveLeave": false,\n    "IsAuthorisedToApproveTimesheets": false,\n    "JobTitle": "",\n    "LastName": "",\n    "LeaveBalances": [\n      {\n        "LeaveName": "",\n        "LeaveTypeID": "",\n        "NumberOfUnits": "",\n        "TypeOfUnits": ""\n      }\n    ],\n    "LeaveLines": [\n      {\n        "AnnualNumberOfUnits": "",\n        "CalculationType": "",\n        "EmploymentTerminationPaymentType": "",\n        "EntitlementFinalPayPayoutType": "",\n        "FullTimeNumberOfUnitsPerPeriod": "",\n        "IncludeSuperannuationGuaranteeContribution": false,\n        "LeaveTypeID": "",\n        "NumberOfUnits": ""\n      }\n    ],\n    "MiddleNames": "",\n    "Mobile": "",\n    "OpeningBalances": {\n      "DeductionLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "DeductionTypeID": "",\n          "NumberOfUnits": "",\n          "Percentage": ""\n        }\n      ],\n      "EarningsLines": [\n        {\n          "Amount": "",\n          "AnnualSalary": "",\n          "CalculationType": "",\n          "EarningsRateID": "",\n          "FixedAmount": "",\n          "NormalNumberOfUnits": "",\n          "NumberOfUnits": "",\n          "NumberOfUnitsPerWeek": "",\n          "RatePerUnit": ""\n        }\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "OpeningBalanceDate": "",\n      "ReimbursementLines": [\n        {\n          "Amount": "",\n          "Description": "",\n          "ExpenseAccount": "",\n          "ReimbursementTypeID": ""\n        }\n      ],\n      "SuperLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "ContributionType": "",\n          "ExpenseAccountCode": "",\n          "LiabilityAccountCode": "",\n          "MinimumMonthlyEarnings": "",\n          "Percentage": "",\n          "SuperMembershipID": ""\n        }\n      ],\n      "Tax": ""\n    },\n    "OrdinaryEarningsRateID": "",\n    "PayTemplate": {\n      "DeductionLines": [\n        {}\n      ],\n      "EarningsLines": [\n        {}\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "ReimbursementLines": [\n        {}\n      ],\n      "SuperLines": [\n        {}\n      ]\n    },\n    "PayrollCalendarID": "",\n    "Phone": "",\n    "StartDate": "",\n    "Status": "",\n    "SuperMemberships": [\n      {\n        "EmployeeNumber": "",\n        "SuperFundID": "",\n        "SuperMembershipID": ""\n      }\n    ],\n    "TaxDeclaration": {\n      "ApprovedWithholdingVariationPercentage": "",\n      "AustralianResidentForTaxPurposes": false,\n      "EligibleToReceiveLeaveLoading": false,\n      "EmployeeID": "",\n      "EmploymentBasis": "",\n      "HasHELPDebt": false,\n      "HasSFSSDebt": false,\n      "HasStudentStartupLoan": false,\n      "HasTradeSupportLoanDebt": false,\n      "ResidencyStatus": "",\n      "TFNExemptionType": "",\n      "TaxFileNumber": "",\n      "TaxFreeThresholdClaimed": false,\n      "TaxOffsetEstimatedAmount": "",\n      "UpdatedDateUTC": "",\n      "UpwardVariationTaxWithholdingAmount": ""\n    },\n    "TerminationDate": "",\n    "Title": "",\n    "TwitterUserName": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/Employees
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "BankAccounts": [
      [
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      ]
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": [
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    ],
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      [
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      ]
    ],
    "LeaveLines": [
      [
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      ]
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": [
      "DeductionLines": [
        [
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        ]
      ],
      "EarningsLines": [
        [
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        ]
      ],
      "LeaveLines": [[]],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        [
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        ]
      ],
      "SuperLines": [
        [
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        ]
      ],
      "Tax": ""
    ],
    "OrdinaryEarningsRateID": "",
    "PayTemplate": [
      "DeductionLines": [[]],
      "EarningsLines": [[]],
      "LeaveLines": [[]],
      "ReimbursementLines": [[]],
      "SuperLines": [[]]
    ],
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      [
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      ]
    ],
    "TaxDeclaration": [
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    ],
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Employees")! 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

{ "Id": "e40caf91-1931-40c0-8908-728aa092ab23", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573621524489)/", "Employees": [ { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "FirstName": "Albus", "MiddleNames": "Percival", "LastName": "Dumbledore", "Status": "ACTIVE", "Email": "albus39608@hogwarts.edu", "DateOfBirth": "/Date(321523200000+0000)/", "JobTitle": "Regional Manager", "Gender": "M", "HomeAddress": { "AddressLine1": "101 Green St", "City": "Island Bay", "Region": "NSW", "PostalCode": "6023", "Country": "AUSTRALIA" }, "Phone": "444-2323", "Mobile": "555-1212", "StartDate": "/Date(321523200000+0000)/", "Classification": "corporate", "OrdinaryEarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "UpdatedDateUTC": "/Date(1573621524458+0000)/", "IsAuthorisedToApproveLeave": true, "IsAuthorisedToApproveTimesheets": true } ] }
POST Creates a superfund
{{baseUrl}}/Superfunds
BODY json

[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Superfunds");

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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/Superfunds" {:content-type :json
                                                       :form-params [{:ABN ""
                                                                      :AccountName ""
                                                                      :AccountNumber ""
                                                                      :BSB ""
                                                                      :ElectronicServiceAddress ""
                                                                      :EmployerNumber ""
                                                                      :Name ""
                                                                      :SPIN ""
                                                                      :SuperFundID ""
                                                                      :Type ""
                                                                      :USI ""
                                                                      :UpdatedDateUTC ""
                                                                      :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/Superfunds"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds"),
    Content = new StringContent("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Superfunds"

	payload := strings.NewReader("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Superfunds HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 333

[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Superfunds")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Superfunds"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Superfunds")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Superfunds")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    ABN: '',
    AccountName: '',
    AccountNumber: '',
    BSB: '',
    ElectronicServiceAddress: '',
    EmployerNumber: '',
    Name: '',
    SPIN: '',
    SuperFundID: '',
    Type: '',
    USI: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/Superfunds');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Superfunds',
  headers: {'content-type': 'application/json'},
  data: [
    {
      ABN: '',
      AccountName: '',
      AccountNumber: '',
      BSB: '',
      ElectronicServiceAddress: '',
      EmployerNumber: '',
      Name: '',
      SPIN: '',
      SuperFundID: '',
      Type: '',
      USI: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Superfunds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"ABN":"","AccountName":"","AccountNumber":"","BSB":"","ElectronicServiceAddress":"","EmployerNumber":"","Name":"","SPIN":"","SuperFundID":"","Type":"","USI":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/Superfunds',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "ABN": "",\n    "AccountName": "",\n    "AccountNumber": "",\n    "BSB": "",\n    "ElectronicServiceAddress": "",\n    "EmployerNumber": "",\n    "Name": "",\n    "SPIN": "",\n    "SuperFundID": "",\n    "Type": "",\n    "USI": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/Superfunds")
  .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/Superfunds',
  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([
  {
    ABN: '',
    AccountName: '',
    AccountNumber: '',
    BSB: '',
    ElectronicServiceAddress: '',
    EmployerNumber: '',
    Name: '',
    SPIN: '',
    SuperFundID: '',
    Type: '',
    USI: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Superfunds',
  headers: {'content-type': 'application/json'},
  body: [
    {
      ABN: '',
      AccountName: '',
      AccountNumber: '',
      BSB: '',
      ElectronicServiceAddress: '',
      EmployerNumber: '',
      Name: '',
      SPIN: '',
      SuperFundID: '',
      Type: '',
      USI: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/Superfunds');

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

req.type('json');
req.send([
  {
    ABN: '',
    AccountName: '',
    AccountNumber: '',
    BSB: '',
    ElectronicServiceAddress: '',
    EmployerNumber: '',
    Name: '',
    SPIN: '',
    SuperFundID: '',
    Type: '',
    USI: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/Superfunds',
  headers: {'content-type': 'application/json'},
  data: [
    {
      ABN: '',
      AccountName: '',
      AccountNumber: '',
      BSB: '',
      ElectronicServiceAddress: '',
      EmployerNumber: '',
      Name: '',
      SPIN: '',
      SuperFundID: '',
      Type: '',
      USI: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/Superfunds';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"ABN":"","AccountName":"","AccountNumber":"","BSB":"","ElectronicServiceAddress":"","EmployerNumber":"","Name":"","SPIN":"","SuperFundID":"","Type":"","USI":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"ABN": @"", @"AccountName": @"", @"AccountNumber": @"", @"BSB": @"", @"ElectronicServiceAddress": @"", @"EmployerNumber": @"", @"Name": @"", @"SPIN": @"", @"SuperFundID": @"", @"Type": @"", @"USI": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Superfunds"]
                                                       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}}/Superfunds" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Superfunds",
  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([
    [
        'ABN' => '',
        'AccountName' => '',
        'AccountNumber' => '',
        'BSB' => '',
        'ElectronicServiceAddress' => '',
        'EmployerNumber' => '',
        'Name' => '',
        'SPIN' => '',
        'SuperFundID' => '',
        'Type' => '',
        'USI' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/Superfunds', [
  'body' => '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/Superfunds');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'ABN' => '',
    'AccountName' => '',
    'AccountNumber' => '',
    'BSB' => '',
    'ElectronicServiceAddress' => '',
    'EmployerNumber' => '',
    'Name' => '',
    'SPIN' => '',
    'SuperFundID' => '',
    'Type' => '',
    'USI' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'ABN' => '',
    'AccountName' => '',
    'AccountNumber' => '',
    'BSB' => '',
    'ElectronicServiceAddress' => '',
    'EmployerNumber' => '',
    'Name' => '',
    'SPIN' => '',
    'SuperFundID' => '',
    'Type' => '',
    'USI' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Superfunds');
$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}}/Superfunds' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Superfunds' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/Superfunds", payload, headers)

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

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

url = "{{baseUrl}}/Superfunds"

payload = [
    {
        "ABN": "",
        "AccountName": "",
        "AccountNumber": "",
        "BSB": "",
        "ElectronicServiceAddress": "",
        "EmployerNumber": "",
        "Name": "",
        "SPIN": "",
        "SuperFundID": "",
        "Type": "",
        "USI": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/Superfunds"

payload <- "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds")

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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Superfunds') do |req|
  req.body = "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds";

    let payload = (
        json!({
            "ABN": "",
            "AccountName": "",
            "AccountNumber": "",
            "BSB": "",
            "ElectronicServiceAddress": "",
            "EmployerNumber": "",
            "Name": "",
            "SPIN": "",
            "SuperFundID": "",
            "Type": "",
            "USI": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/Superfunds \
  --header 'content-type: application/json' \
  --data '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/Superfunds \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "ABN": "",\n    "AccountName": "",\n    "AccountNumber": "",\n    "BSB": "",\n    "ElectronicServiceAddress": "",\n    "EmployerNumber": "",\n    "Name": "",\n    "SPIN": "",\n    "SuperFundID": "",\n    "Type": "",\n    "USI": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/Superfunds
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Superfunds")! 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

{ "Id":"6101dc74-d7b5-4d75-8aa6-ba02697167d9", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573583393024)\/", "SuperFunds":[ { "SuperFundID":"e02e44eb-2dba-4d5e-84da-8a0c3a4a4fef", "Name":"AMG Super", "Type":"REGULATED", "ABN":"30099320583", "USI":"PTC0133AU", "AccountNumber":"FB36350", "AccountName":"Foo38428", "UpdatedDateUTC":"\/Date(1573583393009+0000)\/" } ] }
POST Creates a timesheet
{{baseUrl}}/Timesheets
BODY json

[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Timesheets");

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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/Timesheets" {:content-type :json
                                                       :form-params [{:EmployeeID ""
                                                                      :EndDate ""
                                                                      :Hours ""
                                                                      :StartDate ""
                                                                      :Status ""
                                                                      :TimesheetID ""
                                                                      :TimesheetLines [{:EarningsRateID ""
                                                                                        :NumberOfUnits []
                                                                                        :TrackingItemID ""
                                                                                        :UpdatedDateUTC ""}]
                                                                      :UpdatedDateUTC ""
                                                                      :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/Timesheets"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets"),
    Content = new StringContent("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Timesheets"

	payload := strings.NewReader("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Timesheets HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 392

[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Timesheets")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Timesheets"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Timesheets")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Timesheets")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    EmployeeID: '',
    EndDate: '',
    Hours: '',
    StartDate: '',
    Status: '',
    TimesheetID: '',
    TimesheetLines: [
      {
        EarningsRateID: '',
        NumberOfUnits: [],
        TrackingItemID: '',
        UpdatedDateUTC: ''
      }
    ],
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/Timesheets');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Timesheets',
  headers: {'content-type': 'application/json'},
  data: [
    {
      EmployeeID: '',
      EndDate: '',
      Hours: '',
      StartDate: '',
      Status: '',
      TimesheetID: '',
      TimesheetLines: [
        {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
      ],
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Timesheets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"EmployeeID":"","EndDate":"","Hours":"","StartDate":"","Status":"","TimesheetID":"","TimesheetLines":[{"EarningsRateID":"","NumberOfUnits":[],"TrackingItemID":"","UpdatedDateUTC":""}],"UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/Timesheets',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "EmployeeID": "",\n    "EndDate": "",\n    "Hours": "",\n    "StartDate": "",\n    "Status": "",\n    "TimesheetID": "",\n    "TimesheetLines": [\n      {\n        "EarningsRateID": "",\n        "NumberOfUnits": [],\n        "TrackingItemID": "",\n        "UpdatedDateUTC": ""\n      }\n    ],\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/Timesheets")
  .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/Timesheets',
  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([
  {
    EmployeeID: '',
    EndDate: '',
    Hours: '',
    StartDate: '',
    Status: '',
    TimesheetID: '',
    TimesheetLines: [
      {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
    ],
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Timesheets',
  headers: {'content-type': 'application/json'},
  body: [
    {
      EmployeeID: '',
      EndDate: '',
      Hours: '',
      StartDate: '',
      Status: '',
      TimesheetID: '',
      TimesheetLines: [
        {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
      ],
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/Timesheets');

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

req.type('json');
req.send([
  {
    EmployeeID: '',
    EndDate: '',
    Hours: '',
    StartDate: '',
    Status: '',
    TimesheetID: '',
    TimesheetLines: [
      {
        EarningsRateID: '',
        NumberOfUnits: [],
        TrackingItemID: '',
        UpdatedDateUTC: ''
      }
    ],
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/Timesheets',
  headers: {'content-type': 'application/json'},
  data: [
    {
      EmployeeID: '',
      EndDate: '',
      Hours: '',
      StartDate: '',
      Status: '',
      TimesheetID: '',
      TimesheetLines: [
        {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
      ],
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/Timesheets';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"EmployeeID":"","EndDate":"","Hours":"","StartDate":"","Status":"","TimesheetID":"","TimesheetLines":[{"EarningsRateID":"","NumberOfUnits":[],"TrackingItemID":"","UpdatedDateUTC":""}],"UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"EmployeeID": @"", @"EndDate": @"", @"Hours": @"", @"StartDate": @"", @"Status": @"", @"TimesheetID": @"", @"TimesheetLines": @[ @{ @"EarningsRateID": @"", @"NumberOfUnits": @[  ], @"TrackingItemID": @"", @"UpdatedDateUTC": @"" } ], @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Timesheets"]
                                                       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}}/Timesheets" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Timesheets",
  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([
    [
        'EmployeeID' => '',
        'EndDate' => '',
        'Hours' => '',
        'StartDate' => '',
        'Status' => '',
        'TimesheetID' => '',
        'TimesheetLines' => [
                [
                                'EarningsRateID' => '',
                                'NumberOfUnits' => [
                                                                
                                ],
                                'TrackingItemID' => '',
                                'UpdatedDateUTC' => ''
                ]
        ],
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/Timesheets', [
  'body' => '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/Timesheets');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'EmployeeID' => '',
    'EndDate' => '',
    'Hours' => '',
    'StartDate' => '',
    'Status' => '',
    'TimesheetID' => '',
    'TimesheetLines' => [
        [
                'EarningsRateID' => '',
                'NumberOfUnits' => [
                                
                ],
                'TrackingItemID' => '',
                'UpdatedDateUTC' => ''
        ]
    ],
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'EmployeeID' => '',
    'EndDate' => '',
    'Hours' => '',
    'StartDate' => '',
    'Status' => '',
    'TimesheetID' => '',
    'TimesheetLines' => [
        [
                'EarningsRateID' => '',
                'NumberOfUnits' => [
                                
                ],
                'TrackingItemID' => '',
                'UpdatedDateUTC' => ''
        ]
    ],
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Timesheets');
$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}}/Timesheets' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Timesheets' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/Timesheets", payload, headers)

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

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

url = "{{baseUrl}}/Timesheets"

payload = [
    {
        "EmployeeID": "",
        "EndDate": "",
        "Hours": "",
        "StartDate": "",
        "Status": "",
        "TimesheetID": "",
        "TimesheetLines": [
            {
                "EarningsRateID": "",
                "NumberOfUnits": [],
                "TrackingItemID": "",
                "UpdatedDateUTC": ""
            }
        ],
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/Timesheets"

payload <- "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets")

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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Timesheets') do |req|
  req.body = "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets";

    let payload = (
        json!({
            "EmployeeID": "",
            "EndDate": "",
            "Hours": "",
            "StartDate": "",
            "Status": "",
            "TimesheetID": "",
            "TimesheetLines": (
                json!({
                    "EarningsRateID": "",
                    "NumberOfUnits": (),
                    "TrackingItemID": "",
                    "UpdatedDateUTC": ""
                })
            ),
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/Timesheets \
  --header 'content-type: application/json' \
  --data '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/Timesheets \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "EmployeeID": "",\n    "EndDate": "",\n    "Hours": "",\n    "StartDate": "",\n    "Status": "",\n    "TimesheetID": "",\n    "TimesheetLines": [\n      {\n        "EarningsRateID": "",\n        "NumberOfUnits": [],\n        "TrackingItemID": "",\n        "UpdatedDateUTC": ""\n      }\n    ],\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/Timesheets
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      [
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      ]
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Timesheets")! 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

{ "Id":"fa8416a1-e02b-4b6f-bad5-3c5a2dbba76e", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573516185143)\/", "Timesheets":[ { "TimesheetID":"a7eb0a79-8511-4ee7-b473-3a25f28abcb9", "EmployeeID":"b34e89ff-770d-4099-b7e5-f968767118bc", "StartDate":"\/Date(1573171200000+0000)\/", "EndDate":"\/Date(1573689600000+0000)\/", "Status":"DRAFT", "Hours":22.0, "TimesheetLines":[ { "EarningsRateID":"ab874dfb-ab09-4c91-954e-43acf6fc23b4", "TrackingItemID":"af5e9ce2-2349-4136-be99-3561b189f473", "NumberOfUnits":[ 2.0, 10.0, 0.0, 0.0, 5.0, 0.0, 5.0 ], "UpdatedDateUTC":"\/Date(1573516185127+0000)\/" } ], "UpdatedDateUTC":"\/Date(1573516185127+0000)\/" } ] }
GET Retrieves a leave application by a unique leave application id
{{baseUrl}}/LeaveApplications/:LeaveApplicationID
QUERY PARAMS

LeaveApplicationID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/LeaveApplications/:LeaveApplicationID");

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

(client/get "{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
require "http/client"

url = "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"

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}}/LeaveApplications/:LeaveApplicationID"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/LeaveApplications/:LeaveApplicationID");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"

	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/LeaveApplications/:LeaveApplicationID HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/LeaveApplications/:LeaveApplicationID"))
    .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}}/LeaveApplications/:LeaveApplicationID")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
  .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}}/LeaveApplications/:LeaveApplicationID');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/LeaveApplications/:LeaveApplicationID'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/LeaveApplications/:LeaveApplicationID';
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}}/LeaveApplications/:LeaveApplicationID',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/LeaveApplications/:LeaveApplicationID',
  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}}/LeaveApplications/:LeaveApplicationID'
};

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

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

const req = unirest('GET', '{{baseUrl}}/LeaveApplications/:LeaveApplicationID');

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}}/LeaveApplications/:LeaveApplicationID'
};

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

const url = '{{baseUrl}}/LeaveApplications/:LeaveApplicationID';
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}}/LeaveApplications/:LeaveApplicationID"]
                                                       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}}/LeaveApplications/:LeaveApplicationID" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/LeaveApplications/:LeaveApplicationID",
  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}}/LeaveApplications/:LeaveApplicationID');

echo $response->getBody();
setUrl('{{baseUrl}}/LeaveApplications/:LeaveApplicationID');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/LeaveApplications/:LeaveApplicationID');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/LeaveApplications/:LeaveApplicationID' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/LeaveApplications/:LeaveApplicationID' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/LeaveApplications/:LeaveApplicationID")

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

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

url = "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"

response = requests.get(url)

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

url <- "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"

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

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

url = URI("{{baseUrl}}/LeaveApplications/:LeaveApplicationID")

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/LeaveApplications/:LeaveApplicationID') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/LeaveApplications/:LeaveApplicationID";

    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}}/LeaveApplications/:LeaveApplicationID
http GET {{baseUrl}}/LeaveApplications/:LeaveApplicationID
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/LeaveApplications/:LeaveApplicationID
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/LeaveApplications/:LeaveApplicationID")! 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

{ "Id": "071dafb9-0d50-48b2-8ee4-b48d3f3c119d", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573679791457)/", "LeaveApplications": [ { "LeaveApplicationID": "1d4cd583-0107-4386-936b-672eb3d1f624", "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "LeavePeriods": [ { "PayPeriodStartDate": "/Date(1573171200000+0000)/", "PayPeriodEndDate": "/Date(1573689600000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0 } ], "Title": "vacation", "StartDate": "/Date(1573516800000+0000)/", "EndDate": "/Date(1573516800000+0000)/", "UpdatedDateUTC": "/Date(1573623008000+0000)/" } ] }
GET Retrieves a pay run by using a unique pay run id
{{baseUrl}}/PayRuns/:PayRunID
QUERY PARAMS

PayRunID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayRuns/:PayRunID");

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

(client/get "{{baseUrl}}/PayRuns/:PayRunID")
require "http/client"

url = "{{baseUrl}}/PayRuns/:PayRunID"

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}}/PayRuns/:PayRunID"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/PayRuns/:PayRunID");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayRuns/:PayRunID"

	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/PayRuns/:PayRunID HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/PayRuns/:PayRunID")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayRuns/:PayRunID"))
    .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}}/PayRuns/:PayRunID")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/PayRuns/:PayRunID")
  .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}}/PayRuns/:PayRunID');

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

const options = {method: 'GET', url: '{{baseUrl}}/PayRuns/:PayRunID'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayRuns/:PayRunID';
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}}/PayRuns/:PayRunID',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/PayRuns/:PayRunID")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/PayRuns/:PayRunID',
  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}}/PayRuns/:PayRunID'};

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

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

const req = unirest('GET', '{{baseUrl}}/PayRuns/:PayRunID');

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}}/PayRuns/:PayRunID'};

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

const url = '{{baseUrl}}/PayRuns/:PayRunID';
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}}/PayRuns/:PayRunID"]
                                                       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}}/PayRuns/:PayRunID" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayRuns/:PayRunID",
  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}}/PayRuns/:PayRunID');

echo $response->getBody();
setUrl('{{baseUrl}}/PayRuns/:PayRunID');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/PayRuns/:PayRunID');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/PayRuns/:PayRunID' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayRuns/:PayRunID' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/PayRuns/:PayRunID")

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

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

url = "{{baseUrl}}/PayRuns/:PayRunID"

response = requests.get(url)

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

url <- "{{baseUrl}}/PayRuns/:PayRunID"

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

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

url = URI("{{baseUrl}}/PayRuns/:PayRunID")

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/PayRuns/:PayRunID') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PayRuns/:PayRunID";

    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}}/PayRuns/:PayRunID
http GET {{baseUrl}}/PayRuns/:PayRunID
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/PayRuns/:PayRunID
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayRuns/:PayRunID")! 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

{ "Id": "d31f4401-875e-4a0c-9952-d5dd18519150", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573692531699)/", "PayRuns": [ { "PayRunID": "21d6317b-5319-4b3d-8d78-48904db6b665", "PayrollCalendarID": "78bb86b9-e1ea-47ac-b75d-f087a81931de", "PayRunPeriodStartDate": "/Date(1572566400000+0000)/", "PayRunPeriodEndDate": "/Date(1573084800000+0000)/", "PaymentDate": "/Date(1573171200000+0000)/", "Wages": 205.4, "Deductions": 37, "Tax": 0, "Super": 0, "Reimbursement": 77, "NetPay": 168.4, "PayRunStatus": "POSTED", "UpdatedDateUTC": "/Date(1573692155000+0000)/", "Payslips": [ { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "PayslipID": "c81e8bcc-56b0-4740-b46b-767753a6ee45", "FirstName": "Albus", "LastName": "Dumbledore", "EmployeeGroup": "foo", "Wages": 5.4, "Deductions": 4, "Tax": 0, "Super": 0, "Reimbursements": 55, "NetPay": 1.4, "UpdatedDateUTC": "/Date(1573692155000+0000)/" }, { "EmployeeID": "7aa04979-ded5-44d9-b09a-793749425844", "PayslipID": "76b9cb4e-d024-47cf-b09a-4c9cea2870f1", "FirstName": "John", "LastName": "Smith", "Wages": 200, "Deductions": 33, "Tax": 0, "Super": 0, "Reimbursements": 22, "NetPay": 167, "UpdatedDateUTC": "/Date(1573692155000+0000)/" } ] } ] }
GET Retrieves a superfund by using a unique superfund ID
{{baseUrl}}/Superfunds/:SuperFundID
QUERY PARAMS

SuperFundID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Superfunds/:SuperFundID");

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

(client/get "{{baseUrl}}/Superfunds/:SuperFundID")
require "http/client"

url = "{{baseUrl}}/Superfunds/:SuperFundID"

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}}/Superfunds/:SuperFundID"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Superfunds/:SuperFundID");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Superfunds/:SuperFundID"

	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/Superfunds/:SuperFundID HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/Superfunds/:SuperFundID")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Superfunds/:SuperFundID"))
    .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}}/Superfunds/:SuperFundID")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Superfunds/:SuperFundID")
  .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}}/Superfunds/:SuperFundID');

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

const options = {method: 'GET', url: '{{baseUrl}}/Superfunds/:SuperFundID'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Superfunds/:SuperFundID';
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}}/Superfunds/:SuperFundID',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Superfunds/:SuperFundID")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Superfunds/:SuperFundID',
  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}}/Superfunds/:SuperFundID'};

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

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

const req = unirest('GET', '{{baseUrl}}/Superfunds/:SuperFundID');

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}}/Superfunds/:SuperFundID'};

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

const url = '{{baseUrl}}/Superfunds/:SuperFundID';
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}}/Superfunds/:SuperFundID"]
                                                       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}}/Superfunds/:SuperFundID" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Superfunds/:SuperFundID",
  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}}/Superfunds/:SuperFundID');

echo $response->getBody();
setUrl('{{baseUrl}}/Superfunds/:SuperFundID');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Superfunds/:SuperFundID');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Superfunds/:SuperFundID' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Superfunds/:SuperFundID' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Superfunds/:SuperFundID")

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

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

url = "{{baseUrl}}/Superfunds/:SuperFundID"

response = requests.get(url)

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

url <- "{{baseUrl}}/Superfunds/:SuperFundID"

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

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

url = URI("{{baseUrl}}/Superfunds/:SuperFundID")

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/Superfunds/:SuperFundID') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Superfunds/:SuperFundID";

    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}}/Superfunds/:SuperFundID
http GET {{baseUrl}}/Superfunds/:SuperFundID
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Superfunds/:SuperFundID
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Superfunds/:SuperFundID")! 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

{ "Id":"a023294b-3656-4202-8127-c3d77a794fa7", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573571518603)\/", "SuperFunds":[ { "SuperFundID":"540f4327-dda2-4b36-9c2f-2fe1c93a72b5", "Name":"My Self Managed one", "Type":"SMSF", "ABN":"53004085616", "EmployerNumber":"9876543", "BSB":"324324", "AccountNumber":"234234234", "AccountName":"My Checking", "UpdatedDateUTC":"\/Date(1573571429000+0000)\/", "ElectronicServiceAddress":"FG48739" } ] }
GET Retrieves a timesheet by using a unique timesheet id
{{baseUrl}}/Timesheets/:TimesheetID
QUERY PARAMS

TimesheetID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Timesheets/:TimesheetID");

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

(client/get "{{baseUrl}}/Timesheets/:TimesheetID")
require "http/client"

url = "{{baseUrl}}/Timesheets/:TimesheetID"

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}}/Timesheets/:TimesheetID"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Timesheets/:TimesheetID");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Timesheets/:TimesheetID"

	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/Timesheets/:TimesheetID HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/Timesheets/:TimesheetID")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Timesheets/:TimesheetID"))
    .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}}/Timesheets/:TimesheetID")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Timesheets/:TimesheetID")
  .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}}/Timesheets/:TimesheetID');

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

const options = {method: 'GET', url: '{{baseUrl}}/Timesheets/:TimesheetID'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Timesheets/:TimesheetID';
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}}/Timesheets/:TimesheetID',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Timesheets/:TimesheetID")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Timesheets/:TimesheetID',
  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}}/Timesheets/:TimesheetID'};

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

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

const req = unirest('GET', '{{baseUrl}}/Timesheets/:TimesheetID');

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}}/Timesheets/:TimesheetID'};

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

const url = '{{baseUrl}}/Timesheets/:TimesheetID';
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}}/Timesheets/:TimesheetID"]
                                                       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}}/Timesheets/:TimesheetID" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Timesheets/:TimesheetID",
  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}}/Timesheets/:TimesheetID');

echo $response->getBody();
setUrl('{{baseUrl}}/Timesheets/:TimesheetID');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Timesheets/:TimesheetID');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Timesheets/:TimesheetID' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Timesheets/:TimesheetID' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Timesheets/:TimesheetID")

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

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

url = "{{baseUrl}}/Timesheets/:TimesheetID"

response = requests.get(url)

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

url <- "{{baseUrl}}/Timesheets/:TimesheetID"

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

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

url = URI("{{baseUrl}}/Timesheets/:TimesheetID")

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/Timesheets/:TimesheetID') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Timesheets/:TimesheetID";

    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}}/Timesheets/:TimesheetID
http GET {{baseUrl}}/Timesheets/:TimesheetID
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Timesheets/:TimesheetID
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Timesheets/:TimesheetID")! 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

{ "Id":"34f58840-6f35-442a-9da7-a487265a7767", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573516184161)\/", "Timesheet":{ "TimesheetID":"df954ca3-3a70-47e9-9a3e-80711e7c5f90", "EmployeeID":"b34e89ff-770d-4099-b7e5-f968767118bc", "StartDate":"\/Date(1547164800000+0000)\/", "EndDate":"\/Date(1547683200000+0000)\/", "Status":"APPROVED", "Hours":15.0000, "TimesheetLines":[ { "EarningsRateID":"ab874dfb-ab09-4c91-954e-43acf6fc23b4", "NumberOfUnits":[ 3.00, 3.00, 3.00, 3.00, 0.00, 3.00, 0.00 ], "UpdatedDateUTC":"\/Date(1572915797000+0000)\/" } ], "UpdatedDateUTC":"\/Date(1572915797000+0000)\/" } }
GET Retrieves an employee's detail by unique employee id
{{baseUrl}}/Employees/:EmployeeID
QUERY PARAMS

EmployeeID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Employees/:EmployeeID");

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

(client/get "{{baseUrl}}/Employees/:EmployeeID")
require "http/client"

url = "{{baseUrl}}/Employees/:EmployeeID"

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}}/Employees/:EmployeeID"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Employees/:EmployeeID");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Employees/:EmployeeID"

	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/Employees/:EmployeeID HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/Employees/:EmployeeID")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Employees/:EmployeeID"))
    .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}}/Employees/:EmployeeID")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Employees/:EmployeeID")
  .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}}/Employees/:EmployeeID');

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

const options = {method: 'GET', url: '{{baseUrl}}/Employees/:EmployeeID'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Employees/:EmployeeID';
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}}/Employees/:EmployeeID',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Employees/:EmployeeID")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Employees/:EmployeeID',
  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}}/Employees/:EmployeeID'};

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

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

const req = unirest('GET', '{{baseUrl}}/Employees/:EmployeeID');

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}}/Employees/:EmployeeID'};

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

const url = '{{baseUrl}}/Employees/:EmployeeID';
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}}/Employees/:EmployeeID"]
                                                       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}}/Employees/:EmployeeID" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Employees/:EmployeeID",
  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}}/Employees/:EmployeeID');

echo $response->getBody();
setUrl('{{baseUrl}}/Employees/:EmployeeID');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Employees/:EmployeeID');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Employees/:EmployeeID' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Employees/:EmployeeID' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Employees/:EmployeeID")

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

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

url = "{{baseUrl}}/Employees/:EmployeeID"

response = requests.get(url)

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

url <- "{{baseUrl}}/Employees/:EmployeeID"

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

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

url = URI("{{baseUrl}}/Employees/:EmployeeID")

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/Employees/:EmployeeID') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Employees/:EmployeeID";

    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}}/Employees/:EmployeeID
http GET {{baseUrl}}/Employees/:EmployeeID
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Employees/:EmployeeID
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Employees/:EmployeeID")! 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

{ "Id": "ff00117e-75d1-4cc3-961c-13fc37b65e01", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573623316150)/", "Employees": [ { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "Title": "Mr.", "FirstName": "Albus", "MiddleNames": "Frank", "LastName": "Dumbledore", "Status": "ACTIVE", "Email": "albus39608@hogwarts.edu", "DateOfBirth": "/Date(321494400000+0000)/", "JobTitle": "Regional Manager", "Gender": "M", "HomeAddress": { "AddressLine1": "101 Green St", "City": "Island Bay", "Region": "NSW", "PostalCode": "6023", "Country": "AUSTRALIA" }, "Phone": "444-2323", "Mobile": "555-1212", "StartDate": "/Date(321494400000+0000)/", "Classification": "corporate", "OrdinaryEarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "PayrollCalendarID": "78bb86b9-e1ea-47ac-b75d-f087a81931de", "UpdatedDateUTC": "/Date(1573623306000+0000)/", "EmployeeGroupName": "foo", "IsAuthorisedToApproveLeave": true, "IsAuthorisedToApproveTimesheets": true, "TaxDeclaration": { "AustralianResidentForTaxPurposes": true, "TaxFreeThresholdClaimed": true, "HasHELPDebt": false, "HasSFSSDebt": false, "EligibleToReceiveLeaveLoading": false, "UpdatedDateUTC": "/Date(1573623306000+0000)/", "HasStudentStartupLoan": false, "ResidencyStatus": "AUSTRALIANRESIDENT" }, "BankAccounts": [], "OpeningBalances": { "OpeningBalanceDate": "/Date(1573603200000+0000)/", "EarningsLines": [], "DeductionLines": [], "SuperLines": [], "ReimbursementLines": [], "LeaveLines": [ { "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "NumberOfUnits": 10 } ] }, "PayTemplate": { "EarningsLines": [ { "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "CalculationType": "USEEARNINGSRATE", "NormalNumberOfUnits": 3 } ], "DeductionLines": [ { "DeductionTypeID": "ed05ea82-e40a-4eb6-9c2e-4b3c03e7e938", "CalculationType": "FIXEDAMOUNT", "Amount": 4 } ], "SuperLines": [ { "ContributionType": "SGC", "CalculationType": "STATUTORY", "MinimumMonthlyEarnings": 450, "ExpenseAccountCode": "478", "LiabilityAccountCode": "826" } ], "ReimbursementLines": [ { "ReimbursementTypeID": "aa8cfa40-d872-4be0-8a94-bb7f00962f74", "Description": "boo", "Amount": 55 } ], "LeaveLines": [ { "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "CalculationType": "FIXEDAMOUNTEACHPERIOD", "AnnualNumberOfUnits": 4, "EntitlementFinalPayPayoutType": "NOTPAIDOUT" } ] }, "SuperMemberships": [], "LeaveBalances": [ { "LeaveName": "Carer Leave (unpaid)", "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "NumberOfUnits": 10, "TypeOfUnits": "Hours" } ] } ] }
GET Retrieves for a payslip by a unique payslip id
{{baseUrl}}/Payslip/:PayslipID
QUERY PARAMS

PayslipID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Payslip/:PayslipID");

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

(client/get "{{baseUrl}}/Payslip/:PayslipID")
require "http/client"

url = "{{baseUrl}}/Payslip/:PayslipID"

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}}/Payslip/:PayslipID"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Payslip/:PayslipID");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Payslip/:PayslipID"

	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/Payslip/:PayslipID HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/Payslip/:PayslipID")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Payslip/:PayslipID"))
    .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}}/Payslip/:PayslipID")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Payslip/:PayslipID")
  .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}}/Payslip/:PayslipID');

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

const options = {method: 'GET', url: '{{baseUrl}}/Payslip/:PayslipID'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Payslip/:PayslipID';
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}}/Payslip/:PayslipID',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Payslip/:PayslipID")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Payslip/:PayslipID',
  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}}/Payslip/:PayslipID'};

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

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

const req = unirest('GET', '{{baseUrl}}/Payslip/:PayslipID');

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}}/Payslip/:PayslipID'};

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

const url = '{{baseUrl}}/Payslip/:PayslipID';
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}}/Payslip/:PayslipID"]
                                                       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}}/Payslip/:PayslipID" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Payslip/:PayslipID",
  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}}/Payslip/:PayslipID');

echo $response->getBody();
setUrl('{{baseUrl}}/Payslip/:PayslipID');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Payslip/:PayslipID');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Payslip/:PayslipID' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Payslip/:PayslipID' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Payslip/:PayslipID")

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

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

url = "{{baseUrl}}/Payslip/:PayslipID"

response = requests.get(url)

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

url <- "{{baseUrl}}/Payslip/:PayslipID"

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

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

url = URI("{{baseUrl}}/Payslip/:PayslipID")

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/Payslip/:PayslipID') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Payslip/:PayslipID";

    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}}/Payslip/:PayslipID
http GET {{baseUrl}}/Payslip/:PayslipID
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Payslip/:PayslipID
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Payslip/:PayslipID")! 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

{ "Id": "cd64816e-af39-4708-879c-4b6c8061abb2", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573692677622)/", "Payslip": { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "PayslipID": "c81e8bcc-56b0-4740-b46b-767753a6ee45", "FirstName": "Albus", "LastName": "Dumbledore", "Tax": 0, "NetPay": 1.4, "UpdatedDateUTC": "/Date(1573692155000+0000)/", "EarningsLines": [ { "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "RatePerUnit": 3, "NumberOfUnits": 1.8 } ], "LeaveEarningsLines": [ { "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "RatePerUnit": 0, "NumberOfUnits": 0.6 }, { "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "RatePerUnit": 0, "NumberOfUnits": 0.6 } ], "TimesheetEarningsLines": [], "DeductionLines": [ { "Amount": 4, "CalculationType": "FIXEDAMOUNT", "DeductionTypeID": "ed05ea82-e40a-4eb6-9c2e-4b3c03e7e938" } ], "LeaveAccrualLines": [ { "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "NumberOfUnits": 0.0769, "AutoCalculate": true } ], "ReimbursementLines": [ { "ReimbursementTypeID": "aa8cfa40-d872-4be0-8a94-bb7f00962f74", "Description": "boo", "ExpenseAccount": "850", "Amount": 55 } ], "SuperannuationLines": [ { "ContributionType": "SGC", "CalculationType": "STATUTORY", "MinimumMonthlyEarnings": 450, "ExpenseAccountCode": "478", "LiabilityAccountCode": "826", "PaymentDateForThisPeriod": "/Date(1580169600000+0000)/", "Amount": 0 } ], "TaxLines": [ { "PayslipTaxLineID": "c129696e-36ef-4677-a54c-96095787ca20", "TaxTypeName": "PAYG Tax", "Description": "No tax file number (Australian resident)", "Amount": 0, "LiabilityAccount": "825" } ] } }
GET Retrieves leave applications
{{baseUrl}}/LeaveApplications
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/LeaveApplications");

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

(client/get "{{baseUrl}}/LeaveApplications")
require "http/client"

url = "{{baseUrl}}/LeaveApplications"

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}}/LeaveApplications"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/LeaveApplications");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/LeaveApplications"

	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/LeaveApplications HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/LeaveApplications"))
    .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}}/LeaveApplications")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/LeaveApplications")
  .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}}/LeaveApplications');

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

const options = {method: 'GET', url: '{{baseUrl}}/LeaveApplications'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/LeaveApplications';
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}}/LeaveApplications',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/LeaveApplications")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/LeaveApplications',
  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}}/LeaveApplications'};

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

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

const req = unirest('GET', '{{baseUrl}}/LeaveApplications');

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}}/LeaveApplications'};

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

const url = '{{baseUrl}}/LeaveApplications';
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}}/LeaveApplications"]
                                                       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}}/LeaveApplications" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/LeaveApplications",
  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}}/LeaveApplications');

echo $response->getBody();
setUrl('{{baseUrl}}/LeaveApplications');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/LeaveApplications');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/LeaveApplications' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/LeaveApplications' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/LeaveApplications")

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

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

url = "{{baseUrl}}/LeaveApplications"

response = requests.get(url)

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

url <- "{{baseUrl}}/LeaveApplications"

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

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

url = URI("{{baseUrl}}/LeaveApplications")

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/LeaveApplications') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/LeaveApplications";

    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}}/LeaveApplications
http GET {{baseUrl}}/LeaveApplications
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/LeaveApplications
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/LeaveApplications")! 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

{ "Id": "5d31168a-5024-401d-9531-6902064b3fcb", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573679791199)/", "LeaveApplications": [ { "LeaveApplicationID": "1d4cd583-0107-4386-936b-672eb3d1f624", "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "LeavePeriods": [ { "PayPeriodStartDate": "/Date(1573171200000+0000)/", "PayPeriodEndDate": "/Date(1573689600000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0 } ], "Title": "vacation", "StartDate": "/Date(1573516800000+0000)/", "EndDate": "/Date(1573516800000+0000)/", "UpdatedDateUTC": "/Date(1573623008000+0000)/" }, { "LeaveApplicationID": "62b90465-66e9-4c3a-8151-de1e6335554d", "EmployeeID": "b34e89ff-770d-4099-b7e5-f968767118bc", "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "LeavePeriods": [ { "PayPeriodStartDate": "/Date(1571961600000+0000)/", "PayPeriodEndDate": "/Date(1572480000000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0 }, { "PayPeriodStartDate": "/Date(1572566400000+0000)/", "PayPeriodEndDate": "/Date(1573084800000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0 } ], "Title": "Yep Carer Leave", "Description": "My updated Description", "StartDate": "/Date(1572559200000+0000)/", "EndDate": "/Date(1572645600000+0000)/", "UpdatedDateUTC": "/Date(1573447344000+0000)/" }, { "LeaveApplicationID": "e8bd9eeb-18c9-4475-9c81-b298f9aa26c0", "EmployeeID": "b34e89ff-770d-4099-b7e5-f968767118bc", "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "LeavePeriods": [ { "PayPeriodStartDate": "/Date(1571961600000+0000)/", "PayPeriodEndDate": "/Date(1572480000000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0 }, { "PayPeriodStartDate": "/Date(1572566400000+0000)/", "PayPeriodEndDate": "/Date(1573084800000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0 } ], "Title": "Hello World", "StartDate": "/Date(1572559200000+0000)/", "EndDate": "/Date(1572645600000+0000)/", "UpdatedDateUTC": "/Date(1573447343000+0000)/" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Retrieves pay items
{{baseUrl}}/PayItems
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayItems");

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

(client/get "{{baseUrl}}/PayItems")
require "http/client"

url = "{{baseUrl}}/PayItems"

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}}/PayItems"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/PayItems");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayItems"

	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/PayItems HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayItems"))
    .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}}/PayItems")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/PayItems")
  .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}}/PayItems');

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

const options = {method: 'GET', url: '{{baseUrl}}/PayItems'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayItems';
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}}/PayItems',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/PayItems")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/PayItems',
  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}}/PayItems'};

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

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

const req = unirest('GET', '{{baseUrl}}/PayItems');

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}}/PayItems'};

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

const url = '{{baseUrl}}/PayItems';
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}}/PayItems"]
                                                       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}}/PayItems" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayItems",
  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}}/PayItems');

echo $response->getBody();
setUrl('{{baseUrl}}/PayItems');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/PayItems');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/PayItems' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayItems' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/PayItems")

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

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

url = "{{baseUrl}}/PayItems"

response = requests.get(url)

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

url <- "{{baseUrl}}/PayItems"

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

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

url = URI("{{baseUrl}}/PayItems")

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/PayItems') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PayItems";

    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}}/PayItems
http GET {{baseUrl}}/PayItems
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/PayItems
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayItems")! 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

{ "Id": "add39c3e-f397-45fb-aa4f-af1095ec7f65", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573620869531)/", "PayItems": { "EarningsRates": [ { "EarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "Name": "Ordinary Hours", "EarningsType": "ORDINARYTIMEEARNINGS", "RateType": "RATEPERUNIT", "AccountCode": "477", "TypeOfUnits": "Hours", "RatePerUnit": 3, "IsExemptFromTax": true, "IsExemptFromSuper": true, "IsReportableAsW1": true, "UpdatedDateUTC": "/Date(1573620821000+0000)/", "CurrentRecord": true }, { "EarningsRateID": "dc3ff92e-0e49-4967-aa4b-0bb21c0594ce", "Name": "Overtime Hours (exempt from super)", "EarningsType": "OVERTIMEEARNINGS", "RateType": "RATEPERUNIT", "AccountCode": "477", "TypeOfUnits": "Hours", "IsExemptFromTax": false, "IsExemptFromSuper": true, "IsReportableAsW1": false, "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true }, { "EarningsRateID": "f59999ca-cd5c-4a54-a381-2d0c817f0c3e", "Name": "Redundancy", "EarningsType": "LUMPSUMD", "RateType": "FIXEDAMOUNT", "AccountCode": "477", "IsExemptFromTax": true, "IsExemptFromSuper": true, "IsReportableAsW1": true, "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true }, { "EarningsRateID": "c97dafac-9d99-406f-9f6c-abfaf81c527d", "Name": "ETP Leave Earning", "EarningsType": "EMPLOYMENTTERMINATIONPAYMENT", "RateType": "RATEPERUNIT", "AccountCode": "477", "TypeOfUnits": "Hours", "IsExemptFromTax": false, "IsExemptFromSuper": true, "IsReportableAsW1": true, "UpdatedDateUTC": "/Date(1573620791000+0000)/", "EmploymentTerminationPaymentType": "O", "CurrentRecord": true } ], "DeductionTypes": [ { "DeductionTypeID": "727af5e8-b347-4ae7-85fc-9b82266d0aec", "DeductionCategory": "UNIONFEES", "Name": "Union Fees/Subscriptions", "AccountCode": "850", "ReducesTax": false, "ReducesSuper": false, "IsExemptFromW1": false, "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true }, { "DeductionTypeID": "04191cd3-7952-4a87-9911-9d8575280f6a", "DeductionCategory": "NONE", "Name": "Lease Payments", "AccountCode": "850", "ReducesTax": true, "ReducesSuper": true, "IsExemptFromW1": false, "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true } ], "ReimbursementTypes": [ { "ReimbursementTypeID": "98ba33b2-db5b-4204-bcac-5ddd98d63524", "Name": "Travel Costs", "AccountCode": "850", "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true }, { "ReimbursementTypeID": "aa8cfa40-d872-4be0-8a94-bb7f00962f74", "Name": "Other Reimbursable Costs", "AccountCode": "850", "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true } ], "LeaveTypes": [ { "LeaveTypeID": "fbcc9dab-6238-43d9-a3f4-d768423fdcfa", "Name": "Annual Leave", "TypeOfUnits": "Hours", "NormalEntitlement": 152, "LeaveLoadingRate": 1.0, "IsPaidLeave": true, "ShowOnPayslip": true, "UpdatedDateUTC": "/Date(1573620853000+0000)/", "CurrentRecord": true }, { "LeaveTypeID": "74195ab2-1f2b-4136-8ddc-20387a0b1027", "Name": "Long Service Leave", "TypeOfUnits": "Hours", "IsPaidLeave": true, "ShowOnPayslip": false, "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true }, { "LeaveTypeID": "ff4d16da-ae8a-4f57-acb3-9ee593996bce", "Name": "Parental Leave (unpaid)", "TypeOfUnits": "Hours", "IsPaidLeave": false, "ShowOnPayslip": false, "UpdatedDateUTC": "/Date(1547500330000+0000)/", "CurrentRecord": true } ] } }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Retrieves pay runs
{{baseUrl}}/PayRuns
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayRuns");

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

(client/get "{{baseUrl}}/PayRuns")
require "http/client"

url = "{{baseUrl}}/PayRuns"

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}}/PayRuns"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/PayRuns");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayRuns"

	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/PayRuns HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayRuns"))
    .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}}/PayRuns")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/PayRuns")
  .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}}/PayRuns');

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

const options = {method: 'GET', url: '{{baseUrl}}/PayRuns'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayRuns';
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}}/PayRuns',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/PayRuns")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/PayRuns',
  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}}/PayRuns'};

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

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

const req = unirest('GET', '{{baseUrl}}/PayRuns');

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}}/PayRuns'};

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

const url = '{{baseUrl}}/PayRuns';
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}}/PayRuns"]
                                                       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}}/PayRuns" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayRuns",
  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}}/PayRuns');

echo $response->getBody();
setUrl('{{baseUrl}}/PayRuns');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/PayRuns');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/PayRuns' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayRuns' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/PayRuns")

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

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

url = "{{baseUrl}}/PayRuns"

response = requests.get(url)

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

url <- "{{baseUrl}}/PayRuns"

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

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

url = URI("{{baseUrl}}/PayRuns")

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/PayRuns') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PayRuns";

    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}}/PayRuns
http GET {{baseUrl}}/PayRuns
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/PayRuns
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayRuns")! 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

{ "Id":"31a0c577-5cb0-4c19-a1f5-9f4d6de951d4", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573611063074)\/", "PayRuns":[ { "PayRunID":"5de420bb-4ad2-405c-beb1-2610bcc2144e", "PayrollCalendarID":"78bb86b9-e1ea-47ac-b75d-f087a81931de", "PayRunPeriodStartDate":"\/Date(1572566400000+0000)\/", "PayRunPeriodEndDate":"\/Date(1573084800000+0000)\/", "PaymentDate":"\/Date(1573171200000+0000)\/", "Wages":200.00, "Deductions":33.00, "Tax":78.00, "Super":0.00, "Reimbursement":22.00, "NetPay":89.00, "PayRunStatus":"POSTED", "UpdatedDateUTC":"\/Date(1573610970000+0000)\/" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Retrieves payroll calendar by using a unique payroll calendar ID
{{baseUrl}}/PayrollCalendars/:PayrollCalendarID
QUERY PARAMS

PayrollCalendarID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID");

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

(client/get "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID")
require "http/client"

url = "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID"

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}}/PayrollCalendars/:PayrollCalendarID"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/PayrollCalendars/:PayrollCalendarID");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID"

	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/PayrollCalendars/:PayrollCalendarID HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayrollCalendars/:PayrollCalendarID"))
    .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}}/PayrollCalendars/:PayrollCalendarID")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/PayrollCalendars/:PayrollCalendarID")
  .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}}/PayrollCalendars/:PayrollCalendarID');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/PayrollCalendars/:PayrollCalendarID'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayrollCalendars/:PayrollCalendarID';
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}}/PayrollCalendars/:PayrollCalendarID',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/PayrollCalendars/:PayrollCalendarID")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/PayrollCalendars/:PayrollCalendarID',
  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}}/PayrollCalendars/:PayrollCalendarID'
};

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

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

const req = unirest('GET', '{{baseUrl}}/PayrollCalendars/:PayrollCalendarID');

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}}/PayrollCalendars/:PayrollCalendarID'
};

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

const url = '{{baseUrl}}/PayrollCalendars/:PayrollCalendarID';
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}}/PayrollCalendars/:PayrollCalendarID"]
                                                       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}}/PayrollCalendars/:PayrollCalendarID" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID",
  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}}/PayrollCalendars/:PayrollCalendarID');

echo $response->getBody();
setUrl('{{baseUrl}}/PayrollCalendars/:PayrollCalendarID');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/PayrollCalendars/:PayrollCalendarID');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/PayrollCalendars/:PayrollCalendarID' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayrollCalendars/:PayrollCalendarID' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/PayrollCalendars/:PayrollCalendarID")

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

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

url = "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID"

response = requests.get(url)

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

url <- "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID"

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

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

url = URI("{{baseUrl}}/PayrollCalendars/:PayrollCalendarID")

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/PayrollCalendars/:PayrollCalendarID') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID";

    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}}/PayrollCalendars/:PayrollCalendarID
http GET {{baseUrl}}/PayrollCalendars/:PayrollCalendarID
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/PayrollCalendars/:PayrollCalendarID
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayrollCalendars/:PayrollCalendarID")! 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

{ "Id":"8283e501-2a7f-4080-b3c9-579a51b55b94", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573611453008)\/", "PayrollCalendars":[ { "PayrollCalendarID":"78bb86b9-e1ea-47ac-b75d-f087a81931de", "Name":"Sid Weekly", "CalendarType":"WEEKLY", "StartDate":"\/Date(1573171200000+0000)\/", "PaymentDate":"\/Date(1573776000000+0000)\/", "UpdatedDateUTC":"\/Date(1573077687000+0000)\/" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Retrieves payroll calendars
{{baseUrl}}/PayrollCalendars
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayrollCalendars");

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

(client/get "{{baseUrl}}/PayrollCalendars")
require "http/client"

url = "{{baseUrl}}/PayrollCalendars"

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}}/PayrollCalendars"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/PayrollCalendars");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayrollCalendars"

	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/PayrollCalendars HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayrollCalendars"))
    .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}}/PayrollCalendars")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/PayrollCalendars")
  .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}}/PayrollCalendars');

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

const options = {method: 'GET', url: '{{baseUrl}}/PayrollCalendars'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayrollCalendars';
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}}/PayrollCalendars',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/PayrollCalendars")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/PayrollCalendars',
  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}}/PayrollCalendars'};

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

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

const req = unirest('GET', '{{baseUrl}}/PayrollCalendars');

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}}/PayrollCalendars'};

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

const url = '{{baseUrl}}/PayrollCalendars';
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}}/PayrollCalendars"]
                                                       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}}/PayrollCalendars" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayrollCalendars",
  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}}/PayrollCalendars');

echo $response->getBody();
setUrl('{{baseUrl}}/PayrollCalendars');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/PayrollCalendars');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/PayrollCalendars' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayrollCalendars' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/PayrollCalendars")

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

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

url = "{{baseUrl}}/PayrollCalendars"

response = requests.get(url)

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

url <- "{{baseUrl}}/PayrollCalendars"

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

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

url = URI("{{baseUrl}}/PayrollCalendars")

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/PayrollCalendars') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PayrollCalendars";

    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}}/PayrollCalendars
http GET {{baseUrl}}/PayrollCalendars
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/PayrollCalendars
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayrollCalendars")! 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

{ "Id":"a89fb36b-c573-42d8-88db-a947cbd6af5a", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573611063408)\/", "PayrollCalendars":[ { "PayrollCalendarID":"78bb86b9-e1ea-47ac-b75d-f087a81931de", "Name":"Sid Weekly", "CalendarType":"WEEKLY", "StartDate":"\/Date(1573171200000+0000)\/", "PaymentDate":"\/Date(1573776000000+0000)\/", "UpdatedDateUTC":"\/Date(1573077687000+0000)\/" }, { "PayrollCalendarID":"22a05fc5-386d-4950-9842-3e7a6c812135", "Name":"Weekly", "CalendarType":"WEEKLY", "StartDate":"\/Date(1546560000000+0000)\/", "PaymentDate":"\/Date(1547164800000+0000)\/", "UpdatedDateUTC":"\/Date(1572916157000+0000)\/" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Retrieves payroll settings
{{baseUrl}}/Settings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Settings");

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

(client/get "{{baseUrl}}/Settings")
require "http/client"

url = "{{baseUrl}}/Settings"

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}}/Settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Settings"

	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/Settings HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Settings"))
    .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}}/Settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Settings")
  .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}}/Settings');

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

const options = {method: 'GET', url: '{{baseUrl}}/Settings'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Settings';
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}}/Settings',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Settings")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Settings',
  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}}/Settings'};

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

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

const req = unirest('GET', '{{baseUrl}}/Settings');

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}}/Settings'};

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

const url = '{{baseUrl}}/Settings';
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}}/Settings"]
                                                       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}}/Settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Settings",
  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}}/Settings');

echo $response->getBody();
setUrl('{{baseUrl}}/Settings');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Settings' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Settings")

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

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

url = "{{baseUrl}}/Settings"

response = requests.get(url)

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

url <- "{{baseUrl}}/Settings"

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

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

url = URI("{{baseUrl}}/Settings")

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/Settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Settings";

    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}}/Settings
http GET {{baseUrl}}/Settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Settings")! 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

{ "Id":"898a22ce-41d6-4553-b0b3-4cd486332dde", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573585252781)\/", "Settings":{ "Accounts":[ { "AccountID":"85bd2954-7ef5-4fbe-9e40-a1990d0fd63f", "Type":"BANK", "Code":"094", "Name":"Bank of A" }, { "AccountID":"7e65fa75-1c64-43d7-b0b4-c05f196e2190", "Type":"WAGESPAYABLELIABILITY", "Code":"804", "Name":"Wages Payable - Payroll" }, { "AccountID":"dbc164fa-0cdf-4848-92d3-0d1dc864c53f", "Type":"PAYGLIABILITY", "Code":"825", "Name":"PAYG Withholdings Payable" }, { "AccountID":"7dad84d4-bc7a-482e-99b1-d879e4856578", "Type":"SUPERANNUATIONEXPENSE", "Code":"478", "Name":"Superannuation" }, { "AccountID":"df3679fe-5ebc-42ce-a7ac-b4d36b520795", "Type":"SUPERANNUATIONLIABILITY", "Code":"826", "Name":"Superannuation Payable" }, { "AccountID":"7e130864-5864-4c60-94eb-3c53c95da138", "Type":"WAGESEXPENSE", "Code":"477", "Name":"Wages and Salaries" } ], "TrackingCategories":{ "EmployeeGroups":{ "TrackingCategoryID":"a28f419f-6ec3-4dcf-9be0-7959ea983630", "TrackingCategoryName":"Foo70317" }, "TimesheetCategories":{ "TrackingCategoryID":"89375aed-ed51-4624-9e5d-92db6bfa8974", "TrackingCategoryName":"Foo32551" } }, "DaysInPayrollYear":"364" } }
GET Retrieves superfund products
{{baseUrl}}/SuperfundProducts
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/SuperfundProducts");

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

(client/get "{{baseUrl}}/SuperfundProducts")
require "http/client"

url = "{{baseUrl}}/SuperfundProducts"

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}}/SuperfundProducts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/SuperfundProducts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/SuperfundProducts"

	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/SuperfundProducts HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/SuperfundProducts"))
    .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}}/SuperfundProducts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/SuperfundProducts")
  .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}}/SuperfundProducts');

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

const options = {method: 'GET', url: '{{baseUrl}}/SuperfundProducts'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/SuperfundProducts';
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}}/SuperfundProducts',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/SuperfundProducts")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/SuperfundProducts',
  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}}/SuperfundProducts'};

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

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

const req = unirest('GET', '{{baseUrl}}/SuperfundProducts');

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}}/SuperfundProducts'};

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

const url = '{{baseUrl}}/SuperfundProducts';
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}}/SuperfundProducts"]
                                                       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}}/SuperfundProducts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/SuperfundProducts",
  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}}/SuperfundProducts');

echo $response->getBody();
setUrl('{{baseUrl}}/SuperfundProducts');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/SuperfundProducts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/SuperfundProducts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/SuperfundProducts' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/SuperfundProducts")

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

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

url = "{{baseUrl}}/SuperfundProducts"

response = requests.get(url)

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

url <- "{{baseUrl}}/SuperfundProducts"

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

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

url = URI("{{baseUrl}}/SuperfundProducts")

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/SuperfundProducts') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/SuperfundProducts";

    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}}/SuperfundProducts
http GET {{baseUrl}}/SuperfundProducts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/SuperfundProducts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/SuperfundProducts")! 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

{ "Id":"d1c101ee-2fd8-47a3-ad3d-bbc64139181c", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573570720295)\/", "SuperFundProducts":[ { "USI":"OSF0001AU", "ABN":"24248426878", "ProductName":"Accumulate Plus (Commonwealth Bank Group Super)" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Retrieves superfunds
{{baseUrl}}/Superfunds
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Superfunds");

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

(client/get "{{baseUrl}}/Superfunds")
require "http/client"

url = "{{baseUrl}}/Superfunds"

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}}/Superfunds"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Superfunds");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Superfunds"

	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/Superfunds HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Superfunds"))
    .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}}/Superfunds")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Superfunds")
  .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}}/Superfunds');

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

const options = {method: 'GET', url: '{{baseUrl}}/Superfunds'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Superfunds';
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}}/Superfunds',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Superfunds")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Superfunds',
  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}}/Superfunds'};

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

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

const req = unirest('GET', '{{baseUrl}}/Superfunds');

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}}/Superfunds'};

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

const url = '{{baseUrl}}/Superfunds';
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}}/Superfunds"]
                                                       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}}/Superfunds" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Superfunds",
  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}}/Superfunds');

echo $response->getBody();
setUrl('{{baseUrl}}/Superfunds');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Superfunds');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Superfunds' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Superfunds' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Superfunds")

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

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

url = "{{baseUrl}}/Superfunds"

response = requests.get(url)

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

url <- "{{baseUrl}}/Superfunds"

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

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

url = URI("{{baseUrl}}/Superfunds")

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/Superfunds') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Superfunds";

    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}}/Superfunds
http GET {{baseUrl}}/Superfunds
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Superfunds
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Superfunds")! 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

{ "Id":"c5f5e907-e562-463c-b15c-1d6185fbb779", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573570941142)\/", "SuperFunds":[ { "SuperFundID":"fde8e070-bf59-4e56-b1d7-c75a09474b8d", "Name":"Accumulate Plus (Commonwealth Bank Group Super)", "Type":"REGULATED", "USI":"OSF0001AU", "UpdatedDateUTC":"\/Date(1573510468000+0000)\/" }, { "SuperFundID":"69079de5-67ef-43bb-b5a5-3e7c2ccad7f0", "Name":"AMG Super", "Type":"REGULATED", "USI":"PTC0133AU", "UpdatedDateUTC":"\/Date(1573490487000+0000)\/" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Retrieves timesheets
{{baseUrl}}/Timesheets
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Timesheets");

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

(client/get "{{baseUrl}}/Timesheets")
require "http/client"

url = "{{baseUrl}}/Timesheets"

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}}/Timesheets"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Timesheets");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Timesheets"

	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/Timesheets HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Timesheets"))
    .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}}/Timesheets")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Timesheets")
  .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}}/Timesheets');

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

const options = {method: 'GET', url: '{{baseUrl}}/Timesheets'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Timesheets';
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}}/Timesheets',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Timesheets")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Timesheets',
  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}}/Timesheets'};

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

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

const req = unirest('GET', '{{baseUrl}}/Timesheets');

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}}/Timesheets'};

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

const url = '{{baseUrl}}/Timesheets';
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}}/Timesheets"]
                                                       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}}/Timesheets" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Timesheets",
  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}}/Timesheets');

echo $response->getBody();
setUrl('{{baseUrl}}/Timesheets');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Timesheets');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Timesheets' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Timesheets' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Timesheets")

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

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

url = "{{baseUrl}}/Timesheets"

response = requests.get(url)

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

url <- "{{baseUrl}}/Timesheets"

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

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

url = URI("{{baseUrl}}/Timesheets")

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/Timesheets') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Timesheets";

    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}}/Timesheets
http GET {{baseUrl}}/Timesheets
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Timesheets
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Timesheets")! 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

{ "Id":"581271e7-d02d-4966-ae6c-2a4fb9c48e5a", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573516183708)\/", "Timesheets":[ { "TimesheetID":"863bbd31-0447-4419-80d5-d733d5e723ba", "EmployeeID":"b34e89ff-770d-4099-b7e5-f968767118bc", "StartDate":"\/Date(1547769600000)\/", "EndDate":"\/Date(1548288000000)\/", "Status":"APPROVED", "Hours":24.0000, "TimesheetLines":[ { "EarningsRateID":"ab874dfb-ab09-4c91-954e-43acf6fc23b4", "NumberOfUnits":[ 4.00, 4.00, 4.00, 4.00, 4.00, 4.00, 0.00 ], "UpdatedDateUTC":"\/Date(1572915827000+0000)\/" } ], "UpdatedDateUTC":"\/Date(1572915827000+0000)\/" }, { "TimesheetID":"544eb3a7-0d63-495b-90ae-f6aa3c26c2c8", "EmployeeID":"7aa04979-ded5-44d9-b09a-793749425844", "StartDate":"\/Date(1572566400000)\/", "EndDate":"\/Date(1573084800000)\/", "Status":"APPROVED", "Hours":10.0000, "TimesheetLines":[ { "EarningsRateID":"ab874dfb-ab09-4c91-954e-43acf6fc23b4", "NumberOfUnits":[ 2.00, 2.00, 2.00, 2.00, 2.00, 0.00, 0.00 ], "UpdatedDateUTC":"\/Date(1572916045000+0000)\/" } ], "UpdatedDateUTC":"\/Date(1572916045000+0000)\/" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
GET Searches payroll employees
{{baseUrl}}/Employees
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Employees");

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

(client/get "{{baseUrl}}/Employees")
require "http/client"

url = "{{baseUrl}}/Employees"

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}}/Employees"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/Employees");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Employees"

	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/Employees HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Employees"))
    .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}}/Employees")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/Employees")
  .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}}/Employees');

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

const options = {method: 'GET', url: '{{baseUrl}}/Employees'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Employees';
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}}/Employees',
  method: 'GET',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/Employees")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/Employees',
  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}}/Employees'};

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

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

const req = unirest('GET', '{{baseUrl}}/Employees');

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}}/Employees'};

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

const url = '{{baseUrl}}/Employees';
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}}/Employees"]
                                                       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}}/Employees" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Employees",
  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}}/Employees');

echo $response->getBody();
setUrl('{{baseUrl}}/Employees');
$request->setMethod(HTTP_METH_GET);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/Employees');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/Employees' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Employees' -Method GET 
import http.client

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

conn.request("GET", "/baseUrl/Employees")

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

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

url = "{{baseUrl}}/Employees"

response = requests.get(url)

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

url <- "{{baseUrl}}/Employees"

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

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

url = URI("{{baseUrl}}/Employees")

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/Employees') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/Employees";

    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}}/Employees
http GET {{baseUrl}}/Employees
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/Employees
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Employees")! 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

{ "Id": "b22392ec-a288-4258-ba55-87921d0ed63f", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573621523465)/", "Employees": [ { "EmployeeID": "b34e89ff-770d-4099-b7e5-f968767118bc", "FirstName": "Jack", "MiddleNames": "Johnson", "LastName": "Sparrow", "Status": "ACTIVE", "Email": "jack.sparrow@xero.com", "DateOfBirth": "/Date(572313600000+0000)/", "Gender": "M", "Phone": "4153332323", "Mobile": "415-1234567", "StartDate": "/Date(1547164800000+0000)/", "OrdinaryEarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "PayrollCalendarID": "22a05fc5-386d-4950-9842-3e7a6c812135", "UpdatedDateUTC": "/Date(1572915814000+0000)/" }, { "EmployeeID": "7aa04979-ded5-44d9-b09a-793749425844", "FirstName": "John", "LastName": "Smith", "Status": "ACTIVE", "Email": "john.smith@xero.com", "DateOfBirth": "/Date(315619200000+0000)/", "Gender": "M", "StartDate": "/Date(1572566400000+0000)/", "OrdinaryEarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "PayrollCalendarID": "78bb86b9-e1ea-47ac-b75d-f087a81931de", "UpdatedDateUTC": "/Date(1572916028000+0000)/" } ] }
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "ErrorNumber": 16,
  "Message": "No property or field 'hi' exists in type 'Employee' (at index 0)",
  "Type": "QueryParseException"
}
POST Updates a pay run
{{baseUrl}}/PayRuns/:PayRunID
QUERY PARAMS

PayRunID
BODY json

[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/PayRuns/:PayRunID");

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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]");

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

(client/post "{{baseUrl}}/PayRuns/:PayRunID" {:content-type :json
                                                              :form-params [{:Deductions ""
                                                                             :NetPay ""
                                                                             :PayRunID ""
                                                                             :PayRunPeriodEndDate ""
                                                                             :PayRunPeriodStartDate ""
                                                                             :PayRunStatus ""
                                                                             :PaymentDate ""
                                                                             :PayrollCalendarID ""
                                                                             :PayslipMessage ""
                                                                             :Payslips [{:Deductions ""
                                                                                         :EmployeeGroup ""
                                                                                         :EmployeeID ""
                                                                                         :FirstName ""
                                                                                         :LastName ""
                                                                                         :NetPay ""
                                                                                         :PayslipID ""
                                                                                         :Reimbursements ""
                                                                                         :Super ""
                                                                                         :Tax ""
                                                                                         :UpdatedDateUTC ""
                                                                                         :Wages ""}]
                                                                             :Reimbursement ""
                                                                             :Super ""
                                                                             :Tax ""
                                                                             :UpdatedDateUTC ""
                                                                             :ValidationErrors [{:Message ""}]
                                                                             :Wages ""}]})
require "http/client"

url = "{{baseUrl}}/PayRuns/:PayRunID"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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}}/PayRuns/:PayRunID"),
    Content = new StringContent("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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}}/PayRuns/:PayRunID");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/PayRuns/:PayRunID"

	payload := strings.NewReader("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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/PayRuns/:PayRunID HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 745

[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/PayRuns/:PayRunID")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/PayRuns/:PayRunID"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/PayRuns/:PayRunID")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/PayRuns/:PayRunID")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    Deductions: '',
    NetPay: '',
    PayRunID: '',
    PayRunPeriodEndDate: '',
    PayRunPeriodStartDate: '',
    PayRunStatus: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    PayslipMessage: '',
    Payslips: [
      {
        Deductions: '',
        EmployeeGroup: '',
        EmployeeID: '',
        FirstName: '',
        LastName: '',
        NetPay: '',
        PayslipID: '',
        Reimbursements: '',
        Super: '',
        Tax: '',
        UpdatedDateUTC: '',
        Wages: ''
      }
    ],
    Reimbursement: '',
    Super: '',
    Tax: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ],
    Wages: ''
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/PayRuns/:PayRunID');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayRuns/:PayRunID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Deductions: '',
      NetPay: '',
      PayRunID: '',
      PayRunPeriodEndDate: '',
      PayRunPeriodStartDate: '',
      PayRunStatus: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      PayslipMessage: '',
      Payslips: [
        {
          Deductions: '',
          EmployeeGroup: '',
          EmployeeID: '',
          FirstName: '',
          LastName: '',
          NetPay: '',
          PayslipID: '',
          Reimbursements: '',
          Super: '',
          Tax: '',
          UpdatedDateUTC: '',
          Wages: ''
        }
      ],
      Reimbursement: '',
      Super: '',
      Tax: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}],
      Wages: ''
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/PayRuns/:PayRunID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Deductions":"","NetPay":"","PayRunID":"","PayRunPeriodEndDate":"","PayRunPeriodStartDate":"","PayRunStatus":"","PaymentDate":"","PayrollCalendarID":"","PayslipMessage":"","Payslips":[{"Deductions":"","EmployeeGroup":"","EmployeeID":"","FirstName":"","LastName":"","NetPay":"","PayslipID":"","Reimbursements":"","Super":"","Tax":"","UpdatedDateUTC":"","Wages":""}],"Reimbursement":"","Super":"","Tax":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}],"Wages":""}]'
};

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}}/PayRuns/:PayRunID',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "Deductions": "",\n    "NetPay": "",\n    "PayRunID": "",\n    "PayRunPeriodEndDate": "",\n    "PayRunPeriodStartDate": "",\n    "PayRunStatus": "",\n    "PaymentDate": "",\n    "PayrollCalendarID": "",\n    "PayslipMessage": "",\n    "Payslips": [\n      {\n        "Deductions": "",\n        "EmployeeGroup": "",\n        "EmployeeID": "",\n        "FirstName": "",\n        "LastName": "",\n        "NetPay": "",\n        "PayslipID": "",\n        "Reimbursements": "",\n        "Super": "",\n        "Tax": "",\n        "UpdatedDateUTC": "",\n        "Wages": ""\n      }\n    ],\n    "Reimbursement": "",\n    "Super": "",\n    "Tax": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ],\n    "Wages": ""\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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/PayRuns/:PayRunID")
  .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/PayRuns/:PayRunID',
  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([
  {
    Deductions: '',
    NetPay: '',
    PayRunID: '',
    PayRunPeriodEndDate: '',
    PayRunPeriodStartDate: '',
    PayRunStatus: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    PayslipMessage: '',
    Payslips: [
      {
        Deductions: '',
        EmployeeGroup: '',
        EmployeeID: '',
        FirstName: '',
        LastName: '',
        NetPay: '',
        PayslipID: '',
        Reimbursements: '',
        Super: '',
        Tax: '',
        UpdatedDateUTC: '',
        Wages: ''
      }
    ],
    Reimbursement: '',
    Super: '',
    Tax: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}],
    Wages: ''
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/PayRuns/:PayRunID',
  headers: {'content-type': 'application/json'},
  body: [
    {
      Deductions: '',
      NetPay: '',
      PayRunID: '',
      PayRunPeriodEndDate: '',
      PayRunPeriodStartDate: '',
      PayRunStatus: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      PayslipMessage: '',
      Payslips: [
        {
          Deductions: '',
          EmployeeGroup: '',
          EmployeeID: '',
          FirstName: '',
          LastName: '',
          NetPay: '',
          PayslipID: '',
          Reimbursements: '',
          Super: '',
          Tax: '',
          UpdatedDateUTC: '',
          Wages: ''
        }
      ],
      Reimbursement: '',
      Super: '',
      Tax: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}],
      Wages: ''
    }
  ],
  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}}/PayRuns/:PayRunID');

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

req.type('json');
req.send([
  {
    Deductions: '',
    NetPay: '',
    PayRunID: '',
    PayRunPeriodEndDate: '',
    PayRunPeriodStartDate: '',
    PayRunStatus: '',
    PaymentDate: '',
    PayrollCalendarID: '',
    PayslipMessage: '',
    Payslips: [
      {
        Deductions: '',
        EmployeeGroup: '',
        EmployeeID: '',
        FirstName: '',
        LastName: '',
        NetPay: '',
        PayslipID: '',
        Reimbursements: '',
        Super: '',
        Tax: '',
        UpdatedDateUTC: '',
        Wages: ''
      }
    ],
    Reimbursement: '',
    Super: '',
    Tax: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ],
    Wages: ''
  }
]);

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}}/PayRuns/:PayRunID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Deductions: '',
      NetPay: '',
      PayRunID: '',
      PayRunPeriodEndDate: '',
      PayRunPeriodStartDate: '',
      PayRunStatus: '',
      PaymentDate: '',
      PayrollCalendarID: '',
      PayslipMessage: '',
      Payslips: [
        {
          Deductions: '',
          EmployeeGroup: '',
          EmployeeID: '',
          FirstName: '',
          LastName: '',
          NetPay: '',
          PayslipID: '',
          Reimbursements: '',
          Super: '',
          Tax: '',
          UpdatedDateUTC: '',
          Wages: ''
        }
      ],
      Reimbursement: '',
      Super: '',
      Tax: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}],
      Wages: ''
    }
  ]
};

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

const url = '{{baseUrl}}/PayRuns/:PayRunID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Deductions":"","NetPay":"","PayRunID":"","PayRunPeriodEndDate":"","PayRunPeriodStartDate":"","PayRunStatus":"","PaymentDate":"","PayrollCalendarID":"","PayslipMessage":"","Payslips":[{"Deductions":"","EmployeeGroup":"","EmployeeID":"","FirstName":"","LastName":"","NetPay":"","PayslipID":"","Reimbursements":"","Super":"","Tax":"","UpdatedDateUTC":"","Wages":""}],"Reimbursement":"","Super":"","Tax":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}],"Wages":""}]'
};

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 = @[ @{ @"Deductions": @"", @"NetPay": @"", @"PayRunID": @"", @"PayRunPeriodEndDate": @"", @"PayRunPeriodStartDate": @"", @"PayRunStatus": @"", @"PaymentDate": @"", @"PayrollCalendarID": @"", @"PayslipMessage": @"", @"Payslips": @[ @{ @"Deductions": @"", @"EmployeeGroup": @"", @"EmployeeID": @"", @"FirstName": @"", @"LastName": @"", @"NetPay": @"", @"PayslipID": @"", @"Reimbursements": @"", @"Super": @"", @"Tax": @"", @"UpdatedDateUTC": @"", @"Wages": @"" } ], @"Reimbursement": @"", @"Super": @"", @"Tax": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ], @"Wages": @"" } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/PayRuns/:PayRunID"]
                                                       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}}/PayRuns/:PayRunID" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/PayRuns/:PayRunID",
  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([
    [
        'Deductions' => '',
        'NetPay' => '',
        'PayRunID' => '',
        'PayRunPeriodEndDate' => '',
        'PayRunPeriodStartDate' => '',
        'PayRunStatus' => '',
        'PaymentDate' => '',
        'PayrollCalendarID' => '',
        'PayslipMessage' => '',
        'Payslips' => [
                [
                                'Deductions' => '',
                                'EmployeeGroup' => '',
                                'EmployeeID' => '',
                                'FirstName' => '',
                                'LastName' => '',
                                'NetPay' => '',
                                'PayslipID' => '',
                                'Reimbursements' => '',
                                'Super' => '',
                                'Tax' => '',
                                'UpdatedDateUTC' => '',
                                'Wages' => ''
                ]
        ],
        'Reimbursement' => '',
        'Super' => '',
        'Tax' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ],
        'Wages' => ''
    ]
  ]),
  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}}/PayRuns/:PayRunID', [
  'body' => '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/PayRuns/:PayRunID');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'Deductions' => '',
    'NetPay' => '',
    'PayRunID' => '',
    'PayRunPeriodEndDate' => '',
    'PayRunPeriodStartDate' => '',
    'PayRunStatus' => '',
    'PaymentDate' => '',
    'PayrollCalendarID' => '',
    'PayslipMessage' => '',
    'Payslips' => [
        [
                'Deductions' => '',
                'EmployeeGroup' => '',
                'EmployeeID' => '',
                'FirstName' => '',
                'LastName' => '',
                'NetPay' => '',
                'PayslipID' => '',
                'Reimbursements' => '',
                'Super' => '',
                'Tax' => '',
                'UpdatedDateUTC' => '',
                'Wages' => ''
        ]
    ],
    'Reimbursement' => '',
    'Super' => '',
    'Tax' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ],
    'Wages' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'Deductions' => '',
    'NetPay' => '',
    'PayRunID' => '',
    'PayRunPeriodEndDate' => '',
    'PayRunPeriodStartDate' => '',
    'PayRunStatus' => '',
    'PaymentDate' => '',
    'PayrollCalendarID' => '',
    'PayslipMessage' => '',
    'Payslips' => [
        [
                'Deductions' => '',
                'EmployeeGroup' => '',
                'EmployeeID' => '',
                'FirstName' => '',
                'LastName' => '',
                'NetPay' => '',
                'PayslipID' => '',
                'Reimbursements' => '',
                'Super' => '',
                'Tax' => '',
                'UpdatedDateUTC' => '',
                'Wages' => ''
        ]
    ],
    'Reimbursement' => '',
    'Super' => '',
    'Tax' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ],
    'Wages' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/PayRuns/:PayRunID');
$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}}/PayRuns/:PayRunID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/PayRuns/:PayRunID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]'
import http.client

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

payload = "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]"

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

conn.request("POST", "/baseUrl/PayRuns/:PayRunID", payload, headers)

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

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

url = "{{baseUrl}}/PayRuns/:PayRunID"

payload = [
    {
        "Deductions": "",
        "NetPay": "",
        "PayRunID": "",
        "PayRunPeriodEndDate": "",
        "PayRunPeriodStartDate": "",
        "PayRunStatus": "",
        "PaymentDate": "",
        "PayrollCalendarID": "",
        "PayslipMessage": "",
        "Payslips": [
            {
                "Deductions": "",
                "EmployeeGroup": "",
                "EmployeeID": "",
                "FirstName": "",
                "LastName": "",
                "NetPay": "",
                "PayslipID": "",
                "Reimbursements": "",
                "Super": "",
                "Tax": "",
                "UpdatedDateUTC": "",
                "Wages": ""
            }
        ],
        "Reimbursement": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }],
        "Wages": ""
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/PayRuns/:PayRunID"

payload <- "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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}}/PayRuns/:PayRunID")

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  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\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/PayRuns/:PayRunID') do |req|
  req.body = "[\n  {\n    \"Deductions\": \"\",\n    \"NetPay\": \"\",\n    \"PayRunID\": \"\",\n    \"PayRunPeriodEndDate\": \"\",\n    \"PayRunPeriodStartDate\": \"\",\n    \"PayRunStatus\": \"\",\n    \"PaymentDate\": \"\",\n    \"PayrollCalendarID\": \"\",\n    \"PayslipMessage\": \"\",\n    \"Payslips\": [\n      {\n        \"Deductions\": \"\",\n        \"EmployeeGroup\": \"\",\n        \"EmployeeID\": \"\",\n        \"FirstName\": \"\",\n        \"LastName\": \"\",\n        \"NetPay\": \"\",\n        \"PayslipID\": \"\",\n        \"Reimbursements\": \"\",\n        \"Super\": \"\",\n        \"Tax\": \"\",\n        \"UpdatedDateUTC\": \"\",\n        \"Wages\": \"\"\n      }\n    ],\n    \"Reimbursement\": \"\",\n    \"Super\": \"\",\n    \"Tax\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ],\n    \"Wages\": \"\"\n  }\n]"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/PayRuns/:PayRunID";

    let payload = (
        json!({
            "Deductions": "",
            "NetPay": "",
            "PayRunID": "",
            "PayRunPeriodEndDate": "",
            "PayRunPeriodStartDate": "",
            "PayRunStatus": "",
            "PaymentDate": "",
            "PayrollCalendarID": "",
            "PayslipMessage": "",
            "Payslips": (
                json!({
                    "Deductions": "",
                    "EmployeeGroup": "",
                    "EmployeeID": "",
                    "FirstName": "",
                    "LastName": "",
                    "NetPay": "",
                    "PayslipID": "",
                    "Reimbursements": "",
                    "Super": "",
                    "Tax": "",
                    "UpdatedDateUTC": "",
                    "Wages": ""
                })
            ),
            "Reimbursement": "",
            "Super": "",
            "Tax": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""})),
            "Wages": ""
        })
    );

    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}}/PayRuns/:PayRunID \
  --header 'content-type: application/json' \
  --data '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]'
echo '[
  {
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      {
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      }
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ],
    "Wages": ""
  }
]' |  \
  http POST {{baseUrl}}/PayRuns/:PayRunID \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "Deductions": "",\n    "NetPay": "",\n    "PayRunID": "",\n    "PayRunPeriodEndDate": "",\n    "PayRunPeriodStartDate": "",\n    "PayRunStatus": "",\n    "PaymentDate": "",\n    "PayrollCalendarID": "",\n    "PayslipMessage": "",\n    "Payslips": [\n      {\n        "Deductions": "",\n        "EmployeeGroup": "",\n        "EmployeeID": "",\n        "FirstName": "",\n        "LastName": "",\n        "NetPay": "",\n        "PayslipID": "",\n        "Reimbursements": "",\n        "Super": "",\n        "Tax": "",\n        "UpdatedDateUTC": "",\n        "Wages": ""\n      }\n    ],\n    "Reimbursement": "",\n    "Super": "",\n    "Tax": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ],\n    "Wages": ""\n  }\n]' \
  --output-document \
  - {{baseUrl}}/PayRuns/:PayRunID
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "Deductions": "",
    "NetPay": "",
    "PayRunID": "",
    "PayRunPeriodEndDate": "",
    "PayRunPeriodStartDate": "",
    "PayRunStatus": "",
    "PaymentDate": "",
    "PayrollCalendarID": "",
    "PayslipMessage": "",
    "Payslips": [
      [
        "Deductions": "",
        "EmployeeGroup": "",
        "EmployeeID": "",
        "FirstName": "",
        "LastName": "",
        "NetPay": "",
        "PayslipID": "",
        "Reimbursements": "",
        "Super": "",
        "Tax": "",
        "UpdatedDateUTC": "",
        "Wages": ""
      ]
    ],
    "Reimbursement": "",
    "Super": "",
    "Tax": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]],
    "Wages": ""
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/PayRuns/:PayRunID")! 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

{ "Id": "7ad056f9-7dbd-4b66-bf11-1bb86d5aec92", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1573693093680)/", "PayRuns": [ { "PayRunID": "f8fcda54-643f-4406-902a-d7b020d0a036", "PayrollCalendarID": "78bb86b9-e1ea-47ac-b75d-f087a81931de", "PayRunPeriodStartDate": "/Date(1572566400000+0000)/", "PayRunPeriodEndDate": "/Date(1573084800000+0000)/", "PaymentDate": "/Date(1573171200000+0000)/", "PayRunStatus": "POSTED", "UpdatedDateUTC": "/Date(1573693093000+0000)/" } ] }
POST Updates a payslip
{{baseUrl}}/Payslip/:PayslipID
QUERY PARAMS

PayslipID
BODY json

[
  {
    "DeductionLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      }
    ],
    "EarningsLines": [
      {
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      }
    ],
    "LeaveAccrualLines": [
      {
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "LeaveEarningsLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      }
    ],
    "ReimbursementLines": [
      {
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      }
    ],
    "SuperannuationLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxLines": [
      {
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      }
    ],
    "TimesheetEarningsLines": [
      {}
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Payslip/:PayslipID");

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  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/Payslip/:PayslipID" {:content-type :json
                                                               :form-params [{:DeductionLines [{:Amount ""
                                                                                                :CalculationType ""
                                                                                                :DeductionTypeID ""
                                                                                                :NumberOfUnits ""
                                                                                                :Percentage ""}]
                                                                              :EarningsLines [{:Amount ""
                                                                                               :AnnualSalary ""
                                                                                               :CalculationType ""
                                                                                               :EarningsRateID ""
                                                                                               :FixedAmount ""
                                                                                               :NormalNumberOfUnits ""
                                                                                               :NumberOfUnits ""
                                                                                               :NumberOfUnitsPerWeek ""
                                                                                               :RatePerUnit ""}]
                                                                              :LeaveAccrualLines [{:AutoCalculate false
                                                                                                   :LeaveTypeID ""
                                                                                                   :NumberOfUnits ""}]
                                                                              :LeaveEarningsLines [{:EarningsRateID ""
                                                                                                    :NumberOfUnits ""
                                                                                                    :RatePerUnit ""}]
                                                                              :ReimbursementLines [{:Amount ""
                                                                                                    :Description ""
                                                                                                    :ExpenseAccount ""
                                                                                                    :ReimbursementTypeID ""}]
                                                                              :SuperannuationLines [{:Amount ""
                                                                                                     :CalculationType ""
                                                                                                     :ContributionType ""
                                                                                                     :ExpenseAccountCode ""
                                                                                                     :LiabilityAccountCode ""
                                                                                                     :MinimumMonthlyEarnings ""
                                                                                                     :PaymentDateForThisPeriod ""
                                                                                                     :Percentage ""
                                                                                                     :SuperMembershipID ""}]
                                                                              :TaxLines [{:Amount ""
                                                                                          :Description ""
                                                                                          :LiabilityAccount ""
                                                                                          :ManualTaxType ""
                                                                                          :PayslipTaxLineID ""
                                                                                          :TaxTypeName ""}]
                                                                              :TimesheetEarningsLines [{}]}]})
require "http/client"

url = "{{baseUrl}}/Payslip/:PayslipID"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\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}}/Payslip/:PayslipID"),
    Content = new StringContent("[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\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}}/Payslip/:PayslipID");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Payslip/:PayslipID"

	payload := strings.NewReader("[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\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/Payslip/:PayslipID HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1542

[
  {
    "DeductionLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      }
    ],
    "EarningsLines": [
      {
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      }
    ],
    "LeaveAccrualLines": [
      {
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "LeaveEarningsLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      }
    ],
    "ReimbursementLines": [
      {
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      }
    ],
    "SuperannuationLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxLines": [
      {
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      }
    ],
    "TimesheetEarningsLines": [
      {}
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Payslip/:PayslipID")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Payslip/:PayslipID"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\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  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Payslip/:PayslipID")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Payslip/:PayslipID")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    DeductionLines: [
      {
        Amount: '',
        CalculationType: '',
        DeductionTypeID: '',
        NumberOfUnits: '',
        Percentage: ''
      }
    ],
    EarningsLines: [
      {
        Amount: '',
        AnnualSalary: '',
        CalculationType: '',
        EarningsRateID: '',
        FixedAmount: '',
        NormalNumberOfUnits: '',
        NumberOfUnits: '',
        NumberOfUnitsPerWeek: '',
        RatePerUnit: ''
      }
    ],
    LeaveAccrualLines: [
      {
        AutoCalculate: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    LeaveEarningsLines: [
      {
        EarningsRateID: '',
        NumberOfUnits: '',
        RatePerUnit: ''
      }
    ],
    ReimbursementLines: [
      {
        Amount: '',
        Description: '',
        ExpenseAccount: '',
        ReimbursementTypeID: ''
      }
    ],
    SuperannuationLines: [
      {
        Amount: '',
        CalculationType: '',
        ContributionType: '',
        ExpenseAccountCode: '',
        LiabilityAccountCode: '',
        MinimumMonthlyEarnings: '',
        PaymentDateForThisPeriod: '',
        Percentage: '',
        SuperMembershipID: ''
      }
    ],
    TaxLines: [
      {
        Amount: '',
        Description: '',
        LiabilityAccount: '',
        ManualTaxType: '',
        PayslipTaxLineID: '',
        TaxTypeName: ''
      }
    ],
    TimesheetEarningsLines: [
      {}
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/Payslip/:PayslipID');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Payslip/:PayslipID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveAccrualLines: [{AutoCalculate: false, LeaveTypeID: '', NumberOfUnits: ''}],
      LeaveEarningsLines: [{EarningsRateID: '', NumberOfUnits: '', RatePerUnit: ''}],
      ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
      SuperannuationLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          PaymentDateForThisPeriod: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      TaxLines: [
        {
          Amount: '',
          Description: '',
          LiabilityAccount: '',
          ManualTaxType: '',
          PayslipTaxLineID: '',
          TaxTypeName: ''
        }
      ],
      TimesheetEarningsLines: [{}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Payslip/:PayslipID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"DeductionLines":[{"Amount":"","CalculationType":"","DeductionTypeID":"","NumberOfUnits":"","Percentage":""}],"EarningsLines":[{"Amount":"","AnnualSalary":"","CalculationType":"","EarningsRateID":"","FixedAmount":"","NormalNumberOfUnits":"","NumberOfUnits":"","NumberOfUnitsPerWeek":"","RatePerUnit":""}],"LeaveAccrualLines":[{"AutoCalculate":false,"LeaveTypeID":"","NumberOfUnits":""}],"LeaveEarningsLines":[{"EarningsRateID":"","NumberOfUnits":"","RatePerUnit":""}],"ReimbursementLines":[{"Amount":"","Description":"","ExpenseAccount":"","ReimbursementTypeID":""}],"SuperannuationLines":[{"Amount":"","CalculationType":"","ContributionType":"","ExpenseAccountCode":"","LiabilityAccountCode":"","MinimumMonthlyEarnings":"","PaymentDateForThisPeriod":"","Percentage":"","SuperMembershipID":""}],"TaxLines":[{"Amount":"","Description":"","LiabilityAccount":"","ManualTaxType":"","PayslipTaxLineID":"","TaxTypeName":""}],"TimesheetEarningsLines":[{}]}]'
};

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}}/Payslip/:PayslipID',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "DeductionLines": [\n      {\n        "Amount": "",\n        "CalculationType": "",\n        "DeductionTypeID": "",\n        "NumberOfUnits": "",\n        "Percentage": ""\n      }\n    ],\n    "EarningsLines": [\n      {\n        "Amount": "",\n        "AnnualSalary": "",\n        "CalculationType": "",\n        "EarningsRateID": "",\n        "FixedAmount": "",\n        "NormalNumberOfUnits": "",\n        "NumberOfUnits": "",\n        "NumberOfUnitsPerWeek": "",\n        "RatePerUnit": ""\n      }\n    ],\n    "LeaveAccrualLines": [\n      {\n        "AutoCalculate": false,\n        "LeaveTypeID": "",\n        "NumberOfUnits": ""\n      }\n    ],\n    "LeaveEarningsLines": [\n      {\n        "EarningsRateID": "",\n        "NumberOfUnits": "",\n        "RatePerUnit": ""\n      }\n    ],\n    "ReimbursementLines": [\n      {\n        "Amount": "",\n        "Description": "",\n        "ExpenseAccount": "",\n        "ReimbursementTypeID": ""\n      }\n    ],\n    "SuperannuationLines": [\n      {\n        "Amount": "",\n        "CalculationType": "",\n        "ContributionType": "",\n        "ExpenseAccountCode": "",\n        "LiabilityAccountCode": "",\n        "MinimumMonthlyEarnings": "",\n        "PaymentDateForThisPeriod": "",\n        "Percentage": "",\n        "SuperMembershipID": ""\n      }\n    ],\n    "TaxLines": [\n      {\n        "Amount": "",\n        "Description": "",\n        "LiabilityAccount": "",\n        "ManualTaxType": "",\n        "PayslipTaxLineID": "",\n        "TaxTypeName": ""\n      }\n    ],\n    "TimesheetEarningsLines": [\n      {}\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  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/Payslip/:PayslipID")
  .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/Payslip/:PayslipID',
  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([
  {
    DeductionLines: [
      {
        Amount: '',
        CalculationType: '',
        DeductionTypeID: '',
        NumberOfUnits: '',
        Percentage: ''
      }
    ],
    EarningsLines: [
      {
        Amount: '',
        AnnualSalary: '',
        CalculationType: '',
        EarningsRateID: '',
        FixedAmount: '',
        NormalNumberOfUnits: '',
        NumberOfUnits: '',
        NumberOfUnitsPerWeek: '',
        RatePerUnit: ''
      }
    ],
    LeaveAccrualLines: [{AutoCalculate: false, LeaveTypeID: '', NumberOfUnits: ''}],
    LeaveEarningsLines: [{EarningsRateID: '', NumberOfUnits: '', RatePerUnit: ''}],
    ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
    SuperannuationLines: [
      {
        Amount: '',
        CalculationType: '',
        ContributionType: '',
        ExpenseAccountCode: '',
        LiabilityAccountCode: '',
        MinimumMonthlyEarnings: '',
        PaymentDateForThisPeriod: '',
        Percentage: '',
        SuperMembershipID: ''
      }
    ],
    TaxLines: [
      {
        Amount: '',
        Description: '',
        LiabilityAccount: '',
        ManualTaxType: '',
        PayslipTaxLineID: '',
        TaxTypeName: ''
      }
    ],
    TimesheetEarningsLines: [{}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Payslip/:PayslipID',
  headers: {'content-type': 'application/json'},
  body: [
    {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveAccrualLines: [{AutoCalculate: false, LeaveTypeID: '', NumberOfUnits: ''}],
      LeaveEarningsLines: [{EarningsRateID: '', NumberOfUnits: '', RatePerUnit: ''}],
      ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
      SuperannuationLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          PaymentDateForThisPeriod: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      TaxLines: [
        {
          Amount: '',
          Description: '',
          LiabilityAccount: '',
          ManualTaxType: '',
          PayslipTaxLineID: '',
          TaxTypeName: ''
        }
      ],
      TimesheetEarningsLines: [{}]
    }
  ],
  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}}/Payslip/:PayslipID');

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

req.type('json');
req.send([
  {
    DeductionLines: [
      {
        Amount: '',
        CalculationType: '',
        DeductionTypeID: '',
        NumberOfUnits: '',
        Percentage: ''
      }
    ],
    EarningsLines: [
      {
        Amount: '',
        AnnualSalary: '',
        CalculationType: '',
        EarningsRateID: '',
        FixedAmount: '',
        NormalNumberOfUnits: '',
        NumberOfUnits: '',
        NumberOfUnitsPerWeek: '',
        RatePerUnit: ''
      }
    ],
    LeaveAccrualLines: [
      {
        AutoCalculate: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    LeaveEarningsLines: [
      {
        EarningsRateID: '',
        NumberOfUnits: '',
        RatePerUnit: ''
      }
    ],
    ReimbursementLines: [
      {
        Amount: '',
        Description: '',
        ExpenseAccount: '',
        ReimbursementTypeID: ''
      }
    ],
    SuperannuationLines: [
      {
        Amount: '',
        CalculationType: '',
        ContributionType: '',
        ExpenseAccountCode: '',
        LiabilityAccountCode: '',
        MinimumMonthlyEarnings: '',
        PaymentDateForThisPeriod: '',
        Percentage: '',
        SuperMembershipID: ''
      }
    ],
    TaxLines: [
      {
        Amount: '',
        Description: '',
        LiabilityAccount: '',
        ManualTaxType: '',
        PayslipTaxLineID: '',
        TaxTypeName: ''
      }
    ],
    TimesheetEarningsLines: [
      {}
    ]
  }
]);

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}}/Payslip/:PayslipID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveAccrualLines: [{AutoCalculate: false, LeaveTypeID: '', NumberOfUnits: ''}],
      LeaveEarningsLines: [{EarningsRateID: '', NumberOfUnits: '', RatePerUnit: ''}],
      ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
      SuperannuationLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          PaymentDateForThisPeriod: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      TaxLines: [
        {
          Amount: '',
          Description: '',
          LiabilityAccount: '',
          ManualTaxType: '',
          PayslipTaxLineID: '',
          TaxTypeName: ''
        }
      ],
      TimesheetEarningsLines: [{}]
    }
  ]
};

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

const url = '{{baseUrl}}/Payslip/:PayslipID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"DeductionLines":[{"Amount":"","CalculationType":"","DeductionTypeID":"","NumberOfUnits":"","Percentage":""}],"EarningsLines":[{"Amount":"","AnnualSalary":"","CalculationType":"","EarningsRateID":"","FixedAmount":"","NormalNumberOfUnits":"","NumberOfUnits":"","NumberOfUnitsPerWeek":"","RatePerUnit":""}],"LeaveAccrualLines":[{"AutoCalculate":false,"LeaveTypeID":"","NumberOfUnits":""}],"LeaveEarningsLines":[{"EarningsRateID":"","NumberOfUnits":"","RatePerUnit":""}],"ReimbursementLines":[{"Amount":"","Description":"","ExpenseAccount":"","ReimbursementTypeID":""}],"SuperannuationLines":[{"Amount":"","CalculationType":"","ContributionType":"","ExpenseAccountCode":"","LiabilityAccountCode":"","MinimumMonthlyEarnings":"","PaymentDateForThisPeriod":"","Percentage":"","SuperMembershipID":""}],"TaxLines":[{"Amount":"","Description":"","LiabilityAccount":"","ManualTaxType":"","PayslipTaxLineID":"","TaxTypeName":""}],"TimesheetEarningsLines":[{}]}]'
};

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 = @[ @{ @"DeductionLines": @[ @{ @"Amount": @"", @"CalculationType": @"", @"DeductionTypeID": @"", @"NumberOfUnits": @"", @"Percentage": @"" } ], @"EarningsLines": @[ @{ @"Amount": @"", @"AnnualSalary": @"", @"CalculationType": @"", @"EarningsRateID": @"", @"FixedAmount": @"", @"NormalNumberOfUnits": @"", @"NumberOfUnits": @"", @"NumberOfUnitsPerWeek": @"", @"RatePerUnit": @"" } ], @"LeaveAccrualLines": @[ @{ @"AutoCalculate": @NO, @"LeaveTypeID": @"", @"NumberOfUnits": @"" } ], @"LeaveEarningsLines": @[ @{ @"EarningsRateID": @"", @"NumberOfUnits": @"", @"RatePerUnit": @"" } ], @"ReimbursementLines": @[ @{ @"Amount": @"", @"Description": @"", @"ExpenseAccount": @"", @"ReimbursementTypeID": @"" } ], @"SuperannuationLines": @[ @{ @"Amount": @"", @"CalculationType": @"", @"ContributionType": @"", @"ExpenseAccountCode": @"", @"LiabilityAccountCode": @"", @"MinimumMonthlyEarnings": @"", @"PaymentDateForThisPeriod": @"", @"Percentage": @"", @"SuperMembershipID": @"" } ], @"TaxLines": @[ @{ @"Amount": @"", @"Description": @"", @"LiabilityAccount": @"", @"ManualTaxType": @"", @"PayslipTaxLineID": @"", @"TaxTypeName": @"" } ], @"TimesheetEarningsLines": @[ @{  } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Payslip/:PayslipID"]
                                                       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}}/Payslip/:PayslipID" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Payslip/:PayslipID",
  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([
    [
        'DeductionLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'DeductionTypeID' => '',
                                'NumberOfUnits' => '',
                                'Percentage' => ''
                ]
        ],
        'EarningsLines' => [
                [
                                'Amount' => '',
                                'AnnualSalary' => '',
                                'CalculationType' => '',
                                'EarningsRateID' => '',
                                'FixedAmount' => '',
                                'NormalNumberOfUnits' => '',
                                'NumberOfUnits' => '',
                                'NumberOfUnitsPerWeek' => '',
                                'RatePerUnit' => ''
                ]
        ],
        'LeaveAccrualLines' => [
                [
                                'AutoCalculate' => null,
                                'LeaveTypeID' => '',
                                'NumberOfUnits' => ''
                ]
        ],
        'LeaveEarningsLines' => [
                [
                                'EarningsRateID' => '',
                                'NumberOfUnits' => '',
                                'RatePerUnit' => ''
                ]
        ],
        'ReimbursementLines' => [
                [
                                'Amount' => '',
                                'Description' => '',
                                'ExpenseAccount' => '',
                                'ReimbursementTypeID' => ''
                ]
        ],
        'SuperannuationLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'ContributionType' => '',
                                'ExpenseAccountCode' => '',
                                'LiabilityAccountCode' => '',
                                'MinimumMonthlyEarnings' => '',
                                'PaymentDateForThisPeriod' => '',
                                'Percentage' => '',
                                'SuperMembershipID' => ''
                ]
        ],
        'TaxLines' => [
                [
                                'Amount' => '',
                                'Description' => '',
                                'LiabilityAccount' => '',
                                'ManualTaxType' => '',
                                'PayslipTaxLineID' => '',
                                'TaxTypeName' => ''
                ]
        ],
        'TimesheetEarningsLines' => [
                [
                                
                ]
        ]
    ]
  ]),
  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}}/Payslip/:PayslipID', [
  'body' => '[
  {
    "DeductionLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      }
    ],
    "EarningsLines": [
      {
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      }
    ],
    "LeaveAccrualLines": [
      {
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "LeaveEarningsLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      }
    ],
    "ReimbursementLines": [
      {
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      }
    ],
    "SuperannuationLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxLines": [
      {
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      }
    ],
    "TimesheetEarningsLines": [
      {}
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/Payslip/:PayslipID');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'DeductionLines' => [
        [
                'Amount' => '',
                'CalculationType' => '',
                'DeductionTypeID' => '',
                'NumberOfUnits' => '',
                'Percentage' => ''
        ]
    ],
    'EarningsLines' => [
        [
                'Amount' => '',
                'AnnualSalary' => '',
                'CalculationType' => '',
                'EarningsRateID' => '',
                'FixedAmount' => '',
                'NormalNumberOfUnits' => '',
                'NumberOfUnits' => '',
                'NumberOfUnitsPerWeek' => '',
                'RatePerUnit' => ''
        ]
    ],
    'LeaveAccrualLines' => [
        [
                'AutoCalculate' => null,
                'LeaveTypeID' => '',
                'NumberOfUnits' => ''
        ]
    ],
    'LeaveEarningsLines' => [
        [
                'EarningsRateID' => '',
                'NumberOfUnits' => '',
                'RatePerUnit' => ''
        ]
    ],
    'ReimbursementLines' => [
        [
                'Amount' => '',
                'Description' => '',
                'ExpenseAccount' => '',
                'ReimbursementTypeID' => ''
        ]
    ],
    'SuperannuationLines' => [
        [
                'Amount' => '',
                'CalculationType' => '',
                'ContributionType' => '',
                'ExpenseAccountCode' => '',
                'LiabilityAccountCode' => '',
                'MinimumMonthlyEarnings' => '',
                'PaymentDateForThisPeriod' => '',
                'Percentage' => '',
                'SuperMembershipID' => ''
        ]
    ],
    'TaxLines' => [
        [
                'Amount' => '',
                'Description' => '',
                'LiabilityAccount' => '',
                'ManualTaxType' => '',
                'PayslipTaxLineID' => '',
                'TaxTypeName' => ''
        ]
    ],
    'TimesheetEarningsLines' => [
        [
                
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'DeductionLines' => [
        [
                'Amount' => '',
                'CalculationType' => '',
                'DeductionTypeID' => '',
                'NumberOfUnits' => '',
                'Percentage' => ''
        ]
    ],
    'EarningsLines' => [
        [
                'Amount' => '',
                'AnnualSalary' => '',
                'CalculationType' => '',
                'EarningsRateID' => '',
                'FixedAmount' => '',
                'NormalNumberOfUnits' => '',
                'NumberOfUnits' => '',
                'NumberOfUnitsPerWeek' => '',
                'RatePerUnit' => ''
        ]
    ],
    'LeaveAccrualLines' => [
        [
                'AutoCalculate' => null,
                'LeaveTypeID' => '',
                'NumberOfUnits' => ''
        ]
    ],
    'LeaveEarningsLines' => [
        [
                'EarningsRateID' => '',
                'NumberOfUnits' => '',
                'RatePerUnit' => ''
        ]
    ],
    'ReimbursementLines' => [
        [
                'Amount' => '',
                'Description' => '',
                'ExpenseAccount' => '',
                'ReimbursementTypeID' => ''
        ]
    ],
    'SuperannuationLines' => [
        [
                'Amount' => '',
                'CalculationType' => '',
                'ContributionType' => '',
                'ExpenseAccountCode' => '',
                'LiabilityAccountCode' => '',
                'MinimumMonthlyEarnings' => '',
                'PaymentDateForThisPeriod' => '',
                'Percentage' => '',
                'SuperMembershipID' => ''
        ]
    ],
    'TaxLines' => [
        [
                'Amount' => '',
                'Description' => '',
                'LiabilityAccount' => '',
                'ManualTaxType' => '',
                'PayslipTaxLineID' => '',
                'TaxTypeName' => ''
        ]
    ],
    'TimesheetEarningsLines' => [
        [
                
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Payslip/:PayslipID');
$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}}/Payslip/:PayslipID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "DeductionLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      }
    ],
    "EarningsLines": [
      {
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      }
    ],
    "LeaveAccrualLines": [
      {
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "LeaveEarningsLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      }
    ],
    "ReimbursementLines": [
      {
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      }
    ],
    "SuperannuationLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxLines": [
      {
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      }
    ],
    "TimesheetEarningsLines": [
      {}
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Payslip/:PayslipID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "DeductionLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      }
    ],
    "EarningsLines": [
      {
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      }
    ],
    "LeaveAccrualLines": [
      {
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "LeaveEarningsLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      }
    ],
    "ReimbursementLines": [
      {
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      }
    ],
    "SuperannuationLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxLines": [
      {
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      }
    ],
    "TimesheetEarningsLines": [
      {}
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/Payslip/:PayslipID", payload, headers)

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

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

url = "{{baseUrl}}/Payslip/:PayslipID"

payload = [
    {
        "DeductionLines": [
            {
                "Amount": "",
                "CalculationType": "",
                "DeductionTypeID": "",
                "NumberOfUnits": "",
                "Percentage": ""
            }
        ],
        "EarningsLines": [
            {
                "Amount": "",
                "AnnualSalary": "",
                "CalculationType": "",
                "EarningsRateID": "",
                "FixedAmount": "",
                "NormalNumberOfUnits": "",
                "NumberOfUnits": "",
                "NumberOfUnitsPerWeek": "",
                "RatePerUnit": ""
            }
        ],
        "LeaveAccrualLines": [
            {
                "AutoCalculate": False,
                "LeaveTypeID": "",
                "NumberOfUnits": ""
            }
        ],
        "LeaveEarningsLines": [
            {
                "EarningsRateID": "",
                "NumberOfUnits": "",
                "RatePerUnit": ""
            }
        ],
        "ReimbursementLines": [
            {
                "Amount": "",
                "Description": "",
                "ExpenseAccount": "",
                "ReimbursementTypeID": ""
            }
        ],
        "SuperannuationLines": [
            {
                "Amount": "",
                "CalculationType": "",
                "ContributionType": "",
                "ExpenseAccountCode": "",
                "LiabilityAccountCode": "",
                "MinimumMonthlyEarnings": "",
                "PaymentDateForThisPeriod": "",
                "Percentage": "",
                "SuperMembershipID": ""
            }
        ],
        "TaxLines": [
            {
                "Amount": "",
                "Description": "",
                "LiabilityAccount": "",
                "ManualTaxType": "",
                "PayslipTaxLineID": "",
                "TaxTypeName": ""
            }
        ],
        "TimesheetEarningsLines": [{}]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/Payslip/:PayslipID"

payload <- "[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\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}}/Payslip/:PayslipID")

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  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\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/Payslip/:PayslipID') do |req|
  req.body = "[\n  {\n    \"DeductionLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"DeductionTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"Percentage\": \"\"\n      }\n    ],\n    \"EarningsLines\": [\n      {\n        \"Amount\": \"\",\n        \"AnnualSalary\": \"\",\n        \"CalculationType\": \"\",\n        \"EarningsRateID\": \"\",\n        \"FixedAmount\": \"\",\n        \"NormalNumberOfUnits\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"NumberOfUnitsPerWeek\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"LeaveAccrualLines\": [\n      {\n        \"AutoCalculate\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"LeaveEarningsLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"RatePerUnit\": \"\"\n      }\n    ],\n    \"ReimbursementLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"ExpenseAccount\": \"\",\n        \"ReimbursementTypeID\": \"\"\n      }\n    ],\n    \"SuperannuationLines\": [\n      {\n        \"Amount\": \"\",\n        \"CalculationType\": \"\",\n        \"ContributionType\": \"\",\n        \"ExpenseAccountCode\": \"\",\n        \"LiabilityAccountCode\": \"\",\n        \"MinimumMonthlyEarnings\": \"\",\n        \"PaymentDateForThisPeriod\": \"\",\n        \"Percentage\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxLines\": [\n      {\n        \"Amount\": \"\",\n        \"Description\": \"\",\n        \"LiabilityAccount\": \"\",\n        \"ManualTaxType\": \"\",\n        \"PayslipTaxLineID\": \"\",\n        \"TaxTypeName\": \"\"\n      }\n    ],\n    \"TimesheetEarningsLines\": [\n      {}\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}}/Payslip/:PayslipID";

    let payload = (
        json!({
            "DeductionLines": (
                json!({
                    "Amount": "",
                    "CalculationType": "",
                    "DeductionTypeID": "",
                    "NumberOfUnits": "",
                    "Percentage": ""
                })
            ),
            "EarningsLines": (
                json!({
                    "Amount": "",
                    "AnnualSalary": "",
                    "CalculationType": "",
                    "EarningsRateID": "",
                    "FixedAmount": "",
                    "NormalNumberOfUnits": "",
                    "NumberOfUnits": "",
                    "NumberOfUnitsPerWeek": "",
                    "RatePerUnit": ""
                })
            ),
            "LeaveAccrualLines": (
                json!({
                    "AutoCalculate": false,
                    "LeaveTypeID": "",
                    "NumberOfUnits": ""
                })
            ),
            "LeaveEarningsLines": (
                json!({
                    "EarningsRateID": "",
                    "NumberOfUnits": "",
                    "RatePerUnit": ""
                })
            ),
            "ReimbursementLines": (
                json!({
                    "Amount": "",
                    "Description": "",
                    "ExpenseAccount": "",
                    "ReimbursementTypeID": ""
                })
            ),
            "SuperannuationLines": (
                json!({
                    "Amount": "",
                    "CalculationType": "",
                    "ContributionType": "",
                    "ExpenseAccountCode": "",
                    "LiabilityAccountCode": "",
                    "MinimumMonthlyEarnings": "",
                    "PaymentDateForThisPeriod": "",
                    "Percentage": "",
                    "SuperMembershipID": ""
                })
            ),
            "TaxLines": (
                json!({
                    "Amount": "",
                    "Description": "",
                    "LiabilityAccount": "",
                    "ManualTaxType": "",
                    "PayslipTaxLineID": "",
                    "TaxTypeName": ""
                })
            ),
            "TimesheetEarningsLines": (json!({}))
        })
    );

    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}}/Payslip/:PayslipID \
  --header 'content-type: application/json' \
  --data '[
  {
    "DeductionLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      }
    ],
    "EarningsLines": [
      {
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      }
    ],
    "LeaveAccrualLines": [
      {
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "LeaveEarningsLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      }
    ],
    "ReimbursementLines": [
      {
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      }
    ],
    "SuperannuationLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxLines": [
      {
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      }
    ],
    "TimesheetEarningsLines": [
      {}
    ]
  }
]'
echo '[
  {
    "DeductionLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      }
    ],
    "EarningsLines": [
      {
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      }
    ],
    "LeaveAccrualLines": [
      {
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "LeaveEarningsLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      }
    ],
    "ReimbursementLines": [
      {
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      }
    ],
    "SuperannuationLines": [
      {
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxLines": [
      {
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      }
    ],
    "TimesheetEarningsLines": [
      {}
    ]
  }
]' |  \
  http POST {{baseUrl}}/Payslip/:PayslipID \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "DeductionLines": [\n      {\n        "Amount": "",\n        "CalculationType": "",\n        "DeductionTypeID": "",\n        "NumberOfUnits": "",\n        "Percentage": ""\n      }\n    ],\n    "EarningsLines": [\n      {\n        "Amount": "",\n        "AnnualSalary": "",\n        "CalculationType": "",\n        "EarningsRateID": "",\n        "FixedAmount": "",\n        "NormalNumberOfUnits": "",\n        "NumberOfUnits": "",\n        "NumberOfUnitsPerWeek": "",\n        "RatePerUnit": ""\n      }\n    ],\n    "LeaveAccrualLines": [\n      {\n        "AutoCalculate": false,\n        "LeaveTypeID": "",\n        "NumberOfUnits": ""\n      }\n    ],\n    "LeaveEarningsLines": [\n      {\n        "EarningsRateID": "",\n        "NumberOfUnits": "",\n        "RatePerUnit": ""\n      }\n    ],\n    "ReimbursementLines": [\n      {\n        "Amount": "",\n        "Description": "",\n        "ExpenseAccount": "",\n        "ReimbursementTypeID": ""\n      }\n    ],\n    "SuperannuationLines": [\n      {\n        "Amount": "",\n        "CalculationType": "",\n        "ContributionType": "",\n        "ExpenseAccountCode": "",\n        "LiabilityAccountCode": "",\n        "MinimumMonthlyEarnings": "",\n        "PaymentDateForThisPeriod": "",\n        "Percentage": "",\n        "SuperMembershipID": ""\n      }\n    ],\n    "TaxLines": [\n      {\n        "Amount": "",\n        "Description": "",\n        "LiabilityAccount": "",\n        "ManualTaxType": "",\n        "PayslipTaxLineID": "",\n        "TaxTypeName": ""\n      }\n    ],\n    "TimesheetEarningsLines": [\n      {}\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/Payslip/:PayslipID
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "DeductionLines": [
      [
        "Amount": "",
        "CalculationType": "",
        "DeductionTypeID": "",
        "NumberOfUnits": "",
        "Percentage": ""
      ]
    ],
    "EarningsLines": [
      [
        "Amount": "",
        "AnnualSalary": "",
        "CalculationType": "",
        "EarningsRateID": "",
        "FixedAmount": "",
        "NormalNumberOfUnits": "",
        "NumberOfUnits": "",
        "NumberOfUnitsPerWeek": "",
        "RatePerUnit": ""
      ]
    ],
    "LeaveAccrualLines": [
      [
        "AutoCalculate": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      ]
    ],
    "LeaveEarningsLines": [
      [
        "EarningsRateID": "",
        "NumberOfUnits": "",
        "RatePerUnit": ""
      ]
    ],
    "ReimbursementLines": [
      [
        "Amount": "",
        "Description": "",
        "ExpenseAccount": "",
        "ReimbursementTypeID": ""
      ]
    ],
    "SuperannuationLines": [
      [
        "Amount": "",
        "CalculationType": "",
        "ContributionType": "",
        "ExpenseAccountCode": "",
        "LiabilityAccountCode": "",
        "MinimumMonthlyEarnings": "",
        "PaymentDateForThisPeriod": "",
        "Percentage": "",
        "SuperMembershipID": ""
      ]
    ],
    "TaxLines": [
      [
        "Amount": "",
        "Description": "",
        "LiabilityAccount": "",
        "ManualTaxType": "",
        "PayslipTaxLineID": "",
        "TaxTypeName": ""
      ]
    ],
    "TimesheetEarningsLines": [[]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Payslip/:PayslipID")! 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

{ "Id": "6ba774cb-7db6-4c8e-ba13-5342b5ce6cc3", "Status": "OK", "ProviderName": "java-sdk-oauth2-dev-02", "DateTimeUTC": "/Date(1589568253813)/", "Payslips": [ { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "PayslipID": "c81e8bcc-56b0-4740-b46b-767753a6ee45", "FirstName": "Albus", "LastName": "Dumbledore", "LastEdited": "/Date(1589568253735+0000)/", "Tax": 0, "NetPay": 1.4, "UpdatedDateUTC": "/Date(1589568253735+0000)/", "DeductionLines": [ { "Amount": 4, "CalculationType": "FIXEDAMOUNT", "DeductionTypeID": "ed05ea82-e40a-4eb6-9c2e-4b3c03e7e938" } ] } ] }
POST Updates a specific leave application
{{baseUrl}}/LeaveApplications/:LeaveApplicationID
QUERY PARAMS

LeaveApplicationID
BODY json

[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/LeaveApplications/:LeaveApplicationID");

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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/LeaveApplications/:LeaveApplicationID" {:content-type :json
                                                                                  :form-params [{:Description ""
                                                                                                 :EmployeeID ""
                                                                                                 :EndDate ""
                                                                                                 :LeaveApplicationID ""
                                                                                                 :LeavePeriods [{:LeavePeriodStatus ""
                                                                                                                 :NumberOfUnits ""
                                                                                                                 :PayPeriodEndDate ""
                                                                                                                 :PayPeriodStartDate ""}]
                                                                                                 :LeaveTypeID ""
                                                                                                 :StartDate ""
                                                                                                 :Title ""
                                                                                                 :UpdatedDateUTC ""
                                                                                                 :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications/:LeaveApplicationID"),
    Content = new StringContent("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications/:LeaveApplicationID");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"

	payload := strings.NewReader("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/LeaveApplications/:LeaveApplicationID HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 434

[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/LeaveApplications/:LeaveApplicationID"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    Description: '',
    EmployeeID: '',
    EndDate: '',
    LeaveApplicationID: '',
    LeavePeriods: [
      {
        LeavePeriodStatus: '',
        NumberOfUnits: '',
        PayPeriodEndDate: '',
        PayPeriodStartDate: ''
      }
    ],
    LeaveTypeID: '',
    StartDate: '',
    Title: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/LeaveApplications/:LeaveApplicationID');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/LeaveApplications/:LeaveApplicationID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Description: '',
      EmployeeID: '',
      EndDate: '',
      LeaveApplicationID: '',
      LeavePeriods: [
        {
          LeavePeriodStatus: '',
          NumberOfUnits: '',
          PayPeriodEndDate: '',
          PayPeriodStartDate: ''
        }
      ],
      LeaveTypeID: '',
      StartDate: '',
      Title: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/LeaveApplications/:LeaveApplicationID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Description":"","EmployeeID":"","EndDate":"","LeaveApplicationID":"","LeavePeriods":[{"LeavePeriodStatus":"","NumberOfUnits":"","PayPeriodEndDate":"","PayPeriodStartDate":""}],"LeaveTypeID":"","StartDate":"","Title":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/LeaveApplications/:LeaveApplicationID',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "Description": "",\n    "EmployeeID": "",\n    "EndDate": "",\n    "LeaveApplicationID": "",\n    "LeavePeriods": [\n      {\n        "LeavePeriodStatus": "",\n        "NumberOfUnits": "",\n        "PayPeriodEndDate": "",\n        "PayPeriodStartDate": ""\n      }\n    ],\n    "LeaveTypeID": "",\n    "StartDate": "",\n    "Title": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/LeaveApplications/:LeaveApplicationID")
  .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/LeaveApplications/:LeaveApplicationID',
  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([
  {
    Description: '',
    EmployeeID: '',
    EndDate: '',
    LeaveApplicationID: '',
    LeavePeriods: [
      {
        LeavePeriodStatus: '',
        NumberOfUnits: '',
        PayPeriodEndDate: '',
        PayPeriodStartDate: ''
      }
    ],
    LeaveTypeID: '',
    StartDate: '',
    Title: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/LeaveApplications/:LeaveApplicationID',
  headers: {'content-type': 'application/json'},
  body: [
    {
      Description: '',
      EmployeeID: '',
      EndDate: '',
      LeaveApplicationID: '',
      LeavePeriods: [
        {
          LeavePeriodStatus: '',
          NumberOfUnits: '',
          PayPeriodEndDate: '',
          PayPeriodStartDate: ''
        }
      ],
      LeaveTypeID: '',
      StartDate: '',
      Title: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/LeaveApplications/:LeaveApplicationID');

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

req.type('json');
req.send([
  {
    Description: '',
    EmployeeID: '',
    EndDate: '',
    LeaveApplicationID: '',
    LeavePeriods: [
      {
        LeavePeriodStatus: '',
        NumberOfUnits: '',
        PayPeriodEndDate: '',
        PayPeriodStartDate: ''
      }
    ],
    LeaveTypeID: '',
    StartDate: '',
    Title: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/LeaveApplications/:LeaveApplicationID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      Description: '',
      EmployeeID: '',
      EndDate: '',
      LeaveApplicationID: '',
      LeavePeriods: [
        {
          LeavePeriodStatus: '',
          NumberOfUnits: '',
          PayPeriodEndDate: '',
          PayPeriodStartDate: ''
        }
      ],
      LeaveTypeID: '',
      StartDate: '',
      Title: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/LeaveApplications/:LeaveApplicationID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"Description":"","EmployeeID":"","EndDate":"","LeaveApplicationID":"","LeavePeriods":[{"LeavePeriodStatus":"","NumberOfUnits":"","PayPeriodEndDate":"","PayPeriodStartDate":""}],"LeaveTypeID":"","StartDate":"","Title":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"Description": @"", @"EmployeeID": @"", @"EndDate": @"", @"LeaveApplicationID": @"", @"LeavePeriods": @[ @{ @"LeavePeriodStatus": @"", @"NumberOfUnits": @"", @"PayPeriodEndDate": @"", @"PayPeriodStartDate": @"" } ], @"LeaveTypeID": @"", @"StartDate": @"", @"Title": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/LeaveApplications/:LeaveApplicationID"]
                                                       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}}/LeaveApplications/:LeaveApplicationID" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/LeaveApplications/:LeaveApplicationID",
  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([
    [
        'Description' => '',
        'EmployeeID' => '',
        'EndDate' => '',
        'LeaveApplicationID' => '',
        'LeavePeriods' => [
                [
                                'LeavePeriodStatus' => '',
                                'NumberOfUnits' => '',
                                'PayPeriodEndDate' => '',
                                'PayPeriodStartDate' => ''
                ]
        ],
        'LeaveTypeID' => '',
        'StartDate' => '',
        'Title' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/LeaveApplications/:LeaveApplicationID', [
  'body' => '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/LeaveApplications/:LeaveApplicationID');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'Description' => '',
    'EmployeeID' => '',
    'EndDate' => '',
    'LeaveApplicationID' => '',
    'LeavePeriods' => [
        [
                'LeavePeriodStatus' => '',
                'NumberOfUnits' => '',
                'PayPeriodEndDate' => '',
                'PayPeriodStartDate' => ''
        ]
    ],
    'LeaveTypeID' => '',
    'StartDate' => '',
    'Title' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'Description' => '',
    'EmployeeID' => '',
    'EndDate' => '',
    'LeaveApplicationID' => '',
    'LeavePeriods' => [
        [
                'LeavePeriodStatus' => '',
                'NumberOfUnits' => '',
                'PayPeriodEndDate' => '',
                'PayPeriodStartDate' => ''
        ]
    ],
    'LeaveTypeID' => '',
    'StartDate' => '',
    'Title' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/LeaveApplications/:LeaveApplicationID');
$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}}/LeaveApplications/:LeaveApplicationID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/LeaveApplications/:LeaveApplicationID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/LeaveApplications/:LeaveApplicationID", payload, headers)

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

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

url = "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"

payload = [
    {
        "Description": "",
        "EmployeeID": "",
        "EndDate": "",
        "LeaveApplicationID": "",
        "LeavePeriods": [
            {
                "LeavePeriodStatus": "",
                "NumberOfUnits": "",
                "PayPeriodEndDate": "",
                "PayPeriodStartDate": ""
            }
        ],
        "LeaveTypeID": "",
        "StartDate": "",
        "Title": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/LeaveApplications/:LeaveApplicationID"

payload <- "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications/:LeaveApplicationID")

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  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/LeaveApplications/:LeaveApplicationID') do |req|
  req.body = "[\n  {\n    \"Description\": \"\",\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"LeaveApplicationID\": \"\",\n    \"LeavePeriods\": [\n      {\n        \"LeavePeriodStatus\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"PayPeriodEndDate\": \"\",\n        \"PayPeriodStartDate\": \"\"\n      }\n    ],\n    \"LeaveTypeID\": \"\",\n    \"StartDate\": \"\",\n    \"Title\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/LeaveApplications/:LeaveApplicationID";

    let payload = (
        json!({
            "Description": "",
            "EmployeeID": "",
            "EndDate": "",
            "LeaveApplicationID": "",
            "LeavePeriods": (
                json!({
                    "LeavePeriodStatus": "",
                    "NumberOfUnits": "",
                    "PayPeriodEndDate": "",
                    "PayPeriodStartDate": ""
                })
            ),
            "LeaveTypeID": "",
            "StartDate": "",
            "Title": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/LeaveApplications/:LeaveApplicationID \
  --header 'content-type: application/json' \
  --data '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      {
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      }
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/LeaveApplications/:LeaveApplicationID \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "Description": "",\n    "EmployeeID": "",\n    "EndDate": "",\n    "LeaveApplicationID": "",\n    "LeavePeriods": [\n      {\n        "LeavePeriodStatus": "",\n        "NumberOfUnits": "",\n        "PayPeriodEndDate": "",\n        "PayPeriodStartDate": ""\n      }\n    ],\n    "LeaveTypeID": "",\n    "StartDate": "",\n    "Title": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/LeaveApplications/:LeaveApplicationID
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "Description": "",
    "EmployeeID": "",
    "EndDate": "",
    "LeaveApplicationID": "",
    "LeavePeriods": [
      [
        "LeavePeriodStatus": "",
        "NumberOfUnits": "",
        "PayPeriodEndDate": "",
        "PayPeriodStartDate": ""
      ]
    ],
    "LeaveTypeID": "",
    "StartDate": "",
    "Title": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/LeaveApplications/:LeaveApplicationID")! 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

{ "Id": "9ebc7d7a-e188-4b31-bb2c-1ab9421b82c4", "Status": "OK", "ProviderName": "3f93110a-df13-49c7-b82f-a069813df188", "DateTimeUTC": "/Date(1573679792293)/", "LeaveApplications": [ { "LeaveApplicationID": "1d4cd583-0107-4386-936b-672eb3d1f624", "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "LeaveTypeID": "184ea8f7-d143-46dd-bef3-0c60e1aa6fca", "LeavePeriods": [ { "PayPeriodStartDate": "/Date(1572566400000+0000)/", "PayPeriodEndDate": "/Date(1573084800000+0000)/", "LeavePeriodStatus": "SCHEDULED", "NumberOfUnits": 0.6 } ], "Title": "vacation", "Description": "My updated Description", "StartDate": "/Date(1572559200000+0000)/", "EndDate": "/Date(1572645600000+0000)/", "UpdatedDateUTC": "/Date(1573679792293+0000)/" } ] }
POST Updates a superfund
{{baseUrl}}/Superfunds/:SuperFundID
QUERY PARAMS

SuperFundID
BODY json

[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Superfunds/:SuperFundID");

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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/Superfunds/:SuperFundID" {:content-type :json
                                                                    :form-params [{:ABN ""
                                                                                   :AccountName ""
                                                                                   :AccountNumber ""
                                                                                   :BSB ""
                                                                                   :ElectronicServiceAddress ""
                                                                                   :EmployerNumber ""
                                                                                   :Name ""
                                                                                   :SPIN ""
                                                                                   :SuperFundID ""
                                                                                   :Type ""
                                                                                   :USI ""
                                                                                   :UpdatedDateUTC ""
                                                                                   :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/Superfunds/:SuperFundID"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds/:SuperFundID"),
    Content = new StringContent("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds/:SuperFundID");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Superfunds/:SuperFundID"

	payload := strings.NewReader("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Superfunds/:SuperFundID HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 333

[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Superfunds/:SuperFundID")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Superfunds/:SuperFundID"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Superfunds/:SuperFundID")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Superfunds/:SuperFundID")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    ABN: '',
    AccountName: '',
    AccountNumber: '',
    BSB: '',
    ElectronicServiceAddress: '',
    EmployerNumber: '',
    Name: '',
    SPIN: '',
    SuperFundID: '',
    Type: '',
    USI: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/Superfunds/:SuperFundID');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Superfunds/:SuperFundID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      ABN: '',
      AccountName: '',
      AccountNumber: '',
      BSB: '',
      ElectronicServiceAddress: '',
      EmployerNumber: '',
      Name: '',
      SPIN: '',
      SuperFundID: '',
      Type: '',
      USI: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Superfunds/:SuperFundID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"ABN":"","AccountName":"","AccountNumber":"","BSB":"","ElectronicServiceAddress":"","EmployerNumber":"","Name":"","SPIN":"","SuperFundID":"","Type":"","USI":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/Superfunds/:SuperFundID',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "ABN": "",\n    "AccountName": "",\n    "AccountNumber": "",\n    "BSB": "",\n    "ElectronicServiceAddress": "",\n    "EmployerNumber": "",\n    "Name": "",\n    "SPIN": "",\n    "SuperFundID": "",\n    "Type": "",\n    "USI": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/Superfunds/:SuperFundID")
  .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/Superfunds/:SuperFundID',
  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([
  {
    ABN: '',
    AccountName: '',
    AccountNumber: '',
    BSB: '',
    ElectronicServiceAddress: '',
    EmployerNumber: '',
    Name: '',
    SPIN: '',
    SuperFundID: '',
    Type: '',
    USI: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Superfunds/:SuperFundID',
  headers: {'content-type': 'application/json'},
  body: [
    {
      ABN: '',
      AccountName: '',
      AccountNumber: '',
      BSB: '',
      ElectronicServiceAddress: '',
      EmployerNumber: '',
      Name: '',
      SPIN: '',
      SuperFundID: '',
      Type: '',
      USI: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/Superfunds/:SuperFundID');

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

req.type('json');
req.send([
  {
    ABN: '',
    AccountName: '',
    AccountNumber: '',
    BSB: '',
    ElectronicServiceAddress: '',
    EmployerNumber: '',
    Name: '',
    SPIN: '',
    SuperFundID: '',
    Type: '',
    USI: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/Superfunds/:SuperFundID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      ABN: '',
      AccountName: '',
      AccountNumber: '',
      BSB: '',
      ElectronicServiceAddress: '',
      EmployerNumber: '',
      Name: '',
      SPIN: '',
      SuperFundID: '',
      Type: '',
      USI: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/Superfunds/:SuperFundID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"ABN":"","AccountName":"","AccountNumber":"","BSB":"","ElectronicServiceAddress":"","EmployerNumber":"","Name":"","SPIN":"","SuperFundID":"","Type":"","USI":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"ABN": @"", @"AccountName": @"", @"AccountNumber": @"", @"BSB": @"", @"ElectronicServiceAddress": @"", @"EmployerNumber": @"", @"Name": @"", @"SPIN": @"", @"SuperFundID": @"", @"Type": @"", @"USI": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Superfunds/:SuperFundID"]
                                                       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}}/Superfunds/:SuperFundID" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Superfunds/:SuperFundID",
  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([
    [
        'ABN' => '',
        'AccountName' => '',
        'AccountNumber' => '',
        'BSB' => '',
        'ElectronicServiceAddress' => '',
        'EmployerNumber' => '',
        'Name' => '',
        'SPIN' => '',
        'SuperFundID' => '',
        'Type' => '',
        'USI' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/Superfunds/:SuperFundID', [
  'body' => '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/Superfunds/:SuperFundID');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'ABN' => '',
    'AccountName' => '',
    'AccountNumber' => '',
    'BSB' => '',
    'ElectronicServiceAddress' => '',
    'EmployerNumber' => '',
    'Name' => '',
    'SPIN' => '',
    'SuperFundID' => '',
    'Type' => '',
    'USI' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'ABN' => '',
    'AccountName' => '',
    'AccountNumber' => '',
    'BSB' => '',
    'ElectronicServiceAddress' => '',
    'EmployerNumber' => '',
    'Name' => '',
    'SPIN' => '',
    'SuperFundID' => '',
    'Type' => '',
    'USI' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Superfunds/:SuperFundID');
$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}}/Superfunds/:SuperFundID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Superfunds/:SuperFundID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/Superfunds/:SuperFundID", payload, headers)

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

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

url = "{{baseUrl}}/Superfunds/:SuperFundID"

payload = [
    {
        "ABN": "",
        "AccountName": "",
        "AccountNumber": "",
        "BSB": "",
        "ElectronicServiceAddress": "",
        "EmployerNumber": "",
        "Name": "",
        "SPIN": "",
        "SuperFundID": "",
        "Type": "",
        "USI": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/Superfunds/:SuperFundID"

payload <- "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds/:SuperFundID")

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  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Superfunds/:SuperFundID') do |req|
  req.body = "[\n  {\n    \"ABN\": \"\",\n    \"AccountName\": \"\",\n    \"AccountNumber\": \"\",\n    \"BSB\": \"\",\n    \"ElectronicServiceAddress\": \"\",\n    \"EmployerNumber\": \"\",\n    \"Name\": \"\",\n    \"SPIN\": \"\",\n    \"SuperFundID\": \"\",\n    \"Type\": \"\",\n    \"USI\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Superfunds/:SuperFundID";

    let payload = (
        json!({
            "ABN": "",
            "AccountName": "",
            "AccountNumber": "",
            "BSB": "",
            "ElectronicServiceAddress": "",
            "EmployerNumber": "",
            "Name": "",
            "SPIN": "",
            "SuperFundID": "",
            "Type": "",
            "USI": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/Superfunds/:SuperFundID \
  --header 'content-type: application/json' \
  --data '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/Superfunds/:SuperFundID \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "ABN": "",\n    "AccountName": "",\n    "AccountNumber": "",\n    "BSB": "",\n    "ElectronicServiceAddress": "",\n    "EmployerNumber": "",\n    "Name": "",\n    "SPIN": "",\n    "SuperFundID": "",\n    "Type": "",\n    "USI": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/Superfunds/:SuperFundID
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "ABN": "",
    "AccountName": "",
    "AccountNumber": "",
    "BSB": "",
    "ElectronicServiceAddress": "",
    "EmployerNumber": "",
    "Name": "",
    "SPIN": "",
    "SuperFundID": "",
    "Type": "",
    "USI": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Superfunds/:SuperFundID")! 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

{ "Id":"5805d551-10ba-43f5-ac08-9e482d35cdcb", "Status":"OK", "ProviderName":"java-sdk-oauth2-dev-02", "DateTimeUTC":"\/Date(1573570941547)\/", "SuperFunds":[ { "SuperFundID":"fde8e070-bf59-4e56-b1d7-c75a09474b8d", "Name":"Accumulate Plus (Commonwealth Bank Group Super)", "Type":"REGULATED", "ABN":"24248426878", "USI":"OSF0001AU", "UpdatedDateUTC":"\/Date(1573510468000+0000)\/" } ] }
POST Updates a timesheet
{{baseUrl}}/Timesheets/:TimesheetID
QUERY PARAMS

TimesheetID
BODY json

[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Timesheets/:TimesheetID");

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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/Timesheets/:TimesheetID" {:content-type :json
                                                                    :form-params [{:EmployeeID ""
                                                                                   :EndDate ""
                                                                                   :Hours ""
                                                                                   :StartDate ""
                                                                                   :Status ""
                                                                                   :TimesheetID ""
                                                                                   :TimesheetLines [{:EarningsRateID ""
                                                                                                     :NumberOfUnits []
                                                                                                     :TrackingItemID ""
                                                                                                     :UpdatedDateUTC ""}]
                                                                                   :UpdatedDateUTC ""
                                                                                   :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/Timesheets/:TimesheetID"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets/:TimesheetID"),
    Content = new StringContent("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets/:TimesheetID");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Timesheets/:TimesheetID"

	payload := strings.NewReader("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Timesheets/:TimesheetID HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 392

[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Timesheets/:TimesheetID")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Timesheets/:TimesheetID"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Timesheets/:TimesheetID")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Timesheets/:TimesheetID")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    EmployeeID: '',
    EndDate: '',
    Hours: '',
    StartDate: '',
    Status: '',
    TimesheetID: '',
    TimesheetLines: [
      {
        EarningsRateID: '',
        NumberOfUnits: [],
        TrackingItemID: '',
        UpdatedDateUTC: ''
      }
    ],
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/Timesheets/:TimesheetID');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Timesheets/:TimesheetID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      EmployeeID: '',
      EndDate: '',
      Hours: '',
      StartDate: '',
      Status: '',
      TimesheetID: '',
      TimesheetLines: [
        {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
      ],
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Timesheets/:TimesheetID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"EmployeeID":"","EndDate":"","Hours":"","StartDate":"","Status":"","TimesheetID":"","TimesheetLines":[{"EarningsRateID":"","NumberOfUnits":[],"TrackingItemID":"","UpdatedDateUTC":""}],"UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/Timesheets/:TimesheetID',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "EmployeeID": "",\n    "EndDate": "",\n    "Hours": "",\n    "StartDate": "",\n    "Status": "",\n    "TimesheetID": "",\n    "TimesheetLines": [\n      {\n        "EarningsRateID": "",\n        "NumberOfUnits": [],\n        "TrackingItemID": "",\n        "UpdatedDateUTC": ""\n      }\n    ],\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/Timesheets/:TimesheetID")
  .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/Timesheets/:TimesheetID',
  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([
  {
    EmployeeID: '',
    EndDate: '',
    Hours: '',
    StartDate: '',
    Status: '',
    TimesheetID: '',
    TimesheetLines: [
      {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
    ],
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Timesheets/:TimesheetID',
  headers: {'content-type': 'application/json'},
  body: [
    {
      EmployeeID: '',
      EndDate: '',
      Hours: '',
      StartDate: '',
      Status: '',
      TimesheetID: '',
      TimesheetLines: [
        {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
      ],
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/Timesheets/:TimesheetID');

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

req.type('json');
req.send([
  {
    EmployeeID: '',
    EndDate: '',
    Hours: '',
    StartDate: '',
    Status: '',
    TimesheetID: '',
    TimesheetLines: [
      {
        EarningsRateID: '',
        NumberOfUnits: [],
        TrackingItemID: '',
        UpdatedDateUTC: ''
      }
    ],
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/Timesheets/:TimesheetID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      EmployeeID: '',
      EndDate: '',
      Hours: '',
      StartDate: '',
      Status: '',
      TimesheetID: '',
      TimesheetLines: [
        {EarningsRateID: '', NumberOfUnits: [], TrackingItemID: '', UpdatedDateUTC: ''}
      ],
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/Timesheets/:TimesheetID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"EmployeeID":"","EndDate":"","Hours":"","StartDate":"","Status":"","TimesheetID":"","TimesheetLines":[{"EarningsRateID":"","NumberOfUnits":[],"TrackingItemID":"","UpdatedDateUTC":""}],"UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"EmployeeID": @"", @"EndDate": @"", @"Hours": @"", @"StartDate": @"", @"Status": @"", @"TimesheetID": @"", @"TimesheetLines": @[ @{ @"EarningsRateID": @"", @"NumberOfUnits": @[  ], @"TrackingItemID": @"", @"UpdatedDateUTC": @"" } ], @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Timesheets/:TimesheetID"]
                                                       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}}/Timesheets/:TimesheetID" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Timesheets/:TimesheetID",
  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([
    [
        'EmployeeID' => '',
        'EndDate' => '',
        'Hours' => '',
        'StartDate' => '',
        'Status' => '',
        'TimesheetID' => '',
        'TimesheetLines' => [
                [
                                'EarningsRateID' => '',
                                'NumberOfUnits' => [
                                                                
                                ],
                                'TrackingItemID' => '',
                                'UpdatedDateUTC' => ''
                ]
        ],
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/Timesheets/:TimesheetID', [
  'body' => '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/Timesheets/:TimesheetID');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'EmployeeID' => '',
    'EndDate' => '',
    'Hours' => '',
    'StartDate' => '',
    'Status' => '',
    'TimesheetID' => '',
    'TimesheetLines' => [
        [
                'EarningsRateID' => '',
                'NumberOfUnits' => [
                                
                ],
                'TrackingItemID' => '',
                'UpdatedDateUTC' => ''
        ]
    ],
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'EmployeeID' => '',
    'EndDate' => '',
    'Hours' => '',
    'StartDate' => '',
    'Status' => '',
    'TimesheetID' => '',
    'TimesheetLines' => [
        [
                'EarningsRateID' => '',
                'NumberOfUnits' => [
                                
                ],
                'TrackingItemID' => '',
                'UpdatedDateUTC' => ''
        ]
    ],
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Timesheets/:TimesheetID');
$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}}/Timesheets/:TimesheetID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Timesheets/:TimesheetID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/Timesheets/:TimesheetID", payload, headers)

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

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

url = "{{baseUrl}}/Timesheets/:TimesheetID"

payload = [
    {
        "EmployeeID": "",
        "EndDate": "",
        "Hours": "",
        "StartDate": "",
        "Status": "",
        "TimesheetID": "",
        "TimesheetLines": [
            {
                "EarningsRateID": "",
                "NumberOfUnits": [],
                "TrackingItemID": "",
                "UpdatedDateUTC": ""
            }
        ],
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/Timesheets/:TimesheetID"

payload <- "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets/:TimesheetID")

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  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Timesheets/:TimesheetID') do |req|
  req.body = "[\n  {\n    \"EmployeeID\": \"\",\n    \"EndDate\": \"\",\n    \"Hours\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"TimesheetID\": \"\",\n    \"TimesheetLines\": [\n      {\n        \"EarningsRateID\": \"\",\n        \"NumberOfUnits\": [],\n        \"TrackingItemID\": \"\",\n        \"UpdatedDateUTC\": \"\"\n      }\n    ],\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Timesheets/:TimesheetID";

    let payload = (
        json!({
            "EmployeeID": "",
            "EndDate": "",
            "Hours": "",
            "StartDate": "",
            "Status": "",
            "TimesheetID": "",
            "TimesheetLines": (
                json!({
                    "EarningsRateID": "",
                    "NumberOfUnits": (),
                    "TrackingItemID": "",
                    "UpdatedDateUTC": ""
                })
            ),
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/Timesheets/:TimesheetID \
  --header 'content-type: application/json' \
  --data '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      {
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      }
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/Timesheets/:TimesheetID \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "EmployeeID": "",\n    "EndDate": "",\n    "Hours": "",\n    "StartDate": "",\n    "Status": "",\n    "TimesheetID": "",\n    "TimesheetLines": [\n      {\n        "EarningsRateID": "",\n        "NumberOfUnits": [],\n        "TrackingItemID": "",\n        "UpdatedDateUTC": ""\n      }\n    ],\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/Timesheets/:TimesheetID
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "EmployeeID": "",
    "EndDate": "",
    "Hours": "",
    "StartDate": "",
    "Status": "",
    "TimesheetID": "",
    "TimesheetLines": [
      [
        "EarningsRateID": "",
        "NumberOfUnits": [],
        "TrackingItemID": "",
        "UpdatedDateUTC": ""
      ]
    ],
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Timesheets/:TimesheetID")! 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

{ "Id":"42f97160-485a-400d-93e2-275f5b199694", "Status":"OK", "ProviderName":"3f93110a-df13-49c7-b82f-a069813df188", "DateTimeUTC":"\/Date(1573516185258)\/", "Timesheets":[ { "TimesheetID":"a7eb0a79-8511-4ee7-b473-3a25f28abcb9", "EmployeeID":"b34e89ff-770d-4099-b7e5-f968767118bc", "StartDate":"\/Date(1573171200000+0000)\/", "EndDate":"\/Date(1573689600000+0000)\/", "Status":"APPROVED", "Hours":22.0, "TimesheetLines":[ { "EarningsRateID":"ab874dfb-ab09-4c91-954e-43acf6fc23b4", "TrackingItemID":"af5e9ce2-2349-4136-be99-3561b189f473", "NumberOfUnits":[ 2.0, 10.0, 0.0, 0.0, 5.0, 0.0, 5.0 ], "UpdatedDateUTC":"\/Date(1573516185227+0000)\/" } ], "UpdatedDateUTC":"\/Date(1573516185227+0000)\/" } ] }
POST Updates an employee's detail
{{baseUrl}}/Employees/:EmployeeID
QUERY PARAMS

EmployeeID
BODY json

[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/Employees/:EmployeeID");

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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");

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

(client/post "{{baseUrl}}/Employees/:EmployeeID" {:content-type :json
                                                                  :form-params [{:BankAccounts [{:AccountName ""
                                                                                                 :AccountNumber ""
                                                                                                 :Amount ""
                                                                                                 :BSB ""
                                                                                                 :Remainder false
                                                                                                 :StatementText ""}]
                                                                                 :Classification ""
                                                                                 :DateOfBirth ""
                                                                                 :Email ""
                                                                                 :EmployeeGroupName ""
                                                                                 :EmployeeID ""
                                                                                 :FirstName ""
                                                                                 :Gender ""
                                                                                 :HomeAddress {:AddressLine1 ""
                                                                                               :AddressLine2 ""
                                                                                               :City ""
                                                                                               :Country ""
                                                                                               :PostalCode ""
                                                                                               :Region ""}
                                                                                 :IsAuthorisedToApproveLeave false
                                                                                 :IsAuthorisedToApproveTimesheets false
                                                                                 :JobTitle ""
                                                                                 :LastName ""
                                                                                 :LeaveBalances [{:LeaveName ""
                                                                                                  :LeaveTypeID ""
                                                                                                  :NumberOfUnits ""
                                                                                                  :TypeOfUnits ""}]
                                                                                 :LeaveLines [{:AnnualNumberOfUnits ""
                                                                                               :CalculationType ""
                                                                                               :EmploymentTerminationPaymentType ""
                                                                                               :EntitlementFinalPayPayoutType ""
                                                                                               :FullTimeNumberOfUnitsPerPeriod ""
                                                                                               :IncludeSuperannuationGuaranteeContribution false
                                                                                               :LeaveTypeID ""
                                                                                               :NumberOfUnits ""}]
                                                                                 :MiddleNames ""
                                                                                 :Mobile ""
                                                                                 :OpeningBalances {:DeductionLines [{:Amount ""
                                                                                                                     :CalculationType ""
                                                                                                                     :DeductionTypeID ""
                                                                                                                     :NumberOfUnits ""
                                                                                                                     :Percentage ""}]
                                                                                                   :EarningsLines [{:Amount ""
                                                                                                                    :AnnualSalary ""
                                                                                                                    :CalculationType ""
                                                                                                                    :EarningsRateID ""
                                                                                                                    :FixedAmount ""
                                                                                                                    :NormalNumberOfUnits ""
                                                                                                                    :NumberOfUnits ""
                                                                                                                    :NumberOfUnitsPerWeek ""
                                                                                                                    :RatePerUnit ""}]
                                                                                                   :LeaveLines [{}]
                                                                                                   :OpeningBalanceDate ""
                                                                                                   :ReimbursementLines [{:Amount ""
                                                                                                                         :Description ""
                                                                                                                         :ExpenseAccount ""
                                                                                                                         :ReimbursementTypeID ""}]
                                                                                                   :SuperLines [{:Amount ""
                                                                                                                 :CalculationType ""
                                                                                                                 :ContributionType ""
                                                                                                                 :ExpenseAccountCode ""
                                                                                                                 :LiabilityAccountCode ""
                                                                                                                 :MinimumMonthlyEarnings ""
                                                                                                                 :Percentage ""
                                                                                                                 :SuperMembershipID ""}]
                                                                                                   :Tax ""}
                                                                                 :OrdinaryEarningsRateID ""
                                                                                 :PayTemplate {:DeductionLines [{}]
                                                                                               :EarningsLines [{}]
                                                                                               :LeaveLines [{}]
                                                                                               :ReimbursementLines [{}]
                                                                                               :SuperLines [{}]}
                                                                                 :PayrollCalendarID ""
                                                                                 :Phone ""
                                                                                 :StartDate ""
                                                                                 :Status ""
                                                                                 :SuperMemberships [{:EmployeeNumber ""
                                                                                                     :SuperFundID ""
                                                                                                     :SuperMembershipID ""}]
                                                                                 :TaxDeclaration {:ApprovedWithholdingVariationPercentage ""
                                                                                                  :AustralianResidentForTaxPurposes false
                                                                                                  :EligibleToReceiveLeaveLoading false
                                                                                                  :EmployeeID ""
                                                                                                  :EmploymentBasis ""
                                                                                                  :HasHELPDebt false
                                                                                                  :HasSFSSDebt false
                                                                                                  :HasStudentStartupLoan false
                                                                                                  :HasTradeSupportLoanDebt false
                                                                                                  :ResidencyStatus ""
                                                                                                  :TFNExemptionType ""
                                                                                                  :TaxFileNumber ""
                                                                                                  :TaxFreeThresholdClaimed false
                                                                                                  :TaxOffsetEstimatedAmount ""
                                                                                                  :UpdatedDateUTC ""
                                                                                                  :UpwardVariationTaxWithholdingAmount ""}
                                                                                 :TerminationDate ""
                                                                                 :Title ""
                                                                                 :TwitterUserName ""
                                                                                 :UpdatedDateUTC ""
                                                                                 :ValidationErrors [{:Message ""}]}]})
require "http/client"

url = "{{baseUrl}}/Employees/:EmployeeID"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees/:EmployeeID"),
    Content = new StringContent("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees/:EmployeeID");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/Employees/:EmployeeID"

	payload := strings.NewReader("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Employees/:EmployeeID HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 3652

[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/Employees/:EmployeeID")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/Employees/:EmployeeID"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/Employees/:EmployeeID")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/Employees/:EmployeeID")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    BankAccounts: [
      {
        AccountName: '',
        AccountNumber: '',
        Amount: '',
        BSB: '',
        Remainder: false,
        StatementText: ''
      }
    ],
    Classification: '',
    DateOfBirth: '',
    Email: '',
    EmployeeGroupName: '',
    EmployeeID: '',
    FirstName: '',
    Gender: '',
    HomeAddress: {
      AddressLine1: '',
      AddressLine2: '',
      City: '',
      Country: '',
      PostalCode: '',
      Region: ''
    },
    IsAuthorisedToApproveLeave: false,
    IsAuthorisedToApproveTimesheets: false,
    JobTitle: '',
    LastName: '',
    LeaveBalances: [
      {
        LeaveName: '',
        LeaveTypeID: '',
        NumberOfUnits: '',
        TypeOfUnits: ''
      }
    ],
    LeaveLines: [
      {
        AnnualNumberOfUnits: '',
        CalculationType: '',
        EmploymentTerminationPaymentType: '',
        EntitlementFinalPayPayoutType: '',
        FullTimeNumberOfUnitsPerPeriod: '',
        IncludeSuperannuationGuaranteeContribution: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    MiddleNames: '',
    Mobile: '',
    OpeningBalances: {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveLines: [
        {}
      ],
      OpeningBalanceDate: '',
      ReimbursementLines: [
        {
          Amount: '',
          Description: '',
          ExpenseAccount: '',
          ReimbursementTypeID: ''
        }
      ],
      SuperLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      Tax: ''
    },
    OrdinaryEarningsRateID: '',
    PayTemplate: {
      DeductionLines: [
        {}
      ],
      EarningsLines: [
        {}
      ],
      LeaveLines: [
        {}
      ],
      ReimbursementLines: [
        {}
      ],
      SuperLines: [
        {}
      ]
    },
    PayrollCalendarID: '',
    Phone: '',
    StartDate: '',
    Status: '',
    SuperMemberships: [
      {
        EmployeeNumber: '',
        SuperFundID: '',
        SuperMembershipID: ''
      }
    ],
    TaxDeclaration: {
      ApprovedWithholdingVariationPercentage: '',
      AustralianResidentForTaxPurposes: false,
      EligibleToReceiveLeaveLoading: false,
      EmployeeID: '',
      EmploymentBasis: '',
      HasHELPDebt: false,
      HasSFSSDebt: false,
      HasStudentStartupLoan: false,
      HasTradeSupportLoanDebt: false,
      ResidencyStatus: '',
      TFNExemptionType: '',
      TaxFileNumber: '',
      TaxFreeThresholdClaimed: false,
      TaxOffsetEstimatedAmount: '',
      UpdatedDateUTC: '',
      UpwardVariationTaxWithholdingAmount: ''
    },
    TerminationDate: '',
    Title: '',
    TwitterUserName: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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

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

xhr.open('POST', '{{baseUrl}}/Employees/:EmployeeID');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Employees/:EmployeeID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      BankAccounts: [
        {
          AccountName: '',
          AccountNumber: '',
          Amount: '',
          BSB: '',
          Remainder: false,
          StatementText: ''
        }
      ],
      Classification: '',
      DateOfBirth: '',
      Email: '',
      EmployeeGroupName: '',
      EmployeeID: '',
      FirstName: '',
      Gender: '',
      HomeAddress: {
        AddressLine1: '',
        AddressLine2: '',
        City: '',
        Country: '',
        PostalCode: '',
        Region: ''
      },
      IsAuthorisedToApproveLeave: false,
      IsAuthorisedToApproveTimesheets: false,
      JobTitle: '',
      LastName: '',
      LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
      LeaveLines: [
        {
          AnnualNumberOfUnits: '',
          CalculationType: '',
          EmploymentTerminationPaymentType: '',
          EntitlementFinalPayPayoutType: '',
          FullTimeNumberOfUnitsPerPeriod: '',
          IncludeSuperannuationGuaranteeContribution: false,
          LeaveTypeID: '',
          NumberOfUnits: ''
        }
      ],
      MiddleNames: '',
      Mobile: '',
      OpeningBalances: {
        DeductionLines: [
          {
            Amount: '',
            CalculationType: '',
            DeductionTypeID: '',
            NumberOfUnits: '',
            Percentage: ''
          }
        ],
        EarningsLines: [
          {
            Amount: '',
            AnnualSalary: '',
            CalculationType: '',
            EarningsRateID: '',
            FixedAmount: '',
            NormalNumberOfUnits: '',
            NumberOfUnits: '',
            NumberOfUnitsPerWeek: '',
            RatePerUnit: ''
          }
        ],
        LeaveLines: [{}],
        OpeningBalanceDate: '',
        ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
        SuperLines: [
          {
            Amount: '',
            CalculationType: '',
            ContributionType: '',
            ExpenseAccountCode: '',
            LiabilityAccountCode: '',
            MinimumMonthlyEarnings: '',
            Percentage: '',
            SuperMembershipID: ''
          }
        ],
        Tax: ''
      },
      OrdinaryEarningsRateID: '',
      PayTemplate: {
        DeductionLines: [{}],
        EarningsLines: [{}],
        LeaveLines: [{}],
        ReimbursementLines: [{}],
        SuperLines: [{}]
      },
      PayrollCalendarID: '',
      Phone: '',
      StartDate: '',
      Status: '',
      SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
      TaxDeclaration: {
        ApprovedWithholdingVariationPercentage: '',
        AustralianResidentForTaxPurposes: false,
        EligibleToReceiveLeaveLoading: false,
        EmployeeID: '',
        EmploymentBasis: '',
        HasHELPDebt: false,
        HasSFSSDebt: false,
        HasStudentStartupLoan: false,
        HasTradeSupportLoanDebt: false,
        ResidencyStatus: '',
        TFNExemptionType: '',
        TaxFileNumber: '',
        TaxFreeThresholdClaimed: false,
        TaxOffsetEstimatedAmount: '',
        UpdatedDateUTC: '',
        UpwardVariationTaxWithholdingAmount: ''
      },
      TerminationDate: '',
      Title: '',
      TwitterUserName: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/Employees/:EmployeeID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"BankAccounts":[{"AccountName":"","AccountNumber":"","Amount":"","BSB":"","Remainder":false,"StatementText":""}],"Classification":"","DateOfBirth":"","Email":"","EmployeeGroupName":"","EmployeeID":"","FirstName":"","Gender":"","HomeAddress":{"AddressLine1":"","AddressLine2":"","City":"","Country":"","PostalCode":"","Region":""},"IsAuthorisedToApproveLeave":false,"IsAuthorisedToApproveTimesheets":false,"JobTitle":"","LastName":"","LeaveBalances":[{"LeaveName":"","LeaveTypeID":"","NumberOfUnits":"","TypeOfUnits":""}],"LeaveLines":[{"AnnualNumberOfUnits":"","CalculationType":"","EmploymentTerminationPaymentType":"","EntitlementFinalPayPayoutType":"","FullTimeNumberOfUnitsPerPeriod":"","IncludeSuperannuationGuaranteeContribution":false,"LeaveTypeID":"","NumberOfUnits":""}],"MiddleNames":"","Mobile":"","OpeningBalances":{"DeductionLines":[{"Amount":"","CalculationType":"","DeductionTypeID":"","NumberOfUnits":"","Percentage":""}],"EarningsLines":[{"Amount":"","AnnualSalary":"","CalculationType":"","EarningsRateID":"","FixedAmount":"","NormalNumberOfUnits":"","NumberOfUnits":"","NumberOfUnitsPerWeek":"","RatePerUnit":""}],"LeaveLines":[{}],"OpeningBalanceDate":"","ReimbursementLines":[{"Amount":"","Description":"","ExpenseAccount":"","ReimbursementTypeID":""}],"SuperLines":[{"Amount":"","CalculationType":"","ContributionType":"","ExpenseAccountCode":"","LiabilityAccountCode":"","MinimumMonthlyEarnings":"","Percentage":"","SuperMembershipID":""}],"Tax":""},"OrdinaryEarningsRateID":"","PayTemplate":{"DeductionLines":[{}],"EarningsLines":[{}],"LeaveLines":[{}],"ReimbursementLines":[{}],"SuperLines":[{}]},"PayrollCalendarID":"","Phone":"","StartDate":"","Status":"","SuperMemberships":[{"EmployeeNumber":"","SuperFundID":"","SuperMembershipID":""}],"TaxDeclaration":{"ApprovedWithholdingVariationPercentage":"","AustralianResidentForTaxPurposes":false,"EligibleToReceiveLeaveLoading":false,"EmployeeID":"","EmploymentBasis":"","HasHELPDebt":false,"HasSFSSDebt":false,"HasStudentStartupLoan":false,"HasTradeSupportLoanDebt":false,"ResidencyStatus":"","TFNExemptionType":"","TaxFileNumber":"","TaxFreeThresholdClaimed":false,"TaxOffsetEstimatedAmount":"","UpdatedDateUTC":"","UpwardVariationTaxWithholdingAmount":""},"TerminationDate":"","Title":"","TwitterUserName":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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}}/Employees/:EmployeeID',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "BankAccounts": [\n      {\n        "AccountName": "",\n        "AccountNumber": "",\n        "Amount": "",\n        "BSB": "",\n        "Remainder": false,\n        "StatementText": ""\n      }\n    ],\n    "Classification": "",\n    "DateOfBirth": "",\n    "Email": "",\n    "EmployeeGroupName": "",\n    "EmployeeID": "",\n    "FirstName": "",\n    "Gender": "",\n    "HomeAddress": {\n      "AddressLine1": "",\n      "AddressLine2": "",\n      "City": "",\n      "Country": "",\n      "PostalCode": "",\n      "Region": ""\n    },\n    "IsAuthorisedToApproveLeave": false,\n    "IsAuthorisedToApproveTimesheets": false,\n    "JobTitle": "",\n    "LastName": "",\n    "LeaveBalances": [\n      {\n        "LeaveName": "",\n        "LeaveTypeID": "",\n        "NumberOfUnits": "",\n        "TypeOfUnits": ""\n      }\n    ],\n    "LeaveLines": [\n      {\n        "AnnualNumberOfUnits": "",\n        "CalculationType": "",\n        "EmploymentTerminationPaymentType": "",\n        "EntitlementFinalPayPayoutType": "",\n        "FullTimeNumberOfUnitsPerPeriod": "",\n        "IncludeSuperannuationGuaranteeContribution": false,\n        "LeaveTypeID": "",\n        "NumberOfUnits": ""\n      }\n    ],\n    "MiddleNames": "",\n    "Mobile": "",\n    "OpeningBalances": {\n      "DeductionLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "DeductionTypeID": "",\n          "NumberOfUnits": "",\n          "Percentage": ""\n        }\n      ],\n      "EarningsLines": [\n        {\n          "Amount": "",\n          "AnnualSalary": "",\n          "CalculationType": "",\n          "EarningsRateID": "",\n          "FixedAmount": "",\n          "NormalNumberOfUnits": "",\n          "NumberOfUnits": "",\n          "NumberOfUnitsPerWeek": "",\n          "RatePerUnit": ""\n        }\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "OpeningBalanceDate": "",\n      "ReimbursementLines": [\n        {\n          "Amount": "",\n          "Description": "",\n          "ExpenseAccount": "",\n          "ReimbursementTypeID": ""\n        }\n      ],\n      "SuperLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "ContributionType": "",\n          "ExpenseAccountCode": "",\n          "LiabilityAccountCode": "",\n          "MinimumMonthlyEarnings": "",\n          "Percentage": "",\n          "SuperMembershipID": ""\n        }\n      ],\n      "Tax": ""\n    },\n    "OrdinaryEarningsRateID": "",\n    "PayTemplate": {\n      "DeductionLines": [\n        {}\n      ],\n      "EarningsLines": [\n        {}\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "ReimbursementLines": [\n        {}\n      ],\n      "SuperLines": [\n        {}\n      ]\n    },\n    "PayrollCalendarID": "",\n    "Phone": "",\n    "StartDate": "",\n    "Status": "",\n    "SuperMemberships": [\n      {\n        "EmployeeNumber": "",\n        "SuperFundID": "",\n        "SuperMembershipID": ""\n      }\n    ],\n    "TaxDeclaration": {\n      "ApprovedWithholdingVariationPercentage": "",\n      "AustralianResidentForTaxPurposes": false,\n      "EligibleToReceiveLeaveLoading": false,\n      "EmployeeID": "",\n      "EmploymentBasis": "",\n      "HasHELPDebt": false,\n      "HasSFSSDebt": false,\n      "HasStudentStartupLoan": false,\n      "HasTradeSupportLoanDebt": false,\n      "ResidencyStatus": "",\n      "TFNExemptionType": "",\n      "TaxFileNumber": "",\n      "TaxFreeThresholdClaimed": false,\n      "TaxOffsetEstimatedAmount": "",\n      "UpdatedDateUTC": "",\n      "UpwardVariationTaxWithholdingAmount": ""\n    },\n    "TerminationDate": "",\n    "Title": "",\n    "TwitterUserName": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/Employees/:EmployeeID")
  .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/Employees/:EmployeeID',
  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([
  {
    BankAccounts: [
      {
        AccountName: '',
        AccountNumber: '',
        Amount: '',
        BSB: '',
        Remainder: false,
        StatementText: ''
      }
    ],
    Classification: '',
    DateOfBirth: '',
    Email: '',
    EmployeeGroupName: '',
    EmployeeID: '',
    FirstName: '',
    Gender: '',
    HomeAddress: {
      AddressLine1: '',
      AddressLine2: '',
      City: '',
      Country: '',
      PostalCode: '',
      Region: ''
    },
    IsAuthorisedToApproveLeave: false,
    IsAuthorisedToApproveTimesheets: false,
    JobTitle: '',
    LastName: '',
    LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
    LeaveLines: [
      {
        AnnualNumberOfUnits: '',
        CalculationType: '',
        EmploymentTerminationPaymentType: '',
        EntitlementFinalPayPayoutType: '',
        FullTimeNumberOfUnitsPerPeriod: '',
        IncludeSuperannuationGuaranteeContribution: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    MiddleNames: '',
    Mobile: '',
    OpeningBalances: {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveLines: [{}],
      OpeningBalanceDate: '',
      ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
      SuperLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      Tax: ''
    },
    OrdinaryEarningsRateID: '',
    PayTemplate: {
      DeductionLines: [{}],
      EarningsLines: [{}],
      LeaveLines: [{}],
      ReimbursementLines: [{}],
      SuperLines: [{}]
    },
    PayrollCalendarID: '',
    Phone: '',
    StartDate: '',
    Status: '',
    SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
    TaxDeclaration: {
      ApprovedWithholdingVariationPercentage: '',
      AustralianResidentForTaxPurposes: false,
      EligibleToReceiveLeaveLoading: false,
      EmployeeID: '',
      EmploymentBasis: '',
      HasHELPDebt: false,
      HasSFSSDebt: false,
      HasStudentStartupLoan: false,
      HasTradeSupportLoanDebt: false,
      ResidencyStatus: '',
      TFNExemptionType: '',
      TaxFileNumber: '',
      TaxFreeThresholdClaimed: false,
      TaxOffsetEstimatedAmount: '',
      UpdatedDateUTC: '',
      UpwardVariationTaxWithholdingAmount: ''
    },
    TerminationDate: '',
    Title: '',
    TwitterUserName: '',
    UpdatedDateUTC: '',
    ValidationErrors: [{Message: ''}]
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/Employees/:EmployeeID',
  headers: {'content-type': 'application/json'},
  body: [
    {
      BankAccounts: [
        {
          AccountName: '',
          AccountNumber: '',
          Amount: '',
          BSB: '',
          Remainder: false,
          StatementText: ''
        }
      ],
      Classification: '',
      DateOfBirth: '',
      Email: '',
      EmployeeGroupName: '',
      EmployeeID: '',
      FirstName: '',
      Gender: '',
      HomeAddress: {
        AddressLine1: '',
        AddressLine2: '',
        City: '',
        Country: '',
        PostalCode: '',
        Region: ''
      },
      IsAuthorisedToApproveLeave: false,
      IsAuthorisedToApproveTimesheets: false,
      JobTitle: '',
      LastName: '',
      LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
      LeaveLines: [
        {
          AnnualNumberOfUnits: '',
          CalculationType: '',
          EmploymentTerminationPaymentType: '',
          EntitlementFinalPayPayoutType: '',
          FullTimeNumberOfUnitsPerPeriod: '',
          IncludeSuperannuationGuaranteeContribution: false,
          LeaveTypeID: '',
          NumberOfUnits: ''
        }
      ],
      MiddleNames: '',
      Mobile: '',
      OpeningBalances: {
        DeductionLines: [
          {
            Amount: '',
            CalculationType: '',
            DeductionTypeID: '',
            NumberOfUnits: '',
            Percentage: ''
          }
        ],
        EarningsLines: [
          {
            Amount: '',
            AnnualSalary: '',
            CalculationType: '',
            EarningsRateID: '',
            FixedAmount: '',
            NormalNumberOfUnits: '',
            NumberOfUnits: '',
            NumberOfUnitsPerWeek: '',
            RatePerUnit: ''
          }
        ],
        LeaveLines: [{}],
        OpeningBalanceDate: '',
        ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
        SuperLines: [
          {
            Amount: '',
            CalculationType: '',
            ContributionType: '',
            ExpenseAccountCode: '',
            LiabilityAccountCode: '',
            MinimumMonthlyEarnings: '',
            Percentage: '',
            SuperMembershipID: ''
          }
        ],
        Tax: ''
      },
      OrdinaryEarningsRateID: '',
      PayTemplate: {
        DeductionLines: [{}],
        EarningsLines: [{}],
        LeaveLines: [{}],
        ReimbursementLines: [{}],
        SuperLines: [{}]
      },
      PayrollCalendarID: '',
      Phone: '',
      StartDate: '',
      Status: '',
      SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
      TaxDeclaration: {
        ApprovedWithholdingVariationPercentage: '',
        AustralianResidentForTaxPurposes: false,
        EligibleToReceiveLeaveLoading: false,
        EmployeeID: '',
        EmploymentBasis: '',
        HasHELPDebt: false,
        HasSFSSDebt: false,
        HasStudentStartupLoan: false,
        HasTradeSupportLoanDebt: false,
        ResidencyStatus: '',
        TFNExemptionType: '',
        TaxFileNumber: '',
        TaxFreeThresholdClaimed: false,
        TaxOffsetEstimatedAmount: '',
        UpdatedDateUTC: '',
        UpwardVariationTaxWithholdingAmount: ''
      },
      TerminationDate: '',
      Title: '',
      TwitterUserName: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ],
  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}}/Employees/:EmployeeID');

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

req.type('json');
req.send([
  {
    BankAccounts: [
      {
        AccountName: '',
        AccountNumber: '',
        Amount: '',
        BSB: '',
        Remainder: false,
        StatementText: ''
      }
    ],
    Classification: '',
    DateOfBirth: '',
    Email: '',
    EmployeeGroupName: '',
    EmployeeID: '',
    FirstName: '',
    Gender: '',
    HomeAddress: {
      AddressLine1: '',
      AddressLine2: '',
      City: '',
      Country: '',
      PostalCode: '',
      Region: ''
    },
    IsAuthorisedToApproveLeave: false,
    IsAuthorisedToApproveTimesheets: false,
    JobTitle: '',
    LastName: '',
    LeaveBalances: [
      {
        LeaveName: '',
        LeaveTypeID: '',
        NumberOfUnits: '',
        TypeOfUnits: ''
      }
    ],
    LeaveLines: [
      {
        AnnualNumberOfUnits: '',
        CalculationType: '',
        EmploymentTerminationPaymentType: '',
        EntitlementFinalPayPayoutType: '',
        FullTimeNumberOfUnitsPerPeriod: '',
        IncludeSuperannuationGuaranteeContribution: false,
        LeaveTypeID: '',
        NumberOfUnits: ''
      }
    ],
    MiddleNames: '',
    Mobile: '',
    OpeningBalances: {
      DeductionLines: [
        {
          Amount: '',
          CalculationType: '',
          DeductionTypeID: '',
          NumberOfUnits: '',
          Percentage: ''
        }
      ],
      EarningsLines: [
        {
          Amount: '',
          AnnualSalary: '',
          CalculationType: '',
          EarningsRateID: '',
          FixedAmount: '',
          NormalNumberOfUnits: '',
          NumberOfUnits: '',
          NumberOfUnitsPerWeek: '',
          RatePerUnit: ''
        }
      ],
      LeaveLines: [
        {}
      ],
      OpeningBalanceDate: '',
      ReimbursementLines: [
        {
          Amount: '',
          Description: '',
          ExpenseAccount: '',
          ReimbursementTypeID: ''
        }
      ],
      SuperLines: [
        {
          Amount: '',
          CalculationType: '',
          ContributionType: '',
          ExpenseAccountCode: '',
          LiabilityAccountCode: '',
          MinimumMonthlyEarnings: '',
          Percentage: '',
          SuperMembershipID: ''
        }
      ],
      Tax: ''
    },
    OrdinaryEarningsRateID: '',
    PayTemplate: {
      DeductionLines: [
        {}
      ],
      EarningsLines: [
        {}
      ],
      LeaveLines: [
        {}
      ],
      ReimbursementLines: [
        {}
      ],
      SuperLines: [
        {}
      ]
    },
    PayrollCalendarID: '',
    Phone: '',
    StartDate: '',
    Status: '',
    SuperMemberships: [
      {
        EmployeeNumber: '',
        SuperFundID: '',
        SuperMembershipID: ''
      }
    ],
    TaxDeclaration: {
      ApprovedWithholdingVariationPercentage: '',
      AustralianResidentForTaxPurposes: false,
      EligibleToReceiveLeaveLoading: false,
      EmployeeID: '',
      EmploymentBasis: '',
      HasHELPDebt: false,
      HasSFSSDebt: false,
      HasStudentStartupLoan: false,
      HasTradeSupportLoanDebt: false,
      ResidencyStatus: '',
      TFNExemptionType: '',
      TaxFileNumber: '',
      TaxFreeThresholdClaimed: false,
      TaxOffsetEstimatedAmount: '',
      UpdatedDateUTC: '',
      UpwardVariationTaxWithholdingAmount: ''
    },
    TerminationDate: '',
    Title: '',
    TwitterUserName: '',
    UpdatedDateUTC: '',
    ValidationErrors: [
      {
        Message: ''
      }
    ]
  }
]);

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}}/Employees/:EmployeeID',
  headers: {'content-type': 'application/json'},
  data: [
    {
      BankAccounts: [
        {
          AccountName: '',
          AccountNumber: '',
          Amount: '',
          BSB: '',
          Remainder: false,
          StatementText: ''
        }
      ],
      Classification: '',
      DateOfBirth: '',
      Email: '',
      EmployeeGroupName: '',
      EmployeeID: '',
      FirstName: '',
      Gender: '',
      HomeAddress: {
        AddressLine1: '',
        AddressLine2: '',
        City: '',
        Country: '',
        PostalCode: '',
        Region: ''
      },
      IsAuthorisedToApproveLeave: false,
      IsAuthorisedToApproveTimesheets: false,
      JobTitle: '',
      LastName: '',
      LeaveBalances: [{LeaveName: '', LeaveTypeID: '', NumberOfUnits: '', TypeOfUnits: ''}],
      LeaveLines: [
        {
          AnnualNumberOfUnits: '',
          CalculationType: '',
          EmploymentTerminationPaymentType: '',
          EntitlementFinalPayPayoutType: '',
          FullTimeNumberOfUnitsPerPeriod: '',
          IncludeSuperannuationGuaranteeContribution: false,
          LeaveTypeID: '',
          NumberOfUnits: ''
        }
      ],
      MiddleNames: '',
      Mobile: '',
      OpeningBalances: {
        DeductionLines: [
          {
            Amount: '',
            CalculationType: '',
            DeductionTypeID: '',
            NumberOfUnits: '',
            Percentage: ''
          }
        ],
        EarningsLines: [
          {
            Amount: '',
            AnnualSalary: '',
            CalculationType: '',
            EarningsRateID: '',
            FixedAmount: '',
            NormalNumberOfUnits: '',
            NumberOfUnits: '',
            NumberOfUnitsPerWeek: '',
            RatePerUnit: ''
          }
        ],
        LeaveLines: [{}],
        OpeningBalanceDate: '',
        ReimbursementLines: [{Amount: '', Description: '', ExpenseAccount: '', ReimbursementTypeID: ''}],
        SuperLines: [
          {
            Amount: '',
            CalculationType: '',
            ContributionType: '',
            ExpenseAccountCode: '',
            LiabilityAccountCode: '',
            MinimumMonthlyEarnings: '',
            Percentage: '',
            SuperMembershipID: ''
          }
        ],
        Tax: ''
      },
      OrdinaryEarningsRateID: '',
      PayTemplate: {
        DeductionLines: [{}],
        EarningsLines: [{}],
        LeaveLines: [{}],
        ReimbursementLines: [{}],
        SuperLines: [{}]
      },
      PayrollCalendarID: '',
      Phone: '',
      StartDate: '',
      Status: '',
      SuperMemberships: [{EmployeeNumber: '', SuperFundID: '', SuperMembershipID: ''}],
      TaxDeclaration: {
        ApprovedWithholdingVariationPercentage: '',
        AustralianResidentForTaxPurposes: false,
        EligibleToReceiveLeaveLoading: false,
        EmployeeID: '',
        EmploymentBasis: '',
        HasHELPDebt: false,
        HasSFSSDebt: false,
        HasStudentStartupLoan: false,
        HasTradeSupportLoanDebt: false,
        ResidencyStatus: '',
        TFNExemptionType: '',
        TaxFileNumber: '',
        TaxFreeThresholdClaimed: false,
        TaxOffsetEstimatedAmount: '',
        UpdatedDateUTC: '',
        UpwardVariationTaxWithholdingAmount: ''
      },
      TerminationDate: '',
      Title: '',
      TwitterUserName: '',
      UpdatedDateUTC: '',
      ValidationErrors: [{Message: ''}]
    }
  ]
};

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

const url = '{{baseUrl}}/Employees/:EmployeeID';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"BankAccounts":[{"AccountName":"","AccountNumber":"","Amount":"","BSB":"","Remainder":false,"StatementText":""}],"Classification":"","DateOfBirth":"","Email":"","EmployeeGroupName":"","EmployeeID":"","FirstName":"","Gender":"","HomeAddress":{"AddressLine1":"","AddressLine2":"","City":"","Country":"","PostalCode":"","Region":""},"IsAuthorisedToApproveLeave":false,"IsAuthorisedToApproveTimesheets":false,"JobTitle":"","LastName":"","LeaveBalances":[{"LeaveName":"","LeaveTypeID":"","NumberOfUnits":"","TypeOfUnits":""}],"LeaveLines":[{"AnnualNumberOfUnits":"","CalculationType":"","EmploymentTerminationPaymentType":"","EntitlementFinalPayPayoutType":"","FullTimeNumberOfUnitsPerPeriod":"","IncludeSuperannuationGuaranteeContribution":false,"LeaveTypeID":"","NumberOfUnits":""}],"MiddleNames":"","Mobile":"","OpeningBalances":{"DeductionLines":[{"Amount":"","CalculationType":"","DeductionTypeID":"","NumberOfUnits":"","Percentage":""}],"EarningsLines":[{"Amount":"","AnnualSalary":"","CalculationType":"","EarningsRateID":"","FixedAmount":"","NormalNumberOfUnits":"","NumberOfUnits":"","NumberOfUnitsPerWeek":"","RatePerUnit":""}],"LeaveLines":[{}],"OpeningBalanceDate":"","ReimbursementLines":[{"Amount":"","Description":"","ExpenseAccount":"","ReimbursementTypeID":""}],"SuperLines":[{"Amount":"","CalculationType":"","ContributionType":"","ExpenseAccountCode":"","LiabilityAccountCode":"","MinimumMonthlyEarnings":"","Percentage":"","SuperMembershipID":""}],"Tax":""},"OrdinaryEarningsRateID":"","PayTemplate":{"DeductionLines":[{}],"EarningsLines":[{}],"LeaveLines":[{}],"ReimbursementLines":[{}],"SuperLines":[{}]},"PayrollCalendarID":"","Phone":"","StartDate":"","Status":"","SuperMemberships":[{"EmployeeNumber":"","SuperFundID":"","SuperMembershipID":""}],"TaxDeclaration":{"ApprovedWithholdingVariationPercentage":"","AustralianResidentForTaxPurposes":false,"EligibleToReceiveLeaveLoading":false,"EmployeeID":"","EmploymentBasis":"","HasHELPDebt":false,"HasSFSSDebt":false,"HasStudentStartupLoan":false,"HasTradeSupportLoanDebt":false,"ResidencyStatus":"","TFNExemptionType":"","TaxFileNumber":"","TaxFreeThresholdClaimed":false,"TaxOffsetEstimatedAmount":"","UpdatedDateUTC":"","UpwardVariationTaxWithholdingAmount":""},"TerminationDate":"","Title":"","TwitterUserName":"","UpdatedDateUTC":"","ValidationErrors":[{"Message":""}]}]'
};

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 = @[ @{ @"BankAccounts": @[ @{ @"AccountName": @"", @"AccountNumber": @"", @"Amount": @"", @"BSB": @"", @"Remainder": @NO, @"StatementText": @"" } ], @"Classification": @"", @"DateOfBirth": @"", @"Email": @"", @"EmployeeGroupName": @"", @"EmployeeID": @"", @"FirstName": @"", @"Gender": @"", @"HomeAddress": @{ @"AddressLine1": @"", @"AddressLine2": @"", @"City": @"", @"Country": @"", @"PostalCode": @"", @"Region": @"" }, @"IsAuthorisedToApproveLeave": @NO, @"IsAuthorisedToApproveTimesheets": @NO, @"JobTitle": @"", @"LastName": @"", @"LeaveBalances": @[ @{ @"LeaveName": @"", @"LeaveTypeID": @"", @"NumberOfUnits": @"", @"TypeOfUnits": @"" } ], @"LeaveLines": @[ @{ @"AnnualNumberOfUnits": @"", @"CalculationType": @"", @"EmploymentTerminationPaymentType": @"", @"EntitlementFinalPayPayoutType": @"", @"FullTimeNumberOfUnitsPerPeriod": @"", @"IncludeSuperannuationGuaranteeContribution": @NO, @"LeaveTypeID": @"", @"NumberOfUnits": @"" } ], @"MiddleNames": @"", @"Mobile": @"", @"OpeningBalances": @{ @"DeductionLines": @[ @{ @"Amount": @"", @"CalculationType": @"", @"DeductionTypeID": @"", @"NumberOfUnits": @"", @"Percentage": @"" } ], @"EarningsLines": @[ @{ @"Amount": @"", @"AnnualSalary": @"", @"CalculationType": @"", @"EarningsRateID": @"", @"FixedAmount": @"", @"NormalNumberOfUnits": @"", @"NumberOfUnits": @"", @"NumberOfUnitsPerWeek": @"", @"RatePerUnit": @"" } ], @"LeaveLines": @[ @{  } ], @"OpeningBalanceDate": @"", @"ReimbursementLines": @[ @{ @"Amount": @"", @"Description": @"", @"ExpenseAccount": @"", @"ReimbursementTypeID": @"" } ], @"SuperLines": @[ @{ @"Amount": @"", @"CalculationType": @"", @"ContributionType": @"", @"ExpenseAccountCode": @"", @"LiabilityAccountCode": @"", @"MinimumMonthlyEarnings": @"", @"Percentage": @"", @"SuperMembershipID": @"" } ], @"Tax": @"" }, @"OrdinaryEarningsRateID": @"", @"PayTemplate": @{ @"DeductionLines": @[ @{  } ], @"EarningsLines": @[ @{  } ], @"LeaveLines": @[ @{  } ], @"ReimbursementLines": @[ @{  } ], @"SuperLines": @[ @{  } ] }, @"PayrollCalendarID": @"", @"Phone": @"", @"StartDate": @"", @"Status": @"", @"SuperMemberships": @[ @{ @"EmployeeNumber": @"", @"SuperFundID": @"", @"SuperMembershipID": @"" } ], @"TaxDeclaration": @{ @"ApprovedWithholdingVariationPercentage": @"", @"AustralianResidentForTaxPurposes": @NO, @"EligibleToReceiveLeaveLoading": @NO, @"EmployeeID": @"", @"EmploymentBasis": @"", @"HasHELPDebt": @NO, @"HasSFSSDebt": @NO, @"HasStudentStartupLoan": @NO, @"HasTradeSupportLoanDebt": @NO, @"ResidencyStatus": @"", @"TFNExemptionType": @"", @"TaxFileNumber": @"", @"TaxFreeThresholdClaimed": @NO, @"TaxOffsetEstimatedAmount": @"", @"UpdatedDateUTC": @"", @"UpwardVariationTaxWithholdingAmount": @"" }, @"TerminationDate": @"", @"Title": @"", @"TwitterUserName": @"", @"UpdatedDateUTC": @"", @"ValidationErrors": @[ @{ @"Message": @"" } ] } ];

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/Employees/:EmployeeID"]
                                                       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}}/Employees/:EmployeeID" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/Employees/:EmployeeID",
  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([
    [
        'BankAccounts' => [
                [
                                'AccountName' => '',
                                'AccountNumber' => '',
                                'Amount' => '',
                                'BSB' => '',
                                'Remainder' => null,
                                'StatementText' => ''
                ]
        ],
        'Classification' => '',
        'DateOfBirth' => '',
        'Email' => '',
        'EmployeeGroupName' => '',
        'EmployeeID' => '',
        'FirstName' => '',
        'Gender' => '',
        'HomeAddress' => [
                'AddressLine1' => '',
                'AddressLine2' => '',
                'City' => '',
                'Country' => '',
                'PostalCode' => '',
                'Region' => ''
        ],
        'IsAuthorisedToApproveLeave' => null,
        'IsAuthorisedToApproveTimesheets' => null,
        'JobTitle' => '',
        'LastName' => '',
        'LeaveBalances' => [
                [
                                'LeaveName' => '',
                                'LeaveTypeID' => '',
                                'NumberOfUnits' => '',
                                'TypeOfUnits' => ''
                ]
        ],
        'LeaveLines' => [
                [
                                'AnnualNumberOfUnits' => '',
                                'CalculationType' => '',
                                'EmploymentTerminationPaymentType' => '',
                                'EntitlementFinalPayPayoutType' => '',
                                'FullTimeNumberOfUnitsPerPeriod' => '',
                                'IncludeSuperannuationGuaranteeContribution' => null,
                                'LeaveTypeID' => '',
                                'NumberOfUnits' => ''
                ]
        ],
        'MiddleNames' => '',
        'Mobile' => '',
        'OpeningBalances' => [
                'DeductionLines' => [
                                [
                                                                'Amount' => '',
                                                                'CalculationType' => '',
                                                                'DeductionTypeID' => '',
                                                                'NumberOfUnits' => '',
                                                                'Percentage' => ''
                                ]
                ],
                'EarningsLines' => [
                                [
                                                                'Amount' => '',
                                                                'AnnualSalary' => '',
                                                                'CalculationType' => '',
                                                                'EarningsRateID' => '',
                                                                'FixedAmount' => '',
                                                                'NormalNumberOfUnits' => '',
                                                                'NumberOfUnits' => '',
                                                                'NumberOfUnitsPerWeek' => '',
                                                                'RatePerUnit' => ''
                                ]
                ],
                'LeaveLines' => [
                                [
                                                                
                                ]
                ],
                'OpeningBalanceDate' => '',
                'ReimbursementLines' => [
                                [
                                                                'Amount' => '',
                                                                'Description' => '',
                                                                'ExpenseAccount' => '',
                                                                'ReimbursementTypeID' => ''
                                ]
                ],
                'SuperLines' => [
                                [
                                                                'Amount' => '',
                                                                'CalculationType' => '',
                                                                'ContributionType' => '',
                                                                'ExpenseAccountCode' => '',
                                                                'LiabilityAccountCode' => '',
                                                                'MinimumMonthlyEarnings' => '',
                                                                'Percentage' => '',
                                                                'SuperMembershipID' => ''
                                ]
                ],
                'Tax' => ''
        ],
        'OrdinaryEarningsRateID' => '',
        'PayTemplate' => [
                'DeductionLines' => [
                                [
                                                                
                                ]
                ],
                'EarningsLines' => [
                                [
                                                                
                                ]
                ],
                'LeaveLines' => [
                                [
                                                                
                                ]
                ],
                'ReimbursementLines' => [
                                [
                                                                
                                ]
                ],
                'SuperLines' => [
                                [
                                                                
                                ]
                ]
        ],
        'PayrollCalendarID' => '',
        'Phone' => '',
        'StartDate' => '',
        'Status' => '',
        'SuperMemberships' => [
                [
                                'EmployeeNumber' => '',
                                'SuperFundID' => '',
                                'SuperMembershipID' => ''
                ]
        ],
        'TaxDeclaration' => [
                'ApprovedWithholdingVariationPercentage' => '',
                'AustralianResidentForTaxPurposes' => null,
                'EligibleToReceiveLeaveLoading' => null,
                'EmployeeID' => '',
                'EmploymentBasis' => '',
                'HasHELPDebt' => null,
                'HasSFSSDebt' => null,
                'HasStudentStartupLoan' => null,
                'HasTradeSupportLoanDebt' => null,
                'ResidencyStatus' => '',
                'TFNExemptionType' => '',
                'TaxFileNumber' => '',
                'TaxFreeThresholdClaimed' => null,
                'TaxOffsetEstimatedAmount' => '',
                'UpdatedDateUTC' => '',
                'UpwardVariationTaxWithholdingAmount' => ''
        ],
        'TerminationDate' => '',
        'Title' => '',
        'TwitterUserName' => '',
        'UpdatedDateUTC' => '',
        'ValidationErrors' => [
                [
                                'Message' => ''
                ]
        ]
    ]
  ]),
  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}}/Employees/:EmployeeID', [
  'body' => '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/Employees/:EmployeeID');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'BankAccounts' => [
        [
                'AccountName' => '',
                'AccountNumber' => '',
                'Amount' => '',
                'BSB' => '',
                'Remainder' => null,
                'StatementText' => ''
        ]
    ],
    'Classification' => '',
    'DateOfBirth' => '',
    'Email' => '',
    'EmployeeGroupName' => '',
    'EmployeeID' => '',
    'FirstName' => '',
    'Gender' => '',
    'HomeAddress' => [
        'AddressLine1' => '',
        'AddressLine2' => '',
        'City' => '',
        'Country' => '',
        'PostalCode' => '',
        'Region' => ''
    ],
    'IsAuthorisedToApproveLeave' => null,
    'IsAuthorisedToApproveTimesheets' => null,
    'JobTitle' => '',
    'LastName' => '',
    'LeaveBalances' => [
        [
                'LeaveName' => '',
                'LeaveTypeID' => '',
                'NumberOfUnits' => '',
                'TypeOfUnits' => ''
        ]
    ],
    'LeaveLines' => [
        [
                'AnnualNumberOfUnits' => '',
                'CalculationType' => '',
                'EmploymentTerminationPaymentType' => '',
                'EntitlementFinalPayPayoutType' => '',
                'FullTimeNumberOfUnitsPerPeriod' => '',
                'IncludeSuperannuationGuaranteeContribution' => null,
                'LeaveTypeID' => '',
                'NumberOfUnits' => ''
        ]
    ],
    'MiddleNames' => '',
    'Mobile' => '',
    'OpeningBalances' => [
        'DeductionLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'DeductionTypeID' => '',
                                'NumberOfUnits' => '',
                                'Percentage' => ''
                ]
        ],
        'EarningsLines' => [
                [
                                'Amount' => '',
                                'AnnualSalary' => '',
                                'CalculationType' => '',
                                'EarningsRateID' => '',
                                'FixedAmount' => '',
                                'NormalNumberOfUnits' => '',
                                'NumberOfUnits' => '',
                                'NumberOfUnitsPerWeek' => '',
                                'RatePerUnit' => ''
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'OpeningBalanceDate' => '',
        'ReimbursementLines' => [
                [
                                'Amount' => '',
                                'Description' => '',
                                'ExpenseAccount' => '',
                                'ReimbursementTypeID' => ''
                ]
        ],
        'SuperLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'ContributionType' => '',
                                'ExpenseAccountCode' => '',
                                'LiabilityAccountCode' => '',
                                'MinimumMonthlyEarnings' => '',
                                'Percentage' => '',
                                'SuperMembershipID' => ''
                ]
        ],
        'Tax' => ''
    ],
    'OrdinaryEarningsRateID' => '',
    'PayTemplate' => [
        'DeductionLines' => [
                [
                                
                ]
        ],
        'EarningsLines' => [
                [
                                
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'ReimbursementLines' => [
                [
                                
                ]
        ],
        'SuperLines' => [
                [
                                
                ]
        ]
    ],
    'PayrollCalendarID' => '',
    'Phone' => '',
    'StartDate' => '',
    'Status' => '',
    'SuperMemberships' => [
        [
                'EmployeeNumber' => '',
                'SuperFundID' => '',
                'SuperMembershipID' => ''
        ]
    ],
    'TaxDeclaration' => [
        'ApprovedWithholdingVariationPercentage' => '',
        'AustralianResidentForTaxPurposes' => null,
        'EligibleToReceiveLeaveLoading' => null,
        'EmployeeID' => '',
        'EmploymentBasis' => '',
        'HasHELPDebt' => null,
        'HasSFSSDebt' => null,
        'HasStudentStartupLoan' => null,
        'HasTradeSupportLoanDebt' => null,
        'ResidencyStatus' => '',
        'TFNExemptionType' => '',
        'TaxFileNumber' => '',
        'TaxFreeThresholdClaimed' => null,
        'TaxOffsetEstimatedAmount' => '',
        'UpdatedDateUTC' => '',
        'UpwardVariationTaxWithholdingAmount' => ''
    ],
    'TerminationDate' => '',
    'Title' => '',
    'TwitterUserName' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'BankAccounts' => [
        [
                'AccountName' => '',
                'AccountNumber' => '',
                'Amount' => '',
                'BSB' => '',
                'Remainder' => null,
                'StatementText' => ''
        ]
    ],
    'Classification' => '',
    'DateOfBirth' => '',
    'Email' => '',
    'EmployeeGroupName' => '',
    'EmployeeID' => '',
    'FirstName' => '',
    'Gender' => '',
    'HomeAddress' => [
        'AddressLine1' => '',
        'AddressLine2' => '',
        'City' => '',
        'Country' => '',
        'PostalCode' => '',
        'Region' => ''
    ],
    'IsAuthorisedToApproveLeave' => null,
    'IsAuthorisedToApproveTimesheets' => null,
    'JobTitle' => '',
    'LastName' => '',
    'LeaveBalances' => [
        [
                'LeaveName' => '',
                'LeaveTypeID' => '',
                'NumberOfUnits' => '',
                'TypeOfUnits' => ''
        ]
    ],
    'LeaveLines' => [
        [
                'AnnualNumberOfUnits' => '',
                'CalculationType' => '',
                'EmploymentTerminationPaymentType' => '',
                'EntitlementFinalPayPayoutType' => '',
                'FullTimeNumberOfUnitsPerPeriod' => '',
                'IncludeSuperannuationGuaranteeContribution' => null,
                'LeaveTypeID' => '',
                'NumberOfUnits' => ''
        ]
    ],
    'MiddleNames' => '',
    'Mobile' => '',
    'OpeningBalances' => [
        'DeductionLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'DeductionTypeID' => '',
                                'NumberOfUnits' => '',
                                'Percentage' => ''
                ]
        ],
        'EarningsLines' => [
                [
                                'Amount' => '',
                                'AnnualSalary' => '',
                                'CalculationType' => '',
                                'EarningsRateID' => '',
                                'FixedAmount' => '',
                                'NormalNumberOfUnits' => '',
                                'NumberOfUnits' => '',
                                'NumberOfUnitsPerWeek' => '',
                                'RatePerUnit' => ''
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'OpeningBalanceDate' => '',
        'ReimbursementLines' => [
                [
                                'Amount' => '',
                                'Description' => '',
                                'ExpenseAccount' => '',
                                'ReimbursementTypeID' => ''
                ]
        ],
        'SuperLines' => [
                [
                                'Amount' => '',
                                'CalculationType' => '',
                                'ContributionType' => '',
                                'ExpenseAccountCode' => '',
                                'LiabilityAccountCode' => '',
                                'MinimumMonthlyEarnings' => '',
                                'Percentage' => '',
                                'SuperMembershipID' => ''
                ]
        ],
        'Tax' => ''
    ],
    'OrdinaryEarningsRateID' => '',
    'PayTemplate' => [
        'DeductionLines' => [
                [
                                
                ]
        ],
        'EarningsLines' => [
                [
                                
                ]
        ],
        'LeaveLines' => [
                [
                                
                ]
        ],
        'ReimbursementLines' => [
                [
                                
                ]
        ],
        'SuperLines' => [
                [
                                
                ]
        ]
    ],
    'PayrollCalendarID' => '',
    'Phone' => '',
    'StartDate' => '',
    'Status' => '',
    'SuperMemberships' => [
        [
                'EmployeeNumber' => '',
                'SuperFundID' => '',
                'SuperMembershipID' => ''
        ]
    ],
    'TaxDeclaration' => [
        'ApprovedWithholdingVariationPercentage' => '',
        'AustralianResidentForTaxPurposes' => null,
        'EligibleToReceiveLeaveLoading' => null,
        'EmployeeID' => '',
        'EmploymentBasis' => '',
        'HasHELPDebt' => null,
        'HasSFSSDebt' => null,
        'HasStudentStartupLoan' => null,
        'HasTradeSupportLoanDebt' => null,
        'ResidencyStatus' => '',
        'TFNExemptionType' => '',
        'TaxFileNumber' => '',
        'TaxFreeThresholdClaimed' => null,
        'TaxOffsetEstimatedAmount' => '',
        'UpdatedDateUTC' => '',
        'UpwardVariationTaxWithholdingAmount' => ''
    ],
    'TerminationDate' => '',
    'Title' => '',
    'TwitterUserName' => '',
    'UpdatedDateUTC' => '',
    'ValidationErrors' => [
        [
                'Message' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/Employees/:EmployeeID');
$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}}/Employees/:EmployeeID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/Employees/:EmployeeID' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
import http.client

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

payload = "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\n    ]\n  }\n]"

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

conn.request("POST", "/baseUrl/Employees/:EmployeeID", payload, headers)

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

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

url = "{{baseUrl}}/Employees/:EmployeeID"

payload = [
    {
        "BankAccounts": [
            {
                "AccountName": "",
                "AccountNumber": "",
                "Amount": "",
                "BSB": "",
                "Remainder": False,
                "StatementText": ""
            }
        ],
        "Classification": "",
        "DateOfBirth": "",
        "Email": "",
        "EmployeeGroupName": "",
        "EmployeeID": "",
        "FirstName": "",
        "Gender": "",
        "HomeAddress": {
            "AddressLine1": "",
            "AddressLine2": "",
            "City": "",
            "Country": "",
            "PostalCode": "",
            "Region": ""
        },
        "IsAuthorisedToApproveLeave": False,
        "IsAuthorisedToApproveTimesheets": False,
        "JobTitle": "",
        "LastName": "",
        "LeaveBalances": [
            {
                "LeaveName": "",
                "LeaveTypeID": "",
                "NumberOfUnits": "",
                "TypeOfUnits": ""
            }
        ],
        "LeaveLines": [
            {
                "AnnualNumberOfUnits": "",
                "CalculationType": "",
                "EmploymentTerminationPaymentType": "",
                "EntitlementFinalPayPayoutType": "",
                "FullTimeNumberOfUnitsPerPeriod": "",
                "IncludeSuperannuationGuaranteeContribution": False,
                "LeaveTypeID": "",
                "NumberOfUnits": ""
            }
        ],
        "MiddleNames": "",
        "Mobile": "",
        "OpeningBalances": {
            "DeductionLines": [
                {
                    "Amount": "",
                    "CalculationType": "",
                    "DeductionTypeID": "",
                    "NumberOfUnits": "",
                    "Percentage": ""
                }
            ],
            "EarningsLines": [
                {
                    "Amount": "",
                    "AnnualSalary": "",
                    "CalculationType": "",
                    "EarningsRateID": "",
                    "FixedAmount": "",
                    "NormalNumberOfUnits": "",
                    "NumberOfUnits": "",
                    "NumberOfUnitsPerWeek": "",
                    "RatePerUnit": ""
                }
            ],
            "LeaveLines": [{}],
            "OpeningBalanceDate": "",
            "ReimbursementLines": [
                {
                    "Amount": "",
                    "Description": "",
                    "ExpenseAccount": "",
                    "ReimbursementTypeID": ""
                }
            ],
            "SuperLines": [
                {
                    "Amount": "",
                    "CalculationType": "",
                    "ContributionType": "",
                    "ExpenseAccountCode": "",
                    "LiabilityAccountCode": "",
                    "MinimumMonthlyEarnings": "",
                    "Percentage": "",
                    "SuperMembershipID": ""
                }
            ],
            "Tax": ""
        },
        "OrdinaryEarningsRateID": "",
        "PayTemplate": {
            "DeductionLines": [{}],
            "EarningsLines": [{}],
            "LeaveLines": [{}],
            "ReimbursementLines": [{}],
            "SuperLines": [{}]
        },
        "PayrollCalendarID": "",
        "Phone": "",
        "StartDate": "",
        "Status": "",
        "SuperMemberships": [
            {
                "EmployeeNumber": "",
                "SuperFundID": "",
                "SuperMembershipID": ""
            }
        ],
        "TaxDeclaration": {
            "ApprovedWithholdingVariationPercentage": "",
            "AustralianResidentForTaxPurposes": False,
            "EligibleToReceiveLeaveLoading": False,
            "EmployeeID": "",
            "EmploymentBasis": "",
            "HasHELPDebt": False,
            "HasSFSSDebt": False,
            "HasStudentStartupLoan": False,
            "HasTradeSupportLoanDebt": False,
            "ResidencyStatus": "",
            "TFNExemptionType": "",
            "TaxFileNumber": "",
            "TaxFreeThresholdClaimed": False,
            "TaxOffsetEstimatedAmount": "",
            "UpdatedDateUTC": "",
            "UpwardVariationTaxWithholdingAmount": ""
        },
        "TerminationDate": "",
        "Title": "",
        "TwitterUserName": "",
        "UpdatedDateUTC": "",
        "ValidationErrors": [{ "Message": "" }]
    }
]
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/Employees/:EmployeeID"

payload <- "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees/:EmployeeID")

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  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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/Employees/:EmployeeID') do |req|
  req.body = "[\n  {\n    \"BankAccounts\": [\n      {\n        \"AccountName\": \"\",\n        \"AccountNumber\": \"\",\n        \"Amount\": \"\",\n        \"BSB\": \"\",\n        \"Remainder\": false,\n        \"StatementText\": \"\"\n      }\n    ],\n    \"Classification\": \"\",\n    \"DateOfBirth\": \"\",\n    \"Email\": \"\",\n    \"EmployeeGroupName\": \"\",\n    \"EmployeeID\": \"\",\n    \"FirstName\": \"\",\n    \"Gender\": \"\",\n    \"HomeAddress\": {\n      \"AddressLine1\": \"\",\n      \"AddressLine2\": \"\",\n      \"City\": \"\",\n      \"Country\": \"\",\n      \"PostalCode\": \"\",\n      \"Region\": \"\"\n    },\n    \"IsAuthorisedToApproveLeave\": false,\n    \"IsAuthorisedToApproveTimesheets\": false,\n    \"JobTitle\": \"\",\n    \"LastName\": \"\",\n    \"LeaveBalances\": [\n      {\n        \"LeaveName\": \"\",\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\",\n        \"TypeOfUnits\": \"\"\n      }\n    ],\n    \"LeaveLines\": [\n      {\n        \"AnnualNumberOfUnits\": \"\",\n        \"CalculationType\": \"\",\n        \"EmploymentTerminationPaymentType\": \"\",\n        \"EntitlementFinalPayPayoutType\": \"\",\n        \"FullTimeNumberOfUnitsPerPeriod\": \"\",\n        \"IncludeSuperannuationGuaranteeContribution\": false,\n        \"LeaveTypeID\": \"\",\n        \"NumberOfUnits\": \"\"\n      }\n    ],\n    \"MiddleNames\": \"\",\n    \"Mobile\": \"\",\n    \"OpeningBalances\": {\n      \"DeductionLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"DeductionTypeID\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"Percentage\": \"\"\n        }\n      ],\n      \"EarningsLines\": [\n        {\n          \"Amount\": \"\",\n          \"AnnualSalary\": \"\",\n          \"CalculationType\": \"\",\n          \"EarningsRateID\": \"\",\n          \"FixedAmount\": \"\",\n          \"NormalNumberOfUnits\": \"\",\n          \"NumberOfUnits\": \"\",\n          \"NumberOfUnitsPerWeek\": \"\",\n          \"RatePerUnit\": \"\"\n        }\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"OpeningBalanceDate\": \"\",\n      \"ReimbursementLines\": [\n        {\n          \"Amount\": \"\",\n          \"Description\": \"\",\n          \"ExpenseAccount\": \"\",\n          \"ReimbursementTypeID\": \"\"\n        }\n      ],\n      \"SuperLines\": [\n        {\n          \"Amount\": \"\",\n          \"CalculationType\": \"\",\n          \"ContributionType\": \"\",\n          \"ExpenseAccountCode\": \"\",\n          \"LiabilityAccountCode\": \"\",\n          \"MinimumMonthlyEarnings\": \"\",\n          \"Percentage\": \"\",\n          \"SuperMembershipID\": \"\"\n        }\n      ],\n      \"Tax\": \"\"\n    },\n    \"OrdinaryEarningsRateID\": \"\",\n    \"PayTemplate\": {\n      \"DeductionLines\": [\n        {}\n      ],\n      \"EarningsLines\": [\n        {}\n      ],\n      \"LeaveLines\": [\n        {}\n      ],\n      \"ReimbursementLines\": [\n        {}\n      ],\n      \"SuperLines\": [\n        {}\n      ]\n    },\n    \"PayrollCalendarID\": \"\",\n    \"Phone\": \"\",\n    \"StartDate\": \"\",\n    \"Status\": \"\",\n    \"SuperMemberships\": [\n      {\n        \"EmployeeNumber\": \"\",\n        \"SuperFundID\": \"\",\n        \"SuperMembershipID\": \"\"\n      }\n    ],\n    \"TaxDeclaration\": {\n      \"ApprovedWithholdingVariationPercentage\": \"\",\n      \"AustralianResidentForTaxPurposes\": false,\n      \"EligibleToReceiveLeaveLoading\": false,\n      \"EmployeeID\": \"\",\n      \"EmploymentBasis\": \"\",\n      \"HasHELPDebt\": false,\n      \"HasSFSSDebt\": false,\n      \"HasStudentStartupLoan\": false,\n      \"HasTradeSupportLoanDebt\": false,\n      \"ResidencyStatus\": \"\",\n      \"TFNExemptionType\": \"\",\n      \"TaxFileNumber\": \"\",\n      \"TaxFreeThresholdClaimed\": false,\n      \"TaxOffsetEstimatedAmount\": \"\",\n      \"UpdatedDateUTC\": \"\",\n      \"UpwardVariationTaxWithholdingAmount\": \"\"\n    },\n    \"TerminationDate\": \"\",\n    \"Title\": \"\",\n    \"TwitterUserName\": \"\",\n    \"UpdatedDateUTC\": \"\",\n    \"ValidationErrors\": [\n      {\n        \"Message\": \"\"\n      }\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}}/Employees/:EmployeeID";

    let payload = (
        json!({
            "BankAccounts": (
                json!({
                    "AccountName": "",
                    "AccountNumber": "",
                    "Amount": "",
                    "BSB": "",
                    "Remainder": false,
                    "StatementText": ""
                })
            ),
            "Classification": "",
            "DateOfBirth": "",
            "Email": "",
            "EmployeeGroupName": "",
            "EmployeeID": "",
            "FirstName": "",
            "Gender": "",
            "HomeAddress": json!({
                "AddressLine1": "",
                "AddressLine2": "",
                "City": "",
                "Country": "",
                "PostalCode": "",
                "Region": ""
            }),
            "IsAuthorisedToApproveLeave": false,
            "IsAuthorisedToApproveTimesheets": false,
            "JobTitle": "",
            "LastName": "",
            "LeaveBalances": (
                json!({
                    "LeaveName": "",
                    "LeaveTypeID": "",
                    "NumberOfUnits": "",
                    "TypeOfUnits": ""
                })
            ),
            "LeaveLines": (
                json!({
                    "AnnualNumberOfUnits": "",
                    "CalculationType": "",
                    "EmploymentTerminationPaymentType": "",
                    "EntitlementFinalPayPayoutType": "",
                    "FullTimeNumberOfUnitsPerPeriod": "",
                    "IncludeSuperannuationGuaranteeContribution": false,
                    "LeaveTypeID": "",
                    "NumberOfUnits": ""
                })
            ),
            "MiddleNames": "",
            "Mobile": "",
            "OpeningBalances": json!({
                "DeductionLines": (
                    json!({
                        "Amount": "",
                        "CalculationType": "",
                        "DeductionTypeID": "",
                        "NumberOfUnits": "",
                        "Percentage": ""
                    })
                ),
                "EarningsLines": (
                    json!({
                        "Amount": "",
                        "AnnualSalary": "",
                        "CalculationType": "",
                        "EarningsRateID": "",
                        "FixedAmount": "",
                        "NormalNumberOfUnits": "",
                        "NumberOfUnits": "",
                        "NumberOfUnitsPerWeek": "",
                        "RatePerUnit": ""
                    })
                ),
                "LeaveLines": (json!({})),
                "OpeningBalanceDate": "",
                "ReimbursementLines": (
                    json!({
                        "Amount": "",
                        "Description": "",
                        "ExpenseAccount": "",
                        "ReimbursementTypeID": ""
                    })
                ),
                "SuperLines": (
                    json!({
                        "Amount": "",
                        "CalculationType": "",
                        "ContributionType": "",
                        "ExpenseAccountCode": "",
                        "LiabilityAccountCode": "",
                        "MinimumMonthlyEarnings": "",
                        "Percentage": "",
                        "SuperMembershipID": ""
                    })
                ),
                "Tax": ""
            }),
            "OrdinaryEarningsRateID": "",
            "PayTemplate": json!({
                "DeductionLines": (json!({})),
                "EarningsLines": (json!({})),
                "LeaveLines": (json!({})),
                "ReimbursementLines": (json!({})),
                "SuperLines": (json!({}))
            }),
            "PayrollCalendarID": "",
            "Phone": "",
            "StartDate": "",
            "Status": "",
            "SuperMemberships": (
                json!({
                    "EmployeeNumber": "",
                    "SuperFundID": "",
                    "SuperMembershipID": ""
                })
            ),
            "TaxDeclaration": json!({
                "ApprovedWithholdingVariationPercentage": "",
                "AustralianResidentForTaxPurposes": false,
                "EligibleToReceiveLeaveLoading": false,
                "EmployeeID": "",
                "EmploymentBasis": "",
                "HasHELPDebt": false,
                "HasSFSSDebt": false,
                "HasStudentStartupLoan": false,
                "HasTradeSupportLoanDebt": false,
                "ResidencyStatus": "",
                "TFNExemptionType": "",
                "TaxFileNumber": "",
                "TaxFreeThresholdClaimed": false,
                "TaxOffsetEstimatedAmount": "",
                "UpdatedDateUTC": "",
                "UpwardVariationTaxWithholdingAmount": ""
            }),
            "TerminationDate": "",
            "Title": "",
            "TwitterUserName": "",
            "UpdatedDateUTC": "",
            "ValidationErrors": (json!({"Message": ""}))
        })
    );

    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}}/Employees/:EmployeeID \
  --header 'content-type: application/json' \
  --data '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]'
echo '[
  {
    "BankAccounts": [
      {
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      }
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": {
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    },
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      {
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      }
    ],
    "LeaveLines": [
      {
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      }
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": {
      "DeductionLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        }
      ],
      "EarningsLines": [
        {
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        }
      ],
      "LeaveLines": [
        {}
      ],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        {
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        }
      ],
      "SuperLines": [
        {
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        }
      ],
      "Tax": ""
    },
    "OrdinaryEarningsRateID": "",
    "PayTemplate": {
      "DeductionLines": [
        {}
      ],
      "EarningsLines": [
        {}
      ],
      "LeaveLines": [
        {}
      ],
      "ReimbursementLines": [
        {}
      ],
      "SuperLines": [
        {}
      ]
    },
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      {
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      }
    ],
    "TaxDeclaration": {
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    },
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [
      {
        "Message": ""
      }
    ]
  }
]' |  \
  http POST {{baseUrl}}/Employees/:EmployeeID \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "BankAccounts": [\n      {\n        "AccountName": "",\n        "AccountNumber": "",\n        "Amount": "",\n        "BSB": "",\n        "Remainder": false,\n        "StatementText": ""\n      }\n    ],\n    "Classification": "",\n    "DateOfBirth": "",\n    "Email": "",\n    "EmployeeGroupName": "",\n    "EmployeeID": "",\n    "FirstName": "",\n    "Gender": "",\n    "HomeAddress": {\n      "AddressLine1": "",\n      "AddressLine2": "",\n      "City": "",\n      "Country": "",\n      "PostalCode": "",\n      "Region": ""\n    },\n    "IsAuthorisedToApproveLeave": false,\n    "IsAuthorisedToApproveTimesheets": false,\n    "JobTitle": "",\n    "LastName": "",\n    "LeaveBalances": [\n      {\n        "LeaveName": "",\n        "LeaveTypeID": "",\n        "NumberOfUnits": "",\n        "TypeOfUnits": ""\n      }\n    ],\n    "LeaveLines": [\n      {\n        "AnnualNumberOfUnits": "",\n        "CalculationType": "",\n        "EmploymentTerminationPaymentType": "",\n        "EntitlementFinalPayPayoutType": "",\n        "FullTimeNumberOfUnitsPerPeriod": "",\n        "IncludeSuperannuationGuaranteeContribution": false,\n        "LeaveTypeID": "",\n        "NumberOfUnits": ""\n      }\n    ],\n    "MiddleNames": "",\n    "Mobile": "",\n    "OpeningBalances": {\n      "DeductionLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "DeductionTypeID": "",\n          "NumberOfUnits": "",\n          "Percentage": ""\n        }\n      ],\n      "EarningsLines": [\n        {\n          "Amount": "",\n          "AnnualSalary": "",\n          "CalculationType": "",\n          "EarningsRateID": "",\n          "FixedAmount": "",\n          "NormalNumberOfUnits": "",\n          "NumberOfUnits": "",\n          "NumberOfUnitsPerWeek": "",\n          "RatePerUnit": ""\n        }\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "OpeningBalanceDate": "",\n      "ReimbursementLines": [\n        {\n          "Amount": "",\n          "Description": "",\n          "ExpenseAccount": "",\n          "ReimbursementTypeID": ""\n        }\n      ],\n      "SuperLines": [\n        {\n          "Amount": "",\n          "CalculationType": "",\n          "ContributionType": "",\n          "ExpenseAccountCode": "",\n          "LiabilityAccountCode": "",\n          "MinimumMonthlyEarnings": "",\n          "Percentage": "",\n          "SuperMembershipID": ""\n        }\n      ],\n      "Tax": ""\n    },\n    "OrdinaryEarningsRateID": "",\n    "PayTemplate": {\n      "DeductionLines": [\n        {}\n      ],\n      "EarningsLines": [\n        {}\n      ],\n      "LeaveLines": [\n        {}\n      ],\n      "ReimbursementLines": [\n        {}\n      ],\n      "SuperLines": [\n        {}\n      ]\n    },\n    "PayrollCalendarID": "",\n    "Phone": "",\n    "StartDate": "",\n    "Status": "",\n    "SuperMemberships": [\n      {\n        "EmployeeNumber": "",\n        "SuperFundID": "",\n        "SuperMembershipID": ""\n      }\n    ],\n    "TaxDeclaration": {\n      "ApprovedWithholdingVariationPercentage": "",\n      "AustralianResidentForTaxPurposes": false,\n      "EligibleToReceiveLeaveLoading": false,\n      "EmployeeID": "",\n      "EmploymentBasis": "",\n      "HasHELPDebt": false,\n      "HasSFSSDebt": false,\n      "HasStudentStartupLoan": false,\n      "HasTradeSupportLoanDebt": false,\n      "ResidencyStatus": "",\n      "TFNExemptionType": "",\n      "TaxFileNumber": "",\n      "TaxFreeThresholdClaimed": false,\n      "TaxOffsetEstimatedAmount": "",\n      "UpdatedDateUTC": "",\n      "UpwardVariationTaxWithholdingAmount": ""\n    },\n    "TerminationDate": "",\n    "Title": "",\n    "TwitterUserName": "",\n    "UpdatedDateUTC": "",\n    "ValidationErrors": [\n      {\n        "Message": ""\n      }\n    ]\n  }\n]' \
  --output-document \
  - {{baseUrl}}/Employees/:EmployeeID
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "BankAccounts": [
      [
        "AccountName": "",
        "AccountNumber": "",
        "Amount": "",
        "BSB": "",
        "Remainder": false,
        "StatementText": ""
      ]
    ],
    "Classification": "",
    "DateOfBirth": "",
    "Email": "",
    "EmployeeGroupName": "",
    "EmployeeID": "",
    "FirstName": "",
    "Gender": "",
    "HomeAddress": [
      "AddressLine1": "",
      "AddressLine2": "",
      "City": "",
      "Country": "",
      "PostalCode": "",
      "Region": ""
    ],
    "IsAuthorisedToApproveLeave": false,
    "IsAuthorisedToApproveTimesheets": false,
    "JobTitle": "",
    "LastName": "",
    "LeaveBalances": [
      [
        "LeaveName": "",
        "LeaveTypeID": "",
        "NumberOfUnits": "",
        "TypeOfUnits": ""
      ]
    ],
    "LeaveLines": [
      [
        "AnnualNumberOfUnits": "",
        "CalculationType": "",
        "EmploymentTerminationPaymentType": "",
        "EntitlementFinalPayPayoutType": "",
        "FullTimeNumberOfUnitsPerPeriod": "",
        "IncludeSuperannuationGuaranteeContribution": false,
        "LeaveTypeID": "",
        "NumberOfUnits": ""
      ]
    ],
    "MiddleNames": "",
    "Mobile": "",
    "OpeningBalances": [
      "DeductionLines": [
        [
          "Amount": "",
          "CalculationType": "",
          "DeductionTypeID": "",
          "NumberOfUnits": "",
          "Percentage": ""
        ]
      ],
      "EarningsLines": [
        [
          "Amount": "",
          "AnnualSalary": "",
          "CalculationType": "",
          "EarningsRateID": "",
          "FixedAmount": "",
          "NormalNumberOfUnits": "",
          "NumberOfUnits": "",
          "NumberOfUnitsPerWeek": "",
          "RatePerUnit": ""
        ]
      ],
      "LeaveLines": [[]],
      "OpeningBalanceDate": "",
      "ReimbursementLines": [
        [
          "Amount": "",
          "Description": "",
          "ExpenseAccount": "",
          "ReimbursementTypeID": ""
        ]
      ],
      "SuperLines": [
        [
          "Amount": "",
          "CalculationType": "",
          "ContributionType": "",
          "ExpenseAccountCode": "",
          "LiabilityAccountCode": "",
          "MinimumMonthlyEarnings": "",
          "Percentage": "",
          "SuperMembershipID": ""
        ]
      ],
      "Tax": ""
    ],
    "OrdinaryEarningsRateID": "",
    "PayTemplate": [
      "DeductionLines": [[]],
      "EarningsLines": [[]],
      "LeaveLines": [[]],
      "ReimbursementLines": [[]],
      "SuperLines": [[]]
    ],
    "PayrollCalendarID": "",
    "Phone": "",
    "StartDate": "",
    "Status": "",
    "SuperMemberships": [
      [
        "EmployeeNumber": "",
        "SuperFundID": "",
        "SuperMembershipID": ""
      ]
    ],
    "TaxDeclaration": [
      "ApprovedWithholdingVariationPercentage": "",
      "AustralianResidentForTaxPurposes": false,
      "EligibleToReceiveLeaveLoading": false,
      "EmployeeID": "",
      "EmploymentBasis": "",
      "HasHELPDebt": false,
      "HasSFSSDebt": false,
      "HasStudentStartupLoan": false,
      "HasTradeSupportLoanDebt": false,
      "ResidencyStatus": "",
      "TFNExemptionType": "",
      "TaxFileNumber": "",
      "TaxFreeThresholdClaimed": false,
      "TaxOffsetEstimatedAmount": "",
      "UpdatedDateUTC": "",
      "UpwardVariationTaxWithholdingAmount": ""
    ],
    "TerminationDate": "",
    "Title": "",
    "TwitterUserName": "",
    "UpdatedDateUTC": "",
    "ValidationErrors": [["Message": ""]]
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/Employees/:EmployeeID")! 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

{ "Id": "a40b0b60-def8-4bd7-bcd6-d97d617bf539", "Status": "OK", "ProviderName": "3f93110a-df13-49c7-b82f-a069813df188", "DateTimeUTC": "/Date(1573621524786)/", "Employees": [ { "EmployeeID": "cdfb8371-0b21-4b8a-8903-1024df6c391e", "FirstName": "Albus", "MiddleNames": "Frank", "LastName": "Dumbledore", "Status": "ACTIVE", "Email": "albus39608@hogwarts.edu", "DateOfBirth": "/Date(321523200000+0000)/", "JobTitle": "Regional Manager", "Gender": "M", "HomeAddress": { "AddressLine1": "101 Green St", "City": "Island Bay", "Region": "NSW", "PostalCode": "6023", "Country": "AUSTRALIA" }, "Phone": "444-2323", "Mobile": "555-1212", "StartDate": "/Date(321523200000+0000)/", "Classification": "corporate", "OrdinaryEarningsRateID": "ab874dfb-ab09-4c91-954e-43acf6fc23b4", "UpdatedDateUTC": "/Date(1573621524755+0000)/", "IsAuthorisedToApproveLeave": true, "IsAuthorisedToApproveTimesheets": true } ] }