GET Check if the provided client can be deleted
{{baseUrl}}/api/client/candelete
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/client/candelete?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/client/candelete" {:headers {:x-auth-key ""
                                                                          :x-auth-secret ""}
                                                                :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/client/candelete?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/client/candelete?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/client/candelete?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/client/candelete?id="

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/client/candelete?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/client/candelete?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/client/candelete?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/client/candelete?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/client/candelete?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/client/candelete?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/client/candelete',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/client/candelete?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/client/candelete?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/client/candelete?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/client/candelete?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/client/candelete',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/client/candelete');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/client/candelete',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/client/candelete?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/client/candelete?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/client/candelete?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/client/candelete?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/client/candelete?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/client/candelete');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/client/candelete?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/client/candelete?id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/client/candelete?id=", headers=headers)

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

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

url = "{{baseUrl}}/api/client/candelete"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/api/client/candelete"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/client/candelete?id=")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/client/candelete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/client/candelete?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/client/candelete?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/client/candelete?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/client/candelete?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Create a client
{{baseUrl}}/api/client/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/client/new");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/client/new" {:headers {:x-auth-key ""
                                                                     :x-auth-secret ""}
                                                           :content-type :json
                                                           :form-params {:AdditionalEmails [{:Email ""}]
                                                                         :Address ""
                                                                         :ClientCountryId 0
                                                                         :ClientCurrencyId 0
                                                                         :CompanyRegistrationNumber ""
                                                                         :DefaultDueDateInDays 0
                                                                         :Email ""
                                                                         :Name ""
                                                                         :PhoneNumber ""
                                                                         :UiLanguageId 0
                                                                         :Vat ""}})
require "http/client"

url = "{{baseUrl}}/api/client/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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}}/api/client/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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}}/api/client/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/client/new"

	payload := strings.NewReader("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/client/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 275

{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/client/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/client/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/client/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/client/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  AdditionalEmails: [
    {
      Email: ''
    }
  ],
  Address: '',
  ClientCountryId: 0,
  ClientCurrencyId: 0,
  CompanyRegistrationNumber: '',
  DefaultDueDateInDays: 0,
  Email: '',
  Name: '',
  PhoneNumber: '',
  UiLanguageId: 0,
  Vat: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/client/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/client/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AdditionalEmails: [{Email: ''}],
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    Vat: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/client/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AdditionalEmails":[{"Email":""}],"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Name":"","PhoneNumber":"","UiLanguageId":0,"Vat":""}'
};

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}}/api/client/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AdditionalEmails": [\n    {\n      "Email": ""\n    }\n  ],\n  "Address": "",\n  "ClientCountryId": 0,\n  "ClientCurrencyId": 0,\n  "CompanyRegistrationNumber": "",\n  "DefaultDueDateInDays": 0,\n  "Email": "",\n  "Name": "",\n  "PhoneNumber": "",\n  "UiLanguageId": 0,\n  "Vat": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/client/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/client/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AdditionalEmails: [{Email: ''}],
  Address: '',
  ClientCountryId: 0,
  ClientCurrencyId: 0,
  CompanyRegistrationNumber: '',
  DefaultDueDateInDays: 0,
  Email: '',
  Name: '',
  PhoneNumber: '',
  UiLanguageId: 0,
  Vat: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/client/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AdditionalEmails: [{Email: ''}],
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    Vat: ''
  },
  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}}/api/client/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AdditionalEmails: [
    {
      Email: ''
    }
  ],
  Address: '',
  ClientCountryId: 0,
  ClientCurrencyId: 0,
  CompanyRegistrationNumber: '',
  DefaultDueDateInDays: 0,
  Email: '',
  Name: '',
  PhoneNumber: '',
  UiLanguageId: 0,
  Vat: ''
});

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}}/api/client/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AdditionalEmails: [{Email: ''}],
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    Vat: ''
  }
};

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

const url = '{{baseUrl}}/api/client/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AdditionalEmails":[{"Email":""}],"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Name":"","PhoneNumber":"","UiLanguageId":0,"Vat":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AdditionalEmails": @[ @{ @"Email": @"" } ],
                              @"Address": @"",
                              @"ClientCountryId": @0,
                              @"ClientCurrencyId": @0,
                              @"CompanyRegistrationNumber": @"",
                              @"DefaultDueDateInDays": @0,
                              @"Email": @"",
                              @"Name": @"",
                              @"PhoneNumber": @"",
                              @"UiLanguageId": @0,
                              @"Vat": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/client/new"]
                                                       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}}/api/client/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/client/new",
  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([
    'AdditionalEmails' => [
        [
                'Email' => ''
        ]
    ],
    'Address' => '',
    'ClientCountryId' => 0,
    'ClientCurrencyId' => 0,
    'CompanyRegistrationNumber' => '',
    'DefaultDueDateInDays' => 0,
    'Email' => '',
    'Name' => '',
    'PhoneNumber' => '',
    'UiLanguageId' => 0,
    'Vat' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/client/new', [
  'body' => '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AdditionalEmails' => [
    [
        'Email' => ''
    ]
  ],
  'Address' => '',
  'ClientCountryId' => 0,
  'ClientCurrencyId' => 0,
  'CompanyRegistrationNumber' => '',
  'DefaultDueDateInDays' => 0,
  'Email' => '',
  'Name' => '',
  'PhoneNumber' => '',
  'UiLanguageId' => 0,
  'Vat' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AdditionalEmails' => [
    [
        'Email' => ''
    ]
  ],
  'Address' => '',
  'ClientCountryId' => 0,
  'ClientCurrencyId' => 0,
  'CompanyRegistrationNumber' => '',
  'DefaultDueDateInDays' => 0,
  'Email' => '',
  'Name' => '',
  'PhoneNumber' => '',
  'UiLanguageId' => 0,
  'Vat' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/client/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/client/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/client/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}'
import http.client

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

payload = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/client/new", payload, headers)

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

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

url = "{{baseUrl}}/api/client/new"

payload = {
    "AdditionalEmails": [{ "Email": "" }],
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "Vat": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/client/new"

payload <- "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/client/new")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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/api/client/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}"
end

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

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

    let payload = json!({
        "AdditionalEmails": (json!({"Email": ""})),
        "Address": "",
        "ClientCountryId": 0,
        "ClientCurrencyId": 0,
        "CompanyRegistrationNumber": "",
        "DefaultDueDateInDays": 0,
        "Email": "",
        "Name": "",
        "PhoneNumber": "",
        "UiLanguageId": 0,
        "Vat": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/client/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}'
echo '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}' |  \
  http POST {{baseUrl}}/api/client/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AdditionalEmails": [\n    {\n      "Email": ""\n    }\n  ],\n  "Address": "",\n  "ClientCountryId": 0,\n  "ClientCurrencyId": 0,\n  "CompanyRegistrationNumber": "",\n  "DefaultDueDateInDays": 0,\n  "Email": "",\n  "Name": "",\n  "PhoneNumber": "",\n  "UiLanguageId": 0,\n  "Vat": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/client/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AdditionalEmails": [["Email": ""]],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/client/new")! 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()
POST Delete an existing client
{{baseUrl}}/api/client/delete
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/client/delete");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

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

(client/post "{{baseUrl}}/api/client/delete" {:headers {:x-auth-key ""
                                                                        :x-auth-secret ""}
                                                              :content-type :json
                                                              :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/client/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/client/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/client/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/client/delete"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/client/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/client/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/client/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/client/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/client/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

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

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

xhr.open('POST', '{{baseUrl}}/api/client/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/client/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/client/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/client/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/client/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/client/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/client/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/client/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/client/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

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

const url = '{{baseUrl}}/api/client/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/client/delete"]
                                                       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}}/api/client/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/client/delete",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/client/delete', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/client/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/client/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/client/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

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

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/client/delete", payload, headers)

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

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

url = "{{baseUrl}}/api/client/delete"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/client/delete"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/client/delete")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/client/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

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

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/client/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/client/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/client/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/client/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
GET Return all clients for the account
{{baseUrl}}/api/client/all
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/client/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/client/all" {:headers {:x-auth-key ""
                                                                    :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/client/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/client/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/client/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/client/all"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/client/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/client/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/client/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/client/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/client/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/client/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/client/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/client/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/client/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/client/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/client/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/client/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/client/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/client/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/client/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/client/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/client/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/client/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/client/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/client/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/client/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/client/all' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/client/all", headers=headers)

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

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

url = "{{baseUrl}}/api/client/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/client/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/client/all")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/client/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/client/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/client/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/client/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/client/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return client details. Activities and invoices included.
{{baseUrl}}/api/client/details
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/client/details?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/client/details" {:headers {:x-auth-key ""
                                                                        :x-auth-secret ""}
                                                              :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/client/details?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/client/details?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/client/details?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/client/details?id="

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/client/details?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/client/details?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/client/details?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/client/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/client/details?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/client/details?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/client/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/client/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/client/details?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/client/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/client/details?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/client/details',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/client/details');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/client/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/client/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/client/details?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/client/details?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/client/details?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/client/details?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/client/details');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/client/details?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/client/details?id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/client/details?id=", headers=headers)

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

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

url = "{{baseUrl}}/api/client/details"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/api/client/details"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/client/details?id=")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/client/details') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/client/details?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/client/details?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/client/details?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/client/details?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Update an existing client
{{baseUrl}}/api/client/update
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/client/update");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/client/update" {:headers {:x-auth-key ""
                                                                        :x-auth-secret ""}
                                                              :content-type :json
                                                              :form-params {:AdditionalEmails [{:Email ""}]
                                                                            :Address ""
                                                                            :ClientCountryId 0
                                                                            :ClientCurrencyId 0
                                                                            :CompanyRegistrationNumber ""
                                                                            :DefaultDueDateInDays 0
                                                                            :Email ""
                                                                            :Id 0
                                                                            :Name ""
                                                                            :PhoneNumber ""
                                                                            :UiLanguageId 0
                                                                            :Vat ""}})
require "http/client"

url = "{{baseUrl}}/api/client/update"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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}}/api/client/update"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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}}/api/client/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/client/update"

	payload := strings.NewReader("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/client/update HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 286

{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/client/update")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/client/update"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/client/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/client/update")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  AdditionalEmails: [
    {
      Email: ''
    }
  ],
  Address: '',
  ClientCountryId: 0,
  ClientCurrencyId: 0,
  CompanyRegistrationNumber: '',
  DefaultDueDateInDays: 0,
  Email: '',
  Id: 0,
  Name: '',
  PhoneNumber: '',
  UiLanguageId: 0,
  Vat: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/client/update');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/client/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AdditionalEmails: [{Email: ''}],
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    Vat: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/client/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AdditionalEmails":[{"Email":""}],"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Id":0,"Name":"","PhoneNumber":"","UiLanguageId":0,"Vat":""}'
};

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}}/api/client/update',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AdditionalEmails": [\n    {\n      "Email": ""\n    }\n  ],\n  "Address": "",\n  "ClientCountryId": 0,\n  "ClientCurrencyId": 0,\n  "CompanyRegistrationNumber": "",\n  "DefaultDueDateInDays": 0,\n  "Email": "",\n  "Id": 0,\n  "Name": "",\n  "PhoneNumber": "",\n  "UiLanguageId": 0,\n  "Vat": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/client/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/client/update',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AdditionalEmails: [{Email: ''}],
  Address: '',
  ClientCountryId: 0,
  ClientCurrencyId: 0,
  CompanyRegistrationNumber: '',
  DefaultDueDateInDays: 0,
  Email: '',
  Id: 0,
  Name: '',
  PhoneNumber: '',
  UiLanguageId: 0,
  Vat: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/client/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AdditionalEmails: [{Email: ''}],
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    Vat: ''
  },
  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}}/api/client/update');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AdditionalEmails: [
    {
      Email: ''
    }
  ],
  Address: '',
  ClientCountryId: 0,
  ClientCurrencyId: 0,
  CompanyRegistrationNumber: '',
  DefaultDueDateInDays: 0,
  Email: '',
  Id: 0,
  Name: '',
  PhoneNumber: '',
  UiLanguageId: 0,
  Vat: ''
});

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}}/api/client/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AdditionalEmails: [{Email: ''}],
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    Vat: ''
  }
};

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

const url = '{{baseUrl}}/api/client/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AdditionalEmails":[{"Email":""}],"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Id":0,"Name":"","PhoneNumber":"","UiLanguageId":0,"Vat":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AdditionalEmails": @[ @{ @"Email": @"" } ],
                              @"Address": @"",
                              @"ClientCountryId": @0,
                              @"ClientCurrencyId": @0,
                              @"CompanyRegistrationNumber": @"",
                              @"DefaultDueDateInDays": @0,
                              @"Email": @"",
                              @"Id": @0,
                              @"Name": @"",
                              @"PhoneNumber": @"",
                              @"UiLanguageId": @0,
                              @"Vat": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/client/update"]
                                                       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}}/api/client/update" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/client/update",
  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([
    'AdditionalEmails' => [
        [
                'Email' => ''
        ]
    ],
    'Address' => '',
    'ClientCountryId' => 0,
    'ClientCurrencyId' => 0,
    'CompanyRegistrationNumber' => '',
    'DefaultDueDateInDays' => 0,
    'Email' => '',
    'Id' => 0,
    'Name' => '',
    'PhoneNumber' => '',
    'UiLanguageId' => 0,
    'Vat' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/client/update', [
  'body' => '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AdditionalEmails' => [
    [
        'Email' => ''
    ]
  ],
  'Address' => '',
  'ClientCountryId' => 0,
  'ClientCurrencyId' => 0,
  'CompanyRegistrationNumber' => '',
  'DefaultDueDateInDays' => 0,
  'Email' => '',
  'Id' => 0,
  'Name' => '',
  'PhoneNumber' => '',
  'UiLanguageId' => 0,
  'Vat' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AdditionalEmails' => [
    [
        'Email' => ''
    ]
  ],
  'Address' => '',
  'ClientCountryId' => 0,
  'ClientCurrencyId' => 0,
  'CompanyRegistrationNumber' => '',
  'DefaultDueDateInDays' => 0,
  'Email' => '',
  'Id' => 0,
  'Name' => '',
  'PhoneNumber' => '',
  'UiLanguageId' => 0,
  'Vat' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/client/update');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/client/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/client/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}'
import http.client

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

payload = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/client/update", payload, headers)

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

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

url = "{{baseUrl}}/api/client/update"

payload = {
    "AdditionalEmails": [{ "Email": "" }],
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "Vat": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/client/update"

payload <- "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/client/update")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\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/api/client/update') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AdditionalEmails\": [\n    {\n      \"Email\": \"\"\n    }\n  ],\n  \"Address\": \"\",\n  \"ClientCountryId\": 0,\n  \"ClientCurrencyId\": 0,\n  \"CompanyRegistrationNumber\": \"\",\n  \"DefaultDueDateInDays\": 0,\n  \"Email\": \"\",\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\",\n  \"UiLanguageId\": 0,\n  \"Vat\": \"\"\n}"
end

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

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

    let payload = json!({
        "AdditionalEmails": (json!({"Email": ""})),
        "Address": "",
        "ClientCountryId": 0,
        "ClientCurrencyId": 0,
        "CompanyRegistrationNumber": "",
        "DefaultDueDateInDays": 0,
        "Email": "",
        "Id": 0,
        "Name": "",
        "PhoneNumber": "",
        "UiLanguageId": 0,
        "Vat": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/client/update \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}'
echo '{
  "AdditionalEmails": [
    {
      "Email": ""
    }
  ],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
}' |  \
  http POST {{baseUrl}}/api/client/update \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AdditionalEmails": [\n    {\n      "Email": ""\n    }\n  ],\n  "Address": "",\n  "ClientCountryId": 0,\n  "ClientCurrencyId": 0,\n  "CompanyRegistrationNumber": "",\n  "DefaultDueDateInDays": 0,\n  "Email": "",\n  "Id": 0,\n  "Name": "",\n  "PhoneNumber": "",\n  "UiLanguageId": 0,\n  "Vat": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/client/update
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AdditionalEmails": [["Email": ""]],
  "Address": "",
  "ClientCountryId": 0,
  "ClientCurrencyId": 0,
  "CompanyRegistrationNumber": "",
  "DefaultDueDateInDays": 0,
  "Email": "",
  "Id": 0,
  "Name": "",
  "PhoneNumber": "",
  "UiLanguageId": 0,
  "Vat": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/client/update")! 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()
POST Change estimation status
{{baseUrl}}/api/estimation/changestatus
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0,
  "Status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/changestatus");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/estimation/changestatus" {:headers {:x-auth-key ""
                                                                                  :x-auth-secret ""}
                                                                        :content-type :json
                                                                        :form-params {:Id 0
                                                                                      :Status ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/changestatus"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0,\n  \"Status\": \"\"\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}}/api/estimation/changestatus"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0,\n  \"Status\": \"\"\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}}/api/estimation/changestatus");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/changestatus"

	payload := strings.NewReader("{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/estimation/changestatus HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 29

{
  "Id": 0,
  "Status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/estimation/changestatus")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/changestatus"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0,\n  \"Status\": \"\"\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  \"Id\": 0,\n  \"Status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/estimation/changestatus")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/estimation/changestatus")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Id: 0,
  Status: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/estimation/changestatus');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/changestatus';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Status":""}'
};

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}}/api/estimation/changestatus',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0,\n  "Status": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/changestatus")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/estimation/changestatus',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0, Status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0, Status: ''},
  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}}/api/estimation/changestatus');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0,
  Status: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Status: ''}
};

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

const url = '{{baseUrl}}/api/estimation/changestatus';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Status":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0,
                              @"Status": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/changestatus"]
                                                       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}}/api/estimation/changestatus" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/changestatus",
  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([
    'Id' => 0,
    'Status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/estimation/changestatus', [
  'body' => '{
  "Id": 0,
  "Status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0,
  'Status' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0,
  'Status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/estimation/changestatus');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/changestatus' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Status": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/changestatus' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Status": ""
}'
import http.client

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

payload = "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/estimation/changestatus", payload, headers)

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

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

url = "{{baseUrl}}/api/estimation/changestatus"

payload = {
    "Id": 0,
    "Status": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/estimation/changestatus"

payload <- "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/estimation/changestatus")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0,\n  \"Status\": \"\"\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/api/estimation/changestatus') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}"
end

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

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

    let payload = json!({
        "Id": 0,
        "Status": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/estimation/changestatus \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0,
  "Status": ""
}'
echo '{
  "Id": 0,
  "Status": ""
}' |  \
  http POST {{baseUrl}}/api/estimation/changestatus \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0,\n  "Status": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/estimation/changestatus
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Id": 0,
  "Status": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/changestatus")! 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()
POST Convert the estimation to an invoice
{{baseUrl}}/api/estimation/convert
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/convert");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/api/estimation/convert" {:headers {:x-auth-key ""
                                                                             :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/convert"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/api/estimation/convert"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/estimation/convert");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/convert"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
POST /baseUrl/api/estimation/convert HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/estimation/convert")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/convert"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/api/estimation/convert")
  .post(null)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/estimation/convert")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/api/estimation/convert');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/convert',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/convert';
const options = {method: 'POST', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/estimation/convert',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/convert")
  .post(null)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/estimation/convert',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/convert',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('POST', '{{baseUrl}}/api/estimation/convert');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/estimation/convert',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/estimation/convert';
const options = {method: 'POST', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/convert"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];

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}}/api/estimation/convert" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/convert",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/estimation/convert', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/estimation/convert');
$request->setRequestMethod('POST');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/convert' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/convert' -Method POST -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("POST", "/baseUrl/api/estimation/convert", headers=headers)

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

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

url = "{{baseUrl}}/api/estimation/convert"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

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

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

url <- "{{baseUrl}}/api/estimation/convert"

response <- VERB("POST", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/estimation/convert")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.post('/baseUrl/api/estimation/convert') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/api/estimation/convert \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http POST {{baseUrl}}/api/estimation/convert \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/estimation/convert
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/convert")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

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()
POST Create an estimation
{{baseUrl}}/api/estimation/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/new");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/estimation/new" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :content-type :json
                                                               :form-params {:Attachments [{:Link ""
                                                                                            :ObfuscatedFileName ""
                                                                                            :OriginalFileName ""
                                                                                            :Size 0
                                                                                            :Type ""}]
                                                                             :ClientId 0
                                                                             :ClonedFromId 0
                                                                             :CurrencyId 0
                                                                             :ExpiresOn ""
                                                                             :IssuedOn ""
                                                                             :Items [{:Cost ""
                                                                                      :Description ""
                                                                                      :DiscountPercentage ""
                                                                                      :Quantity ""
                                                                                      :TaxId 0
                                                                                      :TaxPercentage ""
                                                                                      :WorkTypeId 0}]
                                                                             :Notes ""
                                                                             :Number ""
                                                                             :PaymentGateways [{:Name ""}]
                                                                             :PoNumber ""
                                                                             :Status ""
                                                                             :Terms ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/estimation/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/estimation/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/new"

	payload := strings.NewReader("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/estimation/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 577

{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/estimation/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/estimation/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/estimation/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Attachments: [
    {
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  ExpiresOn: '',
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  Status: '',
  Terms: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/estimation/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    ExpiresOn: '',
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    Status: '',
    Terms: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"ExpiresOn":"","IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","Status":"","Terms":""}'
};

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}}/api/estimation/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Attachments": [\n    {\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "ExpiresOn": "",\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "Status": "",\n  "Terms": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/estimation/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  ExpiresOn: '',
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [{Name: ''}],
  PoNumber: '',
  Status: '',
  Terms: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    ExpiresOn: '',
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    Status: '',
    Terms: ''
  },
  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}}/api/estimation/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Attachments: [
    {
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  ExpiresOn: '',
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  Status: '',
  Terms: ''
});

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}}/api/estimation/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    ExpiresOn: '',
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    Status: '',
    Terms: ''
  }
};

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

const url = '{{baseUrl}}/api/estimation/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"ExpiresOn":"","IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","Status":"","Terms":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Attachments": @[ @{ @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ],
                              @"ClientId": @0,
                              @"ClonedFromId": @0,
                              @"CurrencyId": @0,
                              @"ExpiresOn": @"",
                              @"IssuedOn": @"",
                              @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"DiscountPercentage": @"", @"Quantity": @"", @"TaxId": @0, @"TaxPercentage": @"", @"WorkTypeId": @0 } ],
                              @"Notes": @"",
                              @"Number": @"",
                              @"PaymentGateways": @[ @{ @"Name": @"" } ],
                              @"PoNumber": @"",
                              @"Status": @"",
                              @"Terms": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/new"]
                                                       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}}/api/estimation/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/new",
  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([
    'Attachments' => [
        [
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'ExpiresOn' => '',
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountPercentage' => '',
                'Quantity' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'PaymentGateways' => [
        [
                'Name' => ''
        ]
    ],
    'PoNumber' => '',
    'Status' => '',
    'Terms' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/estimation/new', [
  'body' => '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Attachments' => [
    [
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'ExpiresOn' => '',
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'Status' => '',
  'Terms' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Attachments' => [
    [
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'ExpiresOn' => '',
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'Status' => '',
  'Terms' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/estimation/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}'
import http.client

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

payload = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/estimation/new", payload, headers)

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

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

url = "{{baseUrl}}/api/estimation/new"

payload = {
    "Attachments": [
        {
            "Link": "",
            "ObfuscatedFileName": "",
            "OriginalFileName": "",
            "Size": 0,
            "Type": ""
        }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "ExpiresOn": "",
    "IssuedOn": "",
    "Items": [
        {
            "Cost": "",
            "Description": "",
            "DiscountPercentage": "",
            "Quantity": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "WorkTypeId": 0
        }
    ],
    "Notes": "",
    "Number": "",
    "PaymentGateways": [{ "Name": "" }],
    "PoNumber": "",
    "Status": "",
    "Terms": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/estimation/new"

payload <- "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/estimation/new")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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/api/estimation/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"
end

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

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

    let payload = json!({
        "Attachments": (
            json!({
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            })
        ),
        "ClientId": 0,
        "ClonedFromId": 0,
        "CurrencyId": 0,
        "ExpiresOn": "",
        "IssuedOn": "",
        "Items": (
            json!({
                "Cost": "",
                "Description": "",
                "DiscountPercentage": "",
                "Quantity": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "WorkTypeId": 0
            })
        ),
        "Notes": "",
        "Number": "",
        "PaymentGateways": (json!({"Name": ""})),
        "PoNumber": "",
        "Status": "",
        "Terms": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/estimation/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}'
echo '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}' |  \
  http POST {{baseUrl}}/api/estimation/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Attachments": [\n    {\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "ExpiresOn": "",\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "Status": "",\n  "Terms": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/estimation/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Attachments": [
    [
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    ]
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "IssuedOn": "",
  "Items": [
    [
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    ]
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [["Name": ""]],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/new")! 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()
POST Delete an existing estimation
{{baseUrl}}/api/estimation/delete
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/delete");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

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

(client/post "{{baseUrl}}/api/estimation/delete" {:headers {:x-auth-key ""
                                                                            :x-auth-secret ""}
                                                                  :content-type :json
                                                                  :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/estimation/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/estimation/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/estimation/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/delete"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/estimation/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/estimation/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/estimation/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/estimation/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

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

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

xhr.open('POST', '{{baseUrl}}/api/estimation/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/estimation/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/estimation/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/estimation/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/estimation/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

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

const url = '{{baseUrl}}/api/estimation/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/delete"]
                                                       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}}/api/estimation/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/delete",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/estimation/delete', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/estimation/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

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

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/estimation/delete", payload, headers)

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

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

url = "{{baseUrl}}/api/estimation/delete"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/estimation/delete"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/estimation/delete")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/estimation/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

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

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/estimation/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/estimation/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/estimation/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
GET Retrieve the status of the estimation
{{baseUrl}}/api/estimation/status
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/status?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/estimation/status" {:headers {:x-auth-key ""
                                                                           :x-auth-secret ""}
                                                                 :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/status?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/estimation/status?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/estimation/status?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/status?id="

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/estimation/status?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/estimation/status?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/status?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/estimation/status?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/estimation/status?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/estimation/status?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/estimation/status',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/status?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/estimation/status?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/status?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/estimation/status?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/estimation/status',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/estimation/status');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/estimation/status',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/estimation/status?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/status?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/estimation/status?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/status?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/estimation/status?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/estimation/status');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/status?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/status?id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/estimation/status?id=", headers=headers)

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

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

url = "{{baseUrl}}/api/estimation/status"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/api/estimation/status"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/estimation/status?id=")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/estimation/status') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/estimation/status?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/estimation/status?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/estimation/status?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/status?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return all estimation for the account
{{baseUrl}}/api/estimation/all
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/estimation/all" {:headers {:x-auth-key ""
                                                                        :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/estimation/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/estimation/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/all"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/estimation/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/estimation/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/estimation/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/estimation/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/estimation/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/estimation/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/estimation/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/estimation/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/estimation/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/estimation/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/estimation/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/estimation/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/estimation/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/estimation/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/estimation/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/all' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/estimation/all", headers=headers)

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

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

url = "{{baseUrl}}/api/estimation/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/estimation/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/estimation/all")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/estimation/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/estimation/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/estimation/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/estimation/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return estimation data
{{baseUrl}}/api/estimation/details
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/details?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/estimation/details" {:headers {:x-auth-key ""
                                                                            :x-auth-secret ""}
                                                                  :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/details?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/estimation/details?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/estimation/details?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/details?id="

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/estimation/details?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/estimation/details?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/details?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/estimation/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/estimation/details?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/estimation/details?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/estimation/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/estimation/details?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/estimation/details?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/estimation/details',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/estimation/details');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/estimation/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/estimation/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/details?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/estimation/details?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/details?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/estimation/details?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/estimation/details');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/details?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/details?id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/estimation/details?id=", headers=headers)

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

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

url = "{{baseUrl}}/api/estimation/details"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/api/estimation/details"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/estimation/details?id=")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/estimation/details') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/estimation/details?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/estimation/details?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/estimation/details?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/details?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return the unique url to the client's invoice
{{baseUrl}}/api/estimation/uri
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/uri?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/estimation/uri" {:headers {:x-auth-key ""
                                                                        :x-auth-secret ""}
                                                              :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/uri?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/estimation/uri?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/estimation/uri?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/uri?id="

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/estimation/uri?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/estimation/uri?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/uri?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/estimation/uri?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/estimation/uri?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/estimation/uri?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/estimation/uri',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/uri?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/estimation/uri?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/uri?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/estimation/uri?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/estimation/uri',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/estimation/uri');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/estimation/uri',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/estimation/uri?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/uri?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/estimation/uri?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/uri?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/estimation/uri?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/estimation/uri');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/uri?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/uri?id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/estimation/uri?id=", headers=headers)

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

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

url = "{{baseUrl}}/api/estimation/uri"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/api/estimation/uri"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/estimation/uri?id=")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/estimation/uri') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/estimation/uri?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/estimation/uri?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/estimation/uri?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/uri?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Send the provided estimation to the client
{{baseUrl}}/api/estimation/sendtoclient
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/sendtoclient");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/estimation/sendtoclient" {:headers {:x-auth-key ""
                                                                                  :x-auth-secret ""}
                                                                        :content-type :json
                                                                        :form-params {:AttachPdf false
                                                                                      :EstimationId 0
                                                                                      :Id 0
                                                                                      :Message ""
                                                                                      :SendToSelf false
                                                                                      :Subject ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/sendtoclient"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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}}/api/estimation/sendtoclient"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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}}/api/estimation/sendtoclient");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/sendtoclient"

	payload := strings.NewReader("{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/estimation/sendtoclient HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 113

{
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/estimation/sendtoclient")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/sendtoclient"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/estimation/sendtoclient")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/estimation/sendtoclient")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  AttachPdf: false,
  EstimationId: 0,
  Id: 0,
  Message: '',
  SendToSelf: false,
  Subject: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/estimation/sendtoclient');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/sendtoclient',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AttachPdf: false,
    EstimationId: 0,
    Id: 0,
    Message: '',
    SendToSelf: false,
    Subject: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/sendtoclient';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AttachPdf":false,"EstimationId":0,"Id":0,"Message":"","SendToSelf":false,"Subject":""}'
};

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}}/api/estimation/sendtoclient',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AttachPdf": false,\n  "EstimationId": 0,\n  "Id": 0,\n  "Message": "",\n  "SendToSelf": false,\n  "Subject": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/sendtoclient")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/estimation/sendtoclient',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AttachPdf: false,
  EstimationId: 0,
  Id: 0,
  Message: '',
  SendToSelf: false,
  Subject: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/sendtoclient',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AttachPdf: false,
    EstimationId: 0,
    Id: 0,
    Message: '',
    SendToSelf: false,
    Subject: ''
  },
  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}}/api/estimation/sendtoclient');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AttachPdf: false,
  EstimationId: 0,
  Id: 0,
  Message: '',
  SendToSelf: false,
  Subject: ''
});

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}}/api/estimation/sendtoclient',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AttachPdf: false,
    EstimationId: 0,
    Id: 0,
    Message: '',
    SendToSelf: false,
    Subject: ''
  }
};

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

const url = '{{baseUrl}}/api/estimation/sendtoclient';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AttachPdf":false,"EstimationId":0,"Id":0,"Message":"","SendToSelf":false,"Subject":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AttachPdf": @NO,
                              @"EstimationId": @0,
                              @"Id": @0,
                              @"Message": @"",
                              @"SendToSelf": @NO,
                              @"Subject": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/sendtoclient"]
                                                       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}}/api/estimation/sendtoclient" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/sendtoclient",
  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([
    'AttachPdf' => null,
    'EstimationId' => 0,
    'Id' => 0,
    'Message' => '',
    'SendToSelf' => null,
    'Subject' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/estimation/sendtoclient', [
  'body' => '{
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AttachPdf' => null,
  'EstimationId' => 0,
  'Id' => 0,
  'Message' => '',
  'SendToSelf' => null,
  'Subject' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AttachPdf' => null,
  'EstimationId' => 0,
  'Id' => 0,
  'Message' => '',
  'SendToSelf' => null,
  'Subject' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/estimation/sendtoclient');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/sendtoclient' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/sendtoclient' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}'
import http.client

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

payload = "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/estimation/sendtoclient", payload, headers)

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

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

url = "{{baseUrl}}/api/estimation/sendtoclient"

payload = {
    "AttachPdf": False,
    "EstimationId": 0,
    "Id": 0,
    "Message": "",
    "SendToSelf": False,
    "Subject": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/estimation/sendtoclient"

payload <- "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/estimation/sendtoclient")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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/api/estimation/sendtoclient') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AttachPdf\": false,\n  \"EstimationId\": 0,\n  \"Id\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}"
end

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

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

    let payload = json!({
        "AttachPdf": false,
        "EstimationId": 0,
        "Id": 0,
        "Message": "",
        "SendToSelf": false,
        "Subject": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/estimation/sendtoclient \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}'
echo '{
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}' |  \
  http POST {{baseUrl}}/api/estimation/sendtoclient \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AttachPdf": false,\n  "EstimationId": 0,\n  "Id": 0,\n  "Message": "",\n  "SendToSelf": false,\n  "Subject": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/estimation/sendtoclient
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AttachPdf": false,
  "EstimationId": 0,
  "Id": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/sendtoclient")! 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()
POST Update an existing estimation
{{baseUrl}}/api/estimation/update
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/estimation/update");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/estimation/update" {:headers {:x-auth-key ""
                                                                            :x-auth-secret ""}
                                                                  :content-type :json
                                                                  :form-params {:Attachments [{:Id 0
                                                                                               :Link ""
                                                                                               :ObfuscatedFileName ""
                                                                                               :OriginalFileName ""
                                                                                               :Size 0
                                                                                               :Type ""}]
                                                                                :ClientId 0
                                                                                :ClonedFromId 0
                                                                                :CurrencyId 0
                                                                                :ExpiresOn ""
                                                                                :Id 0
                                                                                :IssuedOn ""
                                                                                :Items [{:Cost ""
                                                                                         :Description ""
                                                                                         :DiscountPercentage ""
                                                                                         :Id 0
                                                                                         :Quantity ""
                                                                                         :TaxId 0
                                                                                         :TaxPercentage ""
                                                                                         :WorkTypeId 0}]
                                                                                :Notes ""
                                                                                :Number ""
                                                                                :PaymentGateways [{:Name ""}]
                                                                                :PoNumber ""
                                                                                :Status ""
                                                                                :Terms ""}})
require "http/client"

url = "{{baseUrl}}/api/estimation/update"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/estimation/update"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/estimation/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/estimation/update"

	payload := strings.NewReader("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/estimation/update HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 618

{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/estimation/update")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/estimation/update"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/estimation/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/estimation/update")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  ExpiresOn: '',
  Id: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Id: 0,
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  Status: '',
  Terms: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/estimation/update');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    ExpiresOn: '',
    Id: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Id: 0,
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    Status: '',
    Terms: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/estimation/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"ExpiresOn":"","Id":0,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Id":0,"Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","Status":"","Terms":""}'
};

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}}/api/estimation/update',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "ExpiresOn": "",\n  "Id": 0,\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "Status": "",\n  "Terms": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/estimation/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/estimation/update',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  ExpiresOn: '',
  Id: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Id: 0,
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [{Name: ''}],
  PoNumber: '',
  Status: '',
  Terms: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/estimation/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    ExpiresOn: '',
    Id: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Id: 0,
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    Status: '',
    Terms: ''
  },
  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}}/api/estimation/update');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  ExpiresOn: '',
  Id: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Id: 0,
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  Status: '',
  Terms: ''
});

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}}/api/estimation/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    ExpiresOn: '',
    Id: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Id: 0,
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    Status: '',
    Terms: ''
  }
};

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

const url = '{{baseUrl}}/api/estimation/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"ExpiresOn":"","Id":0,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Id":0,"Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","Status":"","Terms":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Attachments": @[ @{ @"Id": @0, @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ],
                              @"ClientId": @0,
                              @"ClonedFromId": @0,
                              @"CurrencyId": @0,
                              @"ExpiresOn": @"",
                              @"Id": @0,
                              @"IssuedOn": @"",
                              @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"DiscountPercentage": @"", @"Id": @0, @"Quantity": @"", @"TaxId": @0, @"TaxPercentage": @"", @"WorkTypeId": @0 } ],
                              @"Notes": @"",
                              @"Number": @"",
                              @"PaymentGateways": @[ @{ @"Name": @"" } ],
                              @"PoNumber": @"",
                              @"Status": @"",
                              @"Terms": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/estimation/update"]
                                                       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}}/api/estimation/update" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/estimation/update",
  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([
    'Attachments' => [
        [
                'Id' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'ExpiresOn' => '',
    'Id' => 0,
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'Quantity' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'PaymentGateways' => [
        [
                'Name' => ''
        ]
    ],
    'PoNumber' => '',
    'Status' => '',
    'Terms' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/estimation/update', [
  'body' => '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'ExpiresOn' => '',
  'Id' => 0,
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'Status' => '',
  'Terms' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'ExpiresOn' => '',
  'Id' => 0,
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'Status' => '',
  'Terms' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/estimation/update');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/estimation/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/estimation/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}'
import http.client

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

payload = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/estimation/update", payload, headers)

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

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

url = "{{baseUrl}}/api/estimation/update"

payload = {
    "Attachments": [
        {
            "Id": 0,
            "Link": "",
            "ObfuscatedFileName": "",
            "OriginalFileName": "",
            "Size": 0,
            "Type": ""
        }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "ExpiresOn": "",
    "Id": 0,
    "IssuedOn": "",
    "Items": [
        {
            "Cost": "",
            "Description": "",
            "DiscountPercentage": "",
            "Id": 0,
            "Quantity": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "WorkTypeId": 0
        }
    ],
    "Notes": "",
    "Number": "",
    "PaymentGateways": [{ "Name": "" }],
    "PoNumber": "",
    "Status": "",
    "Terms": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/estimation/update"

payload <- "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/estimation/update")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\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/api/estimation/update') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"ExpiresOn\": \"\",\n  \"Id\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"
end

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

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

    let payload = json!({
        "Attachments": (
            json!({
                "Id": 0,
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            })
        ),
        "ClientId": 0,
        "ClonedFromId": 0,
        "CurrencyId": 0,
        "ExpiresOn": "",
        "Id": 0,
        "IssuedOn": "",
        "Items": (
            json!({
                "Cost": "",
                "Description": "",
                "DiscountPercentage": "",
                "Id": 0,
                "Quantity": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "WorkTypeId": 0
            })
        ),
        "Notes": "",
        "Number": "",
        "PaymentGateways": (json!({"Name": ""})),
        "PoNumber": "",
        "Status": "",
        "Terms": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/estimation/update \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}'
echo '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
}' |  \
  http POST {{baseUrl}}/api/estimation/update \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "ExpiresOn": "",\n  "Id": 0,\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "Status": "",\n  "Terms": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/estimation/update
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Attachments": [
    [
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    ]
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "ExpiresOn": "",
  "Id": 0,
  "IssuedOn": "",
  "Items": [
    [
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    ]
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [["Name": ""]],
  "PoNumber": "",
  "Status": "",
  "Terms": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/estimation/update")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
GET Return all of the platform supported Date Formats
{{baseUrl}}/api/general/dateformats
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/general/dateformats");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/general/dateformats" {:headers {:x-auth-key ""
                                                                             :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/general/dateformats"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/general/dateformats"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/general/dateformats");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/general/dateformats"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/general/dateformats HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/general/dateformats")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/general/dateformats"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/general/dateformats")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/general/dateformats")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/general/dateformats');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/general/dateformats',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/general/dateformats';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/general/dateformats',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/general/dateformats")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/general/dateformats',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/general/dateformats',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/general/dateformats');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/general/dateformats',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/general/dateformats';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/general/dateformats"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/general/dateformats" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/general/dateformats",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/general/dateformats', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/general/dateformats');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/general/dateformats' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/general/dateformats' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/general/dateformats", headers=headers)

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

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

url = "{{baseUrl}}/api/general/dateformats"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/general/dateformats"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/general/dateformats")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/general/dateformats') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/general/dateformats \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/general/dateformats \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/general/dateformats
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/general/dateformats")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return all of the platform supported UI languages
{{baseUrl}}/api/general/uilanguages
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/general/uilanguages");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/general/uilanguages" {:headers {:x-auth-key ""
                                                                             :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/general/uilanguages"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/general/uilanguages"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/general/uilanguages");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/general/uilanguages"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/general/uilanguages HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/general/uilanguages")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/general/uilanguages"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/general/uilanguages")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/general/uilanguages")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/general/uilanguages');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/general/uilanguages',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/general/uilanguages';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/general/uilanguages',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/general/uilanguages")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/general/uilanguages',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/general/uilanguages',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/general/uilanguages');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/general/uilanguages',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/general/uilanguages';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/general/uilanguages"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/general/uilanguages" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/general/uilanguages",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/general/uilanguages', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/general/uilanguages');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/general/uilanguages' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/general/uilanguages' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/general/uilanguages", headers=headers)

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

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

url = "{{baseUrl}}/api/general/uilanguages"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/general/uilanguages"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/general/uilanguages")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/general/uilanguages') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/general/uilanguages \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/general/uilanguages \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/general/uilanguages
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/general/uilanguages")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return all of the platform supported countries
{{baseUrl}}/api/general/countries
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/general/countries");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/general/countries" {:headers {:x-auth-key ""
                                                                           :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/general/countries"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/general/countries"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/general/countries");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/general/countries"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/general/countries HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/general/countries")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/general/countries"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/general/countries")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/general/countries")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/general/countries');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/general/countries',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/general/countries';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/general/countries',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/general/countries")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/general/countries',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/general/countries',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/general/countries');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/general/countries',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/general/countries';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/general/countries"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/general/countries" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/general/countries",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/general/countries', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/general/countries');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/general/countries' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/general/countries' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/general/countries", headers=headers)

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

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

url = "{{baseUrl}}/api/general/countries"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/general/countries"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/general/countries")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/general/countries') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/general/countries \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/general/countries \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/general/countries
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/general/countries")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return all of the platform supported currencies
{{baseUrl}}/api/general/currencies
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/general/currencies");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/general/currencies" {:headers {:x-auth-key ""
                                                                            :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/general/currencies"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/general/currencies"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/general/currencies");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/general/currencies"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/general/currencies HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/general/currencies")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/general/currencies"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/general/currencies")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/general/currencies")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/general/currencies');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/general/currencies',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/general/currencies';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/general/currencies',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/general/currencies")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/general/currencies',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/general/currencies',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/general/currencies');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/general/currencies',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/general/currencies';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/general/currencies"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/general/currencies" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/general/currencies",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/general/currencies', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/general/currencies');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/general/currencies' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/general/currencies' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/general/currencies", headers=headers)

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

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

url = "{{baseUrl}}/api/general/currencies"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/general/currencies"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/general/currencies")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/general/currencies') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/general/currencies \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/general/currencies \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/general/currencies
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/general/currencies")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Change invoice status
{{baseUrl}}/api/invoice/changestatus
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0,
  "Status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/changestatus");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/invoice/changestatus" {:headers {:x-auth-key ""
                                                                               :x-auth-secret ""}
                                                                     :content-type :json
                                                                     :form-params {:Id 0
                                                                                   :Status ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/changestatus"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0,\n  \"Status\": \"\"\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}}/api/invoice/changestatus"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0,\n  \"Status\": \"\"\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}}/api/invoice/changestatus");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/changestatus"

	payload := strings.NewReader("{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/changestatus HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 29

{
  "Id": 0,
  "Status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/changestatus")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/changestatus"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0,\n  \"Status\": \"\"\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  \"Id\": 0,\n  \"Status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/changestatus")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/changestatus")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Id: 0,
  Status: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/invoice/changestatus');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/changestatus';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Status":""}'
};

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}}/api/invoice/changestatus',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0,\n  "Status": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/changestatus")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/changestatus',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0, Status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0, Status: ''},
  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}}/api/invoice/changestatus');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0,
  Status: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Status: ''}
};

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

const url = '{{baseUrl}}/api/invoice/changestatus';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Status":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0,
                              @"Status": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/changestatus"]
                                                       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}}/api/invoice/changestatus" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/changestatus",
  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([
    'Id' => 0,
    'Status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/changestatus', [
  'body' => '{
  "Id": 0,
  "Status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0,
  'Status' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0,
  'Status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/changestatus');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/changestatus' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Status": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/changestatus' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Status": ""
}'
import http.client

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

payload = "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/changestatus", payload, headers)

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

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

url = "{{baseUrl}}/api/invoice/changestatus"

payload = {
    "Id": 0,
    "Status": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/invoice/changestatus"

payload <- "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/invoice/changestatus")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0,\n  \"Status\": \"\"\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/api/invoice/changestatus') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0,\n  \"Status\": \"\"\n}"
end

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

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

    let payload = json!({
        "Id": 0,
        "Status": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/changestatus \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0,
  "Status": ""
}'
echo '{
  "Id": 0,
  "Status": ""
}' |  \
  http POST {{baseUrl}}/api/invoice/changestatus \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0,\n  "Status": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/changestatus
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Id": 0,
  "Status": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/changestatus")! 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()
POST Create an invoice category
{{baseUrl}}/api/invoice/newcategory
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/newcategory");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Name\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/invoice/newcategory" {:headers {:x-auth-key ""
                                                                              :x-auth-secret ""}
                                                                    :content-type :json
                                                                    :form-params {:Name ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/newcategory"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Name\": \"\"\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}}/api/invoice/newcategory"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Name\": \"\"\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}}/api/invoice/newcategory");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/newcategory"

	payload := strings.NewReader("{\n  \"Name\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/newcategory HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 16

{
  "Name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/newcategory")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/newcategory"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Name\": \"\"\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  \"Name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/newcategory")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/newcategory")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Name: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/invoice/newcategory');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/newcategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/newcategory';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Name":""}'
};

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}}/api/invoice/newcategory',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Name": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/newcategory")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/newcategory',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/newcategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Name: ''},
  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}}/api/invoice/newcategory');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Name: ''
});

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}}/api/invoice/newcategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Name: ''}
};

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

const url = '{{baseUrl}}/api/invoice/newcategory';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Name":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Name": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/newcategory"]
                                                       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}}/api/invoice/newcategory" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/newcategory",
  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([
    'Name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/newcategory', [
  'body' => '{
  "Name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/newcategory');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/newcategory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Name": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/newcategory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Name": ""
}'
import http.client

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

payload = "{\n  \"Name\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/newcategory", payload, headers)

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

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

url = "{{baseUrl}}/api/invoice/newcategory"

payload = { "Name": "" }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/invoice/newcategory"

payload <- "{\n  \"Name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/invoice/newcategory")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Name\": \"\"\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/api/invoice/newcategory') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Name\": \"\"\n}"
end

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

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/newcategory \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Name": ""
}'
echo '{
  "Name": ""
}' |  \
  http POST {{baseUrl}}/api/invoice/newcategory \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Name": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/newcategory
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Name": ""] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/newcategory")! 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()
POST Create an invoice
{{baseUrl}}/api/invoice/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/new");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");

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

(client/post "{{baseUrl}}/api/invoice/new" {:headers {:x-auth-key ""
                                                                      :x-auth-secret ""}
                                                            :content-type :json
                                                            :form-params {:Attachments [{:Link ""
                                                                                         :ObfuscatedFileName ""
                                                                                         :OriginalFileName ""
                                                                                         :Size 0
                                                                                         :Type ""}]
                                                                          :ClientId 0
                                                                          :ClonedFromId 0
                                                                          :CurrencyId 0
                                                                          :Duedate ""
                                                                          :InvoiceCategoryId 0
                                                                          :IssuedOn ""
                                                                          :Items [{:Cost ""
                                                                                   :Description ""
                                                                                   :DiscountPercentage ""
                                                                                   :Quantity ""
                                                                                   :TaxId 0
                                                                                   :TaxPercentage ""
                                                                                   :WorkTypeId 0}]
                                                                          :Notes ""
                                                                          :Number ""
                                                                          :PaymentGateways [{:Name ""}]
                                                                          :PoNumber ""
                                                                          :RecurringProfile {:DayOfMonth 0
                                                                                             :DayOfWeek ""
                                                                                             :DueDateInDays 0
                                                                                             :EndOfRecurrance ""
                                                                                             :Month 0
                                                                                             :RecurrancePattern ""
                                                                                             :RecurranceValue 0
                                                                                             :StartOfRecurrance ""
                                                                                             :Status ""
                                                                                             :Title ""}
                                                                          :RecurringProfileId 0
                                                                          :ShouldSendReminders false
                                                                          :Status ""
                                                                          :Terms ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/invoice/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/invoice/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/new"

	payload := strings.NewReader("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 916

{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Attachments: [
    {
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  Duedate: '',
  InvoiceCategoryId: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  RecurringProfile: {
    DayOfMonth: 0,
    DayOfWeek: '',
    DueDateInDays: 0,
    EndOfRecurrance: '',
    Month: 0,
    RecurrancePattern: '',
    RecurranceValue: 0,
    StartOfRecurrance: '',
    Status: '',
    Title: ''
  },
  RecurringProfileId: 0,
  ShouldSendReminders: false,
  Status: '',
  Terms: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/api/invoice/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    Duedate: '',
    InvoiceCategoryId: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    RecurringProfile: {
      DayOfMonth: 0,
      DayOfWeek: '',
      DueDateInDays: 0,
      EndOfRecurrance: '',
      Month: 0,
      RecurrancePattern: '',
      RecurranceValue: 0,
      StartOfRecurrance: '',
      Status: '',
      Title: ''
    },
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    Terms: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"Duedate":"","InvoiceCategoryId":0,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","RecurringProfile":{"DayOfMonth":0,"DayOfWeek":"","DueDateInDays":0,"EndOfRecurrance":"","Month":0,"RecurrancePattern":"","RecurranceValue":0,"StartOfRecurrance":"","Status":"","Title":""},"RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","Terms":""}'
};

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}}/api/invoice/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Attachments": [\n    {\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "Duedate": "",\n  "InvoiceCategoryId": 0,\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "RecurringProfile": {\n    "DayOfMonth": 0,\n    "DayOfWeek": "",\n    "DueDateInDays": 0,\n    "EndOfRecurrance": "",\n    "Month": 0,\n    "RecurrancePattern": "",\n    "RecurranceValue": 0,\n    "StartOfRecurrance": "",\n    "Status": "",\n    "Title": ""\n  },\n  "RecurringProfileId": 0,\n  "ShouldSendReminders": false,\n  "Status": "",\n  "Terms": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  Duedate: '',
  InvoiceCategoryId: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [{Name: ''}],
  PoNumber: '',
  RecurringProfile: {
    DayOfMonth: 0,
    DayOfWeek: '',
    DueDateInDays: 0,
    EndOfRecurrance: '',
    Month: 0,
    RecurrancePattern: '',
    RecurranceValue: 0,
    StartOfRecurrance: '',
    Status: '',
    Title: ''
  },
  RecurringProfileId: 0,
  ShouldSendReminders: false,
  Status: '',
  Terms: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    Duedate: '',
    InvoiceCategoryId: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    RecurringProfile: {
      DayOfMonth: 0,
      DayOfWeek: '',
      DueDateInDays: 0,
      EndOfRecurrance: '',
      Month: 0,
      RecurrancePattern: '',
      RecurranceValue: 0,
      StartOfRecurrance: '',
      Status: '',
      Title: ''
    },
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    Terms: ''
  },
  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}}/api/invoice/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Attachments: [
    {
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  Duedate: '',
  InvoiceCategoryId: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  RecurringProfile: {
    DayOfMonth: 0,
    DayOfWeek: '',
    DueDateInDays: 0,
    EndOfRecurrance: '',
    Month: 0,
    RecurrancePattern: '',
    RecurranceValue: 0,
    StartOfRecurrance: '',
    Status: '',
    Title: ''
  },
  RecurringProfileId: 0,
  ShouldSendReminders: false,
  Status: '',
  Terms: ''
});

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}}/api/invoice/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    Duedate: '',
    InvoiceCategoryId: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    RecurringProfile: {
      DayOfMonth: 0,
      DayOfWeek: '',
      DueDateInDays: 0,
      EndOfRecurrance: '',
      Month: 0,
      RecurrancePattern: '',
      RecurranceValue: 0,
      StartOfRecurrance: '',
      Status: '',
      Title: ''
    },
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    Terms: ''
  }
};

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

const url = '{{baseUrl}}/api/invoice/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"Duedate":"","InvoiceCategoryId":0,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","RecurringProfile":{"DayOfMonth":0,"DayOfWeek":"","DueDateInDays":0,"EndOfRecurrance":"","Month":0,"RecurrancePattern":"","RecurranceValue":0,"StartOfRecurrance":"","Status":"","Title":""},"RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","Terms":""}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Attachments": @[ @{ @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ],
                              @"ClientId": @0,
                              @"ClonedFromId": @0,
                              @"CurrencyId": @0,
                              @"Duedate": @"",
                              @"InvoiceCategoryId": @0,
                              @"IssuedOn": @"",
                              @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"DiscountPercentage": @"", @"Quantity": @"", @"TaxId": @0, @"TaxPercentage": @"", @"WorkTypeId": @0 } ],
                              @"Notes": @"",
                              @"Number": @"",
                              @"PaymentGateways": @[ @{ @"Name": @"" } ],
                              @"PoNumber": @"",
                              @"RecurringProfile": @{ @"DayOfMonth": @0, @"DayOfWeek": @"", @"DueDateInDays": @0, @"EndOfRecurrance": @"", @"Month": @0, @"RecurrancePattern": @"", @"RecurranceValue": @0, @"StartOfRecurrance": @"", @"Status": @"", @"Title": @"" },
                              @"RecurringProfileId": @0,
                              @"ShouldSendReminders": @NO,
                              @"Status": @"",
                              @"Terms": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/new"]
                                                       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}}/api/invoice/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/new",
  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([
    'Attachments' => [
        [
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'Duedate' => '',
    'InvoiceCategoryId' => 0,
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountPercentage' => '',
                'Quantity' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'PaymentGateways' => [
        [
                'Name' => ''
        ]
    ],
    'PoNumber' => '',
    'RecurringProfile' => [
        'DayOfMonth' => 0,
        'DayOfWeek' => '',
        'DueDateInDays' => 0,
        'EndOfRecurrance' => '',
        'Month' => 0,
        'RecurrancePattern' => '',
        'RecurranceValue' => 0,
        'StartOfRecurrance' => '',
        'Status' => '',
        'Title' => ''
    ],
    'RecurringProfileId' => 0,
    'ShouldSendReminders' => null,
    'Status' => '',
    'Terms' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/new', [
  'body' => '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Attachments' => [
    [
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'Duedate' => '',
  'InvoiceCategoryId' => 0,
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'RecurringProfile' => [
    'DayOfMonth' => 0,
    'DayOfWeek' => '',
    'DueDateInDays' => 0,
    'EndOfRecurrance' => '',
    'Month' => 0,
    'RecurrancePattern' => '',
    'RecurranceValue' => 0,
    'StartOfRecurrance' => '',
    'Status' => '',
    'Title' => ''
  ],
  'RecurringProfileId' => 0,
  'ShouldSendReminders' => null,
  'Status' => '',
  'Terms' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Attachments' => [
    [
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'Duedate' => '',
  'InvoiceCategoryId' => 0,
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'RecurringProfile' => [
    'DayOfMonth' => 0,
    'DayOfWeek' => '',
    'DueDateInDays' => 0,
    'EndOfRecurrance' => '',
    'Month' => 0,
    'RecurrancePattern' => '',
    'RecurranceValue' => 0,
    'StartOfRecurrance' => '',
    'Status' => '',
    'Title' => ''
  ],
  'RecurringProfileId' => 0,
  'ShouldSendReminders' => null,
  'Status' => '',
  'Terms' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}'
import http.client

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

payload = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/new", payload, headers)

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

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

url = "{{baseUrl}}/api/invoice/new"

payload = {
    "Attachments": [
        {
            "Link": "",
            "ObfuscatedFileName": "",
            "OriginalFileName": "",
            "Size": 0,
            "Type": ""
        }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "Duedate": "",
    "InvoiceCategoryId": 0,
    "IssuedOn": "",
    "Items": [
        {
            "Cost": "",
            "Description": "",
            "DiscountPercentage": "",
            "Quantity": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "WorkTypeId": 0
        }
    ],
    "Notes": "",
    "Number": "",
    "PaymentGateways": [{ "Name": "" }],
    "PoNumber": "",
    "RecurringProfile": {
        "DayOfMonth": 0,
        "DayOfWeek": "",
        "DueDateInDays": 0,
        "EndOfRecurrance": "",
        "Month": 0,
        "RecurrancePattern": "",
        "RecurranceValue": 0,
        "StartOfRecurrance": "",
        "Status": "",
        "Title": ""
    },
    "RecurringProfileId": 0,
    "ShouldSendReminders": False,
    "Status": "",
    "Terms": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/invoice/new"

payload <- "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/invoice/new")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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/api/invoice/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"
end

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

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

    let payload = json!({
        "Attachments": (
            json!({
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            })
        ),
        "ClientId": 0,
        "ClonedFromId": 0,
        "CurrencyId": 0,
        "Duedate": "",
        "InvoiceCategoryId": 0,
        "IssuedOn": "",
        "Items": (
            json!({
                "Cost": "",
                "Description": "",
                "DiscountPercentage": "",
                "Quantity": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "WorkTypeId": 0
            })
        ),
        "Notes": "",
        "Number": "",
        "PaymentGateways": (json!({"Name": ""})),
        "PoNumber": "",
        "RecurringProfile": json!({
            "DayOfMonth": 0,
            "DayOfWeek": "",
            "DueDateInDays": 0,
            "EndOfRecurrance": "",
            "Month": 0,
            "RecurrancePattern": "",
            "RecurranceValue": 0,
            "StartOfRecurrance": "",
            "Status": "",
            "Title": ""
        }),
        "RecurringProfileId": 0,
        "ShouldSendReminders": false,
        "Status": "",
        "Terms": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}'
echo '{
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}' |  \
  http POST {{baseUrl}}/api/invoice/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Attachments": [\n    {\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "Duedate": "",\n  "InvoiceCategoryId": 0,\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "RecurringProfile": {\n    "DayOfMonth": 0,\n    "DayOfWeek": "",\n    "DueDateInDays": 0,\n    "EndOfRecurrance": "",\n    "Month": 0,\n    "RecurrancePattern": "",\n    "RecurranceValue": 0,\n    "StartOfRecurrance": "",\n    "Status": "",\n    "Title": ""\n  },\n  "RecurringProfileId": 0,\n  "ShouldSendReminders": false,\n  "Status": "",\n  "Terms": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Attachments": [
    [
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    ]
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    [
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    ]
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [["Name": ""]],
  "PoNumber": "",
  "RecurringProfile": [
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  ],
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/new")! 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()
POST Delete an existing invoice category
{{baseUrl}}/api/invoice/deletecategory
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/deletecategory");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

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

(client/post "{{baseUrl}}/api/invoice/deletecategory" {:headers {:x-auth-key ""
                                                                                 :x-auth-secret ""}
                                                                       :content-type :json
                                                                       :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/invoice/deletecategory"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/invoice/deletecategory"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/invoice/deletecategory");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/deletecategory"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/deletecategory HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/deletecategory")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/deletecategory"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/deletecategory")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/deletecategory")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

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

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

xhr.open('POST', '{{baseUrl}}/api/invoice/deletecategory');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/deletecategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/deletecategory';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/invoice/deletecategory',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/deletecategory")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/deletecategory',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/deletecategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/invoice/deletecategory');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/invoice/deletecategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

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

const url = '{{baseUrl}}/api/invoice/deletecategory';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/deletecategory"]
                                                       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}}/api/invoice/deletecategory" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/deletecategory",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/deletecategory', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/deletecategory');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/deletecategory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/deletecategory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

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

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/deletecategory", payload, headers)

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

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

url = "{{baseUrl}}/api/invoice/deletecategory"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/invoice/deletecategory"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/invoice/deletecategory")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/invoice/deletecategory') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

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

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/deletecategory \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/invoice/deletecategory \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/deletecategory
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/deletecategory")! 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()
POST Delete an existing invoice
{{baseUrl}}/api/invoice/delete
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/delete");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

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

(client/post "{{baseUrl}}/api/invoice/delete" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :content-type :json
                                                               :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/invoice/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/invoice/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/invoice/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/delete"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

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

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

xhr.open('POST', '{{baseUrl}}/api/invoice/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/invoice/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/invoice/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/invoice/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

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

const url = '{{baseUrl}}/api/invoice/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/delete"]
                                                       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}}/api/invoice/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/delete",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/delete', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

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

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/delete", payload, headers)

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

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

url = "{{baseUrl}}/api/invoice/delete"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/api/invoice/delete"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/api/invoice/delete")

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

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/invoice/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

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

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

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/invoice/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
GET Retrieve the status of the invoice
{{baseUrl}}/api/invoice/status
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/status?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/invoice/status" {:headers {:x-auth-key ""
                                                                        :x-auth-secret ""}
                                                              :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/status?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/invoice/status?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/invoice/status?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/status?id="

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/invoice/status?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/invoice/status?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/status?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/invoice/status?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/invoice/status?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/invoice/status?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/invoice/status',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/status?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/invoice/status?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/status?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/invoice/status?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/invoice/status',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/invoice/status');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/invoice/status',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/invoice/status?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/status?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/invoice/status?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/status?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/invoice/status?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/invoice/status');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/status?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/status?id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/invoice/status?id=", headers=headers)

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

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

url = "{{baseUrl}}/api/invoice/status"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

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

url <- "{{baseUrl}}/api/invoice/status"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/invoice/status?id=")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/invoice/status') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/invoice/status?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/invoice/status?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/invoice/status?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/status?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return all invoice categories for the account
{{baseUrl}}/api/invoice/allcategories
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/allcategories");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/invoice/allcategories" {:headers {:x-auth-key ""
                                                                               :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/allcategories"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/invoice/allcategories"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/invoice/allcategories");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/allcategories"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/invoice/allcategories HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/invoice/allcategories")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/allcategories"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/invoice/allcategories")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/invoice/allcategories")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/invoice/allcategories');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/invoice/allcategories',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/allcategories';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/invoice/allcategories',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/allcategories")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/invoice/allcategories',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/invoice/allcategories',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/invoice/allcategories');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/invoice/allcategories',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/invoice/allcategories';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/allcategories"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/invoice/allcategories" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/allcategories",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/invoice/allcategories', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/invoice/allcategories');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/allcategories' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/allcategories' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/invoice/allcategories", headers=headers)

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

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

url = "{{baseUrl}}/api/invoice/allcategories"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/invoice/allcategories"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/invoice/allcategories")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/invoice/allcategories') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/invoice/allcategories \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/invoice/allcategories \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/invoice/allcategories
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/allcategories")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return all invoices for the account
{{baseUrl}}/api/invoice/all
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/invoice/all" {:headers {:x-auth-key ""
                                                                     :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/invoice/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/invoice/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/all"

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/invoice/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/invoice/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/invoice/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/invoice/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/invoice/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/invoice/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/invoice/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/invoice/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/invoice/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/invoice/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/invoice/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/invoice/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/invoice/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/invoice/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/invoice/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/all' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/invoice/all", headers=headers)

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

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

url = "{{baseUrl}}/api/invoice/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

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

url <- "{{baseUrl}}/api/invoice/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

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

url = URI("{{baseUrl}}/api/invoice/all")

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

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

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

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

response = conn.get('/baseUrl/api/invoice/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/invoice/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/invoice/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/invoice/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
GET Return invoice data
{{baseUrl}}/api/invoice/details
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/details?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/get "{{baseUrl}}/api/invoice/details" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/details?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/invoice/details?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/invoice/details?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/api/invoice/details?id="

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

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

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

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

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

}
GET /baseUrl/api/invoice/details?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/invoice/details?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/details?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/invoice/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/invoice/details?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/invoice/details?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/invoice/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/invoice/details?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/invoice/details?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/invoice/details',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/api/invoice/details');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/invoice/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

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

const url = '{{baseUrl}}/api/invoice/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/details?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/invoice/details?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/details?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/invoice/details?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

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

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/invoice/details');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/details?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/details?id=' -Method GET -Headers $headers
import http.client

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

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/invoice/details?id=", headers=headers)

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

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

url = "{{baseUrl}}/api/invoice/details"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/invoice/details"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/invoice/details?id=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/invoice/details') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/invoice/details";

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/invoice/details?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/invoice/details?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/invoice/details?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/details?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return the PDF for the invoice
{{baseUrl}}/api/invoice/pdf
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/pdf?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/invoice/pdf" {:headers {:x-auth-key ""
                                                                     :x-auth-secret ""}
                                                           :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/pdf?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/invoice/pdf?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/invoice/pdf?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/invoice/pdf?id="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/invoice/pdf?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/invoice/pdf?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/pdf?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/invoice/pdf?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/invoice/pdf?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/invoice/pdf?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/invoice/pdf',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/pdf?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/invoice/pdf?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/pdf?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/invoice/pdf?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/invoice/pdf',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/invoice/pdf');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/invoice/pdf',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/invoice/pdf?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/pdf?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/invoice/pdf?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/pdf?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/invoice/pdf?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/invoice/pdf');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/invoice/pdf');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/pdf?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/pdf?id=' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/invoice/pdf?id=", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/invoice/pdf"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/invoice/pdf"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/invoice/pdf?id=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/invoice/pdf') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/invoice/pdf";

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/invoice/pdf?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/invoice/pdf?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/invoice/pdf?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/pdf?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return the unique url to the client's invoice (GET)
{{baseUrl}}/api/invoice/uri
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/uri?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/invoice/uri" {:headers {:x-auth-key ""
                                                                     :x-auth-secret ""}
                                                           :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/uri?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/invoice/uri?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/invoice/uri?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/invoice/uri?id="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/invoice/uri?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/invoice/uri?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/uri?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/invoice/uri?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/invoice/uri?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/invoice/uri?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/invoice/uri',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/uri?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/invoice/uri?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/uri?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/invoice/uri?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/invoice/uri',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/invoice/uri');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/invoice/uri',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/invoice/uri?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/uri?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/invoice/uri?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/uri?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/invoice/uri?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/invoice/uri');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/invoice/uri');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/uri?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/uri?id=' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/invoice/uri?id=", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/invoice/uri"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/invoice/uri"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/invoice/uri?id=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/invoice/uri') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/invoice/uri";

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/invoice/uri?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/invoice/uri?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/invoice/uri?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/uri?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Send the provided invoice to the accountant
{{baseUrl}}/api/invoice/sendtoaccountant
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/sendtoaccountant");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/invoice/sendtoaccountant" {:headers {:x-auth-key ""
                                                                                   :x-auth-secret ""}
                                                                         :content-type :json
                                                                         :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/invoice/sendtoaccountant"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/invoice/sendtoaccountant"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/invoice/sendtoaccountant");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/invoice/sendtoaccountant"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/sendtoaccountant HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/sendtoaccountant")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/sendtoaccountant"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/sendtoaccountant")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/sendtoaccountant")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/invoice/sendtoaccountant');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/sendtoaccountant',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/sendtoaccountant';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/invoice/sendtoaccountant',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/sendtoaccountant")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/sendtoaccountant',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/sendtoaccountant',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/invoice/sendtoaccountant');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/invoice/sendtoaccountant',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/invoice/sendtoaccountant';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/sendtoaccountant"]
                                                       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}}/api/invoice/sendtoaccountant" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/sendtoaccountant",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/sendtoaccountant', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/invoice/sendtoaccountant');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/sendtoaccountant');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/sendtoaccountant' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/sendtoaccountant' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/sendtoaccountant", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/invoice/sendtoaccountant"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/invoice/sendtoaccountant"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/invoice/sendtoaccountant")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/invoice/sendtoaccountant') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/invoice/sendtoaccountant";

    let payload = json!({"Id": 0});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/sendtoaccountant \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/invoice/sendtoaccountant \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/sendtoaccountant
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/sendtoaccountant")! 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()
POST Send the provided invoice to the client
{{baseUrl}}/api/invoice/sendtoclient
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/sendtoclient");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/invoice/sendtoclient" {:headers {:x-auth-key ""
                                                                               :x-auth-secret ""}
                                                                     :content-type :json
                                                                     :form-params {:AttachPdf false
                                                                                   :Id 0
                                                                                   :InvoiceId 0
                                                                                   :Message ""
                                                                                   :SendToSelf false
                                                                                   :Subject ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/sendtoclient"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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}}/api/invoice/sendtoclient"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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}}/api/invoice/sendtoclient");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/invoice/sendtoclient"

	payload := strings.NewReader("{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/sendtoclient HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 110

{
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/sendtoclient")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/sendtoclient"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/sendtoclient")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/sendtoclient")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  AttachPdf: false,
  Id: 0,
  InvoiceId: 0,
  Message: '',
  SendToSelf: false,
  Subject: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/invoice/sendtoclient');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/sendtoclient',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AttachPdf: false,
    Id: 0,
    InvoiceId: 0,
    Message: '',
    SendToSelf: false,
    Subject: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/sendtoclient';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AttachPdf":false,"Id":0,"InvoiceId":0,"Message":"","SendToSelf":false,"Subject":""}'
};

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}}/api/invoice/sendtoclient',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AttachPdf": false,\n  "Id": 0,\n  "InvoiceId": 0,\n  "Message": "",\n  "SendToSelf": false,\n  "Subject": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/sendtoclient")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/sendtoclient',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AttachPdf: false,
  Id: 0,
  InvoiceId: 0,
  Message: '',
  SendToSelf: false,
  Subject: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/sendtoclient',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AttachPdf: false,
    Id: 0,
    InvoiceId: 0,
    Message: '',
    SendToSelf: false,
    Subject: ''
  },
  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}}/api/invoice/sendtoclient');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AttachPdf: false,
  Id: 0,
  InvoiceId: 0,
  Message: '',
  SendToSelf: false,
  Subject: ''
});

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}}/api/invoice/sendtoclient',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AttachPdf: false,
    Id: 0,
    InvoiceId: 0,
    Message: '',
    SendToSelf: false,
    Subject: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/invoice/sendtoclient';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AttachPdf":false,"Id":0,"InvoiceId":0,"Message":"","SendToSelf":false,"Subject":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AttachPdf": @NO,
                              @"Id": @0,
                              @"InvoiceId": @0,
                              @"Message": @"",
                              @"SendToSelf": @NO,
                              @"Subject": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/sendtoclient"]
                                                       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}}/api/invoice/sendtoclient" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/sendtoclient",
  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([
    'AttachPdf' => null,
    'Id' => 0,
    'InvoiceId' => 0,
    'Message' => '',
    'SendToSelf' => null,
    'Subject' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/sendtoclient', [
  'body' => '{
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/invoice/sendtoclient');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AttachPdf' => null,
  'Id' => 0,
  'InvoiceId' => 0,
  'Message' => '',
  'SendToSelf' => null,
  'Subject' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AttachPdf' => null,
  'Id' => 0,
  'InvoiceId' => 0,
  'Message' => '',
  'SendToSelf' => null,
  'Subject' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/sendtoclient');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/sendtoclient' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/sendtoclient' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/sendtoclient", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/invoice/sendtoclient"

payload = {
    "AttachPdf": False,
    "Id": 0,
    "InvoiceId": 0,
    "Message": "",
    "SendToSelf": False,
    "Subject": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/invoice/sendtoclient"

payload <- "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/invoice/sendtoclient")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\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/api/invoice/sendtoclient') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AttachPdf\": false,\n  \"Id\": 0,\n  \"InvoiceId\": 0,\n  \"Message\": \"\",\n  \"SendToSelf\": false,\n  \"Subject\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/invoice/sendtoclient";

    let payload = json!({
        "AttachPdf": false,
        "Id": 0,
        "InvoiceId": 0,
        "Message": "",
        "SendToSelf": false,
        "Subject": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/sendtoclient \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}'
echo '{
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
}' |  \
  http POST {{baseUrl}}/api/invoice/sendtoclient \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AttachPdf": false,\n  "Id": 0,\n  "InvoiceId": 0,\n  "Message": "",\n  "SendToSelf": false,\n  "Subject": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/sendtoclient
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AttachPdf": false,
  "Id": 0,
  "InvoiceId": 0,
  "Message": "",
  "SendToSelf": false,
  "Subject": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/sendtoclient")! 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()
POST Update an existing invoice category
{{baseUrl}}/api/invoice/updatecategory
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0,
  "Name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/updatecategory");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0,\n  \"Name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/invoice/updatecategory" {:headers {:x-auth-key ""
                                                                                 :x-auth-secret ""}
                                                                       :content-type :json
                                                                       :form-params {:Id 0
                                                                                     :Name ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/updatecategory"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0,\n  \"Name\": \"\"\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}}/api/invoice/updatecategory"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0,\n  \"Name\": \"\"\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}}/api/invoice/updatecategory");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0,\n  \"Name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/invoice/updatecategory"

	payload := strings.NewReader("{\n  \"Id\": 0,\n  \"Name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/updatecategory HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 27

{
  "Id": 0,
  "Name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/updatecategory")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0,\n  \"Name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/updatecategory"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0,\n  \"Name\": \"\"\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  \"Id\": 0,\n  \"Name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/updatecategory")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/updatecategory")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0,\n  \"Name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Id: 0,
  Name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/invoice/updatecategory');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/updatecategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/updatecategory';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Name":""}'
};

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}}/api/invoice/updatecategory',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0,\n  "Name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0,\n  \"Name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/updatecategory")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/updatecategory',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0, Name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/updatecategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0, Name: ''},
  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}}/api/invoice/updatecategory');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0,
  Name: ''
});

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}}/api/invoice/updatecategory',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/invoice/updatecategory';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0,
                              @"Name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/updatecategory"]
                                                       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}}/api/invoice/updatecategory" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0,\n  \"Name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/updatecategory",
  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([
    'Id' => 0,
    'Name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/updatecategory', [
  'body' => '{
  "Id": 0,
  "Name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/invoice/updatecategory');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0,
  'Name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0,
  'Name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/updatecategory');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/updatecategory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Name": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/updatecategory' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0,\n  \"Name\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/updatecategory", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/invoice/updatecategory"

payload = {
    "Id": 0,
    "Name": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/invoice/updatecategory"

payload <- "{\n  \"Id\": 0,\n  \"Name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/invoice/updatecategory")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0,\n  \"Name\": \"\"\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/api/invoice/updatecategory') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0,\n  \"Name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/invoice/updatecategory";

    let payload = json!({
        "Id": 0,
        "Name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/updatecategory \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0,
  "Name": ""
}'
echo '{
  "Id": 0,
  "Name": ""
}' |  \
  http POST {{baseUrl}}/api/invoice/updatecategory \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0,\n  "Name": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/updatecategory
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Id": 0,
  "Name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/updatecategory")! 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()
POST Update an existing invoice
{{baseUrl}}/api/invoice/update
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/invoice/update");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/invoice/update" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :content-type :json
                                                               :form-params {:Attachments [{:Id 0
                                                                                            :Link ""
                                                                                            :ObfuscatedFileName ""
                                                                                            :OriginalFileName ""
                                                                                            :Size 0
                                                                                            :Type ""}]
                                                                             :ClientId 0
                                                                             :ClonedFromId 0
                                                                             :CurrencyId 0
                                                                             :Duedate ""
                                                                             :Id 0
                                                                             :InvoiceCategoryId 0
                                                                             :IssuedOn ""
                                                                             :Items [{:Cost ""
                                                                                      :Description ""
                                                                                      :DiscountPercentage ""
                                                                                      :Id 0
                                                                                      :Quantity ""
                                                                                      :TaxId 0
                                                                                      :TaxPercentage ""
                                                                                      :WorkTypeId 0}]
                                                                             :Notes ""
                                                                             :Number ""
                                                                             :PaymentGateways [{:Name ""}]
                                                                             :PoNumber ""
                                                                             :RecurringProfile {:DayOfMonth 0
                                                                                                :DayOfWeek ""
                                                                                                :DueDateInDays 0
                                                                                                :EndOfRecurrance ""
                                                                                                :Month 0
                                                                                                :RecurrancePattern ""
                                                                                                :RecurranceValue 0
                                                                                                :StartOfRecurrance ""
                                                                                                :Status ""
                                                                                                :Title ""}
                                                                             :RecurringProfileId 0
                                                                             :ShouldSendReminders false
                                                                             :Status ""
                                                                             :Terms ""}})
require "http/client"

url = "{{baseUrl}}/api/invoice/update"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/invoice/update"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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}}/api/invoice/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/invoice/update"

	payload := strings.NewReader("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/invoice/update HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 957

{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/invoice/update")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/invoice/update"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/invoice/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/invoice/update")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  Duedate: '',
  Id: 0,
  InvoiceCategoryId: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Id: 0,
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  RecurringProfile: {
    DayOfMonth: 0,
    DayOfWeek: '',
    DueDateInDays: 0,
    EndOfRecurrance: '',
    Month: 0,
    RecurrancePattern: '',
    RecurranceValue: 0,
    StartOfRecurrance: '',
    Status: '',
    Title: ''
  },
  RecurringProfileId: 0,
  ShouldSendReminders: false,
  Status: '',
  Terms: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/invoice/update');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    Duedate: '',
    Id: 0,
    InvoiceCategoryId: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Id: 0,
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    RecurringProfile: {
      DayOfMonth: 0,
      DayOfWeek: '',
      DueDateInDays: 0,
      EndOfRecurrance: '',
      Month: 0,
      RecurrancePattern: '',
      RecurranceValue: 0,
      StartOfRecurrance: '',
      Status: '',
      Title: ''
    },
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    Terms: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/invoice/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"Duedate":"","Id":0,"InvoiceCategoryId":0,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Id":0,"Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","RecurringProfile":{"DayOfMonth":0,"DayOfWeek":"","DueDateInDays":0,"EndOfRecurrance":"","Month":0,"RecurrancePattern":"","RecurranceValue":0,"StartOfRecurrance":"","Status":"","Title":""},"RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","Terms":""}'
};

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}}/api/invoice/update',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "Duedate": "",\n  "Id": 0,\n  "InvoiceCategoryId": 0,\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "RecurringProfile": {\n    "DayOfMonth": 0,\n    "DayOfWeek": "",\n    "DueDateInDays": 0,\n    "EndOfRecurrance": "",\n    "Month": 0,\n    "RecurrancePattern": "",\n    "RecurranceValue": 0,\n    "StartOfRecurrance": "",\n    "Status": "",\n    "Title": ""\n  },\n  "RecurringProfileId": 0,\n  "ShouldSendReminders": false,\n  "Status": "",\n  "Terms": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/invoice/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/invoice/update',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  Duedate: '',
  Id: 0,
  InvoiceCategoryId: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Id: 0,
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [{Name: ''}],
  PoNumber: '',
  RecurringProfile: {
    DayOfMonth: 0,
    DayOfWeek: '',
    DueDateInDays: 0,
    EndOfRecurrance: '',
    Month: 0,
    RecurrancePattern: '',
    RecurranceValue: 0,
    StartOfRecurrance: '',
    Status: '',
    Title: ''
  },
  RecurringProfileId: 0,
  ShouldSendReminders: false,
  Status: '',
  Terms: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/invoice/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    Duedate: '',
    Id: 0,
    InvoiceCategoryId: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Id: 0,
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    RecurringProfile: {
      DayOfMonth: 0,
      DayOfWeek: '',
      DueDateInDays: 0,
      EndOfRecurrance: '',
      Month: 0,
      RecurrancePattern: '',
      RecurranceValue: 0,
      StartOfRecurrance: '',
      Status: '',
      Title: ''
    },
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    Terms: ''
  },
  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}}/api/invoice/update');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ClientId: 0,
  ClonedFromId: 0,
  CurrencyId: 0,
  Duedate: '',
  Id: 0,
  InvoiceCategoryId: 0,
  IssuedOn: '',
  Items: [
    {
      Cost: '',
      Description: '',
      DiscountPercentage: '',
      Id: 0,
      Quantity: '',
      TaxId: 0,
      TaxPercentage: '',
      WorkTypeId: 0
    }
  ],
  Notes: '',
  Number: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  PoNumber: '',
  RecurringProfile: {
    DayOfMonth: 0,
    DayOfWeek: '',
    DueDateInDays: 0,
    EndOfRecurrance: '',
    Month: 0,
    RecurrancePattern: '',
    RecurranceValue: 0,
    StartOfRecurrance: '',
    Status: '',
    Title: ''
  },
  RecurringProfileId: 0,
  ShouldSendReminders: false,
  Status: '',
  Terms: ''
});

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}}/api/invoice/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    Duedate: '',
    Id: 0,
    InvoiceCategoryId: 0,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountPercentage: '',
        Id: 0,
        Quantity: '',
        TaxId: 0,
        TaxPercentage: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    PaymentGateways: [{Name: ''}],
    PoNumber: '',
    RecurringProfile: {
      DayOfMonth: 0,
      DayOfWeek: '',
      DueDateInDays: 0,
      EndOfRecurrance: '',
      Month: 0,
      RecurrancePattern: '',
      RecurranceValue: 0,
      StartOfRecurrance: '',
      Status: '',
      Title: ''
    },
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    Terms: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/invoice/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"Duedate":"","Id":0,"InvoiceCategoryId":0,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountPercentage":"","Id":0,"Quantity":"","TaxId":0,"TaxPercentage":"","WorkTypeId":0}],"Notes":"","Number":"","PaymentGateways":[{"Name":""}],"PoNumber":"","RecurringProfile":{"DayOfMonth":0,"DayOfWeek":"","DueDateInDays":0,"EndOfRecurrance":"","Month":0,"RecurrancePattern":"","RecurranceValue":0,"StartOfRecurrance":"","Status":"","Title":""},"RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","Terms":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Attachments": @[ @{ @"Id": @0, @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ],
                              @"ClientId": @0,
                              @"ClonedFromId": @0,
                              @"CurrencyId": @0,
                              @"Duedate": @"",
                              @"Id": @0,
                              @"InvoiceCategoryId": @0,
                              @"IssuedOn": @"",
                              @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"DiscountPercentage": @"", @"Id": @0, @"Quantity": @"", @"TaxId": @0, @"TaxPercentage": @"", @"WorkTypeId": @0 } ],
                              @"Notes": @"",
                              @"Number": @"",
                              @"PaymentGateways": @[ @{ @"Name": @"" } ],
                              @"PoNumber": @"",
                              @"RecurringProfile": @{ @"DayOfMonth": @0, @"DayOfWeek": @"", @"DueDateInDays": @0, @"EndOfRecurrance": @"", @"Month": @0, @"RecurrancePattern": @"", @"RecurranceValue": @0, @"StartOfRecurrance": @"", @"Status": @"", @"Title": @"" },
                              @"RecurringProfileId": @0,
                              @"ShouldSendReminders": @NO,
                              @"Status": @"",
                              @"Terms": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/invoice/update"]
                                                       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}}/api/invoice/update" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/invoice/update",
  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([
    'Attachments' => [
        [
                'Id' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'Duedate' => '',
    'Id' => 0,
    'InvoiceCategoryId' => 0,
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'Quantity' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'PaymentGateways' => [
        [
                'Name' => ''
        ]
    ],
    'PoNumber' => '',
    'RecurringProfile' => [
        'DayOfMonth' => 0,
        'DayOfWeek' => '',
        'DueDateInDays' => 0,
        'EndOfRecurrance' => '',
        'Month' => 0,
        'RecurrancePattern' => '',
        'RecurranceValue' => 0,
        'StartOfRecurrance' => '',
        'Status' => '',
        'Title' => ''
    ],
    'RecurringProfileId' => 0,
    'ShouldSendReminders' => null,
    'Status' => '',
    'Terms' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/invoice/update', [
  'body' => '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/invoice/update');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'Duedate' => '',
  'Id' => 0,
  'InvoiceCategoryId' => 0,
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'RecurringProfile' => [
    'DayOfMonth' => 0,
    'DayOfWeek' => '',
    'DueDateInDays' => 0,
    'EndOfRecurrance' => '',
    'Month' => 0,
    'RecurrancePattern' => '',
    'RecurranceValue' => 0,
    'StartOfRecurrance' => '',
    'Status' => '',
    'Title' => ''
  ],
  'RecurringProfileId' => 0,
  'ShouldSendReminders' => null,
  'Status' => '',
  'Terms' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ClientId' => 0,
  'ClonedFromId' => 0,
  'CurrencyId' => 0,
  'Duedate' => '',
  'Id' => 0,
  'InvoiceCategoryId' => 0,
  'IssuedOn' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Quantity' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Notes' => '',
  'Number' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'PoNumber' => '',
  'RecurringProfile' => [
    'DayOfMonth' => 0,
    'DayOfWeek' => '',
    'DueDateInDays' => 0,
    'EndOfRecurrance' => '',
    'Month' => 0,
    'RecurrancePattern' => '',
    'RecurranceValue' => 0,
    'StartOfRecurrance' => '',
    'Status' => '',
    'Title' => ''
  ],
  'RecurringProfileId' => 0,
  'ShouldSendReminders' => null,
  'Status' => '',
  'Terms' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/invoice/update');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/invoice/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/invoice/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/invoice/update", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/invoice/update"

payload = {
    "Attachments": [
        {
            "Id": 0,
            "Link": "",
            "ObfuscatedFileName": "",
            "OriginalFileName": "",
            "Size": 0,
            "Type": ""
        }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "Duedate": "",
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IssuedOn": "",
    "Items": [
        {
            "Cost": "",
            "Description": "",
            "DiscountPercentage": "",
            "Id": 0,
            "Quantity": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "WorkTypeId": 0
        }
    ],
    "Notes": "",
    "Number": "",
    "PaymentGateways": [{ "Name": "" }],
    "PoNumber": "",
    "RecurringProfile": {
        "DayOfMonth": 0,
        "DayOfWeek": "",
        "DueDateInDays": 0,
        "EndOfRecurrance": "",
        "Month": 0,
        "RecurrancePattern": "",
        "RecurranceValue": 0,
        "StartOfRecurrance": "",
        "Status": "",
        "Title": ""
    },
    "RecurringProfileId": 0,
    "ShouldSendReminders": False,
    "Status": "",
    "Terms": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/invoice/update"

payload <- "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/invoice/update")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\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/api/invoice/update') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ClientId\": 0,\n  \"ClonedFromId\": 0,\n  \"CurrencyId\": 0,\n  \"Duedate\": \"\",\n  \"Id\": 0,\n  \"InvoiceCategoryId\": 0,\n  \"IssuedOn\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Quantity\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Notes\": \"\",\n  \"Number\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"PoNumber\": \"\",\n  \"RecurringProfile\": {\n    \"DayOfMonth\": 0,\n    \"DayOfWeek\": \"\",\n    \"DueDateInDays\": 0,\n    \"EndOfRecurrance\": \"\",\n    \"Month\": 0,\n    \"RecurrancePattern\": \"\",\n    \"RecurranceValue\": 0,\n    \"StartOfRecurrance\": \"\",\n    \"Status\": \"\",\n    \"Title\": \"\"\n  },\n  \"RecurringProfileId\": 0,\n  \"ShouldSendReminders\": false,\n  \"Status\": \"\",\n  \"Terms\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/invoice/update";

    let payload = json!({
        "Attachments": (
            json!({
                "Id": 0,
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            })
        ),
        "ClientId": 0,
        "ClonedFromId": 0,
        "CurrencyId": 0,
        "Duedate": "",
        "Id": 0,
        "InvoiceCategoryId": 0,
        "IssuedOn": "",
        "Items": (
            json!({
                "Cost": "",
                "Description": "",
                "DiscountPercentage": "",
                "Id": 0,
                "Quantity": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "WorkTypeId": 0
            })
        ),
        "Notes": "",
        "Number": "",
        "PaymentGateways": (json!({"Name": ""})),
        "PoNumber": "",
        "RecurringProfile": json!({
            "DayOfMonth": 0,
            "DayOfWeek": "",
            "DueDateInDays": 0,
            "EndOfRecurrance": "",
            "Month": 0,
            "RecurrancePattern": "",
            "RecurranceValue": 0,
            "StartOfRecurrance": "",
            "Status": "",
            "Title": ""
        }),
        "RecurringProfileId": 0,
        "ShouldSendReminders": false,
        "Status": "",
        "Terms": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/invoice/update \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}'
echo '{
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    }
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "PoNumber": "",
  "RecurringProfile": {
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  },
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
}' |  \
  http POST {{baseUrl}}/api/invoice/update \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ClientId": 0,\n  "ClonedFromId": 0,\n  "CurrencyId": 0,\n  "Duedate": "",\n  "Id": 0,\n  "InvoiceCategoryId": 0,\n  "IssuedOn": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Quantity": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Notes": "",\n  "Number": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "PoNumber": "",\n  "RecurringProfile": {\n    "DayOfMonth": 0,\n    "DayOfWeek": "",\n    "DueDateInDays": 0,\n    "EndOfRecurrance": "",\n    "Month": 0,\n    "RecurrancePattern": "",\n    "RecurranceValue": 0,\n    "StartOfRecurrance": "",\n    "Status": "",\n    "Title": ""\n  },\n  "RecurringProfileId": 0,\n  "ShouldSendReminders": false,\n  "Status": "",\n  "Terms": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/invoice/update
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Attachments": [
    [
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    ]
  ],
  "ClientId": 0,
  "ClonedFromId": 0,
  "CurrencyId": 0,
  "Duedate": "",
  "Id": 0,
  "InvoiceCategoryId": 0,
  "IssuedOn": "",
  "Items": [
    [
      "Cost": "",
      "Description": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Quantity": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "WorkTypeId": 0
    ]
  ],
  "Notes": "",
  "Number": "",
  "PaymentGateways": [["Name": ""]],
  "PoNumber": "",
  "RecurringProfile": [
    "DayOfMonth": 0,
    "DayOfWeek": "",
    "DueDateInDays": 0,
    "EndOfRecurrance": "",
    "Month": 0,
    "RecurrancePattern": "",
    "RecurranceValue": 0,
    "StartOfRecurrance": "",
    "Status": "",
    "Title": ""
  ],
  "RecurringProfileId": 0,
  "ShouldSendReminders": false,
  "Status": "",
  "Terms": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/invoice/update")! 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()
POST Change order shipping details
{{baseUrl}}/api/order/changeshippingdetails
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

orderId
BODY json

{
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/order/changeshippingdetails?orderId=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/order/changeshippingdetails" {:headers {:x-auth-key ""
                                                                                      :x-auth-secret ""}
                                                                            :query-params {:orderId ""}
                                                                            :content-type :json
                                                                            :form-params {:Address ""
                                                                                          :CountryId 0
                                                                                          :Email ""
                                                                                          :Name ""
                                                                                          :PhoneNumber ""}})
require "http/client"

url = "{{baseUrl}}/api/order/changeshippingdetails?orderId="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\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}}/api/order/changeshippingdetails?orderId="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\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}}/api/order/changeshippingdetails?orderId=");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/order/changeshippingdetails?orderId="

	payload := strings.NewReader("{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/order/changeshippingdetails?orderId= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 87

{
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/order/changeshippingdetails?orderId=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/order/changeshippingdetails?orderId="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\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  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/order/changeshippingdetails?orderId=")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/order/changeshippingdetails?orderId=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Address: '',
  CountryId: 0,
  Email: '',
  Name: '',
  PhoneNumber: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/order/changeshippingdetails?orderId=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/changeshippingdetails',
  params: {orderId: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/order/changeshippingdetails?orderId=';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Address":"","CountryId":0,"Email":"","Name":"","PhoneNumber":""}'
};

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}}/api/order/changeshippingdetails?orderId=',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Address": "",\n  "CountryId": 0,\n  "Email": "",\n  "Name": "",\n  "PhoneNumber": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/order/changeshippingdetails?orderId=")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/order/changeshippingdetails?orderId=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/changeshippingdetails',
  qs: {orderId: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
  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}}/api/order/changeshippingdetails');

req.query({
  orderId: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Address: '',
  CountryId: 0,
  Email: '',
  Name: '',
  PhoneNumber: ''
});

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}}/api/order/changeshippingdetails',
  params: {orderId: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/order/changeshippingdetails?orderId=';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Address":"","CountryId":0,"Email":"","Name":"","PhoneNumber":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Address": @"",
                              @"CountryId": @0,
                              @"Email": @"",
                              @"Name": @"",
                              @"PhoneNumber": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/order/changeshippingdetails?orderId="]
                                                       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}}/api/order/changeshippingdetails?orderId=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/order/changeshippingdetails?orderId=",
  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([
    'Address' => '',
    'CountryId' => 0,
    'Email' => '',
    'Name' => '',
    'PhoneNumber' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/order/changeshippingdetails?orderId=', [
  'body' => '{
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/order/changeshippingdetails');
$request->setMethod(HTTP_METH_POST);

$request->setQueryData([
  'orderId' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Address' => '',
  'CountryId' => 0,
  'Email' => '',
  'Name' => '',
  'PhoneNumber' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Address' => '',
  'CountryId' => 0,
  'Email' => '',
  'Name' => '',
  'PhoneNumber' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/order/changeshippingdetails');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'orderId' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/order/changeshippingdetails?orderId=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/order/changeshippingdetails?orderId=' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/order/changeshippingdetails?orderId=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/order/changeshippingdetails"

querystring = {"orderId":""}

payload = {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/order/changeshippingdetails"

queryString <- list(orderId = "")

payload <- "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/order/changeshippingdetails?orderId=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\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/api/order/changeshippingdetails') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['orderId'] = ''
  req.body = "{\n  \"Address\": \"\",\n  \"CountryId\": 0,\n  \"Email\": \"\",\n  \"Name\": \"\",\n  \"PhoneNumber\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/order/changeshippingdetails";

    let querystring = [
        ("orderId", ""),
    ];

    let payload = json!({
        "Address": "",
        "CountryId": 0,
        "Email": "",
        "Name": "",
        "PhoneNumber": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url '{{baseUrl}}/api/order/changeshippingdetails?orderId=' \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
}'
echo '{
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
}' |  \
  http POST '{{baseUrl}}/api/order/changeshippingdetails?orderId=' \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Address": "",\n  "CountryId": 0,\n  "Email": "",\n  "Name": "",\n  "PhoneNumber": ""\n}' \
  --output-document \
  - '{{baseUrl}}/api/order/changeshippingdetails?orderId='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Address": "",
  "CountryId": 0,
  "Email": "",
  "Name": "",
  "PhoneNumber": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/order/changeshippingdetails?orderId=")! 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()
POST Change order status
{{baseUrl}}/api/order/changestatus
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0,
  "Reason": "",
  "Status": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/order/changestatus");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/order/changestatus" {:headers {:x-auth-key ""
                                                                             :x-auth-secret ""}
                                                                   :content-type :json
                                                                   :form-params {:Id 0
                                                                                 :Reason ""
                                                                                 :Status ""}})
require "http/client"

url = "{{baseUrl}}/api/order/changestatus"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\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}}/api/order/changestatus"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\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}}/api/order/changestatus");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/order/changestatus"

	payload := strings.NewReader("{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/order/changestatus HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 45

{
  "Id": 0,
  "Reason": "",
  "Status": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/order/changestatus")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/order/changestatus"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\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  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/order/changestatus")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/order/changestatus")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Id: 0,
  Reason: '',
  Status: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/order/changestatus');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Reason: '', Status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/order/changestatus';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Reason":"","Status":""}'
};

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}}/api/order/changestatus',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0,\n  "Reason": "",\n  "Status": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/order/changestatus")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/order/changestatus',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0, Reason: '', Status: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0, Reason: '', Status: ''},
  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}}/api/order/changestatus');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0,
  Reason: '',
  Status: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/changestatus',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Reason: '', Status: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/order/changestatus';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Reason":"","Status":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0,
                              @"Reason": @"",
                              @"Status": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/order/changestatus"]
                                                       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}}/api/order/changestatus" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/order/changestatus",
  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([
    'Id' => 0,
    'Reason' => '',
    'Status' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/order/changestatus', [
  'body' => '{
  "Id": 0,
  "Reason": "",
  "Status": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/order/changestatus');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0,
  'Reason' => '',
  'Status' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0,
  'Reason' => '',
  'Status' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/order/changestatus');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/order/changestatus' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Reason": "",
  "Status": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/order/changestatus' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Reason": "",
  "Status": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/order/changestatus", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/order/changestatus"

payload = {
    "Id": 0,
    "Reason": "",
    "Status": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/order/changestatus"

payload <- "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/order/changestatus")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\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/api/order/changestatus') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0,\n  \"Reason\": \"\",\n  \"Status\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/order/changestatus";

    let payload = json!({
        "Id": 0,
        "Reason": "",
        "Status": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/order/changestatus \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0,
  "Reason": "",
  "Status": ""
}'
echo '{
  "Id": 0,
  "Reason": "",
  "Status": ""
}' |  \
  http POST {{baseUrl}}/api/order/changestatus \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0,\n  "Reason": "",\n  "Status": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/order/changestatus
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Id": 0,
  "Reason": "",
  "Status": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/order/changestatus")! 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()
POST Create an order
{{baseUrl}}/api/order/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "OrderShippingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/order/new");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/order/new" {:headers {:x-auth-key ""
                                                                    :x-auth-secret ""}
                                                          :content-type :json
                                                          :form-params {:AfterPaymentDescription ""
                                                                        :Attachments [{:Link ""
                                                                                       :ObfuscatedFileName ""
                                                                                       :OriginalFileName ""
                                                                                       :Size 0
                                                                                       :Type ""}]
                                                                        :CouponCode ""
                                                                        :CurrencyId 0
                                                                        :Description ""
                                                                        :DiscountAmount ""
                                                                        :Items [{:Cost ""
                                                                                 :Description ""
                                                                                 :ProductItemId 0
                                                                                 :Quantity ""
                                                                                 :ReferenceId ""
                                                                                 :SubTotalAmount ""
                                                                                 :TaxAmount ""
                                                                                 :TaxId 0
                                                                                 :TaxPercentage ""
                                                                                 :TotalAmount ""
                                                                                 :WorkTypeId 0}]
                                                                        :Name ""
                                                                        :Note ""
                                                                        :OrderBillingDetails {:Address ""
                                                                                              :CountryId 0
                                                                                              :Email ""
                                                                                              :Name ""
                                                                                              :PhoneNumber ""}
                                                                        :OrderShippingDetails {:Address ""
                                                                                               :CountryId 0
                                                                                               :Email ""
                                                                                               :Name ""
                                                                                               :PhoneNumber ""}
                                                                        :ProductId 0
                                                                        :Referral ""
                                                                        :ShippingAmount ""
                                                                        :ShippingDescription ""
                                                                        :Status ""
                                                                        :SubTotalAmount ""
                                                                        :TaxAmount ""
                                                                        :TotalAmount ""
                                                                        :WhatHappensNextDescription ""}})
require "http/client"

url = "{{baseUrl}}/api/order/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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}}/api/order/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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}}/api/order/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/order/new"

	payload := strings.NewReader("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/order/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 1044

{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "OrderShippingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/order/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/order/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/order/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/order/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  CouponCode: '',
  CurrencyId: 0,
  Description: '',
  DiscountAmount: '',
  Items: [
    {
      Cost: '',
      Description: '',
      ProductItemId: 0,
      Quantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  Note: '',
  OrderBillingDetails: {
    Address: '',
    CountryId: 0,
    Email: '',
    Name: '',
    PhoneNumber: ''
  },
  OrderShippingDetails: {
    Address: '',
    CountryId: 0,
    Email: '',
    Name: '',
    PhoneNumber: ''
  },
  ProductId: 0,
  Referral: '',
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  WhatHappensNextDescription: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/order/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AfterPaymentDescription: '',
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    CouponCode: '',
    CurrencyId: 0,
    Description: '',
    DiscountAmount: '',
    Items: [
      {
        Cost: '',
        Description: '',
        ProductItemId: 0,
        Quantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    Note: '',
    OrderBillingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
    OrderShippingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
    ProductId: 0,
    Referral: '',
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    WhatHappensNextDescription: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/order/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AfterPaymentDescription":"","Attachments":[{"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"CouponCode":"","CurrencyId":0,"Description":"","DiscountAmount":"","Items":[{"Cost":"","Description":"","ProductItemId":0,"Quantity":"","ReferenceId":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Name":"","Note":"","OrderBillingDetails":{"Address":"","CountryId":0,"Email":"","Name":"","PhoneNumber":""},"OrderShippingDetails":{"Address":"","CountryId":0,"Email":"","Name":"","PhoneNumber":""},"ProductId":0,"Referral":"","ShippingAmount":"","ShippingDescription":"","Status":"","SubTotalAmount":"","TaxAmount":"","TotalAmount":"","WhatHappensNextDescription":""}'
};

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}}/api/order/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AfterPaymentDescription": "",\n  "Attachments": [\n    {\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "CouponCode": "",\n  "CurrencyId": 0,\n  "Description": "",\n  "DiscountAmount": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "ProductItemId": 0,\n      "Quantity": "",\n      "ReferenceId": "",\n      "SubTotalAmount": "",\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Name": "",\n  "Note": "",\n  "OrderBillingDetails": {\n    "Address": "",\n    "CountryId": 0,\n    "Email": "",\n    "Name": "",\n    "PhoneNumber": ""\n  },\n  "OrderShippingDetails": {\n    "Address": "",\n    "CountryId": 0,\n    "Email": "",\n    "Name": "",\n    "PhoneNumber": ""\n  },\n  "ProductId": 0,\n  "Referral": "",\n  "ShippingAmount": "",\n  "ShippingDescription": "",\n  "Status": "",\n  "SubTotalAmount": "",\n  "TaxAmount": "",\n  "TotalAmount": "",\n  "WhatHappensNextDescription": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/order/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/order/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AfterPaymentDescription: '',
  Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
  CouponCode: '',
  CurrencyId: 0,
  Description: '',
  DiscountAmount: '',
  Items: [
    {
      Cost: '',
      Description: '',
      ProductItemId: 0,
      Quantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  Note: '',
  OrderBillingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
  OrderShippingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
  ProductId: 0,
  Referral: '',
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  WhatHappensNextDescription: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AfterPaymentDescription: '',
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    CouponCode: '',
    CurrencyId: 0,
    Description: '',
    DiscountAmount: '',
    Items: [
      {
        Cost: '',
        Description: '',
        ProductItemId: 0,
        Quantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    Note: '',
    OrderBillingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
    OrderShippingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
    ProductId: 0,
    Referral: '',
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    WhatHappensNextDescription: ''
  },
  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}}/api/order/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  CouponCode: '',
  CurrencyId: 0,
  Description: '',
  DiscountAmount: '',
  Items: [
    {
      Cost: '',
      Description: '',
      ProductItemId: 0,
      Quantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  Note: '',
  OrderBillingDetails: {
    Address: '',
    CountryId: 0,
    Email: '',
    Name: '',
    PhoneNumber: ''
  },
  OrderShippingDetails: {
    Address: '',
    CountryId: 0,
    Email: '',
    Name: '',
    PhoneNumber: ''
  },
  ProductId: 0,
  Referral: '',
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  WhatHappensNextDescription: ''
});

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}}/api/order/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AfterPaymentDescription: '',
    Attachments: [{Link: '', ObfuscatedFileName: '', OriginalFileName: '', Size: 0, Type: ''}],
    CouponCode: '',
    CurrencyId: 0,
    Description: '',
    DiscountAmount: '',
    Items: [
      {
        Cost: '',
        Description: '',
        ProductItemId: 0,
        Quantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    Note: '',
    OrderBillingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
    OrderShippingDetails: {Address: '', CountryId: 0, Email: '', Name: '', PhoneNumber: ''},
    ProductId: 0,
    Referral: '',
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    WhatHappensNextDescription: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/order/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AfterPaymentDescription":"","Attachments":[{"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"CouponCode":"","CurrencyId":0,"Description":"","DiscountAmount":"","Items":[{"Cost":"","Description":"","ProductItemId":0,"Quantity":"","ReferenceId":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Name":"","Note":"","OrderBillingDetails":{"Address":"","CountryId":0,"Email":"","Name":"","PhoneNumber":""},"OrderShippingDetails":{"Address":"","CountryId":0,"Email":"","Name":"","PhoneNumber":""},"ProductId":0,"Referral":"","ShippingAmount":"","ShippingDescription":"","Status":"","SubTotalAmount":"","TaxAmount":"","TotalAmount":"","WhatHappensNextDescription":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AfterPaymentDescription": @"",
                              @"Attachments": @[ @{ @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ],
                              @"CouponCode": @"",
                              @"CurrencyId": @0,
                              @"Description": @"",
                              @"DiscountAmount": @"",
                              @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"ProductItemId": @0, @"Quantity": @"", @"ReferenceId": @"", @"SubTotalAmount": @"", @"TaxAmount": @"", @"TaxId": @0, @"TaxPercentage": @"", @"TotalAmount": @"", @"WorkTypeId": @0 } ],
                              @"Name": @"",
                              @"Note": @"",
                              @"OrderBillingDetails": @{ @"Address": @"", @"CountryId": @0, @"Email": @"", @"Name": @"", @"PhoneNumber": @"" },
                              @"OrderShippingDetails": @{ @"Address": @"", @"CountryId": @0, @"Email": @"", @"Name": @"", @"PhoneNumber": @"" },
                              @"ProductId": @0,
                              @"Referral": @"",
                              @"ShippingAmount": @"",
                              @"ShippingDescription": @"",
                              @"Status": @"",
                              @"SubTotalAmount": @"",
                              @"TaxAmount": @"",
                              @"TotalAmount": @"",
                              @"WhatHappensNextDescription": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/order/new"]
                                                       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}}/api/order/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/order/new",
  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([
    'AfterPaymentDescription' => '',
    'Attachments' => [
        [
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'CouponCode' => '',
    'CurrencyId' => 0,
    'Description' => '',
    'DiscountAmount' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'ProductItemId' => 0,
                'Quantity' => '',
                'ReferenceId' => '',
                'SubTotalAmount' => '',
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Name' => '',
    'Note' => '',
    'OrderBillingDetails' => [
        'Address' => '',
        'CountryId' => 0,
        'Email' => '',
        'Name' => '',
        'PhoneNumber' => ''
    ],
    'OrderShippingDetails' => [
        'Address' => '',
        'CountryId' => 0,
        'Email' => '',
        'Name' => '',
        'PhoneNumber' => ''
    ],
    'ProductId' => 0,
    'Referral' => '',
    'ShippingAmount' => '',
    'ShippingDescription' => '',
    'Status' => '',
    'SubTotalAmount' => '',
    'TaxAmount' => '',
    'TotalAmount' => '',
    'WhatHappensNextDescription' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/order/new', [
  'body' => '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "OrderShippingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/order/new');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AfterPaymentDescription' => '',
  'Attachments' => [
    [
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'CouponCode' => '',
  'CurrencyId' => 0,
  'Description' => '',
  'DiscountAmount' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'ProductItemId' => 0,
        'Quantity' => '',
        'ReferenceId' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Name' => '',
  'Note' => '',
  'OrderBillingDetails' => [
    'Address' => '',
    'CountryId' => 0,
    'Email' => '',
    'Name' => '',
    'PhoneNumber' => ''
  ],
  'OrderShippingDetails' => [
    'Address' => '',
    'CountryId' => 0,
    'Email' => '',
    'Name' => '',
    'PhoneNumber' => ''
  ],
  'ProductId' => 0,
  'Referral' => '',
  'ShippingAmount' => '',
  'ShippingDescription' => '',
  'Status' => '',
  'SubTotalAmount' => '',
  'TaxAmount' => '',
  'TotalAmount' => '',
  'WhatHappensNextDescription' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AfterPaymentDescription' => '',
  'Attachments' => [
    [
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'CouponCode' => '',
  'CurrencyId' => 0,
  'Description' => '',
  'DiscountAmount' => '',
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'ProductItemId' => 0,
        'Quantity' => '',
        'ReferenceId' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Name' => '',
  'Note' => '',
  'OrderBillingDetails' => [
    'Address' => '',
    'CountryId' => 0,
    'Email' => '',
    'Name' => '',
    'PhoneNumber' => ''
  ],
  'OrderShippingDetails' => [
    'Address' => '',
    'CountryId' => 0,
    'Email' => '',
    'Name' => '',
    'PhoneNumber' => ''
  ],
  'ProductId' => 0,
  'Referral' => '',
  'ShippingAmount' => '',
  'ShippingDescription' => '',
  'Status' => '',
  'SubTotalAmount' => '',
  'TaxAmount' => '',
  'TotalAmount' => '',
  'WhatHappensNextDescription' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/order/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/order/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "OrderShippingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/order/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "OrderShippingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/order/new", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/order/new"

payload = {
    "AfterPaymentDescription": "",
    "Attachments": [
        {
            "Link": "",
            "ObfuscatedFileName": "",
            "OriginalFileName": "",
            "Size": 0,
            "Type": ""
        }
    ],
    "CouponCode": "",
    "CurrencyId": 0,
    "Description": "",
    "DiscountAmount": "",
    "Items": [
        {
            "Cost": "",
            "Description": "",
            "ProductItemId": 0,
            "Quantity": "",
            "ReferenceId": "",
            "SubTotalAmount": "",
            "TaxAmount": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "TotalAmount": "",
            "WorkTypeId": 0
        }
    ],
    "Name": "",
    "Note": "",
    "OrderBillingDetails": {
        "Address": "",
        "CountryId": 0,
        "Email": "",
        "Name": "",
        "PhoneNumber": ""
    },
    "OrderShippingDetails": {
        "Address": "",
        "CountryId": 0,
        "Email": "",
        "Name": "",
        "PhoneNumber": ""
    },
    "ProductId": 0,
    "Referral": "",
    "ShippingAmount": "",
    "ShippingDescription": "",
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "TotalAmount": "",
    "WhatHappensNextDescription": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/order/new"

payload <- "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/order/new")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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/api/order/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"CouponCode\": \"\",\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"DiscountAmount\": \"\",\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"ProductItemId\": 0,\n      \"Quantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"Note\": \"\",\n  \"OrderBillingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"OrderShippingDetails\": {\n    \"Address\": \"\",\n    \"CountryId\": 0,\n    \"Email\": \"\",\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\"\n  },\n  \"ProductId\": 0,\n  \"Referral\": \"\",\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/order/new";

    let payload = json!({
        "AfterPaymentDescription": "",
        "Attachments": (
            json!({
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            })
        ),
        "CouponCode": "",
        "CurrencyId": 0,
        "Description": "",
        "DiscountAmount": "",
        "Items": (
            json!({
                "Cost": "",
                "Description": "",
                "ProductItemId": 0,
                "Quantity": "",
                "ReferenceId": "",
                "SubTotalAmount": "",
                "TaxAmount": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "TotalAmount": "",
                "WorkTypeId": 0
            })
        ),
        "Name": "",
        "Note": "",
        "OrderBillingDetails": json!({
            "Address": "",
            "CountryId": 0,
            "Email": "",
            "Name": "",
            "PhoneNumber": ""
        }),
        "OrderShippingDetails": json!({
            "Address": "",
            "CountryId": 0,
            "Email": "",
            "Name": "",
            "PhoneNumber": ""
        }),
        "ProductId": 0,
        "Referral": "",
        "ShippingAmount": "",
        "ShippingDescription": "",
        "Status": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TotalAmount": "",
        "WhatHappensNextDescription": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/order/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "OrderShippingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
}'
echo '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "OrderShippingDetails": {
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  },
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
}' |  \
  http POST {{baseUrl}}/api/order/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AfterPaymentDescription": "",\n  "Attachments": [\n    {\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "CouponCode": "",\n  "CurrencyId": 0,\n  "Description": "",\n  "DiscountAmount": "",\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "ProductItemId": 0,\n      "Quantity": "",\n      "ReferenceId": "",\n      "SubTotalAmount": "",\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Name": "",\n  "Note": "",\n  "OrderBillingDetails": {\n    "Address": "",\n    "CountryId": 0,\n    "Email": "",\n    "Name": "",\n    "PhoneNumber": ""\n  },\n  "OrderShippingDetails": {\n    "Address": "",\n    "CountryId": 0,\n    "Email": "",\n    "Name": "",\n    "PhoneNumber": ""\n  },\n  "ProductId": 0,\n  "Referral": "",\n  "ShippingAmount": "",\n  "ShippingDescription": "",\n  "Status": "",\n  "SubTotalAmount": "",\n  "TaxAmount": "",\n  "TotalAmount": "",\n  "WhatHappensNextDescription": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/order/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AfterPaymentDescription": "",
  "Attachments": [
    [
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    ]
  ],
  "CouponCode": "",
  "CurrencyId": 0,
  "Description": "",
  "DiscountAmount": "",
  "Items": [
    [
      "Cost": "",
      "Description": "",
      "ProductItemId": 0,
      "Quantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    ]
  ],
  "Name": "",
  "Note": "",
  "OrderBillingDetails": [
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  ],
  "OrderShippingDetails": [
    "Address": "",
    "CountryId": 0,
    "Email": "",
    "Name": "",
    "PhoneNumber": ""
  ],
  "ProductId": 0,
  "Referral": "",
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "WhatHappensNextDescription": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/order/new")! 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()
POST Delete an existing order
{{baseUrl}}/api/order/delete
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/order/delete");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/order/delete" {:headers {:x-auth-key ""
                                                                       :x-auth-secret ""}
                                                             :content-type :json
                                                             :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/order/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/order/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/order/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/order/delete"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/order/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/order/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/order/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/order/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/order/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/order/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/order/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/order/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/order/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/order/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/order/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/order/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/order/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/order/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/order/delete"]
                                                       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}}/api/order/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/order/delete",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/order/delete', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/order/delete');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/order/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/order/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/order/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/order/delete", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/order/delete"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/order/delete"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/order/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/order/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/order/delete";

    let payload = json!({"Id": 0});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/order/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/order/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/order/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/order/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return all orders for the account
{{baseUrl}}/api/order/all
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/order/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/order/all" {:headers {:x-auth-key ""
                                                                   :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/order/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/order/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/order/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/order/all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/order/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/order/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/order/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/order/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/order/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/order/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/order/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/order/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/order/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/order/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/order/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/order/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/order/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/order/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/order/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/order/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/order/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/order/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/order/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/order/all');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/order/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/order/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/order/all' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/order/all", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/order/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/order/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/order/all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/order/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/order/all";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/order/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/order/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/order/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/order/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return order details
{{baseUrl}}/api/order/details
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/order/details?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/order/details" {:headers {:x-auth-key ""
                                                                       :x-auth-secret ""}
                                                             :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/order/details?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/order/details?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/order/details?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/order/details?id="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/order/details?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/order/details?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/order/details?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/order/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/order/details?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/order/details?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/order/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/order/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/order/details?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/order/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/order/details?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/order/details',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/order/details');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/order/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/order/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/order/details?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/order/details?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/order/details?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/order/details?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/order/details');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/order/details');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/order/details?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/order/details?id=' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/order/details?id=", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/order/details"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/order/details"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/order/details?id=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/order/details') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/order/details";

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/order/details?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/order/details?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/order/details?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/order/details?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return all supported payment gateways (no currencies means all are supported)
{{baseUrl}}/api/payment/supported
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/payment/supported");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/payment/supported" {:headers {:x-auth-key ""
                                                                           :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/payment/supported"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/payment/supported"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/payment/supported");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/payment/supported"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/payment/supported HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/payment/supported")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/payment/supported"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/payment/supported")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/payment/supported")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/payment/supported');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/payment/supported',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/payment/supported';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/payment/supported',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/payment/supported")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/payment/supported',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/payment/supported',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/payment/supported');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/payment/supported',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/payment/supported';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/payment/supported"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/payment/supported" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/payment/supported",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/payment/supported', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/payment/supported');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/payment/supported');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/payment/supported' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/payment/supported' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/payment/supported", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/payment/supported"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/payment/supported"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/payment/supported")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/payment/supported') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/payment/supported";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/payment/supported \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/payment/supported \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/payment/supported
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/payment/supported")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Create a payment link (POST)
{{baseUrl}}/api/paymentlink/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/paymentlink/new");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/paymentlink/new" {:headers {:x-auth-key ""
                                                                          :x-auth-secret ""}
                                                                :content-type :json
                                                                :form-params {:AccessToken ""
                                                                              :Client {:Address ""
                                                                                       :ClientCountryId 0
                                                                                       :ClientCurrencyId 0
                                                                                       :CompanyRegistrationNumber ""
                                                                                       :DefaultDueDateInDays 0
                                                                                       :Email ""
                                                                                       :Id 0
                                                                                       :Name ""
                                                                                       :PhoneNumber ""
                                                                                       :UiLanguageId 0
                                                                                       :UserId 0
                                                                                       :Vat ""}
                                                                              :ClientId 0
                                                                              :Currency {:Code ""
                                                                                         :Id 0
                                                                                         :Name ""
                                                                                         :Symbol ""
                                                                                         :Value ""}
                                                                              :CurrencyId 0
                                                                              :DiscountAmount ""
                                                                              :Id 0
                                                                              :Invoice {:AccessToken ""
                                                                                        :Activities [{:EstimationId 0
                                                                                                      :EstimationNumber ""
                                                                                                      :Id 0
                                                                                                      :InvoiceId 0
                                                                                                      :InvoiceNumber ""
                                                                                                      :Link ""
                                                                                                      :Message ""
                                                                                                      :OrderId 0
                                                                                                      :OrderNumber ""
                                                                                                      :Type ""
                                                                                                      :UserId 0}]
                                                                                        :Attachments [{:Id 0
                                                                                                       :InvoiceId 0
                                                                                                       :Link ""
                                                                                                       :ObfuscatedFileName ""
                                                                                                       :OriginalFileName ""
                                                                                                       :Size 0
                                                                                                       :Type ""}]
                                                                                        :ClientId 0
                                                                                        :ClonedFromId 0
                                                                                        :CurrencyId 0
                                                                                        :DiscountAmount ""
                                                                                        :Duedate ""
                                                                                        :EnablePartialPayments false
                                                                                        :EstimationId 0
                                                                                        :Id 0
                                                                                        :InvoiceCategoryId 0
                                                                                        :IsDigitallySigned false
                                                                                        :IssuedOn ""
                                                                                        :Items [{:Cost ""
                                                                                                 :Description ""
                                                                                                 :DiscountAmount ""
                                                                                                 :DiscountPercentage ""
                                                                                                 :Id 0
                                                                                                 :InvoiceId 0
                                                                                                 :Quantity ""
                                                                                                 :SubTotalAmount ""
                                                                                                 :TaxAmount ""
                                                                                                 :TaxId 0
                                                                                                 :TaxPercentage ""
                                                                                                 :TotalAmount ""
                                                                                                 :WorkTypeId 0}]
                                                                                        :Notes ""
                                                                                        :Number ""
                                                                                        :OrderId 0
                                                                                        :PaymentGateways [{:Id 0
                                                                                                           :Name ""}]
                                                                                        :PaymentLinkId 0
                                                                                        :Payments [{:Amount ""
                                                                                                    :Id 0
                                                                                                    :Invoice ""
                                                                                                    :InvoiceId 0
                                                                                                    :IsAutomatic false
                                                                                                    :Note ""
                                                                                                    :PaidOn ""
                                                                                                    :ReferenceId ""
                                                                                                    :Type ""}]
                                                                                        :PoNumber ""
                                                                                        :RecurringProfileId 0
                                                                                        :ShouldSendReminders false
                                                                                        :Status ""
                                                                                        :SubTotalAmount ""
                                                                                        :TaxAmount ""
                                                                                        :Terms ""
                                                                                        :TotalAmount ""
                                                                                        :UserId 0}
                                                                              :Items [{:Cost ""
                                                                                       :DiscountAmount ""
                                                                                       :DiscountPercentage ""
                                                                                       :Id 0
                                                                                       :PaymentLinkId 0
                                                                                       :Quantity ""
                                                                                       :SubTotalAmount ""
                                                                                       :Tax {:Id 0
                                                                                             :Name ""
                                                                                             :Percentage ""
                                                                                             :UserId 0}
                                                                                       :TaxAmount ""
                                                                                       :TaxId 0
                                                                                       :TaxPercentage ""
                                                                                       :TotalAmount ""
                                                                                       :WorkType {:Id 0
                                                                                                  :Title ""
                                                                                                  :UserId 0}
                                                                                       :WorkTypeId 0}]
                                                                              :Number ""
                                                                              :SubTotalAmount ""
                                                                              :TaxAmount ""
                                                                              :TotalAmount ""
                                                                              :User {:ActionNotificationsLastReadOn ""
                                                                                     :Email ""
                                                                                     :ExternalConnections [{:AccessToken ""
                                                                                                            :AccessTokenSecret ""
                                                                                                            :Data ""
                                                                                                            :ExpiresOn ""
                                                                                                            :ExternalUserId ""
                                                                                                            :ExternalUsername ""
                                                                                                            :Id 0
                                                                                                            :Provider ""
                                                                                                            :UserId 0}]
                                                                                     :HasBeenOnboarded false
                                                                                     :Id 0
                                                                                     :IsLocked false
                                                                                     :IsVerified false
                                                                                     :KnowledgeNotificationsLastReadOn ""
                                                                                     :LastSeenOn ""
                                                                                     :Name ""
                                                                                     :Password ""
                                                                                     :PasswordSalt ""
                                                                                     :ReferralPath ""
                                                                                     :ReferredUsers 0
                                                                                     :ReferrerKey ""
                                                                                     :Settings {:AccountantEmail ""
                                                                                                :Address ""
                                                                                                :ApiKey ""
                                                                                                :ApiSecret ""
                                                                                                :BackgroundImage ""
                                                                                                :Bank ""
                                                                                                :BankAccount ""
                                                                                                :Cname ""
                                                                                                :CompanyRegistrationNumber ""
                                                                                                :Country {:Id 0
                                                                                                          :Name ""
                                                                                                          :Value ""}
                                                                                                :CountryId 0
                                                                                                :Currency {}
                                                                                                :CurrencyId 0
                                                                                                :CurrencySymbol ""
                                                                                                :DefaultDateFormat ""
                                                                                                :DefaultDueDateInDays 0
                                                                                                :DoNotTrack false
                                                                                                :EnableClientPortal false
                                                                                                :EnablePredictiveInvoicing false
                                                                                                :EnableRecurringInvoicing false
                                                                                                :HasInvoiceLogo false
                                                                                                :Iban ""
                                                                                                :Id 0
                                                                                                :InvoiceTemplate ""
                                                                                                :InvoiceTemplateColorHex ""
                                                                                                :PhoneNumber ""
                                                                                                :Profession ""
                                                                                                :ReceiveSmsNotifications false
                                                                                                :ReferralProgram ""
                                                                                                :StoreCheckoutFields ""
                                                                                                :StoreColorHex ""
                                                                                                :StoreCurrency {}
                                                                                                :StoreCurrencyId 0
                                                                                                :StoreCustomJavaScript ""
                                                                                                :StoreDescription ""
                                                                                                :StoreEmail ""
                                                                                                :StoreLanguage {:Id 0
                                                                                                                :Name ""
                                                                                                                :UiCulture ""}
                                                                                                :StoreLanguageId 0
                                                                                                :StoreName ""
                                                                                                :StorePurchaseEmailMessage ""
                                                                                                :StorePurchaseThankYouMessage ""
                                                                                                :StoreTextColorHex ""
                                                                                                :StoreUrl ""
                                                                                                :SubscribeToProductEmails false
                                                                                                :Swift ""
                                                                                                :Terms ""
                                                                                                :UserId 0
                                                                                                :UserSignature ""
                                                                                                :VatNumber ""
                                                                                                :YearsOfExperience 0}
                                                                                     :Status ""
                                                                                     :SubscriptionPlan {:CancellatedOn ""
                                                                                                        :CouponCode ""
                                                                                                        :CurrencyCode ""
                                                                                                        :ExternalIdentifier ""
                                                                                                        :Features []
                                                                                                        :HasDuePayment false
                                                                                                        :HasDuePaymentSince ""
                                                                                                        :Id 0
                                                                                                        :Identifier ""
                                                                                                        :IsActive false
                                                                                                        :IsLifetime false
                                                                                                        :LastPaymentOn ""
                                                                                                        :MaxClients 0
                                                                                                        :Name ""
                                                                                                        :OnHold false
                                                                                                        :OrderIdentifier ""
                                                                                                        :Price ""
                                                                                                        :Recurrence ""
                                                                                                        :SaleId 0
                                                                                                        :Status ""
                                                                                                        :SystemCancelationReason ""
                                                                                                        :TrialEndsOn ""
                                                                                                        :TrialNumberOfDays 0
                                                                                                        :TrialStartsOn ""
                                                                                                        :UserId 0
                                                                                                        :Version 0}
                                                                                     :Type ""
                                                                                     :Username ""
                                                                                     :VerifiedOn ""
                                                                                     :YearsOfExperience ""}
                                                                              :UserId 0}})
require "http/client"

url = "{{baseUrl}}/api/paymentlink/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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}}/api/paymentlink/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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}}/api/paymentlink/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/paymentlink/new"

	payload := strings.NewReader("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/paymentlink/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 5844

{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/paymentlink/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/paymentlink/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/paymentlink/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/paymentlink/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")
  .asString();
const data = JSON.stringify({
  AccessToken: '',
  Client: {
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    UserId: 0,
    Vat: ''
  },
  ClientId: 0,
  Currency: {
    Code: '',
    Id: 0,
    Name: '',
    Symbol: '',
    Value: ''
  },
  CurrencyId: 0,
  DiscountAmount: '',
  Id: 0,
  Invoice: {
    AccessToken: '',
    Activities: [
      {
        EstimationId: 0,
        EstimationNumber: '',
        Id: 0,
        InvoiceId: 0,
        InvoiceNumber: '',
        Link: '',
        Message: '',
        OrderId: 0,
        OrderNumber: '',
        Type: '',
        UserId: 0
      }
    ],
    Attachments: [
      {
        Id: 0,
        InvoiceId: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    DiscountAmount: '',
    Duedate: '',
    EnablePartialPayments: false,
    EstimationId: 0,
    Id: 0,
    InvoiceCategoryId: 0,
    IsDigitallySigned: false,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        InvoiceId: 0,
        Quantity: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    OrderId: 0,
    PaymentGateways: [
      {
        Id: 0,
        Name: ''
      }
    ],
    PaymentLinkId: 0,
    Payments: [
      {
        Amount: '',
        Id: 0,
        Invoice: '',
        InvoiceId: 0,
        IsAutomatic: false,
        Note: '',
        PaidOn: '',
        ReferenceId: '',
        Type: ''
      }
    ],
    PoNumber: '',
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    Terms: '',
    TotalAmount: '',
    UserId: 0
  },
  Items: [
    {
      Cost: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      PaymentLinkId: 0,
      Quantity: '',
      SubTotalAmount: '',
      Tax: {
        Id: 0,
        Name: '',
        Percentage: '',
        UserId: 0
      },
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkType: {
        Id: 0,
        Title: '',
        UserId: 0
      },
      WorkTypeId: 0
    }
  ],
  Number: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  User: {
    ActionNotificationsLastReadOn: '',
    Email: '',
    ExternalConnections: [
      {
        AccessToken: '',
        AccessTokenSecret: '',
        Data: '',
        ExpiresOn: '',
        ExternalUserId: '',
        ExternalUsername: '',
        Id: 0,
        Provider: '',
        UserId: 0
      }
    ],
    HasBeenOnboarded: false,
    Id: 0,
    IsLocked: false,
    IsVerified: false,
    KnowledgeNotificationsLastReadOn: '',
    LastSeenOn: '',
    Name: '',
    Password: '',
    PasswordSalt: '',
    ReferralPath: '',
    ReferredUsers: 0,
    ReferrerKey: '',
    Settings: {
      AccountantEmail: '',
      Address: '',
      ApiKey: '',
      ApiSecret: '',
      BackgroundImage: '',
      Bank: '',
      BankAccount: '',
      Cname: '',
      CompanyRegistrationNumber: '',
      Country: {
        Id: 0,
        Name: '',
        Value: ''
      },
      CountryId: 0,
      Currency: {},
      CurrencyId: 0,
      CurrencySymbol: '',
      DefaultDateFormat: '',
      DefaultDueDateInDays: 0,
      DoNotTrack: false,
      EnableClientPortal: false,
      EnablePredictiveInvoicing: false,
      EnableRecurringInvoicing: false,
      HasInvoiceLogo: false,
      Iban: '',
      Id: 0,
      InvoiceTemplate: '',
      InvoiceTemplateColorHex: '',
      PhoneNumber: '',
      Profession: '',
      ReceiveSmsNotifications: false,
      ReferralProgram: '',
      StoreCheckoutFields: '',
      StoreColorHex: '',
      StoreCurrency: {},
      StoreCurrencyId: 0,
      StoreCustomJavaScript: '',
      StoreDescription: '',
      StoreEmail: '',
      StoreLanguage: {
        Id: 0,
        Name: '',
        UiCulture: ''
      },
      StoreLanguageId: 0,
      StoreName: '',
      StorePurchaseEmailMessage: '',
      StorePurchaseThankYouMessage: '',
      StoreTextColorHex: '',
      StoreUrl: '',
      SubscribeToProductEmails: false,
      Swift: '',
      Terms: '',
      UserId: 0,
      UserSignature: '',
      VatNumber: '',
      YearsOfExperience: 0
    },
    Status: '',
    SubscriptionPlan: {
      CancellatedOn: '',
      CouponCode: '',
      CurrencyCode: '',
      ExternalIdentifier: '',
      Features: [],
      HasDuePayment: false,
      HasDuePaymentSince: '',
      Id: 0,
      Identifier: '',
      IsActive: false,
      IsLifetime: false,
      LastPaymentOn: '',
      MaxClients: 0,
      Name: '',
      OnHold: false,
      OrderIdentifier: '',
      Price: '',
      Recurrence: '',
      SaleId: 0,
      Status: '',
      SystemCancelationReason: '',
      TrialEndsOn: '',
      TrialNumberOfDays: 0,
      TrialStartsOn: '',
      UserId: 0,
      Version: 0
    },
    Type: '',
    Username: '',
    VerifiedOn: '',
    YearsOfExperience: ''
  },
  UserId: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/paymentlink/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/paymentlink/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AccessToken: '',
    Client: {
      Address: '',
      ClientCountryId: 0,
      ClientCurrencyId: 0,
      CompanyRegistrationNumber: '',
      DefaultDueDateInDays: 0,
      Email: '',
      Id: 0,
      Name: '',
      PhoneNumber: '',
      UiLanguageId: 0,
      UserId: 0,
      Vat: ''
    },
    ClientId: 0,
    Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
    CurrencyId: 0,
    DiscountAmount: '',
    Id: 0,
    Invoice: {
      AccessToken: '',
      Activities: [
        {
          EstimationId: 0,
          EstimationNumber: '',
          Id: 0,
          InvoiceId: 0,
          InvoiceNumber: '',
          Link: '',
          Message: '',
          OrderId: 0,
          OrderNumber: '',
          Type: '',
          UserId: 0
        }
      ],
      Attachments: [
        {
          Id: 0,
          InvoiceId: 0,
          Link: '',
          ObfuscatedFileName: '',
          OriginalFileName: '',
          Size: 0,
          Type: ''
        }
      ],
      ClientId: 0,
      ClonedFromId: 0,
      CurrencyId: 0,
      DiscountAmount: '',
      Duedate: '',
      EnablePartialPayments: false,
      EstimationId: 0,
      Id: 0,
      InvoiceCategoryId: 0,
      IsDigitallySigned: false,
      IssuedOn: '',
      Items: [
        {
          Cost: '',
          Description: '',
          DiscountAmount: '',
          DiscountPercentage: '',
          Id: 0,
          InvoiceId: 0,
          Quantity: '',
          SubTotalAmount: '',
          TaxAmount: '',
          TaxId: 0,
          TaxPercentage: '',
          TotalAmount: '',
          WorkTypeId: 0
        }
      ],
      Notes: '',
      Number: '',
      OrderId: 0,
      PaymentGateways: [{Id: 0, Name: ''}],
      PaymentLinkId: 0,
      Payments: [
        {
          Amount: '',
          Id: 0,
          Invoice: '',
          InvoiceId: 0,
          IsAutomatic: false,
          Note: '',
          PaidOn: '',
          ReferenceId: '',
          Type: ''
        }
      ],
      PoNumber: '',
      RecurringProfileId: 0,
      ShouldSendReminders: false,
      Status: '',
      SubTotalAmount: '',
      TaxAmount: '',
      Terms: '',
      TotalAmount: '',
      UserId: 0
    },
    Items: [
      {
        Cost: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        PaymentLinkId: 0,
        Quantity: '',
        SubTotalAmount: '',
        Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkType: {Id: 0, Title: '', UserId: 0},
        WorkTypeId: 0
      }
    ],
    Number: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    User: {
      ActionNotificationsLastReadOn: '',
      Email: '',
      ExternalConnections: [
        {
          AccessToken: '',
          AccessTokenSecret: '',
          Data: '',
          ExpiresOn: '',
          ExternalUserId: '',
          ExternalUsername: '',
          Id: 0,
          Provider: '',
          UserId: 0
        }
      ],
      HasBeenOnboarded: false,
      Id: 0,
      IsLocked: false,
      IsVerified: false,
      KnowledgeNotificationsLastReadOn: '',
      LastSeenOn: '',
      Name: '',
      Password: '',
      PasswordSalt: '',
      ReferralPath: '',
      ReferredUsers: 0,
      ReferrerKey: '',
      Settings: {
        AccountantEmail: '',
        Address: '',
        ApiKey: '',
        ApiSecret: '',
        BackgroundImage: '',
        Bank: '',
        BankAccount: '',
        Cname: '',
        CompanyRegistrationNumber: '',
        Country: {Id: 0, Name: '', Value: ''},
        CountryId: 0,
        Currency: {},
        CurrencyId: 0,
        CurrencySymbol: '',
        DefaultDateFormat: '',
        DefaultDueDateInDays: 0,
        DoNotTrack: false,
        EnableClientPortal: false,
        EnablePredictiveInvoicing: false,
        EnableRecurringInvoicing: false,
        HasInvoiceLogo: false,
        Iban: '',
        Id: 0,
        InvoiceTemplate: '',
        InvoiceTemplateColorHex: '',
        PhoneNumber: '',
        Profession: '',
        ReceiveSmsNotifications: false,
        ReferralProgram: '',
        StoreCheckoutFields: '',
        StoreColorHex: '',
        StoreCurrency: {},
        StoreCurrencyId: 0,
        StoreCustomJavaScript: '',
        StoreDescription: '',
        StoreEmail: '',
        StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
        StoreLanguageId: 0,
        StoreName: '',
        StorePurchaseEmailMessage: '',
        StorePurchaseThankYouMessage: '',
        StoreTextColorHex: '',
        StoreUrl: '',
        SubscribeToProductEmails: false,
        Swift: '',
        Terms: '',
        UserId: 0,
        UserSignature: '',
        VatNumber: '',
        YearsOfExperience: 0
      },
      Status: '',
      SubscriptionPlan: {
        CancellatedOn: '',
        CouponCode: '',
        CurrencyCode: '',
        ExternalIdentifier: '',
        Features: [],
        HasDuePayment: false,
        HasDuePaymentSince: '',
        Id: 0,
        Identifier: '',
        IsActive: false,
        IsLifetime: false,
        LastPaymentOn: '',
        MaxClients: 0,
        Name: '',
        OnHold: false,
        OrderIdentifier: '',
        Price: '',
        Recurrence: '',
        SaleId: 0,
        Status: '',
        SystemCancelationReason: '',
        TrialEndsOn: '',
        TrialNumberOfDays: 0,
        TrialStartsOn: '',
        UserId: 0,
        Version: 0
      },
      Type: '',
      Username: '',
      VerifiedOn: '',
      YearsOfExperience: ''
    },
    UserId: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/paymentlink/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AccessToken":"","Client":{"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Id":0,"Name":"","PhoneNumber":"","UiLanguageId":0,"UserId":0,"Vat":""},"ClientId":0,"Currency":{"Code":"","Id":0,"Name":"","Symbol":"","Value":""},"CurrencyId":0,"DiscountAmount":"","Id":0,"Invoice":{"AccessToken":"","Activities":[{"EstimationId":0,"EstimationNumber":"","Id":0,"InvoiceId":0,"InvoiceNumber":"","Link":"","Message":"","OrderId":0,"OrderNumber":"","Type":"","UserId":0}],"Attachments":[{"Id":0,"InvoiceId":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"DiscountAmount":"","Duedate":"","EnablePartialPayments":false,"EstimationId":0,"Id":0,"InvoiceCategoryId":0,"IsDigitallySigned":false,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"InvoiceId":0,"Quantity":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Notes":"","Number":"","OrderId":0,"PaymentGateways":[{"Id":0,"Name":""}],"PaymentLinkId":0,"Payments":[{"Amount":"","Id":0,"Invoice":"","InvoiceId":0,"IsAutomatic":false,"Note":"","PaidOn":"","ReferenceId":"","Type":""}],"PoNumber":"","RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","SubTotalAmount":"","TaxAmount":"","Terms":"","TotalAmount":"","UserId":0},"Items":[{"Cost":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"PaymentLinkId":0,"Quantity":"","SubTotalAmount":"","Tax":{"Id":0,"Name":"","Percentage":"","UserId":0},"TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkType":{"Id":0,"Title":"","UserId":0},"WorkTypeId":0}],"Number":"","SubTotalAmount":"","TaxAmount":"","TotalAmount":"","User":{"ActionNotificationsLastReadOn":"","Email":"","ExternalConnections":[{"AccessToken":"","AccessTokenSecret":"","Data":"","ExpiresOn":"","ExternalUserId":"","ExternalUsername":"","Id":0,"Provider":"","UserId":0}],"HasBeenOnboarded":false,"Id":0,"IsLocked":false,"IsVerified":false,"KnowledgeNotificationsLastReadOn":"","LastSeenOn":"","Name":"","Password":"","PasswordSalt":"","ReferralPath":"","ReferredUsers":0,"ReferrerKey":"","Settings":{"AccountantEmail":"","Address":"","ApiKey":"","ApiSecret":"","BackgroundImage":"","Bank":"","BankAccount":"","Cname":"","CompanyRegistrationNumber":"","Country":{"Id":0,"Name":"","Value":""},"CountryId":0,"Currency":{},"CurrencyId":0,"CurrencySymbol":"","DefaultDateFormat":"","DefaultDueDateInDays":0,"DoNotTrack":false,"EnableClientPortal":false,"EnablePredictiveInvoicing":false,"EnableRecurringInvoicing":false,"HasInvoiceLogo":false,"Iban":"","Id":0,"InvoiceTemplate":"","InvoiceTemplateColorHex":"","PhoneNumber":"","Profession":"","ReceiveSmsNotifications":false,"ReferralProgram":"","StoreCheckoutFields":"","StoreColorHex":"","StoreCurrency":{},"StoreCurrencyId":0,"StoreCustomJavaScript":"","StoreDescription":"","StoreEmail":"","StoreLanguage":{"Id":0,"Name":"","UiCulture":""},"StoreLanguageId":0,"StoreName":"","StorePurchaseEmailMessage":"","StorePurchaseThankYouMessage":"","StoreTextColorHex":"","StoreUrl":"","SubscribeToProductEmails":false,"Swift":"","Terms":"","UserId":0,"UserSignature":"","VatNumber":"","YearsOfExperience":0},"Status":"","SubscriptionPlan":{"CancellatedOn":"","CouponCode":"","CurrencyCode":"","ExternalIdentifier":"","Features":[],"HasDuePayment":false,"HasDuePaymentSince":"","Id":0,"Identifier":"","IsActive":false,"IsLifetime":false,"LastPaymentOn":"","MaxClients":0,"Name":"","OnHold":false,"OrderIdentifier":"","Price":"","Recurrence":"","SaleId":0,"Status":"","SystemCancelationReason":"","TrialEndsOn":"","TrialNumberOfDays":0,"TrialStartsOn":"","UserId":0,"Version":0},"Type":"","Username":"","VerifiedOn":"","YearsOfExperience":""},"UserId":0}'
};

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}}/api/paymentlink/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AccessToken": "",\n  "Client": {\n    "Address": "",\n    "ClientCountryId": 0,\n    "ClientCurrencyId": 0,\n    "CompanyRegistrationNumber": "",\n    "DefaultDueDateInDays": 0,\n    "Email": "",\n    "Id": 0,\n    "Name": "",\n    "PhoneNumber": "",\n    "UiLanguageId": 0,\n    "UserId": 0,\n    "Vat": ""\n  },\n  "ClientId": 0,\n  "Currency": {\n    "Code": "",\n    "Id": 0,\n    "Name": "",\n    "Symbol": "",\n    "Value": ""\n  },\n  "CurrencyId": 0,\n  "DiscountAmount": "",\n  "Id": 0,\n  "Invoice": {\n    "AccessToken": "",\n    "Activities": [\n      {\n        "EstimationId": 0,\n        "EstimationNumber": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "InvoiceNumber": "",\n        "Link": "",\n        "Message": "",\n        "OrderId": 0,\n        "OrderNumber": "",\n        "Type": "",\n        "UserId": 0\n      }\n    ],\n    "Attachments": [\n      {\n        "Id": 0,\n        "InvoiceId": 0,\n        "Link": "",\n        "ObfuscatedFileName": "",\n        "OriginalFileName": "",\n        "Size": 0,\n        "Type": ""\n      }\n    ],\n    "ClientId": 0,\n    "ClonedFromId": 0,\n    "CurrencyId": 0,\n    "DiscountAmount": "",\n    "Duedate": "",\n    "EnablePartialPayments": false,\n    "EstimationId": 0,\n    "Id": 0,\n    "InvoiceCategoryId": 0,\n    "IsDigitallySigned": false,\n    "IssuedOn": "",\n    "Items": [\n      {\n        "Cost": "",\n        "Description": "",\n        "DiscountAmount": "",\n        "DiscountPercentage": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "Quantity": "",\n        "SubTotalAmount": "",\n        "TaxAmount": "",\n        "TaxId": 0,\n        "TaxPercentage": "",\n        "TotalAmount": "",\n        "WorkTypeId": 0\n      }\n    ],\n    "Notes": "",\n    "Number": "",\n    "OrderId": 0,\n    "PaymentGateways": [\n      {\n        "Id": 0,\n        "Name": ""\n      }\n    ],\n    "PaymentLinkId": 0,\n    "Payments": [\n      {\n        "Amount": "",\n        "Id": 0,\n        "Invoice": "",\n        "InvoiceId": 0,\n        "IsAutomatic": false,\n        "Note": "",\n        "PaidOn": "",\n        "ReferenceId": "",\n        "Type": ""\n      }\n    ],\n    "PoNumber": "",\n    "RecurringProfileId": 0,\n    "ShouldSendReminders": false,\n    "Status": "",\n    "SubTotalAmount": "",\n    "TaxAmount": "",\n    "Terms": "",\n    "TotalAmount": "",\n    "UserId": 0\n  },\n  "Items": [\n    {\n      "Cost": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "PaymentLinkId": 0,\n      "Quantity": "",\n      "SubTotalAmount": "",\n      "Tax": {\n        "Id": 0,\n        "Name": "",\n        "Percentage": "",\n        "UserId": 0\n      },\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkType": {\n        "Id": 0,\n        "Title": "",\n        "UserId": 0\n      },\n      "WorkTypeId": 0\n    }\n  ],\n  "Number": "",\n  "SubTotalAmount": "",\n  "TaxAmount": "",\n  "TotalAmount": "",\n  "User": {\n    "ActionNotificationsLastReadOn": "",\n    "Email": "",\n    "ExternalConnections": [\n      {\n        "AccessToken": "",\n        "AccessTokenSecret": "",\n        "Data": "",\n        "ExpiresOn": "",\n        "ExternalUserId": "",\n        "ExternalUsername": "",\n        "Id": 0,\n        "Provider": "",\n        "UserId": 0\n      }\n    ],\n    "HasBeenOnboarded": false,\n    "Id": 0,\n    "IsLocked": false,\n    "IsVerified": false,\n    "KnowledgeNotificationsLastReadOn": "",\n    "LastSeenOn": "",\n    "Name": "",\n    "Password": "",\n    "PasswordSalt": "",\n    "ReferralPath": "",\n    "ReferredUsers": 0,\n    "ReferrerKey": "",\n    "Settings": {\n      "AccountantEmail": "",\n      "Address": "",\n      "ApiKey": "",\n      "ApiSecret": "",\n      "BackgroundImage": "",\n      "Bank": "",\n      "BankAccount": "",\n      "Cname": "",\n      "CompanyRegistrationNumber": "",\n      "Country": {\n        "Id": 0,\n        "Name": "",\n        "Value": ""\n      },\n      "CountryId": 0,\n      "Currency": {},\n      "CurrencyId": 0,\n      "CurrencySymbol": "",\n      "DefaultDateFormat": "",\n      "DefaultDueDateInDays": 0,\n      "DoNotTrack": false,\n      "EnableClientPortal": false,\n      "EnablePredictiveInvoicing": false,\n      "EnableRecurringInvoicing": false,\n      "HasInvoiceLogo": false,\n      "Iban": "",\n      "Id": 0,\n      "InvoiceTemplate": "",\n      "InvoiceTemplateColorHex": "",\n      "PhoneNumber": "",\n      "Profession": "",\n      "ReceiveSmsNotifications": false,\n      "ReferralProgram": "",\n      "StoreCheckoutFields": "",\n      "StoreColorHex": "",\n      "StoreCurrency": {},\n      "StoreCurrencyId": 0,\n      "StoreCustomJavaScript": "",\n      "StoreDescription": "",\n      "StoreEmail": "",\n      "StoreLanguage": {\n        "Id": 0,\n        "Name": "",\n        "UiCulture": ""\n      },\n      "StoreLanguageId": 0,\n      "StoreName": "",\n      "StorePurchaseEmailMessage": "",\n      "StorePurchaseThankYouMessage": "",\n      "StoreTextColorHex": "",\n      "StoreUrl": "",\n      "SubscribeToProductEmails": false,\n      "Swift": "",\n      "Terms": "",\n      "UserId": 0,\n      "UserSignature": "",\n      "VatNumber": "",\n      "YearsOfExperience": 0\n    },\n    "Status": "",\n    "SubscriptionPlan": {\n      "CancellatedOn": "",\n      "CouponCode": "",\n      "CurrencyCode": "",\n      "ExternalIdentifier": "",\n      "Features": [],\n      "HasDuePayment": false,\n      "HasDuePaymentSince": "",\n      "Id": 0,\n      "Identifier": "",\n      "IsActive": false,\n      "IsLifetime": false,\n      "LastPaymentOn": "",\n      "MaxClients": 0,\n      "Name": "",\n      "OnHold": false,\n      "OrderIdentifier": "",\n      "Price": "",\n      "Recurrence": "",\n      "SaleId": 0,\n      "Status": "",\n      "SystemCancelationReason": "",\n      "TrialEndsOn": "",\n      "TrialNumberOfDays": 0,\n      "TrialStartsOn": "",\n      "UserId": 0,\n      "Version": 0\n    },\n    "Type": "",\n    "Username": "",\n    "VerifiedOn": "",\n    "YearsOfExperience": ""\n  },\n  "UserId": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/paymentlink/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/paymentlink/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AccessToken: '',
  Client: {
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    UserId: 0,
    Vat: ''
  },
  ClientId: 0,
  Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
  CurrencyId: 0,
  DiscountAmount: '',
  Id: 0,
  Invoice: {
    AccessToken: '',
    Activities: [
      {
        EstimationId: 0,
        EstimationNumber: '',
        Id: 0,
        InvoiceId: 0,
        InvoiceNumber: '',
        Link: '',
        Message: '',
        OrderId: 0,
        OrderNumber: '',
        Type: '',
        UserId: 0
      }
    ],
    Attachments: [
      {
        Id: 0,
        InvoiceId: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    DiscountAmount: '',
    Duedate: '',
    EnablePartialPayments: false,
    EstimationId: 0,
    Id: 0,
    InvoiceCategoryId: 0,
    IsDigitallySigned: false,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        InvoiceId: 0,
        Quantity: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    OrderId: 0,
    PaymentGateways: [{Id: 0, Name: ''}],
    PaymentLinkId: 0,
    Payments: [
      {
        Amount: '',
        Id: 0,
        Invoice: '',
        InvoiceId: 0,
        IsAutomatic: false,
        Note: '',
        PaidOn: '',
        ReferenceId: '',
        Type: ''
      }
    ],
    PoNumber: '',
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    Terms: '',
    TotalAmount: '',
    UserId: 0
  },
  Items: [
    {
      Cost: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      PaymentLinkId: 0,
      Quantity: '',
      SubTotalAmount: '',
      Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkType: {Id: 0, Title: '', UserId: 0},
      WorkTypeId: 0
    }
  ],
  Number: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  User: {
    ActionNotificationsLastReadOn: '',
    Email: '',
    ExternalConnections: [
      {
        AccessToken: '',
        AccessTokenSecret: '',
        Data: '',
        ExpiresOn: '',
        ExternalUserId: '',
        ExternalUsername: '',
        Id: 0,
        Provider: '',
        UserId: 0
      }
    ],
    HasBeenOnboarded: false,
    Id: 0,
    IsLocked: false,
    IsVerified: false,
    KnowledgeNotificationsLastReadOn: '',
    LastSeenOn: '',
    Name: '',
    Password: '',
    PasswordSalt: '',
    ReferralPath: '',
    ReferredUsers: 0,
    ReferrerKey: '',
    Settings: {
      AccountantEmail: '',
      Address: '',
      ApiKey: '',
      ApiSecret: '',
      BackgroundImage: '',
      Bank: '',
      BankAccount: '',
      Cname: '',
      CompanyRegistrationNumber: '',
      Country: {Id: 0, Name: '', Value: ''},
      CountryId: 0,
      Currency: {},
      CurrencyId: 0,
      CurrencySymbol: '',
      DefaultDateFormat: '',
      DefaultDueDateInDays: 0,
      DoNotTrack: false,
      EnableClientPortal: false,
      EnablePredictiveInvoicing: false,
      EnableRecurringInvoicing: false,
      HasInvoiceLogo: false,
      Iban: '',
      Id: 0,
      InvoiceTemplate: '',
      InvoiceTemplateColorHex: '',
      PhoneNumber: '',
      Profession: '',
      ReceiveSmsNotifications: false,
      ReferralProgram: '',
      StoreCheckoutFields: '',
      StoreColorHex: '',
      StoreCurrency: {},
      StoreCurrencyId: 0,
      StoreCustomJavaScript: '',
      StoreDescription: '',
      StoreEmail: '',
      StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
      StoreLanguageId: 0,
      StoreName: '',
      StorePurchaseEmailMessage: '',
      StorePurchaseThankYouMessage: '',
      StoreTextColorHex: '',
      StoreUrl: '',
      SubscribeToProductEmails: false,
      Swift: '',
      Terms: '',
      UserId: 0,
      UserSignature: '',
      VatNumber: '',
      YearsOfExperience: 0
    },
    Status: '',
    SubscriptionPlan: {
      CancellatedOn: '',
      CouponCode: '',
      CurrencyCode: '',
      ExternalIdentifier: '',
      Features: [],
      HasDuePayment: false,
      HasDuePaymentSince: '',
      Id: 0,
      Identifier: '',
      IsActive: false,
      IsLifetime: false,
      LastPaymentOn: '',
      MaxClients: 0,
      Name: '',
      OnHold: false,
      OrderIdentifier: '',
      Price: '',
      Recurrence: '',
      SaleId: 0,
      Status: '',
      SystemCancelationReason: '',
      TrialEndsOn: '',
      TrialNumberOfDays: 0,
      TrialStartsOn: '',
      UserId: 0,
      Version: 0
    },
    Type: '',
    Username: '',
    VerifiedOn: '',
    YearsOfExperience: ''
  },
  UserId: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/paymentlink/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AccessToken: '',
    Client: {
      Address: '',
      ClientCountryId: 0,
      ClientCurrencyId: 0,
      CompanyRegistrationNumber: '',
      DefaultDueDateInDays: 0,
      Email: '',
      Id: 0,
      Name: '',
      PhoneNumber: '',
      UiLanguageId: 0,
      UserId: 0,
      Vat: ''
    },
    ClientId: 0,
    Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
    CurrencyId: 0,
    DiscountAmount: '',
    Id: 0,
    Invoice: {
      AccessToken: '',
      Activities: [
        {
          EstimationId: 0,
          EstimationNumber: '',
          Id: 0,
          InvoiceId: 0,
          InvoiceNumber: '',
          Link: '',
          Message: '',
          OrderId: 0,
          OrderNumber: '',
          Type: '',
          UserId: 0
        }
      ],
      Attachments: [
        {
          Id: 0,
          InvoiceId: 0,
          Link: '',
          ObfuscatedFileName: '',
          OriginalFileName: '',
          Size: 0,
          Type: ''
        }
      ],
      ClientId: 0,
      ClonedFromId: 0,
      CurrencyId: 0,
      DiscountAmount: '',
      Duedate: '',
      EnablePartialPayments: false,
      EstimationId: 0,
      Id: 0,
      InvoiceCategoryId: 0,
      IsDigitallySigned: false,
      IssuedOn: '',
      Items: [
        {
          Cost: '',
          Description: '',
          DiscountAmount: '',
          DiscountPercentage: '',
          Id: 0,
          InvoiceId: 0,
          Quantity: '',
          SubTotalAmount: '',
          TaxAmount: '',
          TaxId: 0,
          TaxPercentage: '',
          TotalAmount: '',
          WorkTypeId: 0
        }
      ],
      Notes: '',
      Number: '',
      OrderId: 0,
      PaymentGateways: [{Id: 0, Name: ''}],
      PaymentLinkId: 0,
      Payments: [
        {
          Amount: '',
          Id: 0,
          Invoice: '',
          InvoiceId: 0,
          IsAutomatic: false,
          Note: '',
          PaidOn: '',
          ReferenceId: '',
          Type: ''
        }
      ],
      PoNumber: '',
      RecurringProfileId: 0,
      ShouldSendReminders: false,
      Status: '',
      SubTotalAmount: '',
      TaxAmount: '',
      Terms: '',
      TotalAmount: '',
      UserId: 0
    },
    Items: [
      {
        Cost: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        PaymentLinkId: 0,
        Quantity: '',
        SubTotalAmount: '',
        Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkType: {Id: 0, Title: '', UserId: 0},
        WorkTypeId: 0
      }
    ],
    Number: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    User: {
      ActionNotificationsLastReadOn: '',
      Email: '',
      ExternalConnections: [
        {
          AccessToken: '',
          AccessTokenSecret: '',
          Data: '',
          ExpiresOn: '',
          ExternalUserId: '',
          ExternalUsername: '',
          Id: 0,
          Provider: '',
          UserId: 0
        }
      ],
      HasBeenOnboarded: false,
      Id: 0,
      IsLocked: false,
      IsVerified: false,
      KnowledgeNotificationsLastReadOn: '',
      LastSeenOn: '',
      Name: '',
      Password: '',
      PasswordSalt: '',
      ReferralPath: '',
      ReferredUsers: 0,
      ReferrerKey: '',
      Settings: {
        AccountantEmail: '',
        Address: '',
        ApiKey: '',
        ApiSecret: '',
        BackgroundImage: '',
        Bank: '',
        BankAccount: '',
        Cname: '',
        CompanyRegistrationNumber: '',
        Country: {Id: 0, Name: '', Value: ''},
        CountryId: 0,
        Currency: {},
        CurrencyId: 0,
        CurrencySymbol: '',
        DefaultDateFormat: '',
        DefaultDueDateInDays: 0,
        DoNotTrack: false,
        EnableClientPortal: false,
        EnablePredictiveInvoicing: false,
        EnableRecurringInvoicing: false,
        HasInvoiceLogo: false,
        Iban: '',
        Id: 0,
        InvoiceTemplate: '',
        InvoiceTemplateColorHex: '',
        PhoneNumber: '',
        Profession: '',
        ReceiveSmsNotifications: false,
        ReferralProgram: '',
        StoreCheckoutFields: '',
        StoreColorHex: '',
        StoreCurrency: {},
        StoreCurrencyId: 0,
        StoreCustomJavaScript: '',
        StoreDescription: '',
        StoreEmail: '',
        StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
        StoreLanguageId: 0,
        StoreName: '',
        StorePurchaseEmailMessage: '',
        StorePurchaseThankYouMessage: '',
        StoreTextColorHex: '',
        StoreUrl: '',
        SubscribeToProductEmails: false,
        Swift: '',
        Terms: '',
        UserId: 0,
        UserSignature: '',
        VatNumber: '',
        YearsOfExperience: 0
      },
      Status: '',
      SubscriptionPlan: {
        CancellatedOn: '',
        CouponCode: '',
        CurrencyCode: '',
        ExternalIdentifier: '',
        Features: [],
        HasDuePayment: false,
        HasDuePaymentSince: '',
        Id: 0,
        Identifier: '',
        IsActive: false,
        IsLifetime: false,
        LastPaymentOn: '',
        MaxClients: 0,
        Name: '',
        OnHold: false,
        OrderIdentifier: '',
        Price: '',
        Recurrence: '',
        SaleId: 0,
        Status: '',
        SystemCancelationReason: '',
        TrialEndsOn: '',
        TrialNumberOfDays: 0,
        TrialStartsOn: '',
        UserId: 0,
        Version: 0
      },
      Type: '',
      Username: '',
      VerifiedOn: '',
      YearsOfExperience: ''
    },
    UserId: 0
  },
  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}}/api/paymentlink/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AccessToken: '',
  Client: {
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    UserId: 0,
    Vat: ''
  },
  ClientId: 0,
  Currency: {
    Code: '',
    Id: 0,
    Name: '',
    Symbol: '',
    Value: ''
  },
  CurrencyId: 0,
  DiscountAmount: '',
  Id: 0,
  Invoice: {
    AccessToken: '',
    Activities: [
      {
        EstimationId: 0,
        EstimationNumber: '',
        Id: 0,
        InvoiceId: 0,
        InvoiceNumber: '',
        Link: '',
        Message: '',
        OrderId: 0,
        OrderNumber: '',
        Type: '',
        UserId: 0
      }
    ],
    Attachments: [
      {
        Id: 0,
        InvoiceId: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    DiscountAmount: '',
    Duedate: '',
    EnablePartialPayments: false,
    EstimationId: 0,
    Id: 0,
    InvoiceCategoryId: 0,
    IsDigitallySigned: false,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        InvoiceId: 0,
        Quantity: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    OrderId: 0,
    PaymentGateways: [
      {
        Id: 0,
        Name: ''
      }
    ],
    PaymentLinkId: 0,
    Payments: [
      {
        Amount: '',
        Id: 0,
        Invoice: '',
        InvoiceId: 0,
        IsAutomatic: false,
        Note: '',
        PaidOn: '',
        ReferenceId: '',
        Type: ''
      }
    ],
    PoNumber: '',
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    Terms: '',
    TotalAmount: '',
    UserId: 0
  },
  Items: [
    {
      Cost: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      PaymentLinkId: 0,
      Quantity: '',
      SubTotalAmount: '',
      Tax: {
        Id: 0,
        Name: '',
        Percentage: '',
        UserId: 0
      },
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkType: {
        Id: 0,
        Title: '',
        UserId: 0
      },
      WorkTypeId: 0
    }
  ],
  Number: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  User: {
    ActionNotificationsLastReadOn: '',
    Email: '',
    ExternalConnections: [
      {
        AccessToken: '',
        AccessTokenSecret: '',
        Data: '',
        ExpiresOn: '',
        ExternalUserId: '',
        ExternalUsername: '',
        Id: 0,
        Provider: '',
        UserId: 0
      }
    ],
    HasBeenOnboarded: false,
    Id: 0,
    IsLocked: false,
    IsVerified: false,
    KnowledgeNotificationsLastReadOn: '',
    LastSeenOn: '',
    Name: '',
    Password: '',
    PasswordSalt: '',
    ReferralPath: '',
    ReferredUsers: 0,
    ReferrerKey: '',
    Settings: {
      AccountantEmail: '',
      Address: '',
      ApiKey: '',
      ApiSecret: '',
      BackgroundImage: '',
      Bank: '',
      BankAccount: '',
      Cname: '',
      CompanyRegistrationNumber: '',
      Country: {
        Id: 0,
        Name: '',
        Value: ''
      },
      CountryId: 0,
      Currency: {},
      CurrencyId: 0,
      CurrencySymbol: '',
      DefaultDateFormat: '',
      DefaultDueDateInDays: 0,
      DoNotTrack: false,
      EnableClientPortal: false,
      EnablePredictiveInvoicing: false,
      EnableRecurringInvoicing: false,
      HasInvoiceLogo: false,
      Iban: '',
      Id: 0,
      InvoiceTemplate: '',
      InvoiceTemplateColorHex: '',
      PhoneNumber: '',
      Profession: '',
      ReceiveSmsNotifications: false,
      ReferralProgram: '',
      StoreCheckoutFields: '',
      StoreColorHex: '',
      StoreCurrency: {},
      StoreCurrencyId: 0,
      StoreCustomJavaScript: '',
      StoreDescription: '',
      StoreEmail: '',
      StoreLanguage: {
        Id: 0,
        Name: '',
        UiCulture: ''
      },
      StoreLanguageId: 0,
      StoreName: '',
      StorePurchaseEmailMessage: '',
      StorePurchaseThankYouMessage: '',
      StoreTextColorHex: '',
      StoreUrl: '',
      SubscribeToProductEmails: false,
      Swift: '',
      Terms: '',
      UserId: 0,
      UserSignature: '',
      VatNumber: '',
      YearsOfExperience: 0
    },
    Status: '',
    SubscriptionPlan: {
      CancellatedOn: '',
      CouponCode: '',
      CurrencyCode: '',
      ExternalIdentifier: '',
      Features: [],
      HasDuePayment: false,
      HasDuePaymentSince: '',
      Id: 0,
      Identifier: '',
      IsActive: false,
      IsLifetime: false,
      LastPaymentOn: '',
      MaxClients: 0,
      Name: '',
      OnHold: false,
      OrderIdentifier: '',
      Price: '',
      Recurrence: '',
      SaleId: 0,
      Status: '',
      SystemCancelationReason: '',
      TrialEndsOn: '',
      TrialNumberOfDays: 0,
      TrialStartsOn: '',
      UserId: 0,
      Version: 0
    },
    Type: '',
    Username: '',
    VerifiedOn: '',
    YearsOfExperience: ''
  },
  UserId: 0
});

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}}/api/paymentlink/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AccessToken: '',
    Client: {
      Address: '',
      ClientCountryId: 0,
      ClientCurrencyId: 0,
      CompanyRegistrationNumber: '',
      DefaultDueDateInDays: 0,
      Email: '',
      Id: 0,
      Name: '',
      PhoneNumber: '',
      UiLanguageId: 0,
      UserId: 0,
      Vat: ''
    },
    ClientId: 0,
    Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
    CurrencyId: 0,
    DiscountAmount: '',
    Id: 0,
    Invoice: {
      AccessToken: '',
      Activities: [
        {
          EstimationId: 0,
          EstimationNumber: '',
          Id: 0,
          InvoiceId: 0,
          InvoiceNumber: '',
          Link: '',
          Message: '',
          OrderId: 0,
          OrderNumber: '',
          Type: '',
          UserId: 0
        }
      ],
      Attachments: [
        {
          Id: 0,
          InvoiceId: 0,
          Link: '',
          ObfuscatedFileName: '',
          OriginalFileName: '',
          Size: 0,
          Type: ''
        }
      ],
      ClientId: 0,
      ClonedFromId: 0,
      CurrencyId: 0,
      DiscountAmount: '',
      Duedate: '',
      EnablePartialPayments: false,
      EstimationId: 0,
      Id: 0,
      InvoiceCategoryId: 0,
      IsDigitallySigned: false,
      IssuedOn: '',
      Items: [
        {
          Cost: '',
          Description: '',
          DiscountAmount: '',
          DiscountPercentage: '',
          Id: 0,
          InvoiceId: 0,
          Quantity: '',
          SubTotalAmount: '',
          TaxAmount: '',
          TaxId: 0,
          TaxPercentage: '',
          TotalAmount: '',
          WorkTypeId: 0
        }
      ],
      Notes: '',
      Number: '',
      OrderId: 0,
      PaymentGateways: [{Id: 0, Name: ''}],
      PaymentLinkId: 0,
      Payments: [
        {
          Amount: '',
          Id: 0,
          Invoice: '',
          InvoiceId: 0,
          IsAutomatic: false,
          Note: '',
          PaidOn: '',
          ReferenceId: '',
          Type: ''
        }
      ],
      PoNumber: '',
      RecurringProfileId: 0,
      ShouldSendReminders: false,
      Status: '',
      SubTotalAmount: '',
      TaxAmount: '',
      Terms: '',
      TotalAmount: '',
      UserId: 0
    },
    Items: [
      {
        Cost: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        PaymentLinkId: 0,
        Quantity: '',
        SubTotalAmount: '',
        Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkType: {Id: 0, Title: '', UserId: 0},
        WorkTypeId: 0
      }
    ],
    Number: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    User: {
      ActionNotificationsLastReadOn: '',
      Email: '',
      ExternalConnections: [
        {
          AccessToken: '',
          AccessTokenSecret: '',
          Data: '',
          ExpiresOn: '',
          ExternalUserId: '',
          ExternalUsername: '',
          Id: 0,
          Provider: '',
          UserId: 0
        }
      ],
      HasBeenOnboarded: false,
      Id: 0,
      IsLocked: false,
      IsVerified: false,
      KnowledgeNotificationsLastReadOn: '',
      LastSeenOn: '',
      Name: '',
      Password: '',
      PasswordSalt: '',
      ReferralPath: '',
      ReferredUsers: 0,
      ReferrerKey: '',
      Settings: {
        AccountantEmail: '',
        Address: '',
        ApiKey: '',
        ApiSecret: '',
        BackgroundImage: '',
        Bank: '',
        BankAccount: '',
        Cname: '',
        CompanyRegistrationNumber: '',
        Country: {Id: 0, Name: '', Value: ''},
        CountryId: 0,
        Currency: {},
        CurrencyId: 0,
        CurrencySymbol: '',
        DefaultDateFormat: '',
        DefaultDueDateInDays: 0,
        DoNotTrack: false,
        EnableClientPortal: false,
        EnablePredictiveInvoicing: false,
        EnableRecurringInvoicing: false,
        HasInvoiceLogo: false,
        Iban: '',
        Id: 0,
        InvoiceTemplate: '',
        InvoiceTemplateColorHex: '',
        PhoneNumber: '',
        Profession: '',
        ReceiveSmsNotifications: false,
        ReferralProgram: '',
        StoreCheckoutFields: '',
        StoreColorHex: '',
        StoreCurrency: {},
        StoreCurrencyId: 0,
        StoreCustomJavaScript: '',
        StoreDescription: '',
        StoreEmail: '',
        StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
        StoreLanguageId: 0,
        StoreName: '',
        StorePurchaseEmailMessage: '',
        StorePurchaseThankYouMessage: '',
        StoreTextColorHex: '',
        StoreUrl: '',
        SubscribeToProductEmails: false,
        Swift: '',
        Terms: '',
        UserId: 0,
        UserSignature: '',
        VatNumber: '',
        YearsOfExperience: 0
      },
      Status: '',
      SubscriptionPlan: {
        CancellatedOn: '',
        CouponCode: '',
        CurrencyCode: '',
        ExternalIdentifier: '',
        Features: [],
        HasDuePayment: false,
        HasDuePaymentSince: '',
        Id: 0,
        Identifier: '',
        IsActive: false,
        IsLifetime: false,
        LastPaymentOn: '',
        MaxClients: 0,
        Name: '',
        OnHold: false,
        OrderIdentifier: '',
        Price: '',
        Recurrence: '',
        SaleId: 0,
        Status: '',
        SystemCancelationReason: '',
        TrialEndsOn: '',
        TrialNumberOfDays: 0,
        TrialStartsOn: '',
        UserId: 0,
        Version: 0
      },
      Type: '',
      Username: '',
      VerifiedOn: '',
      YearsOfExperience: ''
    },
    UserId: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/paymentlink/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AccessToken":"","Client":{"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Id":0,"Name":"","PhoneNumber":"","UiLanguageId":0,"UserId":0,"Vat":""},"ClientId":0,"Currency":{"Code":"","Id":0,"Name":"","Symbol":"","Value":""},"CurrencyId":0,"DiscountAmount":"","Id":0,"Invoice":{"AccessToken":"","Activities":[{"EstimationId":0,"EstimationNumber":"","Id":0,"InvoiceId":0,"InvoiceNumber":"","Link":"","Message":"","OrderId":0,"OrderNumber":"","Type":"","UserId":0}],"Attachments":[{"Id":0,"InvoiceId":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"DiscountAmount":"","Duedate":"","EnablePartialPayments":false,"EstimationId":0,"Id":0,"InvoiceCategoryId":0,"IsDigitallySigned":false,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"InvoiceId":0,"Quantity":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Notes":"","Number":"","OrderId":0,"PaymentGateways":[{"Id":0,"Name":""}],"PaymentLinkId":0,"Payments":[{"Amount":"","Id":0,"Invoice":"","InvoiceId":0,"IsAutomatic":false,"Note":"","PaidOn":"","ReferenceId":"","Type":""}],"PoNumber":"","RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","SubTotalAmount":"","TaxAmount":"","Terms":"","TotalAmount":"","UserId":0},"Items":[{"Cost":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"PaymentLinkId":0,"Quantity":"","SubTotalAmount":"","Tax":{"Id":0,"Name":"","Percentage":"","UserId":0},"TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkType":{"Id":0,"Title":"","UserId":0},"WorkTypeId":0}],"Number":"","SubTotalAmount":"","TaxAmount":"","TotalAmount":"","User":{"ActionNotificationsLastReadOn":"","Email":"","ExternalConnections":[{"AccessToken":"","AccessTokenSecret":"","Data":"","ExpiresOn":"","ExternalUserId":"","ExternalUsername":"","Id":0,"Provider":"","UserId":0}],"HasBeenOnboarded":false,"Id":0,"IsLocked":false,"IsVerified":false,"KnowledgeNotificationsLastReadOn":"","LastSeenOn":"","Name":"","Password":"","PasswordSalt":"","ReferralPath":"","ReferredUsers":0,"ReferrerKey":"","Settings":{"AccountantEmail":"","Address":"","ApiKey":"","ApiSecret":"","BackgroundImage":"","Bank":"","BankAccount":"","Cname":"","CompanyRegistrationNumber":"","Country":{"Id":0,"Name":"","Value":""},"CountryId":0,"Currency":{},"CurrencyId":0,"CurrencySymbol":"","DefaultDateFormat":"","DefaultDueDateInDays":0,"DoNotTrack":false,"EnableClientPortal":false,"EnablePredictiveInvoicing":false,"EnableRecurringInvoicing":false,"HasInvoiceLogo":false,"Iban":"","Id":0,"InvoiceTemplate":"","InvoiceTemplateColorHex":"","PhoneNumber":"","Profession":"","ReceiveSmsNotifications":false,"ReferralProgram":"","StoreCheckoutFields":"","StoreColorHex":"","StoreCurrency":{},"StoreCurrencyId":0,"StoreCustomJavaScript":"","StoreDescription":"","StoreEmail":"","StoreLanguage":{"Id":0,"Name":"","UiCulture":""},"StoreLanguageId":0,"StoreName":"","StorePurchaseEmailMessage":"","StorePurchaseThankYouMessage":"","StoreTextColorHex":"","StoreUrl":"","SubscribeToProductEmails":false,"Swift":"","Terms":"","UserId":0,"UserSignature":"","VatNumber":"","YearsOfExperience":0},"Status":"","SubscriptionPlan":{"CancellatedOn":"","CouponCode":"","CurrencyCode":"","ExternalIdentifier":"","Features":[],"HasDuePayment":false,"HasDuePaymentSince":"","Id":0,"Identifier":"","IsActive":false,"IsLifetime":false,"LastPaymentOn":"","MaxClients":0,"Name":"","OnHold":false,"OrderIdentifier":"","Price":"","Recurrence":"","SaleId":0,"Status":"","SystemCancelationReason":"","TrialEndsOn":"","TrialNumberOfDays":0,"TrialStartsOn":"","UserId":0,"Version":0},"Type":"","Username":"","VerifiedOn":"","YearsOfExperience":""},"UserId":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AccessToken": @"",
                              @"Client": @{ @"Address": @"", @"ClientCountryId": @0, @"ClientCurrencyId": @0, @"CompanyRegistrationNumber": @"", @"DefaultDueDateInDays": @0, @"Email": @"", @"Id": @0, @"Name": @"", @"PhoneNumber": @"", @"UiLanguageId": @0, @"UserId": @0, @"Vat": @"" },
                              @"ClientId": @0,
                              @"Currency": @{ @"Code": @"", @"Id": @0, @"Name": @"", @"Symbol": @"", @"Value": @"" },
                              @"CurrencyId": @0,
                              @"DiscountAmount": @"",
                              @"Id": @0,
                              @"Invoice": @{ @"AccessToken": @"", @"Activities": @[ @{ @"EstimationId": @0, @"EstimationNumber": @"", @"Id": @0, @"InvoiceId": @0, @"InvoiceNumber": @"", @"Link": @"", @"Message": @"", @"OrderId": @0, @"OrderNumber": @"", @"Type": @"", @"UserId": @0 } ], @"Attachments": @[ @{ @"Id": @0, @"InvoiceId": @0, @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ], @"ClientId": @0, @"ClonedFromId": @0, @"CurrencyId": @0, @"DiscountAmount": @"", @"Duedate": @"", @"EnablePartialPayments": @NO, @"EstimationId": @0, @"Id": @0, @"InvoiceCategoryId": @0, @"IsDigitallySigned": @NO, @"IssuedOn": @"", @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"InvoiceId": @0, @"Quantity": @"", @"SubTotalAmount": @"", @"TaxAmount": @"", @"TaxId": @0, @"TaxPercentage": @"", @"TotalAmount": @"", @"WorkTypeId": @0 } ], @"Notes": @"", @"Number": @"", @"OrderId": @0, @"PaymentGateways": @[ @{ @"Id": @0, @"Name": @"" } ], @"PaymentLinkId": @0, @"Payments": @[ @{ @"Amount": @"", @"Id": @0, @"Invoice": @"", @"InvoiceId": @0, @"IsAutomatic": @NO, @"Note": @"", @"PaidOn": @"", @"ReferenceId": @"", @"Type": @"" } ], @"PoNumber": @"", @"RecurringProfileId": @0, @"ShouldSendReminders": @NO, @"Status": @"", @"SubTotalAmount": @"", @"TaxAmount": @"", @"Terms": @"", @"TotalAmount": @"", @"UserId": @0 },
                              @"Items": @[ @{ @"Cost": @"", @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"PaymentLinkId": @0, @"Quantity": @"", @"SubTotalAmount": @"", @"Tax": @{ @"Id": @0, @"Name": @"", @"Percentage": @"", @"UserId": @0 }, @"TaxAmount": @"", @"TaxId": @0, @"TaxPercentage": @"", @"TotalAmount": @"", @"WorkType": @{ @"Id": @0, @"Title": @"", @"UserId": @0 }, @"WorkTypeId": @0 } ],
                              @"Number": @"",
                              @"SubTotalAmount": @"",
                              @"TaxAmount": @"",
                              @"TotalAmount": @"",
                              @"User": @{ @"ActionNotificationsLastReadOn": @"", @"Email": @"", @"ExternalConnections": @[ @{ @"AccessToken": @"", @"AccessTokenSecret": @"", @"Data": @"", @"ExpiresOn": @"", @"ExternalUserId": @"", @"ExternalUsername": @"", @"Id": @0, @"Provider": @"", @"UserId": @0 } ], @"HasBeenOnboarded": @NO, @"Id": @0, @"IsLocked": @NO, @"IsVerified": @NO, @"KnowledgeNotificationsLastReadOn": @"", @"LastSeenOn": @"", @"Name": @"", @"Password": @"", @"PasswordSalt": @"", @"ReferralPath": @"", @"ReferredUsers": @0, @"ReferrerKey": @"", @"Settings": @{ @"AccountantEmail": @"", @"Address": @"", @"ApiKey": @"", @"ApiSecret": @"", @"BackgroundImage": @"", @"Bank": @"", @"BankAccount": @"", @"Cname": @"", @"CompanyRegistrationNumber": @"", @"Country": @{ @"Id": @0, @"Name": @"", @"Value": @"" }, @"CountryId": @0, @"Currency": @{  }, @"CurrencyId": @0, @"CurrencySymbol": @"", @"DefaultDateFormat": @"", @"DefaultDueDateInDays": @0, @"DoNotTrack": @NO, @"EnableClientPortal": @NO, @"EnablePredictiveInvoicing": @NO, @"EnableRecurringInvoicing": @NO, @"HasInvoiceLogo": @NO, @"Iban": @"", @"Id": @0, @"InvoiceTemplate": @"", @"InvoiceTemplateColorHex": @"", @"PhoneNumber": @"", @"Profession": @"", @"ReceiveSmsNotifications": @NO, @"ReferralProgram": @"", @"StoreCheckoutFields": @"", @"StoreColorHex": @"", @"StoreCurrency": @{  }, @"StoreCurrencyId": @0, @"StoreCustomJavaScript": @"", @"StoreDescription": @"", @"StoreEmail": @"", @"StoreLanguage": @{ @"Id": @0, @"Name": @"", @"UiCulture": @"" }, @"StoreLanguageId": @0, @"StoreName": @"", @"StorePurchaseEmailMessage": @"", @"StorePurchaseThankYouMessage": @"", @"StoreTextColorHex": @"", @"StoreUrl": @"", @"SubscribeToProductEmails": @NO, @"Swift": @"", @"Terms": @"", @"UserId": @0, @"UserSignature": @"", @"VatNumber": @"", @"YearsOfExperience": @0 }, @"Status": @"", @"SubscriptionPlan": @{ @"CancellatedOn": @"", @"CouponCode": @"", @"CurrencyCode": @"", @"ExternalIdentifier": @"", @"Features": @[  ], @"HasDuePayment": @NO, @"HasDuePaymentSince": @"", @"Id": @0, @"Identifier": @"", @"IsActive": @NO, @"IsLifetime": @NO, @"LastPaymentOn": @"", @"MaxClients": @0, @"Name": @"", @"OnHold": @NO, @"OrderIdentifier": @"", @"Price": @"", @"Recurrence": @"", @"SaleId": @0, @"Status": @"", @"SystemCancelationReason": @"", @"TrialEndsOn": @"", @"TrialNumberOfDays": @0, @"TrialStartsOn": @"", @"UserId": @0, @"Version": @0 }, @"Type": @"", @"Username": @"", @"VerifiedOn": @"", @"YearsOfExperience": @"" },
                              @"UserId": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/paymentlink/new"]
                                                       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}}/api/paymentlink/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/paymentlink/new",
  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([
    'AccessToken' => '',
    'Client' => [
        'Address' => '',
        'ClientCountryId' => 0,
        'ClientCurrencyId' => 0,
        'CompanyRegistrationNumber' => '',
        'DefaultDueDateInDays' => 0,
        'Email' => '',
        'Id' => 0,
        'Name' => '',
        'PhoneNumber' => '',
        'UiLanguageId' => 0,
        'UserId' => 0,
        'Vat' => ''
    ],
    'ClientId' => 0,
    'Currency' => [
        'Code' => '',
        'Id' => 0,
        'Name' => '',
        'Symbol' => '',
        'Value' => ''
    ],
    'CurrencyId' => 0,
    'DiscountAmount' => '',
    'Id' => 0,
    'Invoice' => [
        'AccessToken' => '',
        'Activities' => [
                [
                                'EstimationId' => 0,
                                'EstimationNumber' => '',
                                'Id' => 0,
                                'InvoiceId' => 0,
                                'InvoiceNumber' => '',
                                'Link' => '',
                                'Message' => '',
                                'OrderId' => 0,
                                'OrderNumber' => '',
                                'Type' => '',
                                'UserId' => 0
                ]
        ],
        'Attachments' => [
                [
                                'Id' => 0,
                                'InvoiceId' => 0,
                                'Link' => '',
                                'ObfuscatedFileName' => '',
                                'OriginalFileName' => '',
                                'Size' => 0,
                                'Type' => ''
                ]
        ],
        'ClientId' => 0,
        'ClonedFromId' => 0,
        'CurrencyId' => 0,
        'DiscountAmount' => '',
        'Duedate' => '',
        'EnablePartialPayments' => null,
        'EstimationId' => 0,
        'Id' => 0,
        'InvoiceCategoryId' => 0,
        'IsDigitallySigned' => null,
        'IssuedOn' => '',
        'Items' => [
                [
                                'Cost' => '',
                                'Description' => '',
                                'DiscountAmount' => '',
                                'DiscountPercentage' => '',
                                'Id' => 0,
                                'InvoiceId' => 0,
                                'Quantity' => '',
                                'SubTotalAmount' => '',
                                'TaxAmount' => '',
                                'TaxId' => 0,
                                'TaxPercentage' => '',
                                'TotalAmount' => '',
                                'WorkTypeId' => 0
                ]
        ],
        'Notes' => '',
        'Number' => '',
        'OrderId' => 0,
        'PaymentGateways' => [
                [
                                'Id' => 0,
                                'Name' => ''
                ]
        ],
        'PaymentLinkId' => 0,
        'Payments' => [
                [
                                'Amount' => '',
                                'Id' => 0,
                                'Invoice' => '',
                                'InvoiceId' => 0,
                                'IsAutomatic' => null,
                                'Note' => '',
                                'PaidOn' => '',
                                'ReferenceId' => '',
                                'Type' => ''
                ]
        ],
        'PoNumber' => '',
        'RecurringProfileId' => 0,
        'ShouldSendReminders' => null,
        'Status' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'Terms' => '',
        'TotalAmount' => '',
        'UserId' => 0
    ],
    'Items' => [
        [
                'Cost' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'PaymentLinkId' => 0,
                'Quantity' => '',
                'SubTotalAmount' => '',
                'Tax' => [
                                'Id' => 0,
                                'Name' => '',
                                'Percentage' => '',
                                'UserId' => 0
                ],
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkType' => [
                                'Id' => 0,
                                'Title' => '',
                                'UserId' => 0
                ],
                'WorkTypeId' => 0
        ]
    ],
    'Number' => '',
    'SubTotalAmount' => '',
    'TaxAmount' => '',
    'TotalAmount' => '',
    'User' => [
        'ActionNotificationsLastReadOn' => '',
        'Email' => '',
        'ExternalConnections' => [
                [
                                'AccessToken' => '',
                                'AccessTokenSecret' => '',
                                'Data' => '',
                                'ExpiresOn' => '',
                                'ExternalUserId' => '',
                                'ExternalUsername' => '',
                                'Id' => 0,
                                'Provider' => '',
                                'UserId' => 0
                ]
        ],
        'HasBeenOnboarded' => null,
        'Id' => 0,
        'IsLocked' => null,
        'IsVerified' => null,
        'KnowledgeNotificationsLastReadOn' => '',
        'LastSeenOn' => '',
        'Name' => '',
        'Password' => '',
        'PasswordSalt' => '',
        'ReferralPath' => '',
        'ReferredUsers' => 0,
        'ReferrerKey' => '',
        'Settings' => [
                'AccountantEmail' => '',
                'Address' => '',
                'ApiKey' => '',
                'ApiSecret' => '',
                'BackgroundImage' => '',
                'Bank' => '',
                'BankAccount' => '',
                'Cname' => '',
                'CompanyRegistrationNumber' => '',
                'Country' => [
                                'Id' => 0,
                                'Name' => '',
                                'Value' => ''
                ],
                'CountryId' => 0,
                'Currency' => [
                                
                ],
                'CurrencyId' => 0,
                'CurrencySymbol' => '',
                'DefaultDateFormat' => '',
                'DefaultDueDateInDays' => 0,
                'DoNotTrack' => null,
                'EnableClientPortal' => null,
                'EnablePredictiveInvoicing' => null,
                'EnableRecurringInvoicing' => null,
                'HasInvoiceLogo' => null,
                'Iban' => '',
                'Id' => 0,
                'InvoiceTemplate' => '',
                'InvoiceTemplateColorHex' => '',
                'PhoneNumber' => '',
                'Profession' => '',
                'ReceiveSmsNotifications' => null,
                'ReferralProgram' => '',
                'StoreCheckoutFields' => '',
                'StoreColorHex' => '',
                'StoreCurrency' => [
                                
                ],
                'StoreCurrencyId' => 0,
                'StoreCustomJavaScript' => '',
                'StoreDescription' => '',
                'StoreEmail' => '',
                'StoreLanguage' => [
                                'Id' => 0,
                                'Name' => '',
                                'UiCulture' => ''
                ],
                'StoreLanguageId' => 0,
                'StoreName' => '',
                'StorePurchaseEmailMessage' => '',
                'StorePurchaseThankYouMessage' => '',
                'StoreTextColorHex' => '',
                'StoreUrl' => '',
                'SubscribeToProductEmails' => null,
                'Swift' => '',
                'Terms' => '',
                'UserId' => 0,
                'UserSignature' => '',
                'VatNumber' => '',
                'YearsOfExperience' => 0
        ],
        'Status' => '',
        'SubscriptionPlan' => [
                'CancellatedOn' => '',
                'CouponCode' => '',
                'CurrencyCode' => '',
                'ExternalIdentifier' => '',
                'Features' => [
                                
                ],
                'HasDuePayment' => null,
                'HasDuePaymentSince' => '',
                'Id' => 0,
                'Identifier' => '',
                'IsActive' => null,
                'IsLifetime' => null,
                'LastPaymentOn' => '',
                'MaxClients' => 0,
                'Name' => '',
                'OnHold' => null,
                'OrderIdentifier' => '',
                'Price' => '',
                'Recurrence' => '',
                'SaleId' => 0,
                'Status' => '',
                'SystemCancelationReason' => '',
                'TrialEndsOn' => '',
                'TrialNumberOfDays' => 0,
                'TrialStartsOn' => '',
                'UserId' => 0,
                'Version' => 0
        ],
        'Type' => '',
        'Username' => '',
        'VerifiedOn' => '',
        'YearsOfExperience' => ''
    ],
    'UserId' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/paymentlink/new', [
  'body' => '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/paymentlink/new');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AccessToken' => '',
  'Client' => [
    'Address' => '',
    'ClientCountryId' => 0,
    'ClientCurrencyId' => 0,
    'CompanyRegistrationNumber' => '',
    'DefaultDueDateInDays' => 0,
    'Email' => '',
    'Id' => 0,
    'Name' => '',
    'PhoneNumber' => '',
    'UiLanguageId' => 0,
    'UserId' => 0,
    'Vat' => ''
  ],
  'ClientId' => 0,
  'Currency' => [
    'Code' => '',
    'Id' => 0,
    'Name' => '',
    'Symbol' => '',
    'Value' => ''
  ],
  'CurrencyId' => 0,
  'DiscountAmount' => '',
  'Id' => 0,
  'Invoice' => [
    'AccessToken' => '',
    'Activities' => [
        [
                'EstimationId' => 0,
                'EstimationNumber' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'InvoiceNumber' => '',
                'Link' => '',
                'Message' => '',
                'OrderId' => 0,
                'OrderNumber' => '',
                'Type' => '',
                'UserId' => 0
        ]
    ],
    'Attachments' => [
        [
                'Id' => 0,
                'InvoiceId' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'DiscountAmount' => '',
    'Duedate' => '',
    'EnablePartialPayments' => null,
    'EstimationId' => 0,
    'Id' => 0,
    'InvoiceCategoryId' => 0,
    'IsDigitallySigned' => null,
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'Quantity' => '',
                'SubTotalAmount' => '',
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'OrderId' => 0,
    'PaymentGateways' => [
        [
                'Id' => 0,
                'Name' => ''
        ]
    ],
    'PaymentLinkId' => 0,
    'Payments' => [
        [
                'Amount' => '',
                'Id' => 0,
                'Invoice' => '',
                'InvoiceId' => 0,
                'IsAutomatic' => null,
                'Note' => '',
                'PaidOn' => '',
                'ReferenceId' => '',
                'Type' => ''
        ]
    ],
    'PoNumber' => '',
    'RecurringProfileId' => 0,
    'ShouldSendReminders' => null,
    'Status' => '',
    'SubTotalAmount' => '',
    'TaxAmount' => '',
    'Terms' => '',
    'TotalAmount' => '',
    'UserId' => 0
  ],
  'Items' => [
    [
        'Cost' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'PaymentLinkId' => 0,
        'Quantity' => '',
        'SubTotalAmount' => '',
        'Tax' => [
                'Id' => 0,
                'Name' => '',
                'Percentage' => '',
                'UserId' => 0
        ],
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkType' => [
                'Id' => 0,
                'Title' => '',
                'UserId' => 0
        ],
        'WorkTypeId' => 0
    ]
  ],
  'Number' => '',
  'SubTotalAmount' => '',
  'TaxAmount' => '',
  'TotalAmount' => '',
  'User' => [
    'ActionNotificationsLastReadOn' => '',
    'Email' => '',
    'ExternalConnections' => [
        [
                'AccessToken' => '',
                'AccessTokenSecret' => '',
                'Data' => '',
                'ExpiresOn' => '',
                'ExternalUserId' => '',
                'ExternalUsername' => '',
                'Id' => 0,
                'Provider' => '',
                'UserId' => 0
        ]
    ],
    'HasBeenOnboarded' => null,
    'Id' => 0,
    'IsLocked' => null,
    'IsVerified' => null,
    'KnowledgeNotificationsLastReadOn' => '',
    'LastSeenOn' => '',
    'Name' => '',
    'Password' => '',
    'PasswordSalt' => '',
    'ReferralPath' => '',
    'ReferredUsers' => 0,
    'ReferrerKey' => '',
    'Settings' => [
        'AccountantEmail' => '',
        'Address' => '',
        'ApiKey' => '',
        'ApiSecret' => '',
        'BackgroundImage' => '',
        'Bank' => '',
        'BankAccount' => '',
        'Cname' => '',
        'CompanyRegistrationNumber' => '',
        'Country' => [
                'Id' => 0,
                'Name' => '',
                'Value' => ''
        ],
        'CountryId' => 0,
        'Currency' => [
                
        ],
        'CurrencyId' => 0,
        'CurrencySymbol' => '',
        'DefaultDateFormat' => '',
        'DefaultDueDateInDays' => 0,
        'DoNotTrack' => null,
        'EnableClientPortal' => null,
        'EnablePredictiveInvoicing' => null,
        'EnableRecurringInvoicing' => null,
        'HasInvoiceLogo' => null,
        'Iban' => '',
        'Id' => 0,
        'InvoiceTemplate' => '',
        'InvoiceTemplateColorHex' => '',
        'PhoneNumber' => '',
        'Profession' => '',
        'ReceiveSmsNotifications' => null,
        'ReferralProgram' => '',
        'StoreCheckoutFields' => '',
        'StoreColorHex' => '',
        'StoreCurrency' => [
                
        ],
        'StoreCurrencyId' => 0,
        'StoreCustomJavaScript' => '',
        'StoreDescription' => '',
        'StoreEmail' => '',
        'StoreLanguage' => [
                'Id' => 0,
                'Name' => '',
                'UiCulture' => ''
        ],
        'StoreLanguageId' => 0,
        'StoreName' => '',
        'StorePurchaseEmailMessage' => '',
        'StorePurchaseThankYouMessage' => '',
        'StoreTextColorHex' => '',
        'StoreUrl' => '',
        'SubscribeToProductEmails' => null,
        'Swift' => '',
        'Terms' => '',
        'UserId' => 0,
        'UserSignature' => '',
        'VatNumber' => '',
        'YearsOfExperience' => 0
    ],
    'Status' => '',
    'SubscriptionPlan' => [
        'CancellatedOn' => '',
        'CouponCode' => '',
        'CurrencyCode' => '',
        'ExternalIdentifier' => '',
        'Features' => [
                
        ],
        'HasDuePayment' => null,
        'HasDuePaymentSince' => '',
        'Id' => 0,
        'Identifier' => '',
        'IsActive' => null,
        'IsLifetime' => null,
        'LastPaymentOn' => '',
        'MaxClients' => 0,
        'Name' => '',
        'OnHold' => null,
        'OrderIdentifier' => '',
        'Price' => '',
        'Recurrence' => '',
        'SaleId' => 0,
        'Status' => '',
        'SystemCancelationReason' => '',
        'TrialEndsOn' => '',
        'TrialNumberOfDays' => 0,
        'TrialStartsOn' => '',
        'UserId' => 0,
        'Version' => 0
    ],
    'Type' => '',
    'Username' => '',
    'VerifiedOn' => '',
    'YearsOfExperience' => ''
  ],
  'UserId' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AccessToken' => '',
  'Client' => [
    'Address' => '',
    'ClientCountryId' => 0,
    'ClientCurrencyId' => 0,
    'CompanyRegistrationNumber' => '',
    'DefaultDueDateInDays' => 0,
    'Email' => '',
    'Id' => 0,
    'Name' => '',
    'PhoneNumber' => '',
    'UiLanguageId' => 0,
    'UserId' => 0,
    'Vat' => ''
  ],
  'ClientId' => 0,
  'Currency' => [
    'Code' => '',
    'Id' => 0,
    'Name' => '',
    'Symbol' => '',
    'Value' => ''
  ],
  'CurrencyId' => 0,
  'DiscountAmount' => '',
  'Id' => 0,
  'Invoice' => [
    'AccessToken' => '',
    'Activities' => [
        [
                'EstimationId' => 0,
                'EstimationNumber' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'InvoiceNumber' => '',
                'Link' => '',
                'Message' => '',
                'OrderId' => 0,
                'OrderNumber' => '',
                'Type' => '',
                'UserId' => 0
        ]
    ],
    'Attachments' => [
        [
                'Id' => 0,
                'InvoiceId' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'DiscountAmount' => '',
    'Duedate' => '',
    'EnablePartialPayments' => null,
    'EstimationId' => 0,
    'Id' => 0,
    'InvoiceCategoryId' => 0,
    'IsDigitallySigned' => null,
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'Quantity' => '',
                'SubTotalAmount' => '',
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'OrderId' => 0,
    'PaymentGateways' => [
        [
                'Id' => 0,
                'Name' => ''
        ]
    ],
    'PaymentLinkId' => 0,
    'Payments' => [
        [
                'Amount' => '',
                'Id' => 0,
                'Invoice' => '',
                'InvoiceId' => 0,
                'IsAutomatic' => null,
                'Note' => '',
                'PaidOn' => '',
                'ReferenceId' => '',
                'Type' => ''
        ]
    ],
    'PoNumber' => '',
    'RecurringProfileId' => 0,
    'ShouldSendReminders' => null,
    'Status' => '',
    'SubTotalAmount' => '',
    'TaxAmount' => '',
    'Terms' => '',
    'TotalAmount' => '',
    'UserId' => 0
  ],
  'Items' => [
    [
        'Cost' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'PaymentLinkId' => 0,
        'Quantity' => '',
        'SubTotalAmount' => '',
        'Tax' => [
                'Id' => 0,
                'Name' => '',
                'Percentage' => '',
                'UserId' => 0
        ],
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkType' => [
                'Id' => 0,
                'Title' => '',
                'UserId' => 0
        ],
        'WorkTypeId' => 0
    ]
  ],
  'Number' => '',
  'SubTotalAmount' => '',
  'TaxAmount' => '',
  'TotalAmount' => '',
  'User' => [
    'ActionNotificationsLastReadOn' => '',
    'Email' => '',
    'ExternalConnections' => [
        [
                'AccessToken' => '',
                'AccessTokenSecret' => '',
                'Data' => '',
                'ExpiresOn' => '',
                'ExternalUserId' => '',
                'ExternalUsername' => '',
                'Id' => 0,
                'Provider' => '',
                'UserId' => 0
        ]
    ],
    'HasBeenOnboarded' => null,
    'Id' => 0,
    'IsLocked' => null,
    'IsVerified' => null,
    'KnowledgeNotificationsLastReadOn' => '',
    'LastSeenOn' => '',
    'Name' => '',
    'Password' => '',
    'PasswordSalt' => '',
    'ReferralPath' => '',
    'ReferredUsers' => 0,
    'ReferrerKey' => '',
    'Settings' => [
        'AccountantEmail' => '',
        'Address' => '',
        'ApiKey' => '',
        'ApiSecret' => '',
        'BackgroundImage' => '',
        'Bank' => '',
        'BankAccount' => '',
        'Cname' => '',
        'CompanyRegistrationNumber' => '',
        'Country' => [
                'Id' => 0,
                'Name' => '',
                'Value' => ''
        ],
        'CountryId' => 0,
        'Currency' => [
                
        ],
        'CurrencyId' => 0,
        'CurrencySymbol' => '',
        'DefaultDateFormat' => '',
        'DefaultDueDateInDays' => 0,
        'DoNotTrack' => null,
        'EnableClientPortal' => null,
        'EnablePredictiveInvoicing' => null,
        'EnableRecurringInvoicing' => null,
        'HasInvoiceLogo' => null,
        'Iban' => '',
        'Id' => 0,
        'InvoiceTemplate' => '',
        'InvoiceTemplateColorHex' => '',
        'PhoneNumber' => '',
        'Profession' => '',
        'ReceiveSmsNotifications' => null,
        'ReferralProgram' => '',
        'StoreCheckoutFields' => '',
        'StoreColorHex' => '',
        'StoreCurrency' => [
                
        ],
        'StoreCurrencyId' => 0,
        'StoreCustomJavaScript' => '',
        'StoreDescription' => '',
        'StoreEmail' => '',
        'StoreLanguage' => [
                'Id' => 0,
                'Name' => '',
                'UiCulture' => ''
        ],
        'StoreLanguageId' => 0,
        'StoreName' => '',
        'StorePurchaseEmailMessage' => '',
        'StorePurchaseThankYouMessage' => '',
        'StoreTextColorHex' => '',
        'StoreUrl' => '',
        'SubscribeToProductEmails' => null,
        'Swift' => '',
        'Terms' => '',
        'UserId' => 0,
        'UserSignature' => '',
        'VatNumber' => '',
        'YearsOfExperience' => 0
    ],
    'Status' => '',
    'SubscriptionPlan' => [
        'CancellatedOn' => '',
        'CouponCode' => '',
        'CurrencyCode' => '',
        'ExternalIdentifier' => '',
        'Features' => [
                
        ],
        'HasDuePayment' => null,
        'HasDuePaymentSince' => '',
        'Id' => 0,
        'Identifier' => '',
        'IsActive' => null,
        'IsLifetime' => null,
        'LastPaymentOn' => '',
        'MaxClients' => 0,
        'Name' => '',
        'OnHold' => null,
        'OrderIdentifier' => '',
        'Price' => '',
        'Recurrence' => '',
        'SaleId' => 0,
        'Status' => '',
        'SystemCancelationReason' => '',
        'TrialEndsOn' => '',
        'TrialNumberOfDays' => 0,
        'TrialStartsOn' => '',
        'UserId' => 0,
        'Version' => 0
    ],
    'Type' => '',
    'Username' => '',
    'VerifiedOn' => '',
    'YearsOfExperience' => ''
  ],
  'UserId' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/paymentlink/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/paymentlink/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/paymentlink/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/paymentlink/new", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/paymentlink/new"

payload = {
    "AccessToken": "",
    "Client": {
        "Address": "",
        "ClientCountryId": 0,
        "ClientCurrencyId": 0,
        "CompanyRegistrationNumber": "",
        "DefaultDueDateInDays": 0,
        "Email": "",
        "Id": 0,
        "Name": "",
        "PhoneNumber": "",
        "UiLanguageId": 0,
        "UserId": 0,
        "Vat": ""
    },
    "ClientId": 0,
    "Currency": {
        "Code": "",
        "Id": 0,
        "Name": "",
        "Symbol": "",
        "Value": ""
    },
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Id": 0,
    "Invoice": {
        "AccessToken": "",
        "Activities": [
            {
                "EstimationId": 0,
                "EstimationNumber": "",
                "Id": 0,
                "InvoiceId": 0,
                "InvoiceNumber": "",
                "Link": "",
                "Message": "",
                "OrderId": 0,
                "OrderNumber": "",
                "Type": "",
                "UserId": 0
            }
        ],
        "Attachments": [
            {
                "Id": 0,
                "InvoiceId": 0,
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            }
        ],
        "ClientId": 0,
        "ClonedFromId": 0,
        "CurrencyId": 0,
        "DiscountAmount": "",
        "Duedate": "",
        "EnablePartialPayments": False,
        "EstimationId": 0,
        "Id": 0,
        "InvoiceCategoryId": 0,
        "IsDigitallySigned": False,
        "IssuedOn": "",
        "Items": [
            {
                "Cost": "",
                "Description": "",
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "InvoiceId": 0,
                "Quantity": "",
                "SubTotalAmount": "",
                "TaxAmount": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "TotalAmount": "",
                "WorkTypeId": 0
            }
        ],
        "Notes": "",
        "Number": "",
        "OrderId": 0,
        "PaymentGateways": [
            {
                "Id": 0,
                "Name": ""
            }
        ],
        "PaymentLinkId": 0,
        "Payments": [
            {
                "Amount": "",
                "Id": 0,
                "Invoice": "",
                "InvoiceId": 0,
                "IsAutomatic": False,
                "Note": "",
                "PaidOn": "",
                "ReferenceId": "",
                "Type": ""
            }
        ],
        "PoNumber": "",
        "RecurringProfileId": 0,
        "ShouldSendReminders": False,
        "Status": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "Terms": "",
        "TotalAmount": "",
        "UserId": 0
    },
    "Items": [
        {
            "Cost": "",
            "DiscountAmount": "",
            "DiscountPercentage": "",
            "Id": 0,
            "PaymentLinkId": 0,
            "Quantity": "",
            "SubTotalAmount": "",
            "Tax": {
                "Id": 0,
                "Name": "",
                "Percentage": "",
                "UserId": 0
            },
            "TaxAmount": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "TotalAmount": "",
            "WorkType": {
                "Id": 0,
                "Title": "",
                "UserId": 0
            },
            "WorkTypeId": 0
        }
    ],
    "Number": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "TotalAmount": "",
    "User": {
        "ActionNotificationsLastReadOn": "",
        "Email": "",
        "ExternalConnections": [
            {
                "AccessToken": "",
                "AccessTokenSecret": "",
                "Data": "",
                "ExpiresOn": "",
                "ExternalUserId": "",
                "ExternalUsername": "",
                "Id": 0,
                "Provider": "",
                "UserId": 0
            }
        ],
        "HasBeenOnboarded": False,
        "Id": 0,
        "IsLocked": False,
        "IsVerified": False,
        "KnowledgeNotificationsLastReadOn": "",
        "LastSeenOn": "",
        "Name": "",
        "Password": "",
        "PasswordSalt": "",
        "ReferralPath": "",
        "ReferredUsers": 0,
        "ReferrerKey": "",
        "Settings": {
            "AccountantEmail": "",
            "Address": "",
            "ApiKey": "",
            "ApiSecret": "",
            "BackgroundImage": "",
            "Bank": "",
            "BankAccount": "",
            "Cname": "",
            "CompanyRegistrationNumber": "",
            "Country": {
                "Id": 0,
                "Name": "",
                "Value": ""
            },
            "CountryId": 0,
            "Currency": {},
            "CurrencyId": 0,
            "CurrencySymbol": "",
            "DefaultDateFormat": "",
            "DefaultDueDateInDays": 0,
            "DoNotTrack": False,
            "EnableClientPortal": False,
            "EnablePredictiveInvoicing": False,
            "EnableRecurringInvoicing": False,
            "HasInvoiceLogo": False,
            "Iban": "",
            "Id": 0,
            "InvoiceTemplate": "",
            "InvoiceTemplateColorHex": "",
            "PhoneNumber": "",
            "Profession": "",
            "ReceiveSmsNotifications": False,
            "ReferralProgram": "",
            "StoreCheckoutFields": "",
            "StoreColorHex": "",
            "StoreCurrency": {},
            "StoreCurrencyId": 0,
            "StoreCustomJavaScript": "",
            "StoreDescription": "",
            "StoreEmail": "",
            "StoreLanguage": {
                "Id": 0,
                "Name": "",
                "UiCulture": ""
            },
            "StoreLanguageId": 0,
            "StoreName": "",
            "StorePurchaseEmailMessage": "",
            "StorePurchaseThankYouMessage": "",
            "StoreTextColorHex": "",
            "StoreUrl": "",
            "SubscribeToProductEmails": False,
            "Swift": "",
            "Terms": "",
            "UserId": 0,
            "UserSignature": "",
            "VatNumber": "",
            "YearsOfExperience": 0
        },
        "Status": "",
        "SubscriptionPlan": {
            "CancellatedOn": "",
            "CouponCode": "",
            "CurrencyCode": "",
            "ExternalIdentifier": "",
            "Features": [],
            "HasDuePayment": False,
            "HasDuePaymentSince": "",
            "Id": 0,
            "Identifier": "",
            "IsActive": False,
            "IsLifetime": False,
            "LastPaymentOn": "",
            "MaxClients": 0,
            "Name": "",
            "OnHold": False,
            "OrderIdentifier": "",
            "Price": "",
            "Recurrence": "",
            "SaleId": 0,
            "Status": "",
            "SystemCancelationReason": "",
            "TrialEndsOn": "",
            "TrialNumberOfDays": 0,
            "TrialStartsOn": "",
            "UserId": 0,
            "Version": 0
        },
        "Type": "",
        "Username": "",
        "VerifiedOn": "",
        "YearsOfExperience": ""
    },
    "UserId": 0
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/paymentlink/new"

payload <- "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/paymentlink/new")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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/api/paymentlink/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/paymentlink/new";

    let payload = json!({
        "AccessToken": "",
        "Client": json!({
            "Address": "",
            "ClientCountryId": 0,
            "ClientCurrencyId": 0,
            "CompanyRegistrationNumber": "",
            "DefaultDueDateInDays": 0,
            "Email": "",
            "Id": 0,
            "Name": "",
            "PhoneNumber": "",
            "UiLanguageId": 0,
            "UserId": 0,
            "Vat": ""
        }),
        "ClientId": 0,
        "Currency": json!({
            "Code": "",
            "Id": 0,
            "Name": "",
            "Symbol": "",
            "Value": ""
        }),
        "CurrencyId": 0,
        "DiscountAmount": "",
        "Id": 0,
        "Invoice": json!({
            "AccessToken": "",
            "Activities": (
                json!({
                    "EstimationId": 0,
                    "EstimationNumber": "",
                    "Id": 0,
                    "InvoiceId": 0,
                    "InvoiceNumber": "",
                    "Link": "",
                    "Message": "",
                    "OrderId": 0,
                    "OrderNumber": "",
                    "Type": "",
                    "UserId": 0
                })
            ),
            "Attachments": (
                json!({
                    "Id": 0,
                    "InvoiceId": 0,
                    "Link": "",
                    "ObfuscatedFileName": "",
                    "OriginalFileName": "",
                    "Size": 0,
                    "Type": ""
                })
            ),
            "ClientId": 0,
            "ClonedFromId": 0,
            "CurrencyId": 0,
            "DiscountAmount": "",
            "Duedate": "",
            "EnablePartialPayments": false,
            "EstimationId": 0,
            "Id": 0,
            "InvoiceCategoryId": 0,
            "IsDigitallySigned": false,
            "IssuedOn": "",
            "Items": (
                json!({
                    "Cost": "",
                    "Description": "",
                    "DiscountAmount": "",
                    "DiscountPercentage": "",
                    "Id": 0,
                    "InvoiceId": 0,
                    "Quantity": "",
                    "SubTotalAmount": "",
                    "TaxAmount": "",
                    "TaxId": 0,
                    "TaxPercentage": "",
                    "TotalAmount": "",
                    "WorkTypeId": 0
                })
            ),
            "Notes": "",
            "Number": "",
            "OrderId": 0,
            "PaymentGateways": (
                json!({
                    "Id": 0,
                    "Name": ""
                })
            ),
            "PaymentLinkId": 0,
            "Payments": (
                json!({
                    "Amount": "",
                    "Id": 0,
                    "Invoice": "",
                    "InvoiceId": 0,
                    "IsAutomatic": false,
                    "Note": "",
                    "PaidOn": "",
                    "ReferenceId": "",
                    "Type": ""
                })
            ),
            "PoNumber": "",
            "RecurringProfileId": 0,
            "ShouldSendReminders": false,
            "Status": "",
            "SubTotalAmount": "",
            "TaxAmount": "",
            "Terms": "",
            "TotalAmount": "",
            "UserId": 0
        }),
        "Items": (
            json!({
                "Cost": "",
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "PaymentLinkId": 0,
                "Quantity": "",
                "SubTotalAmount": "",
                "Tax": json!({
                    "Id": 0,
                    "Name": "",
                    "Percentage": "",
                    "UserId": 0
                }),
                "TaxAmount": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "TotalAmount": "",
                "WorkType": json!({
                    "Id": 0,
                    "Title": "",
                    "UserId": 0
                }),
                "WorkTypeId": 0
            })
        ),
        "Number": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TotalAmount": "",
        "User": json!({
            "ActionNotificationsLastReadOn": "",
            "Email": "",
            "ExternalConnections": (
                json!({
                    "AccessToken": "",
                    "AccessTokenSecret": "",
                    "Data": "",
                    "ExpiresOn": "",
                    "ExternalUserId": "",
                    "ExternalUsername": "",
                    "Id": 0,
                    "Provider": "",
                    "UserId": 0
                })
            ),
            "HasBeenOnboarded": false,
            "Id": 0,
            "IsLocked": false,
            "IsVerified": false,
            "KnowledgeNotificationsLastReadOn": "",
            "LastSeenOn": "",
            "Name": "",
            "Password": "",
            "PasswordSalt": "",
            "ReferralPath": "",
            "ReferredUsers": 0,
            "ReferrerKey": "",
            "Settings": json!({
                "AccountantEmail": "",
                "Address": "",
                "ApiKey": "",
                "ApiSecret": "",
                "BackgroundImage": "",
                "Bank": "",
                "BankAccount": "",
                "Cname": "",
                "CompanyRegistrationNumber": "",
                "Country": json!({
                    "Id": 0,
                    "Name": "",
                    "Value": ""
                }),
                "CountryId": 0,
                "Currency": json!({}),
                "CurrencyId": 0,
                "CurrencySymbol": "",
                "DefaultDateFormat": "",
                "DefaultDueDateInDays": 0,
                "DoNotTrack": false,
                "EnableClientPortal": false,
                "EnablePredictiveInvoicing": false,
                "EnableRecurringInvoicing": false,
                "HasInvoiceLogo": false,
                "Iban": "",
                "Id": 0,
                "InvoiceTemplate": "",
                "InvoiceTemplateColorHex": "",
                "PhoneNumber": "",
                "Profession": "",
                "ReceiveSmsNotifications": false,
                "ReferralProgram": "",
                "StoreCheckoutFields": "",
                "StoreColorHex": "",
                "StoreCurrency": json!({}),
                "StoreCurrencyId": 0,
                "StoreCustomJavaScript": "",
                "StoreDescription": "",
                "StoreEmail": "",
                "StoreLanguage": json!({
                    "Id": 0,
                    "Name": "",
                    "UiCulture": ""
                }),
                "StoreLanguageId": 0,
                "StoreName": "",
                "StorePurchaseEmailMessage": "",
                "StorePurchaseThankYouMessage": "",
                "StoreTextColorHex": "",
                "StoreUrl": "",
                "SubscribeToProductEmails": false,
                "Swift": "",
                "Terms": "",
                "UserId": 0,
                "UserSignature": "",
                "VatNumber": "",
                "YearsOfExperience": 0
            }),
            "Status": "",
            "SubscriptionPlan": json!({
                "CancellatedOn": "",
                "CouponCode": "",
                "CurrencyCode": "",
                "ExternalIdentifier": "",
                "Features": (),
                "HasDuePayment": false,
                "HasDuePaymentSince": "",
                "Id": 0,
                "Identifier": "",
                "IsActive": false,
                "IsLifetime": false,
                "LastPaymentOn": "",
                "MaxClients": 0,
                "Name": "",
                "OnHold": false,
                "OrderIdentifier": "",
                "Price": "",
                "Recurrence": "",
                "SaleId": 0,
                "Status": "",
                "SystemCancelationReason": "",
                "TrialEndsOn": "",
                "TrialNumberOfDays": 0,
                "TrialStartsOn": "",
                "UserId": 0,
                "Version": 0
            }),
            "Type": "",
            "Username": "",
            "VerifiedOn": "",
            "YearsOfExperience": ""
        }),
        "UserId": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/paymentlink/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}'
echo '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}' |  \
  http POST {{baseUrl}}/api/paymentlink/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AccessToken": "",\n  "Client": {\n    "Address": "",\n    "ClientCountryId": 0,\n    "ClientCurrencyId": 0,\n    "CompanyRegistrationNumber": "",\n    "DefaultDueDateInDays": 0,\n    "Email": "",\n    "Id": 0,\n    "Name": "",\n    "PhoneNumber": "",\n    "UiLanguageId": 0,\n    "UserId": 0,\n    "Vat": ""\n  },\n  "ClientId": 0,\n  "Currency": {\n    "Code": "",\n    "Id": 0,\n    "Name": "",\n    "Symbol": "",\n    "Value": ""\n  },\n  "CurrencyId": 0,\n  "DiscountAmount": "",\n  "Id": 0,\n  "Invoice": {\n    "AccessToken": "",\n    "Activities": [\n      {\n        "EstimationId": 0,\n        "EstimationNumber": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "InvoiceNumber": "",\n        "Link": "",\n        "Message": "",\n        "OrderId": 0,\n        "OrderNumber": "",\n        "Type": "",\n        "UserId": 0\n      }\n    ],\n    "Attachments": [\n      {\n        "Id": 0,\n        "InvoiceId": 0,\n        "Link": "",\n        "ObfuscatedFileName": "",\n        "OriginalFileName": "",\n        "Size": 0,\n        "Type": ""\n      }\n    ],\n    "ClientId": 0,\n    "ClonedFromId": 0,\n    "CurrencyId": 0,\n    "DiscountAmount": "",\n    "Duedate": "",\n    "EnablePartialPayments": false,\n    "EstimationId": 0,\n    "Id": 0,\n    "InvoiceCategoryId": 0,\n    "IsDigitallySigned": false,\n    "IssuedOn": "",\n    "Items": [\n      {\n        "Cost": "",\n        "Description": "",\n        "DiscountAmount": "",\n        "DiscountPercentage": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "Quantity": "",\n        "SubTotalAmount": "",\n        "TaxAmount": "",\n        "TaxId": 0,\n        "TaxPercentage": "",\n        "TotalAmount": "",\n        "WorkTypeId": 0\n      }\n    ],\n    "Notes": "",\n    "Number": "",\n    "OrderId": 0,\n    "PaymentGateways": [\n      {\n        "Id": 0,\n        "Name": ""\n      }\n    ],\n    "PaymentLinkId": 0,\n    "Payments": [\n      {\n        "Amount": "",\n        "Id": 0,\n        "Invoice": "",\n        "InvoiceId": 0,\n        "IsAutomatic": false,\n        "Note": "",\n        "PaidOn": "",\n        "ReferenceId": "",\n        "Type": ""\n      }\n    ],\n    "PoNumber": "",\n    "RecurringProfileId": 0,\n    "ShouldSendReminders": false,\n    "Status": "",\n    "SubTotalAmount": "",\n    "TaxAmount": "",\n    "Terms": "",\n    "TotalAmount": "",\n    "UserId": 0\n  },\n  "Items": [\n    {\n      "Cost": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "PaymentLinkId": 0,\n      "Quantity": "",\n      "SubTotalAmount": "",\n      "Tax": {\n        "Id": 0,\n        "Name": "",\n        "Percentage": "",\n        "UserId": 0\n      },\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkType": {\n        "Id": 0,\n        "Title": "",\n        "UserId": 0\n      },\n      "WorkTypeId": 0\n    }\n  ],\n  "Number": "",\n  "SubTotalAmount": "",\n  "TaxAmount": "",\n  "TotalAmount": "",\n  "User": {\n    "ActionNotificationsLastReadOn": "",\n    "Email": "",\n    "ExternalConnections": [\n      {\n        "AccessToken": "",\n        "AccessTokenSecret": "",\n        "Data": "",\n        "ExpiresOn": "",\n        "ExternalUserId": "",\n        "ExternalUsername": "",\n        "Id": 0,\n        "Provider": "",\n        "UserId": 0\n      }\n    ],\n    "HasBeenOnboarded": false,\n    "Id": 0,\n    "IsLocked": false,\n    "IsVerified": false,\n    "KnowledgeNotificationsLastReadOn": "",\n    "LastSeenOn": "",\n    "Name": "",\n    "Password": "",\n    "PasswordSalt": "",\n    "ReferralPath": "",\n    "ReferredUsers": 0,\n    "ReferrerKey": "",\n    "Settings": {\n      "AccountantEmail": "",\n      "Address": "",\n      "ApiKey": "",\n      "ApiSecret": "",\n      "BackgroundImage": "",\n      "Bank": "",\n      "BankAccount": "",\n      "Cname": "",\n      "CompanyRegistrationNumber": "",\n      "Country": {\n        "Id": 0,\n        "Name": "",\n        "Value": ""\n      },\n      "CountryId": 0,\n      "Currency": {},\n      "CurrencyId": 0,\n      "CurrencySymbol": "",\n      "DefaultDateFormat": "",\n      "DefaultDueDateInDays": 0,\n      "DoNotTrack": false,\n      "EnableClientPortal": false,\n      "EnablePredictiveInvoicing": false,\n      "EnableRecurringInvoicing": false,\n      "HasInvoiceLogo": false,\n      "Iban": "",\n      "Id": 0,\n      "InvoiceTemplate": "",\n      "InvoiceTemplateColorHex": "",\n      "PhoneNumber": "",\n      "Profession": "",\n      "ReceiveSmsNotifications": false,\n      "ReferralProgram": "",\n      "StoreCheckoutFields": "",\n      "StoreColorHex": "",\n      "StoreCurrency": {},\n      "StoreCurrencyId": 0,\n      "StoreCustomJavaScript": "",\n      "StoreDescription": "",\n      "StoreEmail": "",\n      "StoreLanguage": {\n        "Id": 0,\n        "Name": "",\n        "UiCulture": ""\n      },\n      "StoreLanguageId": 0,\n      "StoreName": "",\n      "StorePurchaseEmailMessage": "",\n      "StorePurchaseThankYouMessage": "",\n      "StoreTextColorHex": "",\n      "StoreUrl": "",\n      "SubscribeToProductEmails": false,\n      "Swift": "",\n      "Terms": "",\n      "UserId": 0,\n      "UserSignature": "",\n      "VatNumber": "",\n      "YearsOfExperience": 0\n    },\n    "Status": "",\n    "SubscriptionPlan": {\n      "CancellatedOn": "",\n      "CouponCode": "",\n      "CurrencyCode": "",\n      "ExternalIdentifier": "",\n      "Features": [],\n      "HasDuePayment": false,\n      "HasDuePaymentSince": "",\n      "Id": 0,\n      "Identifier": "",\n      "IsActive": false,\n      "IsLifetime": false,\n      "LastPaymentOn": "",\n      "MaxClients": 0,\n      "Name": "",\n      "OnHold": false,\n      "OrderIdentifier": "",\n      "Price": "",\n      "Recurrence": "",\n      "SaleId": 0,\n      "Status": "",\n      "SystemCancelationReason": "",\n      "TrialEndsOn": "",\n      "TrialNumberOfDays": 0,\n      "TrialStartsOn": "",\n      "UserId": 0,\n      "Version": 0\n    },\n    "Type": "",\n    "Username": "",\n    "VerifiedOn": "",\n    "YearsOfExperience": ""\n  },\n  "UserId": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/paymentlink/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AccessToken": "",
  "Client": [
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  ],
  "ClientId": 0,
  "Currency": [
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  ],
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": [
    "AccessToken": "",
    "Activities": [
      [
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      ]
    ],
    "Attachments": [
      [
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      ]
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      [
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      ]
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      [
        "Id": 0,
        "Name": ""
      ]
    ],
    "PaymentLinkId": 0,
    "Payments": [
      [
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      ]
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  ],
  "Items": [
    [
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": [
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      ],
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": [
        "Id": 0,
        "Title": "",
        "UserId": 0
      ],
      "WorkTypeId": 0
    ]
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": [
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      [
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      ]
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": [
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": [
        "Id": 0,
        "Name": "",
        "Value": ""
      ],
      "CountryId": 0,
      "Currency": [],
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": [],
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": [
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      ],
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    ],
    "Status": "",
    "SubscriptionPlan": [
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    ],
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  ],
  "UserId": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/paymentlink/new")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/paymentlink/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/paymentlink/all" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/paymentlink/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/paymentlink/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/paymentlink/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/paymentlink/all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/paymentlink/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/paymentlink/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/paymentlink/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/paymentlink/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/paymentlink/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/paymentlink/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/paymentlink/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/paymentlink/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/paymentlink/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/paymentlink/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/paymentlink/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/paymentlink/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/paymentlink/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/paymentlink/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/paymentlink/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/paymentlink/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/paymentlink/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/paymentlink/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/paymentlink/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/paymentlink/all');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/paymentlink/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/paymentlink/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/paymentlink/all' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/paymentlink/all", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/paymentlink/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/paymentlink/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/paymentlink/all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/paymentlink/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/paymentlink/all";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/paymentlink/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/paymentlink/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/paymentlink/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/paymentlink/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/paymentlink/delete");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/paymentlink/delete" {:headers {:x-auth-key ""
                                                                             :x-auth-secret ""}
                                                                   :content-type :json
                                                                   :form-params {:AccessToken ""
                                                                                 :Client {:Address ""
                                                                                          :ClientCountryId 0
                                                                                          :ClientCurrencyId 0
                                                                                          :CompanyRegistrationNumber ""
                                                                                          :DefaultDueDateInDays 0
                                                                                          :Email ""
                                                                                          :Id 0
                                                                                          :Name ""
                                                                                          :PhoneNumber ""
                                                                                          :UiLanguageId 0
                                                                                          :UserId 0
                                                                                          :Vat ""}
                                                                                 :ClientId 0
                                                                                 :Currency {:Code ""
                                                                                            :Id 0
                                                                                            :Name ""
                                                                                            :Symbol ""
                                                                                            :Value ""}
                                                                                 :CurrencyId 0
                                                                                 :DiscountAmount ""
                                                                                 :Id 0
                                                                                 :Invoice {:AccessToken ""
                                                                                           :Activities [{:EstimationId 0
                                                                                                         :EstimationNumber ""
                                                                                                         :Id 0
                                                                                                         :InvoiceId 0
                                                                                                         :InvoiceNumber ""
                                                                                                         :Link ""
                                                                                                         :Message ""
                                                                                                         :OrderId 0
                                                                                                         :OrderNumber ""
                                                                                                         :Type ""
                                                                                                         :UserId 0}]
                                                                                           :Attachments [{:Id 0
                                                                                                          :InvoiceId 0
                                                                                                          :Link ""
                                                                                                          :ObfuscatedFileName ""
                                                                                                          :OriginalFileName ""
                                                                                                          :Size 0
                                                                                                          :Type ""}]
                                                                                           :ClientId 0
                                                                                           :ClonedFromId 0
                                                                                           :CurrencyId 0
                                                                                           :DiscountAmount ""
                                                                                           :Duedate ""
                                                                                           :EnablePartialPayments false
                                                                                           :EstimationId 0
                                                                                           :Id 0
                                                                                           :InvoiceCategoryId 0
                                                                                           :IsDigitallySigned false
                                                                                           :IssuedOn ""
                                                                                           :Items [{:Cost ""
                                                                                                    :Description ""
                                                                                                    :DiscountAmount ""
                                                                                                    :DiscountPercentage ""
                                                                                                    :Id 0
                                                                                                    :InvoiceId 0
                                                                                                    :Quantity ""
                                                                                                    :SubTotalAmount ""
                                                                                                    :TaxAmount ""
                                                                                                    :TaxId 0
                                                                                                    :TaxPercentage ""
                                                                                                    :TotalAmount ""
                                                                                                    :WorkTypeId 0}]
                                                                                           :Notes ""
                                                                                           :Number ""
                                                                                           :OrderId 0
                                                                                           :PaymentGateways [{:Id 0
                                                                                                              :Name ""}]
                                                                                           :PaymentLinkId 0
                                                                                           :Payments [{:Amount ""
                                                                                                       :Id 0
                                                                                                       :Invoice ""
                                                                                                       :InvoiceId 0
                                                                                                       :IsAutomatic false
                                                                                                       :Note ""
                                                                                                       :PaidOn ""
                                                                                                       :ReferenceId ""
                                                                                                       :Type ""}]
                                                                                           :PoNumber ""
                                                                                           :RecurringProfileId 0
                                                                                           :ShouldSendReminders false
                                                                                           :Status ""
                                                                                           :SubTotalAmount ""
                                                                                           :TaxAmount ""
                                                                                           :Terms ""
                                                                                           :TotalAmount ""
                                                                                           :UserId 0}
                                                                                 :Items [{:Cost ""
                                                                                          :DiscountAmount ""
                                                                                          :DiscountPercentage ""
                                                                                          :Id 0
                                                                                          :PaymentLinkId 0
                                                                                          :Quantity ""
                                                                                          :SubTotalAmount ""
                                                                                          :Tax {:Id 0
                                                                                                :Name ""
                                                                                                :Percentage ""
                                                                                                :UserId 0}
                                                                                          :TaxAmount ""
                                                                                          :TaxId 0
                                                                                          :TaxPercentage ""
                                                                                          :TotalAmount ""
                                                                                          :WorkType {:Id 0
                                                                                                     :Title ""
                                                                                                     :UserId 0}
                                                                                          :WorkTypeId 0}]
                                                                                 :Number ""
                                                                                 :SubTotalAmount ""
                                                                                 :TaxAmount ""
                                                                                 :TotalAmount ""
                                                                                 :User {:ActionNotificationsLastReadOn ""
                                                                                        :Email ""
                                                                                        :ExternalConnections [{:AccessToken ""
                                                                                                               :AccessTokenSecret ""
                                                                                                               :Data ""
                                                                                                               :ExpiresOn ""
                                                                                                               :ExternalUserId ""
                                                                                                               :ExternalUsername ""
                                                                                                               :Id 0
                                                                                                               :Provider ""
                                                                                                               :UserId 0}]
                                                                                        :HasBeenOnboarded false
                                                                                        :Id 0
                                                                                        :IsLocked false
                                                                                        :IsVerified false
                                                                                        :KnowledgeNotificationsLastReadOn ""
                                                                                        :LastSeenOn ""
                                                                                        :Name ""
                                                                                        :Password ""
                                                                                        :PasswordSalt ""
                                                                                        :ReferralPath ""
                                                                                        :ReferredUsers 0
                                                                                        :ReferrerKey ""
                                                                                        :Settings {:AccountantEmail ""
                                                                                                   :Address ""
                                                                                                   :ApiKey ""
                                                                                                   :ApiSecret ""
                                                                                                   :BackgroundImage ""
                                                                                                   :Bank ""
                                                                                                   :BankAccount ""
                                                                                                   :Cname ""
                                                                                                   :CompanyRegistrationNumber ""
                                                                                                   :Country {:Id 0
                                                                                                             :Name ""
                                                                                                             :Value ""}
                                                                                                   :CountryId 0
                                                                                                   :Currency {}
                                                                                                   :CurrencyId 0
                                                                                                   :CurrencySymbol ""
                                                                                                   :DefaultDateFormat ""
                                                                                                   :DefaultDueDateInDays 0
                                                                                                   :DoNotTrack false
                                                                                                   :EnableClientPortal false
                                                                                                   :EnablePredictiveInvoicing false
                                                                                                   :EnableRecurringInvoicing false
                                                                                                   :HasInvoiceLogo false
                                                                                                   :Iban ""
                                                                                                   :Id 0
                                                                                                   :InvoiceTemplate ""
                                                                                                   :InvoiceTemplateColorHex ""
                                                                                                   :PhoneNumber ""
                                                                                                   :Profession ""
                                                                                                   :ReceiveSmsNotifications false
                                                                                                   :ReferralProgram ""
                                                                                                   :StoreCheckoutFields ""
                                                                                                   :StoreColorHex ""
                                                                                                   :StoreCurrency {}
                                                                                                   :StoreCurrencyId 0
                                                                                                   :StoreCustomJavaScript ""
                                                                                                   :StoreDescription ""
                                                                                                   :StoreEmail ""
                                                                                                   :StoreLanguage {:Id 0
                                                                                                                   :Name ""
                                                                                                                   :UiCulture ""}
                                                                                                   :StoreLanguageId 0
                                                                                                   :StoreName ""
                                                                                                   :StorePurchaseEmailMessage ""
                                                                                                   :StorePurchaseThankYouMessage ""
                                                                                                   :StoreTextColorHex ""
                                                                                                   :StoreUrl ""
                                                                                                   :SubscribeToProductEmails false
                                                                                                   :Swift ""
                                                                                                   :Terms ""
                                                                                                   :UserId 0
                                                                                                   :UserSignature ""
                                                                                                   :VatNumber ""
                                                                                                   :YearsOfExperience 0}
                                                                                        :Status ""
                                                                                        :SubscriptionPlan {:CancellatedOn ""
                                                                                                           :CouponCode ""
                                                                                                           :CurrencyCode ""
                                                                                                           :ExternalIdentifier ""
                                                                                                           :Features []
                                                                                                           :HasDuePayment false
                                                                                                           :HasDuePaymentSince ""
                                                                                                           :Id 0
                                                                                                           :Identifier ""
                                                                                                           :IsActive false
                                                                                                           :IsLifetime false
                                                                                                           :LastPaymentOn ""
                                                                                                           :MaxClients 0
                                                                                                           :Name ""
                                                                                                           :OnHold false
                                                                                                           :OrderIdentifier ""
                                                                                                           :Price ""
                                                                                                           :Recurrence ""
                                                                                                           :SaleId 0
                                                                                                           :Status ""
                                                                                                           :SystemCancelationReason ""
                                                                                                           :TrialEndsOn ""
                                                                                                           :TrialNumberOfDays 0
                                                                                                           :TrialStartsOn ""
                                                                                                           :UserId 0
                                                                                                           :Version 0}
                                                                                        :Type ""
                                                                                        :Username ""
                                                                                        :VerifiedOn ""
                                                                                        :YearsOfExperience ""}
                                                                                 :UserId 0}})
require "http/client"

url = "{{baseUrl}}/api/paymentlink/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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}}/api/paymentlink/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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}}/api/paymentlink/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/paymentlink/delete"

	payload := strings.NewReader("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/paymentlink/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 5844

{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/paymentlink/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/paymentlink/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/paymentlink/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/paymentlink/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")
  .asString();
const data = JSON.stringify({
  AccessToken: '',
  Client: {
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    UserId: 0,
    Vat: ''
  },
  ClientId: 0,
  Currency: {
    Code: '',
    Id: 0,
    Name: '',
    Symbol: '',
    Value: ''
  },
  CurrencyId: 0,
  DiscountAmount: '',
  Id: 0,
  Invoice: {
    AccessToken: '',
    Activities: [
      {
        EstimationId: 0,
        EstimationNumber: '',
        Id: 0,
        InvoiceId: 0,
        InvoiceNumber: '',
        Link: '',
        Message: '',
        OrderId: 0,
        OrderNumber: '',
        Type: '',
        UserId: 0
      }
    ],
    Attachments: [
      {
        Id: 0,
        InvoiceId: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    DiscountAmount: '',
    Duedate: '',
    EnablePartialPayments: false,
    EstimationId: 0,
    Id: 0,
    InvoiceCategoryId: 0,
    IsDigitallySigned: false,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        InvoiceId: 0,
        Quantity: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    OrderId: 0,
    PaymentGateways: [
      {
        Id: 0,
        Name: ''
      }
    ],
    PaymentLinkId: 0,
    Payments: [
      {
        Amount: '',
        Id: 0,
        Invoice: '',
        InvoiceId: 0,
        IsAutomatic: false,
        Note: '',
        PaidOn: '',
        ReferenceId: '',
        Type: ''
      }
    ],
    PoNumber: '',
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    Terms: '',
    TotalAmount: '',
    UserId: 0
  },
  Items: [
    {
      Cost: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      PaymentLinkId: 0,
      Quantity: '',
      SubTotalAmount: '',
      Tax: {
        Id: 0,
        Name: '',
        Percentage: '',
        UserId: 0
      },
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkType: {
        Id: 0,
        Title: '',
        UserId: 0
      },
      WorkTypeId: 0
    }
  ],
  Number: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  User: {
    ActionNotificationsLastReadOn: '',
    Email: '',
    ExternalConnections: [
      {
        AccessToken: '',
        AccessTokenSecret: '',
        Data: '',
        ExpiresOn: '',
        ExternalUserId: '',
        ExternalUsername: '',
        Id: 0,
        Provider: '',
        UserId: 0
      }
    ],
    HasBeenOnboarded: false,
    Id: 0,
    IsLocked: false,
    IsVerified: false,
    KnowledgeNotificationsLastReadOn: '',
    LastSeenOn: '',
    Name: '',
    Password: '',
    PasswordSalt: '',
    ReferralPath: '',
    ReferredUsers: 0,
    ReferrerKey: '',
    Settings: {
      AccountantEmail: '',
      Address: '',
      ApiKey: '',
      ApiSecret: '',
      BackgroundImage: '',
      Bank: '',
      BankAccount: '',
      Cname: '',
      CompanyRegistrationNumber: '',
      Country: {
        Id: 0,
        Name: '',
        Value: ''
      },
      CountryId: 0,
      Currency: {},
      CurrencyId: 0,
      CurrencySymbol: '',
      DefaultDateFormat: '',
      DefaultDueDateInDays: 0,
      DoNotTrack: false,
      EnableClientPortal: false,
      EnablePredictiveInvoicing: false,
      EnableRecurringInvoicing: false,
      HasInvoiceLogo: false,
      Iban: '',
      Id: 0,
      InvoiceTemplate: '',
      InvoiceTemplateColorHex: '',
      PhoneNumber: '',
      Profession: '',
      ReceiveSmsNotifications: false,
      ReferralProgram: '',
      StoreCheckoutFields: '',
      StoreColorHex: '',
      StoreCurrency: {},
      StoreCurrencyId: 0,
      StoreCustomJavaScript: '',
      StoreDescription: '',
      StoreEmail: '',
      StoreLanguage: {
        Id: 0,
        Name: '',
        UiCulture: ''
      },
      StoreLanguageId: 0,
      StoreName: '',
      StorePurchaseEmailMessage: '',
      StorePurchaseThankYouMessage: '',
      StoreTextColorHex: '',
      StoreUrl: '',
      SubscribeToProductEmails: false,
      Swift: '',
      Terms: '',
      UserId: 0,
      UserSignature: '',
      VatNumber: '',
      YearsOfExperience: 0
    },
    Status: '',
    SubscriptionPlan: {
      CancellatedOn: '',
      CouponCode: '',
      CurrencyCode: '',
      ExternalIdentifier: '',
      Features: [],
      HasDuePayment: false,
      HasDuePaymentSince: '',
      Id: 0,
      Identifier: '',
      IsActive: false,
      IsLifetime: false,
      LastPaymentOn: '',
      MaxClients: 0,
      Name: '',
      OnHold: false,
      OrderIdentifier: '',
      Price: '',
      Recurrence: '',
      SaleId: 0,
      Status: '',
      SystemCancelationReason: '',
      TrialEndsOn: '',
      TrialNumberOfDays: 0,
      TrialStartsOn: '',
      UserId: 0,
      Version: 0
    },
    Type: '',
    Username: '',
    VerifiedOn: '',
    YearsOfExperience: ''
  },
  UserId: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/paymentlink/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/paymentlink/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AccessToken: '',
    Client: {
      Address: '',
      ClientCountryId: 0,
      ClientCurrencyId: 0,
      CompanyRegistrationNumber: '',
      DefaultDueDateInDays: 0,
      Email: '',
      Id: 0,
      Name: '',
      PhoneNumber: '',
      UiLanguageId: 0,
      UserId: 0,
      Vat: ''
    },
    ClientId: 0,
    Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
    CurrencyId: 0,
    DiscountAmount: '',
    Id: 0,
    Invoice: {
      AccessToken: '',
      Activities: [
        {
          EstimationId: 0,
          EstimationNumber: '',
          Id: 0,
          InvoiceId: 0,
          InvoiceNumber: '',
          Link: '',
          Message: '',
          OrderId: 0,
          OrderNumber: '',
          Type: '',
          UserId: 0
        }
      ],
      Attachments: [
        {
          Id: 0,
          InvoiceId: 0,
          Link: '',
          ObfuscatedFileName: '',
          OriginalFileName: '',
          Size: 0,
          Type: ''
        }
      ],
      ClientId: 0,
      ClonedFromId: 0,
      CurrencyId: 0,
      DiscountAmount: '',
      Duedate: '',
      EnablePartialPayments: false,
      EstimationId: 0,
      Id: 0,
      InvoiceCategoryId: 0,
      IsDigitallySigned: false,
      IssuedOn: '',
      Items: [
        {
          Cost: '',
          Description: '',
          DiscountAmount: '',
          DiscountPercentage: '',
          Id: 0,
          InvoiceId: 0,
          Quantity: '',
          SubTotalAmount: '',
          TaxAmount: '',
          TaxId: 0,
          TaxPercentage: '',
          TotalAmount: '',
          WorkTypeId: 0
        }
      ],
      Notes: '',
      Number: '',
      OrderId: 0,
      PaymentGateways: [{Id: 0, Name: ''}],
      PaymentLinkId: 0,
      Payments: [
        {
          Amount: '',
          Id: 0,
          Invoice: '',
          InvoiceId: 0,
          IsAutomatic: false,
          Note: '',
          PaidOn: '',
          ReferenceId: '',
          Type: ''
        }
      ],
      PoNumber: '',
      RecurringProfileId: 0,
      ShouldSendReminders: false,
      Status: '',
      SubTotalAmount: '',
      TaxAmount: '',
      Terms: '',
      TotalAmount: '',
      UserId: 0
    },
    Items: [
      {
        Cost: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        PaymentLinkId: 0,
        Quantity: '',
        SubTotalAmount: '',
        Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkType: {Id: 0, Title: '', UserId: 0},
        WorkTypeId: 0
      }
    ],
    Number: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    User: {
      ActionNotificationsLastReadOn: '',
      Email: '',
      ExternalConnections: [
        {
          AccessToken: '',
          AccessTokenSecret: '',
          Data: '',
          ExpiresOn: '',
          ExternalUserId: '',
          ExternalUsername: '',
          Id: 0,
          Provider: '',
          UserId: 0
        }
      ],
      HasBeenOnboarded: false,
      Id: 0,
      IsLocked: false,
      IsVerified: false,
      KnowledgeNotificationsLastReadOn: '',
      LastSeenOn: '',
      Name: '',
      Password: '',
      PasswordSalt: '',
      ReferralPath: '',
      ReferredUsers: 0,
      ReferrerKey: '',
      Settings: {
        AccountantEmail: '',
        Address: '',
        ApiKey: '',
        ApiSecret: '',
        BackgroundImage: '',
        Bank: '',
        BankAccount: '',
        Cname: '',
        CompanyRegistrationNumber: '',
        Country: {Id: 0, Name: '', Value: ''},
        CountryId: 0,
        Currency: {},
        CurrencyId: 0,
        CurrencySymbol: '',
        DefaultDateFormat: '',
        DefaultDueDateInDays: 0,
        DoNotTrack: false,
        EnableClientPortal: false,
        EnablePredictiveInvoicing: false,
        EnableRecurringInvoicing: false,
        HasInvoiceLogo: false,
        Iban: '',
        Id: 0,
        InvoiceTemplate: '',
        InvoiceTemplateColorHex: '',
        PhoneNumber: '',
        Profession: '',
        ReceiveSmsNotifications: false,
        ReferralProgram: '',
        StoreCheckoutFields: '',
        StoreColorHex: '',
        StoreCurrency: {},
        StoreCurrencyId: 0,
        StoreCustomJavaScript: '',
        StoreDescription: '',
        StoreEmail: '',
        StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
        StoreLanguageId: 0,
        StoreName: '',
        StorePurchaseEmailMessage: '',
        StorePurchaseThankYouMessage: '',
        StoreTextColorHex: '',
        StoreUrl: '',
        SubscribeToProductEmails: false,
        Swift: '',
        Terms: '',
        UserId: 0,
        UserSignature: '',
        VatNumber: '',
        YearsOfExperience: 0
      },
      Status: '',
      SubscriptionPlan: {
        CancellatedOn: '',
        CouponCode: '',
        CurrencyCode: '',
        ExternalIdentifier: '',
        Features: [],
        HasDuePayment: false,
        HasDuePaymentSince: '',
        Id: 0,
        Identifier: '',
        IsActive: false,
        IsLifetime: false,
        LastPaymentOn: '',
        MaxClients: 0,
        Name: '',
        OnHold: false,
        OrderIdentifier: '',
        Price: '',
        Recurrence: '',
        SaleId: 0,
        Status: '',
        SystemCancelationReason: '',
        TrialEndsOn: '',
        TrialNumberOfDays: 0,
        TrialStartsOn: '',
        UserId: 0,
        Version: 0
      },
      Type: '',
      Username: '',
      VerifiedOn: '',
      YearsOfExperience: ''
    },
    UserId: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/paymentlink/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AccessToken":"","Client":{"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Id":0,"Name":"","PhoneNumber":"","UiLanguageId":0,"UserId":0,"Vat":""},"ClientId":0,"Currency":{"Code":"","Id":0,"Name":"","Symbol":"","Value":""},"CurrencyId":0,"DiscountAmount":"","Id":0,"Invoice":{"AccessToken":"","Activities":[{"EstimationId":0,"EstimationNumber":"","Id":0,"InvoiceId":0,"InvoiceNumber":"","Link":"","Message":"","OrderId":0,"OrderNumber":"","Type":"","UserId":0}],"Attachments":[{"Id":0,"InvoiceId":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"DiscountAmount":"","Duedate":"","EnablePartialPayments":false,"EstimationId":0,"Id":0,"InvoiceCategoryId":0,"IsDigitallySigned":false,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"InvoiceId":0,"Quantity":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Notes":"","Number":"","OrderId":0,"PaymentGateways":[{"Id":0,"Name":""}],"PaymentLinkId":0,"Payments":[{"Amount":"","Id":0,"Invoice":"","InvoiceId":0,"IsAutomatic":false,"Note":"","PaidOn":"","ReferenceId":"","Type":""}],"PoNumber":"","RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","SubTotalAmount":"","TaxAmount":"","Terms":"","TotalAmount":"","UserId":0},"Items":[{"Cost":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"PaymentLinkId":0,"Quantity":"","SubTotalAmount":"","Tax":{"Id":0,"Name":"","Percentage":"","UserId":0},"TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkType":{"Id":0,"Title":"","UserId":0},"WorkTypeId":0}],"Number":"","SubTotalAmount":"","TaxAmount":"","TotalAmount":"","User":{"ActionNotificationsLastReadOn":"","Email":"","ExternalConnections":[{"AccessToken":"","AccessTokenSecret":"","Data":"","ExpiresOn":"","ExternalUserId":"","ExternalUsername":"","Id":0,"Provider":"","UserId":0}],"HasBeenOnboarded":false,"Id":0,"IsLocked":false,"IsVerified":false,"KnowledgeNotificationsLastReadOn":"","LastSeenOn":"","Name":"","Password":"","PasswordSalt":"","ReferralPath":"","ReferredUsers":0,"ReferrerKey":"","Settings":{"AccountantEmail":"","Address":"","ApiKey":"","ApiSecret":"","BackgroundImage":"","Bank":"","BankAccount":"","Cname":"","CompanyRegistrationNumber":"","Country":{"Id":0,"Name":"","Value":""},"CountryId":0,"Currency":{},"CurrencyId":0,"CurrencySymbol":"","DefaultDateFormat":"","DefaultDueDateInDays":0,"DoNotTrack":false,"EnableClientPortal":false,"EnablePredictiveInvoicing":false,"EnableRecurringInvoicing":false,"HasInvoiceLogo":false,"Iban":"","Id":0,"InvoiceTemplate":"","InvoiceTemplateColorHex":"","PhoneNumber":"","Profession":"","ReceiveSmsNotifications":false,"ReferralProgram":"","StoreCheckoutFields":"","StoreColorHex":"","StoreCurrency":{},"StoreCurrencyId":0,"StoreCustomJavaScript":"","StoreDescription":"","StoreEmail":"","StoreLanguage":{"Id":0,"Name":"","UiCulture":""},"StoreLanguageId":0,"StoreName":"","StorePurchaseEmailMessage":"","StorePurchaseThankYouMessage":"","StoreTextColorHex":"","StoreUrl":"","SubscribeToProductEmails":false,"Swift":"","Terms":"","UserId":0,"UserSignature":"","VatNumber":"","YearsOfExperience":0},"Status":"","SubscriptionPlan":{"CancellatedOn":"","CouponCode":"","CurrencyCode":"","ExternalIdentifier":"","Features":[],"HasDuePayment":false,"HasDuePaymentSince":"","Id":0,"Identifier":"","IsActive":false,"IsLifetime":false,"LastPaymentOn":"","MaxClients":0,"Name":"","OnHold":false,"OrderIdentifier":"","Price":"","Recurrence":"","SaleId":0,"Status":"","SystemCancelationReason":"","TrialEndsOn":"","TrialNumberOfDays":0,"TrialStartsOn":"","UserId":0,"Version":0},"Type":"","Username":"","VerifiedOn":"","YearsOfExperience":""},"UserId":0}'
};

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}}/api/paymentlink/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AccessToken": "",\n  "Client": {\n    "Address": "",\n    "ClientCountryId": 0,\n    "ClientCurrencyId": 0,\n    "CompanyRegistrationNumber": "",\n    "DefaultDueDateInDays": 0,\n    "Email": "",\n    "Id": 0,\n    "Name": "",\n    "PhoneNumber": "",\n    "UiLanguageId": 0,\n    "UserId": 0,\n    "Vat": ""\n  },\n  "ClientId": 0,\n  "Currency": {\n    "Code": "",\n    "Id": 0,\n    "Name": "",\n    "Symbol": "",\n    "Value": ""\n  },\n  "CurrencyId": 0,\n  "DiscountAmount": "",\n  "Id": 0,\n  "Invoice": {\n    "AccessToken": "",\n    "Activities": [\n      {\n        "EstimationId": 0,\n        "EstimationNumber": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "InvoiceNumber": "",\n        "Link": "",\n        "Message": "",\n        "OrderId": 0,\n        "OrderNumber": "",\n        "Type": "",\n        "UserId": 0\n      }\n    ],\n    "Attachments": [\n      {\n        "Id": 0,\n        "InvoiceId": 0,\n        "Link": "",\n        "ObfuscatedFileName": "",\n        "OriginalFileName": "",\n        "Size": 0,\n        "Type": ""\n      }\n    ],\n    "ClientId": 0,\n    "ClonedFromId": 0,\n    "CurrencyId": 0,\n    "DiscountAmount": "",\n    "Duedate": "",\n    "EnablePartialPayments": false,\n    "EstimationId": 0,\n    "Id": 0,\n    "InvoiceCategoryId": 0,\n    "IsDigitallySigned": false,\n    "IssuedOn": "",\n    "Items": [\n      {\n        "Cost": "",\n        "Description": "",\n        "DiscountAmount": "",\n        "DiscountPercentage": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "Quantity": "",\n        "SubTotalAmount": "",\n        "TaxAmount": "",\n        "TaxId": 0,\n        "TaxPercentage": "",\n        "TotalAmount": "",\n        "WorkTypeId": 0\n      }\n    ],\n    "Notes": "",\n    "Number": "",\n    "OrderId": 0,\n    "PaymentGateways": [\n      {\n        "Id": 0,\n        "Name": ""\n      }\n    ],\n    "PaymentLinkId": 0,\n    "Payments": [\n      {\n        "Amount": "",\n        "Id": 0,\n        "Invoice": "",\n        "InvoiceId": 0,\n        "IsAutomatic": false,\n        "Note": "",\n        "PaidOn": "",\n        "ReferenceId": "",\n        "Type": ""\n      }\n    ],\n    "PoNumber": "",\n    "RecurringProfileId": 0,\n    "ShouldSendReminders": false,\n    "Status": "",\n    "SubTotalAmount": "",\n    "TaxAmount": "",\n    "Terms": "",\n    "TotalAmount": "",\n    "UserId": 0\n  },\n  "Items": [\n    {\n      "Cost": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "PaymentLinkId": 0,\n      "Quantity": "",\n      "SubTotalAmount": "",\n      "Tax": {\n        "Id": 0,\n        "Name": "",\n        "Percentage": "",\n        "UserId": 0\n      },\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkType": {\n        "Id": 0,\n        "Title": "",\n        "UserId": 0\n      },\n      "WorkTypeId": 0\n    }\n  ],\n  "Number": "",\n  "SubTotalAmount": "",\n  "TaxAmount": "",\n  "TotalAmount": "",\n  "User": {\n    "ActionNotificationsLastReadOn": "",\n    "Email": "",\n    "ExternalConnections": [\n      {\n        "AccessToken": "",\n        "AccessTokenSecret": "",\n        "Data": "",\n        "ExpiresOn": "",\n        "ExternalUserId": "",\n        "ExternalUsername": "",\n        "Id": 0,\n        "Provider": "",\n        "UserId": 0\n      }\n    ],\n    "HasBeenOnboarded": false,\n    "Id": 0,\n    "IsLocked": false,\n    "IsVerified": false,\n    "KnowledgeNotificationsLastReadOn": "",\n    "LastSeenOn": "",\n    "Name": "",\n    "Password": "",\n    "PasswordSalt": "",\n    "ReferralPath": "",\n    "ReferredUsers": 0,\n    "ReferrerKey": "",\n    "Settings": {\n      "AccountantEmail": "",\n      "Address": "",\n      "ApiKey": "",\n      "ApiSecret": "",\n      "BackgroundImage": "",\n      "Bank": "",\n      "BankAccount": "",\n      "Cname": "",\n      "CompanyRegistrationNumber": "",\n      "Country": {\n        "Id": 0,\n        "Name": "",\n        "Value": ""\n      },\n      "CountryId": 0,\n      "Currency": {},\n      "CurrencyId": 0,\n      "CurrencySymbol": "",\n      "DefaultDateFormat": "",\n      "DefaultDueDateInDays": 0,\n      "DoNotTrack": false,\n      "EnableClientPortal": false,\n      "EnablePredictiveInvoicing": false,\n      "EnableRecurringInvoicing": false,\n      "HasInvoiceLogo": false,\n      "Iban": "",\n      "Id": 0,\n      "InvoiceTemplate": "",\n      "InvoiceTemplateColorHex": "",\n      "PhoneNumber": "",\n      "Profession": "",\n      "ReceiveSmsNotifications": false,\n      "ReferralProgram": "",\n      "StoreCheckoutFields": "",\n      "StoreColorHex": "",\n      "StoreCurrency": {},\n      "StoreCurrencyId": 0,\n      "StoreCustomJavaScript": "",\n      "StoreDescription": "",\n      "StoreEmail": "",\n      "StoreLanguage": {\n        "Id": 0,\n        "Name": "",\n        "UiCulture": ""\n      },\n      "StoreLanguageId": 0,\n      "StoreName": "",\n      "StorePurchaseEmailMessage": "",\n      "StorePurchaseThankYouMessage": "",\n      "StoreTextColorHex": "",\n      "StoreUrl": "",\n      "SubscribeToProductEmails": false,\n      "Swift": "",\n      "Terms": "",\n      "UserId": 0,\n      "UserSignature": "",\n      "VatNumber": "",\n      "YearsOfExperience": 0\n    },\n    "Status": "",\n    "SubscriptionPlan": {\n      "CancellatedOn": "",\n      "CouponCode": "",\n      "CurrencyCode": "",\n      "ExternalIdentifier": "",\n      "Features": [],\n      "HasDuePayment": false,\n      "HasDuePaymentSince": "",\n      "Id": 0,\n      "Identifier": "",\n      "IsActive": false,\n      "IsLifetime": false,\n      "LastPaymentOn": "",\n      "MaxClients": 0,\n      "Name": "",\n      "OnHold": false,\n      "OrderIdentifier": "",\n      "Price": "",\n      "Recurrence": "",\n      "SaleId": 0,\n      "Status": "",\n      "SystemCancelationReason": "",\n      "TrialEndsOn": "",\n      "TrialNumberOfDays": 0,\n      "TrialStartsOn": "",\n      "UserId": 0,\n      "Version": 0\n    },\n    "Type": "",\n    "Username": "",\n    "VerifiedOn": "",\n    "YearsOfExperience": ""\n  },\n  "UserId": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/paymentlink/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/paymentlink/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AccessToken: '',
  Client: {
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    UserId: 0,
    Vat: ''
  },
  ClientId: 0,
  Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
  CurrencyId: 0,
  DiscountAmount: '',
  Id: 0,
  Invoice: {
    AccessToken: '',
    Activities: [
      {
        EstimationId: 0,
        EstimationNumber: '',
        Id: 0,
        InvoiceId: 0,
        InvoiceNumber: '',
        Link: '',
        Message: '',
        OrderId: 0,
        OrderNumber: '',
        Type: '',
        UserId: 0
      }
    ],
    Attachments: [
      {
        Id: 0,
        InvoiceId: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    DiscountAmount: '',
    Duedate: '',
    EnablePartialPayments: false,
    EstimationId: 0,
    Id: 0,
    InvoiceCategoryId: 0,
    IsDigitallySigned: false,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        InvoiceId: 0,
        Quantity: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    OrderId: 0,
    PaymentGateways: [{Id: 0, Name: ''}],
    PaymentLinkId: 0,
    Payments: [
      {
        Amount: '',
        Id: 0,
        Invoice: '',
        InvoiceId: 0,
        IsAutomatic: false,
        Note: '',
        PaidOn: '',
        ReferenceId: '',
        Type: ''
      }
    ],
    PoNumber: '',
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    Terms: '',
    TotalAmount: '',
    UserId: 0
  },
  Items: [
    {
      Cost: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      PaymentLinkId: 0,
      Quantity: '',
      SubTotalAmount: '',
      Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkType: {Id: 0, Title: '', UserId: 0},
      WorkTypeId: 0
    }
  ],
  Number: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  User: {
    ActionNotificationsLastReadOn: '',
    Email: '',
    ExternalConnections: [
      {
        AccessToken: '',
        AccessTokenSecret: '',
        Data: '',
        ExpiresOn: '',
        ExternalUserId: '',
        ExternalUsername: '',
        Id: 0,
        Provider: '',
        UserId: 0
      }
    ],
    HasBeenOnboarded: false,
    Id: 0,
    IsLocked: false,
    IsVerified: false,
    KnowledgeNotificationsLastReadOn: '',
    LastSeenOn: '',
    Name: '',
    Password: '',
    PasswordSalt: '',
    ReferralPath: '',
    ReferredUsers: 0,
    ReferrerKey: '',
    Settings: {
      AccountantEmail: '',
      Address: '',
      ApiKey: '',
      ApiSecret: '',
      BackgroundImage: '',
      Bank: '',
      BankAccount: '',
      Cname: '',
      CompanyRegistrationNumber: '',
      Country: {Id: 0, Name: '', Value: ''},
      CountryId: 0,
      Currency: {},
      CurrencyId: 0,
      CurrencySymbol: '',
      DefaultDateFormat: '',
      DefaultDueDateInDays: 0,
      DoNotTrack: false,
      EnableClientPortal: false,
      EnablePredictiveInvoicing: false,
      EnableRecurringInvoicing: false,
      HasInvoiceLogo: false,
      Iban: '',
      Id: 0,
      InvoiceTemplate: '',
      InvoiceTemplateColorHex: '',
      PhoneNumber: '',
      Profession: '',
      ReceiveSmsNotifications: false,
      ReferralProgram: '',
      StoreCheckoutFields: '',
      StoreColorHex: '',
      StoreCurrency: {},
      StoreCurrencyId: 0,
      StoreCustomJavaScript: '',
      StoreDescription: '',
      StoreEmail: '',
      StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
      StoreLanguageId: 0,
      StoreName: '',
      StorePurchaseEmailMessage: '',
      StorePurchaseThankYouMessage: '',
      StoreTextColorHex: '',
      StoreUrl: '',
      SubscribeToProductEmails: false,
      Swift: '',
      Terms: '',
      UserId: 0,
      UserSignature: '',
      VatNumber: '',
      YearsOfExperience: 0
    },
    Status: '',
    SubscriptionPlan: {
      CancellatedOn: '',
      CouponCode: '',
      CurrencyCode: '',
      ExternalIdentifier: '',
      Features: [],
      HasDuePayment: false,
      HasDuePaymentSince: '',
      Id: 0,
      Identifier: '',
      IsActive: false,
      IsLifetime: false,
      LastPaymentOn: '',
      MaxClients: 0,
      Name: '',
      OnHold: false,
      OrderIdentifier: '',
      Price: '',
      Recurrence: '',
      SaleId: 0,
      Status: '',
      SystemCancelationReason: '',
      TrialEndsOn: '',
      TrialNumberOfDays: 0,
      TrialStartsOn: '',
      UserId: 0,
      Version: 0
    },
    Type: '',
    Username: '',
    VerifiedOn: '',
    YearsOfExperience: ''
  },
  UserId: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/paymentlink/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AccessToken: '',
    Client: {
      Address: '',
      ClientCountryId: 0,
      ClientCurrencyId: 0,
      CompanyRegistrationNumber: '',
      DefaultDueDateInDays: 0,
      Email: '',
      Id: 0,
      Name: '',
      PhoneNumber: '',
      UiLanguageId: 0,
      UserId: 0,
      Vat: ''
    },
    ClientId: 0,
    Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
    CurrencyId: 0,
    DiscountAmount: '',
    Id: 0,
    Invoice: {
      AccessToken: '',
      Activities: [
        {
          EstimationId: 0,
          EstimationNumber: '',
          Id: 0,
          InvoiceId: 0,
          InvoiceNumber: '',
          Link: '',
          Message: '',
          OrderId: 0,
          OrderNumber: '',
          Type: '',
          UserId: 0
        }
      ],
      Attachments: [
        {
          Id: 0,
          InvoiceId: 0,
          Link: '',
          ObfuscatedFileName: '',
          OriginalFileName: '',
          Size: 0,
          Type: ''
        }
      ],
      ClientId: 0,
      ClonedFromId: 0,
      CurrencyId: 0,
      DiscountAmount: '',
      Duedate: '',
      EnablePartialPayments: false,
      EstimationId: 0,
      Id: 0,
      InvoiceCategoryId: 0,
      IsDigitallySigned: false,
      IssuedOn: '',
      Items: [
        {
          Cost: '',
          Description: '',
          DiscountAmount: '',
          DiscountPercentage: '',
          Id: 0,
          InvoiceId: 0,
          Quantity: '',
          SubTotalAmount: '',
          TaxAmount: '',
          TaxId: 0,
          TaxPercentage: '',
          TotalAmount: '',
          WorkTypeId: 0
        }
      ],
      Notes: '',
      Number: '',
      OrderId: 0,
      PaymentGateways: [{Id: 0, Name: ''}],
      PaymentLinkId: 0,
      Payments: [
        {
          Amount: '',
          Id: 0,
          Invoice: '',
          InvoiceId: 0,
          IsAutomatic: false,
          Note: '',
          PaidOn: '',
          ReferenceId: '',
          Type: ''
        }
      ],
      PoNumber: '',
      RecurringProfileId: 0,
      ShouldSendReminders: false,
      Status: '',
      SubTotalAmount: '',
      TaxAmount: '',
      Terms: '',
      TotalAmount: '',
      UserId: 0
    },
    Items: [
      {
        Cost: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        PaymentLinkId: 0,
        Quantity: '',
        SubTotalAmount: '',
        Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkType: {Id: 0, Title: '', UserId: 0},
        WorkTypeId: 0
      }
    ],
    Number: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    User: {
      ActionNotificationsLastReadOn: '',
      Email: '',
      ExternalConnections: [
        {
          AccessToken: '',
          AccessTokenSecret: '',
          Data: '',
          ExpiresOn: '',
          ExternalUserId: '',
          ExternalUsername: '',
          Id: 0,
          Provider: '',
          UserId: 0
        }
      ],
      HasBeenOnboarded: false,
      Id: 0,
      IsLocked: false,
      IsVerified: false,
      KnowledgeNotificationsLastReadOn: '',
      LastSeenOn: '',
      Name: '',
      Password: '',
      PasswordSalt: '',
      ReferralPath: '',
      ReferredUsers: 0,
      ReferrerKey: '',
      Settings: {
        AccountantEmail: '',
        Address: '',
        ApiKey: '',
        ApiSecret: '',
        BackgroundImage: '',
        Bank: '',
        BankAccount: '',
        Cname: '',
        CompanyRegistrationNumber: '',
        Country: {Id: 0, Name: '', Value: ''},
        CountryId: 0,
        Currency: {},
        CurrencyId: 0,
        CurrencySymbol: '',
        DefaultDateFormat: '',
        DefaultDueDateInDays: 0,
        DoNotTrack: false,
        EnableClientPortal: false,
        EnablePredictiveInvoicing: false,
        EnableRecurringInvoicing: false,
        HasInvoiceLogo: false,
        Iban: '',
        Id: 0,
        InvoiceTemplate: '',
        InvoiceTemplateColorHex: '',
        PhoneNumber: '',
        Profession: '',
        ReceiveSmsNotifications: false,
        ReferralProgram: '',
        StoreCheckoutFields: '',
        StoreColorHex: '',
        StoreCurrency: {},
        StoreCurrencyId: 0,
        StoreCustomJavaScript: '',
        StoreDescription: '',
        StoreEmail: '',
        StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
        StoreLanguageId: 0,
        StoreName: '',
        StorePurchaseEmailMessage: '',
        StorePurchaseThankYouMessage: '',
        StoreTextColorHex: '',
        StoreUrl: '',
        SubscribeToProductEmails: false,
        Swift: '',
        Terms: '',
        UserId: 0,
        UserSignature: '',
        VatNumber: '',
        YearsOfExperience: 0
      },
      Status: '',
      SubscriptionPlan: {
        CancellatedOn: '',
        CouponCode: '',
        CurrencyCode: '',
        ExternalIdentifier: '',
        Features: [],
        HasDuePayment: false,
        HasDuePaymentSince: '',
        Id: 0,
        Identifier: '',
        IsActive: false,
        IsLifetime: false,
        LastPaymentOn: '',
        MaxClients: 0,
        Name: '',
        OnHold: false,
        OrderIdentifier: '',
        Price: '',
        Recurrence: '',
        SaleId: 0,
        Status: '',
        SystemCancelationReason: '',
        TrialEndsOn: '',
        TrialNumberOfDays: 0,
        TrialStartsOn: '',
        UserId: 0,
        Version: 0
      },
      Type: '',
      Username: '',
      VerifiedOn: '',
      YearsOfExperience: ''
    },
    UserId: 0
  },
  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}}/api/paymentlink/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AccessToken: '',
  Client: {
    Address: '',
    ClientCountryId: 0,
    ClientCurrencyId: 0,
    CompanyRegistrationNumber: '',
    DefaultDueDateInDays: 0,
    Email: '',
    Id: 0,
    Name: '',
    PhoneNumber: '',
    UiLanguageId: 0,
    UserId: 0,
    Vat: ''
  },
  ClientId: 0,
  Currency: {
    Code: '',
    Id: 0,
    Name: '',
    Symbol: '',
    Value: ''
  },
  CurrencyId: 0,
  DiscountAmount: '',
  Id: 0,
  Invoice: {
    AccessToken: '',
    Activities: [
      {
        EstimationId: 0,
        EstimationNumber: '',
        Id: 0,
        InvoiceId: 0,
        InvoiceNumber: '',
        Link: '',
        Message: '',
        OrderId: 0,
        OrderNumber: '',
        Type: '',
        UserId: 0
      }
    ],
    Attachments: [
      {
        Id: 0,
        InvoiceId: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ClientId: 0,
    ClonedFromId: 0,
    CurrencyId: 0,
    DiscountAmount: '',
    Duedate: '',
    EnablePartialPayments: false,
    EstimationId: 0,
    Id: 0,
    InvoiceCategoryId: 0,
    IsDigitallySigned: false,
    IssuedOn: '',
    Items: [
      {
        Cost: '',
        Description: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        InvoiceId: 0,
        Quantity: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Notes: '',
    Number: '',
    OrderId: 0,
    PaymentGateways: [
      {
        Id: 0,
        Name: ''
      }
    ],
    PaymentLinkId: 0,
    Payments: [
      {
        Amount: '',
        Id: 0,
        Invoice: '',
        InvoiceId: 0,
        IsAutomatic: false,
        Note: '',
        PaidOn: '',
        ReferenceId: '',
        Type: ''
      }
    ],
    PoNumber: '',
    RecurringProfileId: 0,
    ShouldSendReminders: false,
    Status: '',
    SubTotalAmount: '',
    TaxAmount: '',
    Terms: '',
    TotalAmount: '',
    UserId: 0
  },
  Items: [
    {
      Cost: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      PaymentLinkId: 0,
      Quantity: '',
      SubTotalAmount: '',
      Tax: {
        Id: 0,
        Name: '',
        Percentage: '',
        UserId: 0
      },
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkType: {
        Id: 0,
        Title: '',
        UserId: 0
      },
      WorkTypeId: 0
    }
  ],
  Number: '',
  SubTotalAmount: '',
  TaxAmount: '',
  TotalAmount: '',
  User: {
    ActionNotificationsLastReadOn: '',
    Email: '',
    ExternalConnections: [
      {
        AccessToken: '',
        AccessTokenSecret: '',
        Data: '',
        ExpiresOn: '',
        ExternalUserId: '',
        ExternalUsername: '',
        Id: 0,
        Provider: '',
        UserId: 0
      }
    ],
    HasBeenOnboarded: false,
    Id: 0,
    IsLocked: false,
    IsVerified: false,
    KnowledgeNotificationsLastReadOn: '',
    LastSeenOn: '',
    Name: '',
    Password: '',
    PasswordSalt: '',
    ReferralPath: '',
    ReferredUsers: 0,
    ReferrerKey: '',
    Settings: {
      AccountantEmail: '',
      Address: '',
      ApiKey: '',
      ApiSecret: '',
      BackgroundImage: '',
      Bank: '',
      BankAccount: '',
      Cname: '',
      CompanyRegistrationNumber: '',
      Country: {
        Id: 0,
        Name: '',
        Value: ''
      },
      CountryId: 0,
      Currency: {},
      CurrencyId: 0,
      CurrencySymbol: '',
      DefaultDateFormat: '',
      DefaultDueDateInDays: 0,
      DoNotTrack: false,
      EnableClientPortal: false,
      EnablePredictiveInvoicing: false,
      EnableRecurringInvoicing: false,
      HasInvoiceLogo: false,
      Iban: '',
      Id: 0,
      InvoiceTemplate: '',
      InvoiceTemplateColorHex: '',
      PhoneNumber: '',
      Profession: '',
      ReceiveSmsNotifications: false,
      ReferralProgram: '',
      StoreCheckoutFields: '',
      StoreColorHex: '',
      StoreCurrency: {},
      StoreCurrencyId: 0,
      StoreCustomJavaScript: '',
      StoreDescription: '',
      StoreEmail: '',
      StoreLanguage: {
        Id: 0,
        Name: '',
        UiCulture: ''
      },
      StoreLanguageId: 0,
      StoreName: '',
      StorePurchaseEmailMessage: '',
      StorePurchaseThankYouMessage: '',
      StoreTextColorHex: '',
      StoreUrl: '',
      SubscribeToProductEmails: false,
      Swift: '',
      Terms: '',
      UserId: 0,
      UserSignature: '',
      VatNumber: '',
      YearsOfExperience: 0
    },
    Status: '',
    SubscriptionPlan: {
      CancellatedOn: '',
      CouponCode: '',
      CurrencyCode: '',
      ExternalIdentifier: '',
      Features: [],
      HasDuePayment: false,
      HasDuePaymentSince: '',
      Id: 0,
      Identifier: '',
      IsActive: false,
      IsLifetime: false,
      LastPaymentOn: '',
      MaxClients: 0,
      Name: '',
      OnHold: false,
      OrderIdentifier: '',
      Price: '',
      Recurrence: '',
      SaleId: 0,
      Status: '',
      SystemCancelationReason: '',
      TrialEndsOn: '',
      TrialNumberOfDays: 0,
      TrialStartsOn: '',
      UserId: 0,
      Version: 0
    },
    Type: '',
    Username: '',
    VerifiedOn: '',
    YearsOfExperience: ''
  },
  UserId: 0
});

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}}/api/paymentlink/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AccessToken: '',
    Client: {
      Address: '',
      ClientCountryId: 0,
      ClientCurrencyId: 0,
      CompanyRegistrationNumber: '',
      DefaultDueDateInDays: 0,
      Email: '',
      Id: 0,
      Name: '',
      PhoneNumber: '',
      UiLanguageId: 0,
      UserId: 0,
      Vat: ''
    },
    ClientId: 0,
    Currency: {Code: '', Id: 0, Name: '', Symbol: '', Value: ''},
    CurrencyId: 0,
    DiscountAmount: '',
    Id: 0,
    Invoice: {
      AccessToken: '',
      Activities: [
        {
          EstimationId: 0,
          EstimationNumber: '',
          Id: 0,
          InvoiceId: 0,
          InvoiceNumber: '',
          Link: '',
          Message: '',
          OrderId: 0,
          OrderNumber: '',
          Type: '',
          UserId: 0
        }
      ],
      Attachments: [
        {
          Id: 0,
          InvoiceId: 0,
          Link: '',
          ObfuscatedFileName: '',
          OriginalFileName: '',
          Size: 0,
          Type: ''
        }
      ],
      ClientId: 0,
      ClonedFromId: 0,
      CurrencyId: 0,
      DiscountAmount: '',
      Duedate: '',
      EnablePartialPayments: false,
      EstimationId: 0,
      Id: 0,
      InvoiceCategoryId: 0,
      IsDigitallySigned: false,
      IssuedOn: '',
      Items: [
        {
          Cost: '',
          Description: '',
          DiscountAmount: '',
          DiscountPercentage: '',
          Id: 0,
          InvoiceId: 0,
          Quantity: '',
          SubTotalAmount: '',
          TaxAmount: '',
          TaxId: 0,
          TaxPercentage: '',
          TotalAmount: '',
          WorkTypeId: 0
        }
      ],
      Notes: '',
      Number: '',
      OrderId: 0,
      PaymentGateways: [{Id: 0, Name: ''}],
      PaymentLinkId: 0,
      Payments: [
        {
          Amount: '',
          Id: 0,
          Invoice: '',
          InvoiceId: 0,
          IsAutomatic: false,
          Note: '',
          PaidOn: '',
          ReferenceId: '',
          Type: ''
        }
      ],
      PoNumber: '',
      RecurringProfileId: 0,
      ShouldSendReminders: false,
      Status: '',
      SubTotalAmount: '',
      TaxAmount: '',
      Terms: '',
      TotalAmount: '',
      UserId: 0
    },
    Items: [
      {
        Cost: '',
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        PaymentLinkId: 0,
        Quantity: '',
        SubTotalAmount: '',
        Tax: {Id: 0, Name: '', Percentage: '', UserId: 0},
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkType: {Id: 0, Title: '', UserId: 0},
        WorkTypeId: 0
      }
    ],
    Number: '',
    SubTotalAmount: '',
    TaxAmount: '',
    TotalAmount: '',
    User: {
      ActionNotificationsLastReadOn: '',
      Email: '',
      ExternalConnections: [
        {
          AccessToken: '',
          AccessTokenSecret: '',
          Data: '',
          ExpiresOn: '',
          ExternalUserId: '',
          ExternalUsername: '',
          Id: 0,
          Provider: '',
          UserId: 0
        }
      ],
      HasBeenOnboarded: false,
      Id: 0,
      IsLocked: false,
      IsVerified: false,
      KnowledgeNotificationsLastReadOn: '',
      LastSeenOn: '',
      Name: '',
      Password: '',
      PasswordSalt: '',
      ReferralPath: '',
      ReferredUsers: 0,
      ReferrerKey: '',
      Settings: {
        AccountantEmail: '',
        Address: '',
        ApiKey: '',
        ApiSecret: '',
        BackgroundImage: '',
        Bank: '',
        BankAccount: '',
        Cname: '',
        CompanyRegistrationNumber: '',
        Country: {Id: 0, Name: '', Value: ''},
        CountryId: 0,
        Currency: {},
        CurrencyId: 0,
        CurrencySymbol: '',
        DefaultDateFormat: '',
        DefaultDueDateInDays: 0,
        DoNotTrack: false,
        EnableClientPortal: false,
        EnablePredictiveInvoicing: false,
        EnableRecurringInvoicing: false,
        HasInvoiceLogo: false,
        Iban: '',
        Id: 0,
        InvoiceTemplate: '',
        InvoiceTemplateColorHex: '',
        PhoneNumber: '',
        Profession: '',
        ReceiveSmsNotifications: false,
        ReferralProgram: '',
        StoreCheckoutFields: '',
        StoreColorHex: '',
        StoreCurrency: {},
        StoreCurrencyId: 0,
        StoreCustomJavaScript: '',
        StoreDescription: '',
        StoreEmail: '',
        StoreLanguage: {Id: 0, Name: '', UiCulture: ''},
        StoreLanguageId: 0,
        StoreName: '',
        StorePurchaseEmailMessage: '',
        StorePurchaseThankYouMessage: '',
        StoreTextColorHex: '',
        StoreUrl: '',
        SubscribeToProductEmails: false,
        Swift: '',
        Terms: '',
        UserId: 0,
        UserSignature: '',
        VatNumber: '',
        YearsOfExperience: 0
      },
      Status: '',
      SubscriptionPlan: {
        CancellatedOn: '',
        CouponCode: '',
        CurrencyCode: '',
        ExternalIdentifier: '',
        Features: [],
        HasDuePayment: false,
        HasDuePaymentSince: '',
        Id: 0,
        Identifier: '',
        IsActive: false,
        IsLifetime: false,
        LastPaymentOn: '',
        MaxClients: 0,
        Name: '',
        OnHold: false,
        OrderIdentifier: '',
        Price: '',
        Recurrence: '',
        SaleId: 0,
        Status: '',
        SystemCancelationReason: '',
        TrialEndsOn: '',
        TrialNumberOfDays: 0,
        TrialStartsOn: '',
        UserId: 0,
        Version: 0
      },
      Type: '',
      Username: '',
      VerifiedOn: '',
      YearsOfExperience: ''
    },
    UserId: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/paymentlink/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AccessToken":"","Client":{"Address":"","ClientCountryId":0,"ClientCurrencyId":0,"CompanyRegistrationNumber":"","DefaultDueDateInDays":0,"Email":"","Id":0,"Name":"","PhoneNumber":"","UiLanguageId":0,"UserId":0,"Vat":""},"ClientId":0,"Currency":{"Code":"","Id":0,"Name":"","Symbol":"","Value":""},"CurrencyId":0,"DiscountAmount":"","Id":0,"Invoice":{"AccessToken":"","Activities":[{"EstimationId":0,"EstimationNumber":"","Id":0,"InvoiceId":0,"InvoiceNumber":"","Link":"","Message":"","OrderId":0,"OrderNumber":"","Type":"","UserId":0}],"Attachments":[{"Id":0,"InvoiceId":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ClientId":0,"ClonedFromId":0,"CurrencyId":0,"DiscountAmount":"","Duedate":"","EnablePartialPayments":false,"EstimationId":0,"Id":0,"InvoiceCategoryId":0,"IsDigitallySigned":false,"IssuedOn":"","Items":[{"Cost":"","Description":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"InvoiceId":0,"Quantity":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Notes":"","Number":"","OrderId":0,"PaymentGateways":[{"Id":0,"Name":""}],"PaymentLinkId":0,"Payments":[{"Amount":"","Id":0,"Invoice":"","InvoiceId":0,"IsAutomatic":false,"Note":"","PaidOn":"","ReferenceId":"","Type":""}],"PoNumber":"","RecurringProfileId":0,"ShouldSendReminders":false,"Status":"","SubTotalAmount":"","TaxAmount":"","Terms":"","TotalAmount":"","UserId":0},"Items":[{"Cost":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"PaymentLinkId":0,"Quantity":"","SubTotalAmount":"","Tax":{"Id":0,"Name":"","Percentage":"","UserId":0},"TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkType":{"Id":0,"Title":"","UserId":0},"WorkTypeId":0}],"Number":"","SubTotalAmount":"","TaxAmount":"","TotalAmount":"","User":{"ActionNotificationsLastReadOn":"","Email":"","ExternalConnections":[{"AccessToken":"","AccessTokenSecret":"","Data":"","ExpiresOn":"","ExternalUserId":"","ExternalUsername":"","Id":0,"Provider":"","UserId":0}],"HasBeenOnboarded":false,"Id":0,"IsLocked":false,"IsVerified":false,"KnowledgeNotificationsLastReadOn":"","LastSeenOn":"","Name":"","Password":"","PasswordSalt":"","ReferralPath":"","ReferredUsers":0,"ReferrerKey":"","Settings":{"AccountantEmail":"","Address":"","ApiKey":"","ApiSecret":"","BackgroundImage":"","Bank":"","BankAccount":"","Cname":"","CompanyRegistrationNumber":"","Country":{"Id":0,"Name":"","Value":""},"CountryId":0,"Currency":{},"CurrencyId":0,"CurrencySymbol":"","DefaultDateFormat":"","DefaultDueDateInDays":0,"DoNotTrack":false,"EnableClientPortal":false,"EnablePredictiveInvoicing":false,"EnableRecurringInvoicing":false,"HasInvoiceLogo":false,"Iban":"","Id":0,"InvoiceTemplate":"","InvoiceTemplateColorHex":"","PhoneNumber":"","Profession":"","ReceiveSmsNotifications":false,"ReferralProgram":"","StoreCheckoutFields":"","StoreColorHex":"","StoreCurrency":{},"StoreCurrencyId":0,"StoreCustomJavaScript":"","StoreDescription":"","StoreEmail":"","StoreLanguage":{"Id":0,"Name":"","UiCulture":""},"StoreLanguageId":0,"StoreName":"","StorePurchaseEmailMessage":"","StorePurchaseThankYouMessage":"","StoreTextColorHex":"","StoreUrl":"","SubscribeToProductEmails":false,"Swift":"","Terms":"","UserId":0,"UserSignature":"","VatNumber":"","YearsOfExperience":0},"Status":"","SubscriptionPlan":{"CancellatedOn":"","CouponCode":"","CurrencyCode":"","ExternalIdentifier":"","Features":[],"HasDuePayment":false,"HasDuePaymentSince":"","Id":0,"Identifier":"","IsActive":false,"IsLifetime":false,"LastPaymentOn":"","MaxClients":0,"Name":"","OnHold":false,"OrderIdentifier":"","Price":"","Recurrence":"","SaleId":0,"Status":"","SystemCancelationReason":"","TrialEndsOn":"","TrialNumberOfDays":0,"TrialStartsOn":"","UserId":0,"Version":0},"Type":"","Username":"","VerifiedOn":"","YearsOfExperience":""},"UserId":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AccessToken": @"",
                              @"Client": @{ @"Address": @"", @"ClientCountryId": @0, @"ClientCurrencyId": @0, @"CompanyRegistrationNumber": @"", @"DefaultDueDateInDays": @0, @"Email": @"", @"Id": @0, @"Name": @"", @"PhoneNumber": @"", @"UiLanguageId": @0, @"UserId": @0, @"Vat": @"" },
                              @"ClientId": @0,
                              @"Currency": @{ @"Code": @"", @"Id": @0, @"Name": @"", @"Symbol": @"", @"Value": @"" },
                              @"CurrencyId": @0,
                              @"DiscountAmount": @"",
                              @"Id": @0,
                              @"Invoice": @{ @"AccessToken": @"", @"Activities": @[ @{ @"EstimationId": @0, @"EstimationNumber": @"", @"Id": @0, @"InvoiceId": @0, @"InvoiceNumber": @"", @"Link": @"", @"Message": @"", @"OrderId": @0, @"OrderNumber": @"", @"Type": @"", @"UserId": @0 } ], @"Attachments": @[ @{ @"Id": @0, @"InvoiceId": @0, @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ], @"ClientId": @0, @"ClonedFromId": @0, @"CurrencyId": @0, @"DiscountAmount": @"", @"Duedate": @"", @"EnablePartialPayments": @NO, @"EstimationId": @0, @"Id": @0, @"InvoiceCategoryId": @0, @"IsDigitallySigned": @NO, @"IssuedOn": @"", @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"InvoiceId": @0, @"Quantity": @"", @"SubTotalAmount": @"", @"TaxAmount": @"", @"TaxId": @0, @"TaxPercentage": @"", @"TotalAmount": @"", @"WorkTypeId": @0 } ], @"Notes": @"", @"Number": @"", @"OrderId": @0, @"PaymentGateways": @[ @{ @"Id": @0, @"Name": @"" } ], @"PaymentLinkId": @0, @"Payments": @[ @{ @"Amount": @"", @"Id": @0, @"Invoice": @"", @"InvoiceId": @0, @"IsAutomatic": @NO, @"Note": @"", @"PaidOn": @"", @"ReferenceId": @"", @"Type": @"" } ], @"PoNumber": @"", @"RecurringProfileId": @0, @"ShouldSendReminders": @NO, @"Status": @"", @"SubTotalAmount": @"", @"TaxAmount": @"", @"Terms": @"", @"TotalAmount": @"", @"UserId": @0 },
                              @"Items": @[ @{ @"Cost": @"", @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"PaymentLinkId": @0, @"Quantity": @"", @"SubTotalAmount": @"", @"Tax": @{ @"Id": @0, @"Name": @"", @"Percentage": @"", @"UserId": @0 }, @"TaxAmount": @"", @"TaxId": @0, @"TaxPercentage": @"", @"TotalAmount": @"", @"WorkType": @{ @"Id": @0, @"Title": @"", @"UserId": @0 }, @"WorkTypeId": @0 } ],
                              @"Number": @"",
                              @"SubTotalAmount": @"",
                              @"TaxAmount": @"",
                              @"TotalAmount": @"",
                              @"User": @{ @"ActionNotificationsLastReadOn": @"", @"Email": @"", @"ExternalConnections": @[ @{ @"AccessToken": @"", @"AccessTokenSecret": @"", @"Data": @"", @"ExpiresOn": @"", @"ExternalUserId": @"", @"ExternalUsername": @"", @"Id": @0, @"Provider": @"", @"UserId": @0 } ], @"HasBeenOnboarded": @NO, @"Id": @0, @"IsLocked": @NO, @"IsVerified": @NO, @"KnowledgeNotificationsLastReadOn": @"", @"LastSeenOn": @"", @"Name": @"", @"Password": @"", @"PasswordSalt": @"", @"ReferralPath": @"", @"ReferredUsers": @0, @"ReferrerKey": @"", @"Settings": @{ @"AccountantEmail": @"", @"Address": @"", @"ApiKey": @"", @"ApiSecret": @"", @"BackgroundImage": @"", @"Bank": @"", @"BankAccount": @"", @"Cname": @"", @"CompanyRegistrationNumber": @"", @"Country": @{ @"Id": @0, @"Name": @"", @"Value": @"" }, @"CountryId": @0, @"Currency": @{  }, @"CurrencyId": @0, @"CurrencySymbol": @"", @"DefaultDateFormat": @"", @"DefaultDueDateInDays": @0, @"DoNotTrack": @NO, @"EnableClientPortal": @NO, @"EnablePredictiveInvoicing": @NO, @"EnableRecurringInvoicing": @NO, @"HasInvoiceLogo": @NO, @"Iban": @"", @"Id": @0, @"InvoiceTemplate": @"", @"InvoiceTemplateColorHex": @"", @"PhoneNumber": @"", @"Profession": @"", @"ReceiveSmsNotifications": @NO, @"ReferralProgram": @"", @"StoreCheckoutFields": @"", @"StoreColorHex": @"", @"StoreCurrency": @{  }, @"StoreCurrencyId": @0, @"StoreCustomJavaScript": @"", @"StoreDescription": @"", @"StoreEmail": @"", @"StoreLanguage": @{ @"Id": @0, @"Name": @"", @"UiCulture": @"" }, @"StoreLanguageId": @0, @"StoreName": @"", @"StorePurchaseEmailMessage": @"", @"StorePurchaseThankYouMessage": @"", @"StoreTextColorHex": @"", @"StoreUrl": @"", @"SubscribeToProductEmails": @NO, @"Swift": @"", @"Terms": @"", @"UserId": @0, @"UserSignature": @"", @"VatNumber": @"", @"YearsOfExperience": @0 }, @"Status": @"", @"SubscriptionPlan": @{ @"CancellatedOn": @"", @"CouponCode": @"", @"CurrencyCode": @"", @"ExternalIdentifier": @"", @"Features": @[  ], @"HasDuePayment": @NO, @"HasDuePaymentSince": @"", @"Id": @0, @"Identifier": @"", @"IsActive": @NO, @"IsLifetime": @NO, @"LastPaymentOn": @"", @"MaxClients": @0, @"Name": @"", @"OnHold": @NO, @"OrderIdentifier": @"", @"Price": @"", @"Recurrence": @"", @"SaleId": @0, @"Status": @"", @"SystemCancelationReason": @"", @"TrialEndsOn": @"", @"TrialNumberOfDays": @0, @"TrialStartsOn": @"", @"UserId": @0, @"Version": @0 }, @"Type": @"", @"Username": @"", @"VerifiedOn": @"", @"YearsOfExperience": @"" },
                              @"UserId": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/paymentlink/delete"]
                                                       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}}/api/paymentlink/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/paymentlink/delete",
  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([
    'AccessToken' => '',
    'Client' => [
        'Address' => '',
        'ClientCountryId' => 0,
        'ClientCurrencyId' => 0,
        'CompanyRegistrationNumber' => '',
        'DefaultDueDateInDays' => 0,
        'Email' => '',
        'Id' => 0,
        'Name' => '',
        'PhoneNumber' => '',
        'UiLanguageId' => 0,
        'UserId' => 0,
        'Vat' => ''
    ],
    'ClientId' => 0,
    'Currency' => [
        'Code' => '',
        'Id' => 0,
        'Name' => '',
        'Symbol' => '',
        'Value' => ''
    ],
    'CurrencyId' => 0,
    'DiscountAmount' => '',
    'Id' => 0,
    'Invoice' => [
        'AccessToken' => '',
        'Activities' => [
                [
                                'EstimationId' => 0,
                                'EstimationNumber' => '',
                                'Id' => 0,
                                'InvoiceId' => 0,
                                'InvoiceNumber' => '',
                                'Link' => '',
                                'Message' => '',
                                'OrderId' => 0,
                                'OrderNumber' => '',
                                'Type' => '',
                                'UserId' => 0
                ]
        ],
        'Attachments' => [
                [
                                'Id' => 0,
                                'InvoiceId' => 0,
                                'Link' => '',
                                'ObfuscatedFileName' => '',
                                'OriginalFileName' => '',
                                'Size' => 0,
                                'Type' => ''
                ]
        ],
        'ClientId' => 0,
        'ClonedFromId' => 0,
        'CurrencyId' => 0,
        'DiscountAmount' => '',
        'Duedate' => '',
        'EnablePartialPayments' => null,
        'EstimationId' => 0,
        'Id' => 0,
        'InvoiceCategoryId' => 0,
        'IsDigitallySigned' => null,
        'IssuedOn' => '',
        'Items' => [
                [
                                'Cost' => '',
                                'Description' => '',
                                'DiscountAmount' => '',
                                'DiscountPercentage' => '',
                                'Id' => 0,
                                'InvoiceId' => 0,
                                'Quantity' => '',
                                'SubTotalAmount' => '',
                                'TaxAmount' => '',
                                'TaxId' => 0,
                                'TaxPercentage' => '',
                                'TotalAmount' => '',
                                'WorkTypeId' => 0
                ]
        ],
        'Notes' => '',
        'Number' => '',
        'OrderId' => 0,
        'PaymentGateways' => [
                [
                                'Id' => 0,
                                'Name' => ''
                ]
        ],
        'PaymentLinkId' => 0,
        'Payments' => [
                [
                                'Amount' => '',
                                'Id' => 0,
                                'Invoice' => '',
                                'InvoiceId' => 0,
                                'IsAutomatic' => null,
                                'Note' => '',
                                'PaidOn' => '',
                                'ReferenceId' => '',
                                'Type' => ''
                ]
        ],
        'PoNumber' => '',
        'RecurringProfileId' => 0,
        'ShouldSendReminders' => null,
        'Status' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'Terms' => '',
        'TotalAmount' => '',
        'UserId' => 0
    ],
    'Items' => [
        [
                'Cost' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'PaymentLinkId' => 0,
                'Quantity' => '',
                'SubTotalAmount' => '',
                'Tax' => [
                                'Id' => 0,
                                'Name' => '',
                                'Percentage' => '',
                                'UserId' => 0
                ],
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkType' => [
                                'Id' => 0,
                                'Title' => '',
                                'UserId' => 0
                ],
                'WorkTypeId' => 0
        ]
    ],
    'Number' => '',
    'SubTotalAmount' => '',
    'TaxAmount' => '',
    'TotalAmount' => '',
    'User' => [
        'ActionNotificationsLastReadOn' => '',
        'Email' => '',
        'ExternalConnections' => [
                [
                                'AccessToken' => '',
                                'AccessTokenSecret' => '',
                                'Data' => '',
                                'ExpiresOn' => '',
                                'ExternalUserId' => '',
                                'ExternalUsername' => '',
                                'Id' => 0,
                                'Provider' => '',
                                'UserId' => 0
                ]
        ],
        'HasBeenOnboarded' => null,
        'Id' => 0,
        'IsLocked' => null,
        'IsVerified' => null,
        'KnowledgeNotificationsLastReadOn' => '',
        'LastSeenOn' => '',
        'Name' => '',
        'Password' => '',
        'PasswordSalt' => '',
        'ReferralPath' => '',
        'ReferredUsers' => 0,
        'ReferrerKey' => '',
        'Settings' => [
                'AccountantEmail' => '',
                'Address' => '',
                'ApiKey' => '',
                'ApiSecret' => '',
                'BackgroundImage' => '',
                'Bank' => '',
                'BankAccount' => '',
                'Cname' => '',
                'CompanyRegistrationNumber' => '',
                'Country' => [
                                'Id' => 0,
                                'Name' => '',
                                'Value' => ''
                ],
                'CountryId' => 0,
                'Currency' => [
                                
                ],
                'CurrencyId' => 0,
                'CurrencySymbol' => '',
                'DefaultDateFormat' => '',
                'DefaultDueDateInDays' => 0,
                'DoNotTrack' => null,
                'EnableClientPortal' => null,
                'EnablePredictiveInvoicing' => null,
                'EnableRecurringInvoicing' => null,
                'HasInvoiceLogo' => null,
                'Iban' => '',
                'Id' => 0,
                'InvoiceTemplate' => '',
                'InvoiceTemplateColorHex' => '',
                'PhoneNumber' => '',
                'Profession' => '',
                'ReceiveSmsNotifications' => null,
                'ReferralProgram' => '',
                'StoreCheckoutFields' => '',
                'StoreColorHex' => '',
                'StoreCurrency' => [
                                
                ],
                'StoreCurrencyId' => 0,
                'StoreCustomJavaScript' => '',
                'StoreDescription' => '',
                'StoreEmail' => '',
                'StoreLanguage' => [
                                'Id' => 0,
                                'Name' => '',
                                'UiCulture' => ''
                ],
                'StoreLanguageId' => 0,
                'StoreName' => '',
                'StorePurchaseEmailMessage' => '',
                'StorePurchaseThankYouMessage' => '',
                'StoreTextColorHex' => '',
                'StoreUrl' => '',
                'SubscribeToProductEmails' => null,
                'Swift' => '',
                'Terms' => '',
                'UserId' => 0,
                'UserSignature' => '',
                'VatNumber' => '',
                'YearsOfExperience' => 0
        ],
        'Status' => '',
        'SubscriptionPlan' => [
                'CancellatedOn' => '',
                'CouponCode' => '',
                'CurrencyCode' => '',
                'ExternalIdentifier' => '',
                'Features' => [
                                
                ],
                'HasDuePayment' => null,
                'HasDuePaymentSince' => '',
                'Id' => 0,
                'Identifier' => '',
                'IsActive' => null,
                'IsLifetime' => null,
                'LastPaymentOn' => '',
                'MaxClients' => 0,
                'Name' => '',
                'OnHold' => null,
                'OrderIdentifier' => '',
                'Price' => '',
                'Recurrence' => '',
                'SaleId' => 0,
                'Status' => '',
                'SystemCancelationReason' => '',
                'TrialEndsOn' => '',
                'TrialNumberOfDays' => 0,
                'TrialStartsOn' => '',
                'UserId' => 0,
                'Version' => 0
        ],
        'Type' => '',
        'Username' => '',
        'VerifiedOn' => '',
        'YearsOfExperience' => ''
    ],
    'UserId' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/paymentlink/delete', [
  'body' => '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/paymentlink/delete');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AccessToken' => '',
  'Client' => [
    'Address' => '',
    'ClientCountryId' => 0,
    'ClientCurrencyId' => 0,
    'CompanyRegistrationNumber' => '',
    'DefaultDueDateInDays' => 0,
    'Email' => '',
    'Id' => 0,
    'Name' => '',
    'PhoneNumber' => '',
    'UiLanguageId' => 0,
    'UserId' => 0,
    'Vat' => ''
  ],
  'ClientId' => 0,
  'Currency' => [
    'Code' => '',
    'Id' => 0,
    'Name' => '',
    'Symbol' => '',
    'Value' => ''
  ],
  'CurrencyId' => 0,
  'DiscountAmount' => '',
  'Id' => 0,
  'Invoice' => [
    'AccessToken' => '',
    'Activities' => [
        [
                'EstimationId' => 0,
                'EstimationNumber' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'InvoiceNumber' => '',
                'Link' => '',
                'Message' => '',
                'OrderId' => 0,
                'OrderNumber' => '',
                'Type' => '',
                'UserId' => 0
        ]
    ],
    'Attachments' => [
        [
                'Id' => 0,
                'InvoiceId' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'DiscountAmount' => '',
    'Duedate' => '',
    'EnablePartialPayments' => null,
    'EstimationId' => 0,
    'Id' => 0,
    'InvoiceCategoryId' => 0,
    'IsDigitallySigned' => null,
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'Quantity' => '',
                'SubTotalAmount' => '',
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'OrderId' => 0,
    'PaymentGateways' => [
        [
                'Id' => 0,
                'Name' => ''
        ]
    ],
    'PaymentLinkId' => 0,
    'Payments' => [
        [
                'Amount' => '',
                'Id' => 0,
                'Invoice' => '',
                'InvoiceId' => 0,
                'IsAutomatic' => null,
                'Note' => '',
                'PaidOn' => '',
                'ReferenceId' => '',
                'Type' => ''
        ]
    ],
    'PoNumber' => '',
    'RecurringProfileId' => 0,
    'ShouldSendReminders' => null,
    'Status' => '',
    'SubTotalAmount' => '',
    'TaxAmount' => '',
    'Terms' => '',
    'TotalAmount' => '',
    'UserId' => 0
  ],
  'Items' => [
    [
        'Cost' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'PaymentLinkId' => 0,
        'Quantity' => '',
        'SubTotalAmount' => '',
        'Tax' => [
                'Id' => 0,
                'Name' => '',
                'Percentage' => '',
                'UserId' => 0
        ],
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkType' => [
                'Id' => 0,
                'Title' => '',
                'UserId' => 0
        ],
        'WorkTypeId' => 0
    ]
  ],
  'Number' => '',
  'SubTotalAmount' => '',
  'TaxAmount' => '',
  'TotalAmount' => '',
  'User' => [
    'ActionNotificationsLastReadOn' => '',
    'Email' => '',
    'ExternalConnections' => [
        [
                'AccessToken' => '',
                'AccessTokenSecret' => '',
                'Data' => '',
                'ExpiresOn' => '',
                'ExternalUserId' => '',
                'ExternalUsername' => '',
                'Id' => 0,
                'Provider' => '',
                'UserId' => 0
        ]
    ],
    'HasBeenOnboarded' => null,
    'Id' => 0,
    'IsLocked' => null,
    'IsVerified' => null,
    'KnowledgeNotificationsLastReadOn' => '',
    'LastSeenOn' => '',
    'Name' => '',
    'Password' => '',
    'PasswordSalt' => '',
    'ReferralPath' => '',
    'ReferredUsers' => 0,
    'ReferrerKey' => '',
    'Settings' => [
        'AccountantEmail' => '',
        'Address' => '',
        'ApiKey' => '',
        'ApiSecret' => '',
        'BackgroundImage' => '',
        'Bank' => '',
        'BankAccount' => '',
        'Cname' => '',
        'CompanyRegistrationNumber' => '',
        'Country' => [
                'Id' => 0,
                'Name' => '',
                'Value' => ''
        ],
        'CountryId' => 0,
        'Currency' => [
                
        ],
        'CurrencyId' => 0,
        'CurrencySymbol' => '',
        'DefaultDateFormat' => '',
        'DefaultDueDateInDays' => 0,
        'DoNotTrack' => null,
        'EnableClientPortal' => null,
        'EnablePredictiveInvoicing' => null,
        'EnableRecurringInvoicing' => null,
        'HasInvoiceLogo' => null,
        'Iban' => '',
        'Id' => 0,
        'InvoiceTemplate' => '',
        'InvoiceTemplateColorHex' => '',
        'PhoneNumber' => '',
        'Profession' => '',
        'ReceiveSmsNotifications' => null,
        'ReferralProgram' => '',
        'StoreCheckoutFields' => '',
        'StoreColorHex' => '',
        'StoreCurrency' => [
                
        ],
        'StoreCurrencyId' => 0,
        'StoreCustomJavaScript' => '',
        'StoreDescription' => '',
        'StoreEmail' => '',
        'StoreLanguage' => [
                'Id' => 0,
                'Name' => '',
                'UiCulture' => ''
        ],
        'StoreLanguageId' => 0,
        'StoreName' => '',
        'StorePurchaseEmailMessage' => '',
        'StorePurchaseThankYouMessage' => '',
        'StoreTextColorHex' => '',
        'StoreUrl' => '',
        'SubscribeToProductEmails' => null,
        'Swift' => '',
        'Terms' => '',
        'UserId' => 0,
        'UserSignature' => '',
        'VatNumber' => '',
        'YearsOfExperience' => 0
    ],
    'Status' => '',
    'SubscriptionPlan' => [
        'CancellatedOn' => '',
        'CouponCode' => '',
        'CurrencyCode' => '',
        'ExternalIdentifier' => '',
        'Features' => [
                
        ],
        'HasDuePayment' => null,
        'HasDuePaymentSince' => '',
        'Id' => 0,
        'Identifier' => '',
        'IsActive' => null,
        'IsLifetime' => null,
        'LastPaymentOn' => '',
        'MaxClients' => 0,
        'Name' => '',
        'OnHold' => null,
        'OrderIdentifier' => '',
        'Price' => '',
        'Recurrence' => '',
        'SaleId' => 0,
        'Status' => '',
        'SystemCancelationReason' => '',
        'TrialEndsOn' => '',
        'TrialNumberOfDays' => 0,
        'TrialStartsOn' => '',
        'UserId' => 0,
        'Version' => 0
    ],
    'Type' => '',
    'Username' => '',
    'VerifiedOn' => '',
    'YearsOfExperience' => ''
  ],
  'UserId' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AccessToken' => '',
  'Client' => [
    'Address' => '',
    'ClientCountryId' => 0,
    'ClientCurrencyId' => 0,
    'CompanyRegistrationNumber' => '',
    'DefaultDueDateInDays' => 0,
    'Email' => '',
    'Id' => 0,
    'Name' => '',
    'PhoneNumber' => '',
    'UiLanguageId' => 0,
    'UserId' => 0,
    'Vat' => ''
  ],
  'ClientId' => 0,
  'Currency' => [
    'Code' => '',
    'Id' => 0,
    'Name' => '',
    'Symbol' => '',
    'Value' => ''
  ],
  'CurrencyId' => 0,
  'DiscountAmount' => '',
  'Id' => 0,
  'Invoice' => [
    'AccessToken' => '',
    'Activities' => [
        [
                'EstimationId' => 0,
                'EstimationNumber' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'InvoiceNumber' => '',
                'Link' => '',
                'Message' => '',
                'OrderId' => 0,
                'OrderNumber' => '',
                'Type' => '',
                'UserId' => 0
        ]
    ],
    'Attachments' => [
        [
                'Id' => 0,
                'InvoiceId' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ClientId' => 0,
    'ClonedFromId' => 0,
    'CurrencyId' => 0,
    'DiscountAmount' => '',
    'Duedate' => '',
    'EnablePartialPayments' => null,
    'EstimationId' => 0,
    'Id' => 0,
    'InvoiceCategoryId' => 0,
    'IsDigitallySigned' => null,
    'IssuedOn' => '',
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'InvoiceId' => 0,
                'Quantity' => '',
                'SubTotalAmount' => '',
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Notes' => '',
    'Number' => '',
    'OrderId' => 0,
    'PaymentGateways' => [
        [
                'Id' => 0,
                'Name' => ''
        ]
    ],
    'PaymentLinkId' => 0,
    'Payments' => [
        [
                'Amount' => '',
                'Id' => 0,
                'Invoice' => '',
                'InvoiceId' => 0,
                'IsAutomatic' => null,
                'Note' => '',
                'PaidOn' => '',
                'ReferenceId' => '',
                'Type' => ''
        ]
    ],
    'PoNumber' => '',
    'RecurringProfileId' => 0,
    'ShouldSendReminders' => null,
    'Status' => '',
    'SubTotalAmount' => '',
    'TaxAmount' => '',
    'Terms' => '',
    'TotalAmount' => '',
    'UserId' => 0
  ],
  'Items' => [
    [
        'Cost' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'PaymentLinkId' => 0,
        'Quantity' => '',
        'SubTotalAmount' => '',
        'Tax' => [
                'Id' => 0,
                'Name' => '',
                'Percentage' => '',
                'UserId' => 0
        ],
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkType' => [
                'Id' => 0,
                'Title' => '',
                'UserId' => 0
        ],
        'WorkTypeId' => 0
    ]
  ],
  'Number' => '',
  'SubTotalAmount' => '',
  'TaxAmount' => '',
  'TotalAmount' => '',
  'User' => [
    'ActionNotificationsLastReadOn' => '',
    'Email' => '',
    'ExternalConnections' => [
        [
                'AccessToken' => '',
                'AccessTokenSecret' => '',
                'Data' => '',
                'ExpiresOn' => '',
                'ExternalUserId' => '',
                'ExternalUsername' => '',
                'Id' => 0,
                'Provider' => '',
                'UserId' => 0
        ]
    ],
    'HasBeenOnboarded' => null,
    'Id' => 0,
    'IsLocked' => null,
    'IsVerified' => null,
    'KnowledgeNotificationsLastReadOn' => '',
    'LastSeenOn' => '',
    'Name' => '',
    'Password' => '',
    'PasswordSalt' => '',
    'ReferralPath' => '',
    'ReferredUsers' => 0,
    'ReferrerKey' => '',
    'Settings' => [
        'AccountantEmail' => '',
        'Address' => '',
        'ApiKey' => '',
        'ApiSecret' => '',
        'BackgroundImage' => '',
        'Bank' => '',
        'BankAccount' => '',
        'Cname' => '',
        'CompanyRegistrationNumber' => '',
        'Country' => [
                'Id' => 0,
                'Name' => '',
                'Value' => ''
        ],
        'CountryId' => 0,
        'Currency' => [
                
        ],
        'CurrencyId' => 0,
        'CurrencySymbol' => '',
        'DefaultDateFormat' => '',
        'DefaultDueDateInDays' => 0,
        'DoNotTrack' => null,
        'EnableClientPortal' => null,
        'EnablePredictiveInvoicing' => null,
        'EnableRecurringInvoicing' => null,
        'HasInvoiceLogo' => null,
        'Iban' => '',
        'Id' => 0,
        'InvoiceTemplate' => '',
        'InvoiceTemplateColorHex' => '',
        'PhoneNumber' => '',
        'Profession' => '',
        'ReceiveSmsNotifications' => null,
        'ReferralProgram' => '',
        'StoreCheckoutFields' => '',
        'StoreColorHex' => '',
        'StoreCurrency' => [
                
        ],
        'StoreCurrencyId' => 0,
        'StoreCustomJavaScript' => '',
        'StoreDescription' => '',
        'StoreEmail' => '',
        'StoreLanguage' => [
                'Id' => 0,
                'Name' => '',
                'UiCulture' => ''
        ],
        'StoreLanguageId' => 0,
        'StoreName' => '',
        'StorePurchaseEmailMessage' => '',
        'StorePurchaseThankYouMessage' => '',
        'StoreTextColorHex' => '',
        'StoreUrl' => '',
        'SubscribeToProductEmails' => null,
        'Swift' => '',
        'Terms' => '',
        'UserId' => 0,
        'UserSignature' => '',
        'VatNumber' => '',
        'YearsOfExperience' => 0
    ],
    'Status' => '',
    'SubscriptionPlan' => [
        'CancellatedOn' => '',
        'CouponCode' => '',
        'CurrencyCode' => '',
        'ExternalIdentifier' => '',
        'Features' => [
                
        ],
        'HasDuePayment' => null,
        'HasDuePaymentSince' => '',
        'Id' => 0,
        'Identifier' => '',
        'IsActive' => null,
        'IsLifetime' => null,
        'LastPaymentOn' => '',
        'MaxClients' => 0,
        'Name' => '',
        'OnHold' => null,
        'OrderIdentifier' => '',
        'Price' => '',
        'Recurrence' => '',
        'SaleId' => 0,
        'Status' => '',
        'SystemCancelationReason' => '',
        'TrialEndsOn' => '',
        'TrialNumberOfDays' => 0,
        'TrialStartsOn' => '',
        'UserId' => 0,
        'Version' => 0
    ],
    'Type' => '',
    'Username' => '',
    'VerifiedOn' => '',
    'YearsOfExperience' => ''
  ],
  'UserId' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/paymentlink/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/paymentlink/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/paymentlink/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/paymentlink/delete", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/paymentlink/delete"

payload = {
    "AccessToken": "",
    "Client": {
        "Address": "",
        "ClientCountryId": 0,
        "ClientCurrencyId": 0,
        "CompanyRegistrationNumber": "",
        "DefaultDueDateInDays": 0,
        "Email": "",
        "Id": 0,
        "Name": "",
        "PhoneNumber": "",
        "UiLanguageId": 0,
        "UserId": 0,
        "Vat": ""
    },
    "ClientId": 0,
    "Currency": {
        "Code": "",
        "Id": 0,
        "Name": "",
        "Symbol": "",
        "Value": ""
    },
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Id": 0,
    "Invoice": {
        "AccessToken": "",
        "Activities": [
            {
                "EstimationId": 0,
                "EstimationNumber": "",
                "Id": 0,
                "InvoiceId": 0,
                "InvoiceNumber": "",
                "Link": "",
                "Message": "",
                "OrderId": 0,
                "OrderNumber": "",
                "Type": "",
                "UserId": 0
            }
        ],
        "Attachments": [
            {
                "Id": 0,
                "InvoiceId": 0,
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            }
        ],
        "ClientId": 0,
        "ClonedFromId": 0,
        "CurrencyId": 0,
        "DiscountAmount": "",
        "Duedate": "",
        "EnablePartialPayments": False,
        "EstimationId": 0,
        "Id": 0,
        "InvoiceCategoryId": 0,
        "IsDigitallySigned": False,
        "IssuedOn": "",
        "Items": [
            {
                "Cost": "",
                "Description": "",
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "InvoiceId": 0,
                "Quantity": "",
                "SubTotalAmount": "",
                "TaxAmount": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "TotalAmount": "",
                "WorkTypeId": 0
            }
        ],
        "Notes": "",
        "Number": "",
        "OrderId": 0,
        "PaymentGateways": [
            {
                "Id": 0,
                "Name": ""
            }
        ],
        "PaymentLinkId": 0,
        "Payments": [
            {
                "Amount": "",
                "Id": 0,
                "Invoice": "",
                "InvoiceId": 0,
                "IsAutomatic": False,
                "Note": "",
                "PaidOn": "",
                "ReferenceId": "",
                "Type": ""
            }
        ],
        "PoNumber": "",
        "RecurringProfileId": 0,
        "ShouldSendReminders": False,
        "Status": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "Terms": "",
        "TotalAmount": "",
        "UserId": 0
    },
    "Items": [
        {
            "Cost": "",
            "DiscountAmount": "",
            "DiscountPercentage": "",
            "Id": 0,
            "PaymentLinkId": 0,
            "Quantity": "",
            "SubTotalAmount": "",
            "Tax": {
                "Id": 0,
                "Name": "",
                "Percentage": "",
                "UserId": 0
            },
            "TaxAmount": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "TotalAmount": "",
            "WorkType": {
                "Id": 0,
                "Title": "",
                "UserId": 0
            },
            "WorkTypeId": 0
        }
    ],
    "Number": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "TotalAmount": "",
    "User": {
        "ActionNotificationsLastReadOn": "",
        "Email": "",
        "ExternalConnections": [
            {
                "AccessToken": "",
                "AccessTokenSecret": "",
                "Data": "",
                "ExpiresOn": "",
                "ExternalUserId": "",
                "ExternalUsername": "",
                "Id": 0,
                "Provider": "",
                "UserId": 0
            }
        ],
        "HasBeenOnboarded": False,
        "Id": 0,
        "IsLocked": False,
        "IsVerified": False,
        "KnowledgeNotificationsLastReadOn": "",
        "LastSeenOn": "",
        "Name": "",
        "Password": "",
        "PasswordSalt": "",
        "ReferralPath": "",
        "ReferredUsers": 0,
        "ReferrerKey": "",
        "Settings": {
            "AccountantEmail": "",
            "Address": "",
            "ApiKey": "",
            "ApiSecret": "",
            "BackgroundImage": "",
            "Bank": "",
            "BankAccount": "",
            "Cname": "",
            "CompanyRegistrationNumber": "",
            "Country": {
                "Id": 0,
                "Name": "",
                "Value": ""
            },
            "CountryId": 0,
            "Currency": {},
            "CurrencyId": 0,
            "CurrencySymbol": "",
            "DefaultDateFormat": "",
            "DefaultDueDateInDays": 0,
            "DoNotTrack": False,
            "EnableClientPortal": False,
            "EnablePredictiveInvoicing": False,
            "EnableRecurringInvoicing": False,
            "HasInvoiceLogo": False,
            "Iban": "",
            "Id": 0,
            "InvoiceTemplate": "",
            "InvoiceTemplateColorHex": "",
            "PhoneNumber": "",
            "Profession": "",
            "ReceiveSmsNotifications": False,
            "ReferralProgram": "",
            "StoreCheckoutFields": "",
            "StoreColorHex": "",
            "StoreCurrency": {},
            "StoreCurrencyId": 0,
            "StoreCustomJavaScript": "",
            "StoreDescription": "",
            "StoreEmail": "",
            "StoreLanguage": {
                "Id": 0,
                "Name": "",
                "UiCulture": ""
            },
            "StoreLanguageId": 0,
            "StoreName": "",
            "StorePurchaseEmailMessage": "",
            "StorePurchaseThankYouMessage": "",
            "StoreTextColorHex": "",
            "StoreUrl": "",
            "SubscribeToProductEmails": False,
            "Swift": "",
            "Terms": "",
            "UserId": 0,
            "UserSignature": "",
            "VatNumber": "",
            "YearsOfExperience": 0
        },
        "Status": "",
        "SubscriptionPlan": {
            "CancellatedOn": "",
            "CouponCode": "",
            "CurrencyCode": "",
            "ExternalIdentifier": "",
            "Features": [],
            "HasDuePayment": False,
            "HasDuePaymentSince": "",
            "Id": 0,
            "Identifier": "",
            "IsActive": False,
            "IsLifetime": False,
            "LastPaymentOn": "",
            "MaxClients": 0,
            "Name": "",
            "OnHold": False,
            "OrderIdentifier": "",
            "Price": "",
            "Recurrence": "",
            "SaleId": 0,
            "Status": "",
            "SystemCancelationReason": "",
            "TrialEndsOn": "",
            "TrialNumberOfDays": 0,
            "TrialStartsOn": "",
            "UserId": 0,
            "Version": 0
        },
        "Type": "",
        "Username": "",
        "VerifiedOn": "",
        "YearsOfExperience": ""
    },
    "UserId": 0
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/paymentlink/delete"

payload <- "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/paymentlink/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\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/api/paymentlink/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AccessToken\": \"\",\n  \"Client\": {\n    \"Address\": \"\",\n    \"ClientCountryId\": 0,\n    \"ClientCurrencyId\": 0,\n    \"CompanyRegistrationNumber\": \"\",\n    \"DefaultDueDateInDays\": 0,\n    \"Email\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"PhoneNumber\": \"\",\n    \"UiLanguageId\": 0,\n    \"UserId\": 0,\n    \"Vat\": \"\"\n  },\n  \"ClientId\": 0,\n  \"Currency\": {\n    \"Code\": \"\",\n    \"Id\": 0,\n    \"Name\": \"\",\n    \"Symbol\": \"\",\n    \"Value\": \"\"\n  },\n  \"CurrencyId\": 0,\n  \"DiscountAmount\": \"\",\n  \"Id\": 0,\n  \"Invoice\": {\n    \"AccessToken\": \"\",\n    \"Activities\": [\n      {\n        \"EstimationId\": 0,\n        \"EstimationNumber\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"InvoiceNumber\": \"\",\n        \"Link\": \"\",\n        \"Message\": \"\",\n        \"OrderId\": 0,\n        \"OrderNumber\": \"\",\n        \"Type\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"Attachments\": [\n      {\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Link\": \"\",\n        \"ObfuscatedFileName\": \"\",\n        \"OriginalFileName\": \"\",\n        \"Size\": 0,\n        \"Type\": \"\"\n      }\n    ],\n    \"ClientId\": 0,\n    \"ClonedFromId\": 0,\n    \"CurrencyId\": 0,\n    \"DiscountAmount\": \"\",\n    \"Duedate\": \"\",\n    \"EnablePartialPayments\": false,\n    \"EstimationId\": 0,\n    \"Id\": 0,\n    \"InvoiceCategoryId\": 0,\n    \"IsDigitallySigned\": false,\n    \"IssuedOn\": \"\",\n    \"Items\": [\n      {\n        \"Cost\": \"\",\n        \"Description\": \"\",\n        \"DiscountAmount\": \"\",\n        \"DiscountPercentage\": \"\",\n        \"Id\": 0,\n        \"InvoiceId\": 0,\n        \"Quantity\": \"\",\n        \"SubTotalAmount\": \"\",\n        \"TaxAmount\": \"\",\n        \"TaxId\": 0,\n        \"TaxPercentage\": \"\",\n        \"TotalAmount\": \"\",\n        \"WorkTypeId\": 0\n      }\n    ],\n    \"Notes\": \"\",\n    \"Number\": \"\",\n    \"OrderId\": 0,\n    \"PaymentGateways\": [\n      {\n        \"Id\": 0,\n        \"Name\": \"\"\n      }\n    ],\n    \"PaymentLinkId\": 0,\n    \"Payments\": [\n      {\n        \"Amount\": \"\",\n        \"Id\": 0,\n        \"Invoice\": \"\",\n        \"InvoiceId\": 0,\n        \"IsAutomatic\": false,\n        \"Note\": \"\",\n        \"PaidOn\": \"\",\n        \"ReferenceId\": \"\",\n        \"Type\": \"\"\n      }\n    ],\n    \"PoNumber\": \"\",\n    \"RecurringProfileId\": 0,\n    \"ShouldSendReminders\": false,\n    \"Status\": \"\",\n    \"SubTotalAmount\": \"\",\n    \"TaxAmount\": \"\",\n    \"Terms\": \"\",\n    \"TotalAmount\": \"\",\n    \"UserId\": 0\n  },\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"PaymentLinkId\": 0,\n      \"Quantity\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"Tax\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Percentage\": \"\",\n        \"UserId\": 0\n      },\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkType\": {\n        \"Id\": 0,\n        \"Title\": \"\",\n        \"UserId\": 0\n      },\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Number\": \"\",\n  \"SubTotalAmount\": \"\",\n  \"TaxAmount\": \"\",\n  \"TotalAmount\": \"\",\n  \"User\": {\n    \"ActionNotificationsLastReadOn\": \"\",\n    \"Email\": \"\",\n    \"ExternalConnections\": [\n      {\n        \"AccessToken\": \"\",\n        \"AccessTokenSecret\": \"\",\n        \"Data\": \"\",\n        \"ExpiresOn\": \"\",\n        \"ExternalUserId\": \"\",\n        \"ExternalUsername\": \"\",\n        \"Id\": 0,\n        \"Provider\": \"\",\n        \"UserId\": 0\n      }\n    ],\n    \"HasBeenOnboarded\": false,\n    \"Id\": 0,\n    \"IsLocked\": false,\n    \"IsVerified\": false,\n    \"KnowledgeNotificationsLastReadOn\": \"\",\n    \"LastSeenOn\": \"\",\n    \"Name\": \"\",\n    \"Password\": \"\",\n    \"PasswordSalt\": \"\",\n    \"ReferralPath\": \"\",\n    \"ReferredUsers\": 0,\n    \"ReferrerKey\": \"\",\n    \"Settings\": {\n      \"AccountantEmail\": \"\",\n      \"Address\": \"\",\n      \"ApiKey\": \"\",\n      \"ApiSecret\": \"\",\n      \"BackgroundImage\": \"\",\n      \"Bank\": \"\",\n      \"BankAccount\": \"\",\n      \"Cname\": \"\",\n      \"CompanyRegistrationNumber\": \"\",\n      \"Country\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"Value\": \"\"\n      },\n      \"CountryId\": 0,\n      \"Currency\": {},\n      \"CurrencyId\": 0,\n      \"CurrencySymbol\": \"\",\n      \"DefaultDateFormat\": \"\",\n      \"DefaultDueDateInDays\": 0,\n      \"DoNotTrack\": false,\n      \"EnableClientPortal\": false,\n      \"EnablePredictiveInvoicing\": false,\n      \"EnableRecurringInvoicing\": false,\n      \"HasInvoiceLogo\": false,\n      \"Iban\": \"\",\n      \"Id\": 0,\n      \"InvoiceTemplate\": \"\",\n      \"InvoiceTemplateColorHex\": \"\",\n      \"PhoneNumber\": \"\",\n      \"Profession\": \"\",\n      \"ReceiveSmsNotifications\": false,\n      \"ReferralProgram\": \"\",\n      \"StoreCheckoutFields\": \"\",\n      \"StoreColorHex\": \"\",\n      \"StoreCurrency\": {},\n      \"StoreCurrencyId\": 0,\n      \"StoreCustomJavaScript\": \"\",\n      \"StoreDescription\": \"\",\n      \"StoreEmail\": \"\",\n      \"StoreLanguage\": {\n        \"Id\": 0,\n        \"Name\": \"\",\n        \"UiCulture\": \"\"\n      },\n      \"StoreLanguageId\": 0,\n      \"StoreName\": \"\",\n      \"StorePurchaseEmailMessage\": \"\",\n      \"StorePurchaseThankYouMessage\": \"\",\n      \"StoreTextColorHex\": \"\",\n      \"StoreUrl\": \"\",\n      \"SubscribeToProductEmails\": false,\n      \"Swift\": \"\",\n      \"Terms\": \"\",\n      \"UserId\": 0,\n      \"UserSignature\": \"\",\n      \"VatNumber\": \"\",\n      \"YearsOfExperience\": 0\n    },\n    \"Status\": \"\",\n    \"SubscriptionPlan\": {\n      \"CancellatedOn\": \"\",\n      \"CouponCode\": \"\",\n      \"CurrencyCode\": \"\",\n      \"ExternalIdentifier\": \"\",\n      \"Features\": [],\n      \"HasDuePayment\": false,\n      \"HasDuePaymentSince\": \"\",\n      \"Id\": 0,\n      \"Identifier\": \"\",\n      \"IsActive\": false,\n      \"IsLifetime\": false,\n      \"LastPaymentOn\": \"\",\n      \"MaxClients\": 0,\n      \"Name\": \"\",\n      \"OnHold\": false,\n      \"OrderIdentifier\": \"\",\n      \"Price\": \"\",\n      \"Recurrence\": \"\",\n      \"SaleId\": 0,\n      \"Status\": \"\",\n      \"SystemCancelationReason\": \"\",\n      \"TrialEndsOn\": \"\",\n      \"TrialNumberOfDays\": 0,\n      \"TrialStartsOn\": \"\",\n      \"UserId\": 0,\n      \"Version\": 0\n    },\n    \"Type\": \"\",\n    \"Username\": \"\",\n    \"VerifiedOn\": \"\",\n    \"YearsOfExperience\": \"\"\n  },\n  \"UserId\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/paymentlink/delete";

    let payload = json!({
        "AccessToken": "",
        "Client": json!({
            "Address": "",
            "ClientCountryId": 0,
            "ClientCurrencyId": 0,
            "CompanyRegistrationNumber": "",
            "DefaultDueDateInDays": 0,
            "Email": "",
            "Id": 0,
            "Name": "",
            "PhoneNumber": "",
            "UiLanguageId": 0,
            "UserId": 0,
            "Vat": ""
        }),
        "ClientId": 0,
        "Currency": json!({
            "Code": "",
            "Id": 0,
            "Name": "",
            "Symbol": "",
            "Value": ""
        }),
        "CurrencyId": 0,
        "DiscountAmount": "",
        "Id": 0,
        "Invoice": json!({
            "AccessToken": "",
            "Activities": (
                json!({
                    "EstimationId": 0,
                    "EstimationNumber": "",
                    "Id": 0,
                    "InvoiceId": 0,
                    "InvoiceNumber": "",
                    "Link": "",
                    "Message": "",
                    "OrderId": 0,
                    "OrderNumber": "",
                    "Type": "",
                    "UserId": 0
                })
            ),
            "Attachments": (
                json!({
                    "Id": 0,
                    "InvoiceId": 0,
                    "Link": "",
                    "ObfuscatedFileName": "",
                    "OriginalFileName": "",
                    "Size": 0,
                    "Type": ""
                })
            ),
            "ClientId": 0,
            "ClonedFromId": 0,
            "CurrencyId": 0,
            "DiscountAmount": "",
            "Duedate": "",
            "EnablePartialPayments": false,
            "EstimationId": 0,
            "Id": 0,
            "InvoiceCategoryId": 0,
            "IsDigitallySigned": false,
            "IssuedOn": "",
            "Items": (
                json!({
                    "Cost": "",
                    "Description": "",
                    "DiscountAmount": "",
                    "DiscountPercentage": "",
                    "Id": 0,
                    "InvoiceId": 0,
                    "Quantity": "",
                    "SubTotalAmount": "",
                    "TaxAmount": "",
                    "TaxId": 0,
                    "TaxPercentage": "",
                    "TotalAmount": "",
                    "WorkTypeId": 0
                })
            ),
            "Notes": "",
            "Number": "",
            "OrderId": 0,
            "PaymentGateways": (
                json!({
                    "Id": 0,
                    "Name": ""
                })
            ),
            "PaymentLinkId": 0,
            "Payments": (
                json!({
                    "Amount": "",
                    "Id": 0,
                    "Invoice": "",
                    "InvoiceId": 0,
                    "IsAutomatic": false,
                    "Note": "",
                    "PaidOn": "",
                    "ReferenceId": "",
                    "Type": ""
                })
            ),
            "PoNumber": "",
            "RecurringProfileId": 0,
            "ShouldSendReminders": false,
            "Status": "",
            "SubTotalAmount": "",
            "TaxAmount": "",
            "Terms": "",
            "TotalAmount": "",
            "UserId": 0
        }),
        "Items": (
            json!({
                "Cost": "",
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "PaymentLinkId": 0,
                "Quantity": "",
                "SubTotalAmount": "",
                "Tax": json!({
                    "Id": 0,
                    "Name": "",
                    "Percentage": "",
                    "UserId": 0
                }),
                "TaxAmount": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "TotalAmount": "",
                "WorkType": json!({
                    "Id": 0,
                    "Title": "",
                    "UserId": 0
                }),
                "WorkTypeId": 0
            })
        ),
        "Number": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TotalAmount": "",
        "User": json!({
            "ActionNotificationsLastReadOn": "",
            "Email": "",
            "ExternalConnections": (
                json!({
                    "AccessToken": "",
                    "AccessTokenSecret": "",
                    "Data": "",
                    "ExpiresOn": "",
                    "ExternalUserId": "",
                    "ExternalUsername": "",
                    "Id": 0,
                    "Provider": "",
                    "UserId": 0
                })
            ),
            "HasBeenOnboarded": false,
            "Id": 0,
            "IsLocked": false,
            "IsVerified": false,
            "KnowledgeNotificationsLastReadOn": "",
            "LastSeenOn": "",
            "Name": "",
            "Password": "",
            "PasswordSalt": "",
            "ReferralPath": "",
            "ReferredUsers": 0,
            "ReferrerKey": "",
            "Settings": json!({
                "AccountantEmail": "",
                "Address": "",
                "ApiKey": "",
                "ApiSecret": "",
                "BackgroundImage": "",
                "Bank": "",
                "BankAccount": "",
                "Cname": "",
                "CompanyRegistrationNumber": "",
                "Country": json!({
                    "Id": 0,
                    "Name": "",
                    "Value": ""
                }),
                "CountryId": 0,
                "Currency": json!({}),
                "CurrencyId": 0,
                "CurrencySymbol": "",
                "DefaultDateFormat": "",
                "DefaultDueDateInDays": 0,
                "DoNotTrack": false,
                "EnableClientPortal": false,
                "EnablePredictiveInvoicing": false,
                "EnableRecurringInvoicing": false,
                "HasInvoiceLogo": false,
                "Iban": "",
                "Id": 0,
                "InvoiceTemplate": "",
                "InvoiceTemplateColorHex": "",
                "PhoneNumber": "",
                "Profession": "",
                "ReceiveSmsNotifications": false,
                "ReferralProgram": "",
                "StoreCheckoutFields": "",
                "StoreColorHex": "",
                "StoreCurrency": json!({}),
                "StoreCurrencyId": 0,
                "StoreCustomJavaScript": "",
                "StoreDescription": "",
                "StoreEmail": "",
                "StoreLanguage": json!({
                    "Id": 0,
                    "Name": "",
                    "UiCulture": ""
                }),
                "StoreLanguageId": 0,
                "StoreName": "",
                "StorePurchaseEmailMessage": "",
                "StorePurchaseThankYouMessage": "",
                "StoreTextColorHex": "",
                "StoreUrl": "",
                "SubscribeToProductEmails": false,
                "Swift": "",
                "Terms": "",
                "UserId": 0,
                "UserSignature": "",
                "VatNumber": "",
                "YearsOfExperience": 0
            }),
            "Status": "",
            "SubscriptionPlan": json!({
                "CancellatedOn": "",
                "CouponCode": "",
                "CurrencyCode": "",
                "ExternalIdentifier": "",
                "Features": (),
                "HasDuePayment": false,
                "HasDuePaymentSince": "",
                "Id": 0,
                "Identifier": "",
                "IsActive": false,
                "IsLifetime": false,
                "LastPaymentOn": "",
                "MaxClients": 0,
                "Name": "",
                "OnHold": false,
                "OrderIdentifier": "",
                "Price": "",
                "Recurrence": "",
                "SaleId": 0,
                "Status": "",
                "SystemCancelationReason": "",
                "TrialEndsOn": "",
                "TrialNumberOfDays": 0,
                "TrialStartsOn": "",
                "UserId": 0,
                "Version": 0
            }),
            "Type": "",
            "Username": "",
            "VerifiedOn": "",
            "YearsOfExperience": ""
        }),
        "UserId": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/paymentlink/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}'
echo '{
  "AccessToken": "",
  "Client": {
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  },
  "ClientId": 0,
  "Currency": {
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  },
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": {
    "AccessToken": "",
    "Activities": [
      {
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      }
    ],
    "Attachments": [
      {
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      }
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      {
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      }
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      {
        "Id": 0,
        "Name": ""
      }
    ],
    "PaymentLinkId": 0,
    "Payments": [
      {
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      }
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  },
  "Items": [
    {
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": {
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      },
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": {
        "Id": 0,
        "Title": "",
        "UserId": 0
      },
      "WorkTypeId": 0
    }
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": {
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      {
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      }
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": {
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": {
        "Id": 0,
        "Name": "",
        "Value": ""
      },
      "CountryId": 0,
      "Currency": {},
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": {},
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": {
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      },
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    },
    "Status": "",
    "SubscriptionPlan": {
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    },
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  },
  "UserId": 0
}' |  \
  http POST {{baseUrl}}/api/paymentlink/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AccessToken": "",\n  "Client": {\n    "Address": "",\n    "ClientCountryId": 0,\n    "ClientCurrencyId": 0,\n    "CompanyRegistrationNumber": "",\n    "DefaultDueDateInDays": 0,\n    "Email": "",\n    "Id": 0,\n    "Name": "",\n    "PhoneNumber": "",\n    "UiLanguageId": 0,\n    "UserId": 0,\n    "Vat": ""\n  },\n  "ClientId": 0,\n  "Currency": {\n    "Code": "",\n    "Id": 0,\n    "Name": "",\n    "Symbol": "",\n    "Value": ""\n  },\n  "CurrencyId": 0,\n  "DiscountAmount": "",\n  "Id": 0,\n  "Invoice": {\n    "AccessToken": "",\n    "Activities": [\n      {\n        "EstimationId": 0,\n        "EstimationNumber": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "InvoiceNumber": "",\n        "Link": "",\n        "Message": "",\n        "OrderId": 0,\n        "OrderNumber": "",\n        "Type": "",\n        "UserId": 0\n      }\n    ],\n    "Attachments": [\n      {\n        "Id": 0,\n        "InvoiceId": 0,\n        "Link": "",\n        "ObfuscatedFileName": "",\n        "OriginalFileName": "",\n        "Size": 0,\n        "Type": ""\n      }\n    ],\n    "ClientId": 0,\n    "ClonedFromId": 0,\n    "CurrencyId": 0,\n    "DiscountAmount": "",\n    "Duedate": "",\n    "EnablePartialPayments": false,\n    "EstimationId": 0,\n    "Id": 0,\n    "InvoiceCategoryId": 0,\n    "IsDigitallySigned": false,\n    "IssuedOn": "",\n    "Items": [\n      {\n        "Cost": "",\n        "Description": "",\n        "DiscountAmount": "",\n        "DiscountPercentage": "",\n        "Id": 0,\n        "InvoiceId": 0,\n        "Quantity": "",\n        "SubTotalAmount": "",\n        "TaxAmount": "",\n        "TaxId": 0,\n        "TaxPercentage": "",\n        "TotalAmount": "",\n        "WorkTypeId": 0\n      }\n    ],\n    "Notes": "",\n    "Number": "",\n    "OrderId": 0,\n    "PaymentGateways": [\n      {\n        "Id": 0,\n        "Name": ""\n      }\n    ],\n    "PaymentLinkId": 0,\n    "Payments": [\n      {\n        "Amount": "",\n        "Id": 0,\n        "Invoice": "",\n        "InvoiceId": 0,\n        "IsAutomatic": false,\n        "Note": "",\n        "PaidOn": "",\n        "ReferenceId": "",\n        "Type": ""\n      }\n    ],\n    "PoNumber": "",\n    "RecurringProfileId": 0,\n    "ShouldSendReminders": false,\n    "Status": "",\n    "SubTotalAmount": "",\n    "TaxAmount": "",\n    "Terms": "",\n    "TotalAmount": "",\n    "UserId": 0\n  },\n  "Items": [\n    {\n      "Cost": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "PaymentLinkId": 0,\n      "Quantity": "",\n      "SubTotalAmount": "",\n      "Tax": {\n        "Id": 0,\n        "Name": "",\n        "Percentage": "",\n        "UserId": 0\n      },\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkType": {\n        "Id": 0,\n        "Title": "",\n        "UserId": 0\n      },\n      "WorkTypeId": 0\n    }\n  ],\n  "Number": "",\n  "SubTotalAmount": "",\n  "TaxAmount": "",\n  "TotalAmount": "",\n  "User": {\n    "ActionNotificationsLastReadOn": "",\n    "Email": "",\n    "ExternalConnections": [\n      {\n        "AccessToken": "",\n        "AccessTokenSecret": "",\n        "Data": "",\n        "ExpiresOn": "",\n        "ExternalUserId": "",\n        "ExternalUsername": "",\n        "Id": 0,\n        "Provider": "",\n        "UserId": 0\n      }\n    ],\n    "HasBeenOnboarded": false,\n    "Id": 0,\n    "IsLocked": false,\n    "IsVerified": false,\n    "KnowledgeNotificationsLastReadOn": "",\n    "LastSeenOn": "",\n    "Name": "",\n    "Password": "",\n    "PasswordSalt": "",\n    "ReferralPath": "",\n    "ReferredUsers": 0,\n    "ReferrerKey": "",\n    "Settings": {\n      "AccountantEmail": "",\n      "Address": "",\n      "ApiKey": "",\n      "ApiSecret": "",\n      "BackgroundImage": "",\n      "Bank": "",\n      "BankAccount": "",\n      "Cname": "",\n      "CompanyRegistrationNumber": "",\n      "Country": {\n        "Id": 0,\n        "Name": "",\n        "Value": ""\n      },\n      "CountryId": 0,\n      "Currency": {},\n      "CurrencyId": 0,\n      "CurrencySymbol": "",\n      "DefaultDateFormat": "",\n      "DefaultDueDateInDays": 0,\n      "DoNotTrack": false,\n      "EnableClientPortal": false,\n      "EnablePredictiveInvoicing": false,\n      "EnableRecurringInvoicing": false,\n      "HasInvoiceLogo": false,\n      "Iban": "",\n      "Id": 0,\n      "InvoiceTemplate": "",\n      "InvoiceTemplateColorHex": "",\n      "PhoneNumber": "",\n      "Profession": "",\n      "ReceiveSmsNotifications": false,\n      "ReferralProgram": "",\n      "StoreCheckoutFields": "",\n      "StoreColorHex": "",\n      "StoreCurrency": {},\n      "StoreCurrencyId": 0,\n      "StoreCustomJavaScript": "",\n      "StoreDescription": "",\n      "StoreEmail": "",\n      "StoreLanguage": {\n        "Id": 0,\n        "Name": "",\n        "UiCulture": ""\n      },\n      "StoreLanguageId": 0,\n      "StoreName": "",\n      "StorePurchaseEmailMessage": "",\n      "StorePurchaseThankYouMessage": "",\n      "StoreTextColorHex": "",\n      "StoreUrl": "",\n      "SubscribeToProductEmails": false,\n      "Swift": "",\n      "Terms": "",\n      "UserId": 0,\n      "UserSignature": "",\n      "VatNumber": "",\n      "YearsOfExperience": 0\n    },\n    "Status": "",\n    "SubscriptionPlan": {\n      "CancellatedOn": "",\n      "CouponCode": "",\n      "CurrencyCode": "",\n      "ExternalIdentifier": "",\n      "Features": [],\n      "HasDuePayment": false,\n      "HasDuePaymentSince": "",\n      "Id": 0,\n      "Identifier": "",\n      "IsActive": false,\n      "IsLifetime": false,\n      "LastPaymentOn": "",\n      "MaxClients": 0,\n      "Name": "",\n      "OnHold": false,\n      "OrderIdentifier": "",\n      "Price": "",\n      "Recurrence": "",\n      "SaleId": 0,\n      "Status": "",\n      "SystemCancelationReason": "",\n      "TrialEndsOn": "",\n      "TrialNumberOfDays": 0,\n      "TrialStartsOn": "",\n      "UserId": 0,\n      "Version": 0\n    },\n    "Type": "",\n    "Username": "",\n    "VerifiedOn": "",\n    "YearsOfExperience": ""\n  },\n  "UserId": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/paymentlink/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AccessToken": "",
  "Client": [
    "Address": "",
    "ClientCountryId": 0,
    "ClientCurrencyId": 0,
    "CompanyRegistrationNumber": "",
    "DefaultDueDateInDays": 0,
    "Email": "",
    "Id": 0,
    "Name": "",
    "PhoneNumber": "",
    "UiLanguageId": 0,
    "UserId": 0,
    "Vat": ""
  ],
  "ClientId": 0,
  "Currency": [
    "Code": "",
    "Id": 0,
    "Name": "",
    "Symbol": "",
    "Value": ""
  ],
  "CurrencyId": 0,
  "DiscountAmount": "",
  "Id": 0,
  "Invoice": [
    "AccessToken": "",
    "Activities": [
      [
        "EstimationId": 0,
        "EstimationNumber": "",
        "Id": 0,
        "InvoiceId": 0,
        "InvoiceNumber": "",
        "Link": "",
        "Message": "",
        "OrderId": 0,
        "OrderNumber": "",
        "Type": "",
        "UserId": 0
      ]
    ],
    "Attachments": [
      [
        "Id": 0,
        "InvoiceId": 0,
        "Link": "",
        "ObfuscatedFileName": "",
        "OriginalFileName": "",
        "Size": 0,
        "Type": ""
      ]
    ],
    "ClientId": 0,
    "ClonedFromId": 0,
    "CurrencyId": 0,
    "DiscountAmount": "",
    "Duedate": "",
    "EnablePartialPayments": false,
    "EstimationId": 0,
    "Id": 0,
    "InvoiceCategoryId": 0,
    "IsDigitallySigned": false,
    "IssuedOn": "",
    "Items": [
      [
        "Cost": "",
        "Description": "",
        "DiscountAmount": "",
        "DiscountPercentage": "",
        "Id": 0,
        "InvoiceId": 0,
        "Quantity": "",
        "SubTotalAmount": "",
        "TaxAmount": "",
        "TaxId": 0,
        "TaxPercentage": "",
        "TotalAmount": "",
        "WorkTypeId": 0
      ]
    ],
    "Notes": "",
    "Number": "",
    "OrderId": 0,
    "PaymentGateways": [
      [
        "Id": 0,
        "Name": ""
      ]
    ],
    "PaymentLinkId": 0,
    "Payments": [
      [
        "Amount": "",
        "Id": 0,
        "Invoice": "",
        "InvoiceId": 0,
        "IsAutomatic": false,
        "Note": "",
        "PaidOn": "",
        "ReferenceId": "",
        "Type": ""
      ]
    ],
    "PoNumber": "",
    "RecurringProfileId": 0,
    "ShouldSendReminders": false,
    "Status": "",
    "SubTotalAmount": "",
    "TaxAmount": "",
    "Terms": "",
    "TotalAmount": "",
    "UserId": 0
  ],
  "Items": [
    [
      "Cost": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "PaymentLinkId": 0,
      "Quantity": "",
      "SubTotalAmount": "",
      "Tax": [
        "Id": 0,
        "Name": "",
        "Percentage": "",
        "UserId": 0
      ],
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkType": [
        "Id": 0,
        "Title": "",
        "UserId": 0
      ],
      "WorkTypeId": 0
    ]
  ],
  "Number": "",
  "SubTotalAmount": "",
  "TaxAmount": "",
  "TotalAmount": "",
  "User": [
    "ActionNotificationsLastReadOn": "",
    "Email": "",
    "ExternalConnections": [
      [
        "AccessToken": "",
        "AccessTokenSecret": "",
        "Data": "",
        "ExpiresOn": "",
        "ExternalUserId": "",
        "ExternalUsername": "",
        "Id": 0,
        "Provider": "",
        "UserId": 0
      ]
    ],
    "HasBeenOnboarded": false,
    "Id": 0,
    "IsLocked": false,
    "IsVerified": false,
    "KnowledgeNotificationsLastReadOn": "",
    "LastSeenOn": "",
    "Name": "",
    "Password": "",
    "PasswordSalt": "",
    "ReferralPath": "",
    "ReferredUsers": 0,
    "ReferrerKey": "",
    "Settings": [
      "AccountantEmail": "",
      "Address": "",
      "ApiKey": "",
      "ApiSecret": "",
      "BackgroundImage": "",
      "Bank": "",
      "BankAccount": "",
      "Cname": "",
      "CompanyRegistrationNumber": "",
      "Country": [
        "Id": 0,
        "Name": "",
        "Value": ""
      ],
      "CountryId": 0,
      "Currency": [],
      "CurrencyId": 0,
      "CurrencySymbol": "",
      "DefaultDateFormat": "",
      "DefaultDueDateInDays": 0,
      "DoNotTrack": false,
      "EnableClientPortal": false,
      "EnablePredictiveInvoicing": false,
      "EnableRecurringInvoicing": false,
      "HasInvoiceLogo": false,
      "Iban": "",
      "Id": 0,
      "InvoiceTemplate": "",
      "InvoiceTemplateColorHex": "",
      "PhoneNumber": "",
      "Profession": "",
      "ReceiveSmsNotifications": false,
      "ReferralProgram": "",
      "StoreCheckoutFields": "",
      "StoreColorHex": "",
      "StoreCurrency": [],
      "StoreCurrencyId": 0,
      "StoreCustomJavaScript": "",
      "StoreDescription": "",
      "StoreEmail": "",
      "StoreLanguage": [
        "Id": 0,
        "Name": "",
        "UiCulture": ""
      ],
      "StoreLanguageId": 0,
      "StoreName": "",
      "StorePurchaseEmailMessage": "",
      "StorePurchaseThankYouMessage": "",
      "StoreTextColorHex": "",
      "StoreUrl": "",
      "SubscribeToProductEmails": false,
      "Swift": "",
      "Terms": "",
      "UserId": 0,
      "UserSignature": "",
      "VatNumber": "",
      "YearsOfExperience": 0
    ],
    "Status": "",
    "SubscriptionPlan": [
      "CancellatedOn": "",
      "CouponCode": "",
      "CurrencyCode": "",
      "ExternalIdentifier": "",
      "Features": [],
      "HasDuePayment": false,
      "HasDuePaymentSince": "",
      "Id": 0,
      "Identifier": "",
      "IsActive": false,
      "IsLifetime": false,
      "LastPaymentOn": "",
      "MaxClients": 0,
      "Name": "",
      "OnHold": false,
      "OrderIdentifier": "",
      "Price": "",
      "Recurrence": "",
      "SaleId": 0,
      "Status": "",
      "SystemCancelationReason": "",
      "TrialEndsOn": "",
      "TrialNumberOfDays": 0,
      "TrialStartsOn": "",
      "UserId": 0,
      "Version": 0
    ],
    "Type": "",
    "Username": "",
    "VerifiedOn": "",
    "YearsOfExperience": ""
  ],
  "UserId": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/paymentlink/delete")! 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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/paymentlink/uri?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/paymentlink/uri" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/paymentlink/uri?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/paymentlink/uri?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/paymentlink/uri?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/paymentlink/uri?id="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/paymentlink/uri?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/paymentlink/uri?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/paymentlink/uri?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/paymentlink/uri?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/paymentlink/uri?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/paymentlink/uri?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/paymentlink/uri',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/paymentlink/uri?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/paymentlink/uri?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/paymentlink/uri?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/paymentlink/uri?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/paymentlink/uri',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/paymentlink/uri');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/paymentlink/uri',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/paymentlink/uri?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/paymentlink/uri?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/paymentlink/uri?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/paymentlink/uri?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/paymentlink/uri?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/paymentlink/uri');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/paymentlink/uri');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/paymentlink/uri?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/paymentlink/uri?id=' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/paymentlink/uri?id=", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/paymentlink/uri"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/paymentlink/uri"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/paymentlink/uri?id=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/paymentlink/uri') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/paymentlink/uri";

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/paymentlink/uri?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/paymentlink/uri?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/paymentlink/uri?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/paymentlink/uri?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Create a product
{{baseUrl}}/api/product/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/product/new");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/product/new" {:headers {:x-auth-key ""
                                                                      :x-auth-secret ""}
                                                            :content-type :json
                                                            :form-params {:AfterPaymentDescription ""
                                                                          :Attachments [{:Id 0
                                                                                         :Link ""
                                                                                         :ObfuscatedFileName ""
                                                                                         :OriginalFileName ""
                                                                                         :Size 0
                                                                                         :Type ""}]
                                                                          :ButtonCallToAction ""
                                                                          :Coupons [{:Code ""
                                                                                     :DiscountAmount ""
                                                                                     :DiscountPercentage ""
                                                                                     :Id 0
                                                                                     :ValidUntil ""}]
                                                                          :CurrencyId 0
                                                                          :Description ""
                                                                          :Discounts [{:DiscountAmount ""
                                                                                       :DiscountPercentage ""
                                                                                       :Id 0
                                                                                       :Name ""
                                                                                       :ValidFrom ""
                                                                                       :ValidTo ""}]
                                                                          :IsFeatured false
                                                                          :Items [{:Cost ""
                                                                                   :Description ""
                                                                                   :Id 0
                                                                                   :MinimumQuantity ""
                                                                                   :ReferenceId ""
                                                                                   :SubTotalAmount ""
                                                                                   :TaxAmount ""
                                                                                   :TaxId 0
                                                                                   :TaxPercentage ""
                                                                                   :TotalAmount ""
                                                                                   :WorkTypeId 0}]
                                                                          :Name ""
                                                                          :PaymentGateways [{:Name ""}]
                                                                          :ShippingAmount ""
                                                                          :ShippingDescription ""
                                                                          :Status ""
                                                                          :WhatHappensNextDescription ""}})
require "http/client"

url = "{{baseUrl}}/api/product/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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}}/api/product/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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}}/api/product/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/product/new"

	payload := strings.NewReader("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/product/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 1070

{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/product/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/product/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/product/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/product/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ButtonCallToAction: '',
  Coupons: [
    {
      Code: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      ValidUntil: ''
    }
  ],
  CurrencyId: 0,
  Description: '',
  Discounts: [
    {
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      Name: '',
      ValidFrom: '',
      ValidTo: ''
    }
  ],
  IsFeatured: false,
  Items: [
    {
      Cost: '',
      Description: '',
      Id: 0,
      MinimumQuantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  WhatHappensNextDescription: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/product/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/product/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AfterPaymentDescription: '',
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ButtonCallToAction: '',
    Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
    CurrencyId: 0,
    Description: '',
    Discounts: [
      {
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        Name: '',
        ValidFrom: '',
        ValidTo: ''
      }
    ],
    IsFeatured: false,
    Items: [
      {
        Cost: '',
        Description: '',
        Id: 0,
        MinimumQuantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    PaymentGateways: [{Name: ''}],
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    WhatHappensNextDescription: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/product/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AfterPaymentDescription":"","Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ButtonCallToAction":"","Coupons":[{"Code":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"ValidUntil":""}],"CurrencyId":0,"Description":"","Discounts":[{"DiscountAmount":"","DiscountPercentage":"","Id":0,"Name":"","ValidFrom":"","ValidTo":""}],"IsFeatured":false,"Items":[{"Cost":"","Description":"","Id":0,"MinimumQuantity":"","ReferenceId":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Name":"","PaymentGateways":[{"Name":""}],"ShippingAmount":"","ShippingDescription":"","Status":"","WhatHappensNextDescription":""}'
};

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}}/api/product/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AfterPaymentDescription": "",\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ButtonCallToAction": "",\n  "Coupons": [\n    {\n      "Code": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "ValidUntil": ""\n    }\n  ],\n  "CurrencyId": 0,\n  "Description": "",\n  "Discounts": [\n    {\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Name": "",\n      "ValidFrom": "",\n      "ValidTo": ""\n    }\n  ],\n  "IsFeatured": false,\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "Id": 0,\n      "MinimumQuantity": "",\n      "ReferenceId": "",\n      "SubTotalAmount": "",\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Name": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "ShippingAmount": "",\n  "ShippingDescription": "",\n  "Status": "",\n  "WhatHappensNextDescription": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/product/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/product/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ButtonCallToAction: '',
  Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
  CurrencyId: 0,
  Description: '',
  Discounts: [
    {
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      Name: '',
      ValidFrom: '',
      ValidTo: ''
    }
  ],
  IsFeatured: false,
  Items: [
    {
      Cost: '',
      Description: '',
      Id: 0,
      MinimumQuantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  PaymentGateways: [{Name: ''}],
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  WhatHappensNextDescription: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/product/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AfterPaymentDescription: '',
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ButtonCallToAction: '',
    Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
    CurrencyId: 0,
    Description: '',
    Discounts: [
      {
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        Name: '',
        ValidFrom: '',
        ValidTo: ''
      }
    ],
    IsFeatured: false,
    Items: [
      {
        Cost: '',
        Description: '',
        Id: 0,
        MinimumQuantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    PaymentGateways: [{Name: ''}],
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    WhatHappensNextDescription: ''
  },
  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}}/api/product/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ButtonCallToAction: '',
  Coupons: [
    {
      Code: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      ValidUntil: ''
    }
  ],
  CurrencyId: 0,
  Description: '',
  Discounts: [
    {
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      Name: '',
      ValidFrom: '',
      ValidTo: ''
    }
  ],
  IsFeatured: false,
  Items: [
    {
      Cost: '',
      Description: '',
      Id: 0,
      MinimumQuantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  WhatHappensNextDescription: ''
});

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}}/api/product/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AfterPaymentDescription: '',
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ButtonCallToAction: '',
    Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
    CurrencyId: 0,
    Description: '',
    Discounts: [
      {
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        Name: '',
        ValidFrom: '',
        ValidTo: ''
      }
    ],
    IsFeatured: false,
    Items: [
      {
        Cost: '',
        Description: '',
        Id: 0,
        MinimumQuantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    PaymentGateways: [{Name: ''}],
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    WhatHappensNextDescription: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/product/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AfterPaymentDescription":"","Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ButtonCallToAction":"","Coupons":[{"Code":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"ValidUntil":""}],"CurrencyId":0,"Description":"","Discounts":[{"DiscountAmount":"","DiscountPercentage":"","Id":0,"Name":"","ValidFrom":"","ValidTo":""}],"IsFeatured":false,"Items":[{"Cost":"","Description":"","Id":0,"MinimumQuantity":"","ReferenceId":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Name":"","PaymentGateways":[{"Name":""}],"ShippingAmount":"","ShippingDescription":"","Status":"","WhatHappensNextDescription":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AfterPaymentDescription": @"",
                              @"Attachments": @[ @{ @"Id": @0, @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ],
                              @"ButtonCallToAction": @"",
                              @"Coupons": @[ @{ @"Code": @"", @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"ValidUntil": @"" } ],
                              @"CurrencyId": @0,
                              @"Description": @"",
                              @"Discounts": @[ @{ @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"Name": @"", @"ValidFrom": @"", @"ValidTo": @"" } ],
                              @"IsFeatured": @NO,
                              @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"Id": @0, @"MinimumQuantity": @"", @"ReferenceId": @"", @"SubTotalAmount": @"", @"TaxAmount": @"", @"TaxId": @0, @"TaxPercentage": @"", @"TotalAmount": @"", @"WorkTypeId": @0 } ],
                              @"Name": @"",
                              @"PaymentGateways": @[ @{ @"Name": @"" } ],
                              @"ShippingAmount": @"",
                              @"ShippingDescription": @"",
                              @"Status": @"",
                              @"WhatHappensNextDescription": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/product/new"]
                                                       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}}/api/product/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/product/new",
  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([
    'AfterPaymentDescription' => '',
    'Attachments' => [
        [
                'Id' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ButtonCallToAction' => '',
    'Coupons' => [
        [
                'Code' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'ValidUntil' => ''
        ]
    ],
    'CurrencyId' => 0,
    'Description' => '',
    'Discounts' => [
        [
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'Name' => '',
                'ValidFrom' => '',
                'ValidTo' => ''
        ]
    ],
    'IsFeatured' => null,
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'Id' => 0,
                'MinimumQuantity' => '',
                'ReferenceId' => '',
                'SubTotalAmount' => '',
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Name' => '',
    'PaymentGateways' => [
        [
                'Name' => ''
        ]
    ],
    'ShippingAmount' => '',
    'ShippingDescription' => '',
    'Status' => '',
    'WhatHappensNextDescription' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/product/new', [
  'body' => '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/product/new');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AfterPaymentDescription' => '',
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ButtonCallToAction' => '',
  'Coupons' => [
    [
        'Code' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'ValidUntil' => ''
    ]
  ],
  'CurrencyId' => 0,
  'Description' => '',
  'Discounts' => [
    [
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Name' => '',
        'ValidFrom' => '',
        'ValidTo' => ''
    ]
  ],
  'IsFeatured' => null,
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'Id' => 0,
        'MinimumQuantity' => '',
        'ReferenceId' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Name' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'ShippingAmount' => '',
  'ShippingDescription' => '',
  'Status' => '',
  'WhatHappensNextDescription' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AfterPaymentDescription' => '',
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ButtonCallToAction' => '',
  'Coupons' => [
    [
        'Code' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'ValidUntil' => ''
    ]
  ],
  'CurrencyId' => 0,
  'Description' => '',
  'Discounts' => [
    [
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Name' => '',
        'ValidFrom' => '',
        'ValidTo' => ''
    ]
  ],
  'IsFeatured' => null,
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'Id' => 0,
        'MinimumQuantity' => '',
        'ReferenceId' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Name' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'ShippingAmount' => '',
  'ShippingDescription' => '',
  'Status' => '',
  'WhatHappensNextDescription' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/product/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/product/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/product/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/product/new", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/product/new"

payload = {
    "AfterPaymentDescription": "",
    "Attachments": [
        {
            "Id": 0,
            "Link": "",
            "ObfuscatedFileName": "",
            "OriginalFileName": "",
            "Size": 0,
            "Type": ""
        }
    ],
    "ButtonCallToAction": "",
    "Coupons": [
        {
            "Code": "",
            "DiscountAmount": "",
            "DiscountPercentage": "",
            "Id": 0,
            "ValidUntil": ""
        }
    ],
    "CurrencyId": 0,
    "Description": "",
    "Discounts": [
        {
            "DiscountAmount": "",
            "DiscountPercentage": "",
            "Id": 0,
            "Name": "",
            "ValidFrom": "",
            "ValidTo": ""
        }
    ],
    "IsFeatured": False,
    "Items": [
        {
            "Cost": "",
            "Description": "",
            "Id": 0,
            "MinimumQuantity": "",
            "ReferenceId": "",
            "SubTotalAmount": "",
            "TaxAmount": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "TotalAmount": "",
            "WorkTypeId": 0
        }
    ],
    "Name": "",
    "PaymentGateways": [{ "Name": "" }],
    "ShippingAmount": "",
    "ShippingDescription": "",
    "Status": "",
    "WhatHappensNextDescription": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/product/new"

payload <- "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/product/new")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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/api/product/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/product/new";

    let payload = json!({
        "AfterPaymentDescription": "",
        "Attachments": (
            json!({
                "Id": 0,
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            })
        ),
        "ButtonCallToAction": "",
        "Coupons": (
            json!({
                "Code": "",
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "ValidUntil": ""
            })
        ),
        "CurrencyId": 0,
        "Description": "",
        "Discounts": (
            json!({
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "Name": "",
                "ValidFrom": "",
                "ValidTo": ""
            })
        ),
        "IsFeatured": false,
        "Items": (
            json!({
                "Cost": "",
                "Description": "",
                "Id": 0,
                "MinimumQuantity": "",
                "ReferenceId": "",
                "SubTotalAmount": "",
                "TaxAmount": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "TotalAmount": "",
                "WorkTypeId": 0
            })
        ),
        "Name": "",
        "PaymentGateways": (json!({"Name": ""})),
        "ShippingAmount": "",
        "ShippingDescription": "",
        "Status": "",
        "WhatHappensNextDescription": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/product/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}'
echo '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}' |  \
  http POST {{baseUrl}}/api/product/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AfterPaymentDescription": "",\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ButtonCallToAction": "",\n  "Coupons": [\n    {\n      "Code": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "ValidUntil": ""\n    }\n  ],\n  "CurrencyId": 0,\n  "Description": "",\n  "Discounts": [\n    {\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Name": "",\n      "ValidFrom": "",\n      "ValidTo": ""\n    }\n  ],\n  "IsFeatured": false,\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "Id": 0,\n      "MinimumQuantity": "",\n      "ReferenceId": "",\n      "SubTotalAmount": "",\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Name": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "ShippingAmount": "",\n  "ShippingDescription": "",\n  "Status": "",\n  "WhatHappensNextDescription": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/product/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AfterPaymentDescription": "",
  "Attachments": [
    [
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    ]
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    [
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    ]
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    [
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    ]
  ],
  "IsFeatured": false,
  "Items": [
    [
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    ]
  ],
  "Name": "",
  "PaymentGateways": [["Name": ""]],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/product/new")! 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()
POST Delete an existing product
{{baseUrl}}/api/product/delete
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/product/delete");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/product/delete" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :content-type :json
                                                               :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/product/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/product/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/product/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/product/delete"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/product/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/product/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/product/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/product/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/product/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/product/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/product/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/product/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/product/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/product/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/product/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/product/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/product/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/product/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/product/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/product/delete"]
                                                       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}}/api/product/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/product/delete",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/product/delete', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/product/delete');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/product/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/product/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/product/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/product/delete", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/product/delete"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/product/delete"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/product/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/product/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/product/delete";

    let payload = json!({"Id": 0});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/product/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/product/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/product/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/product/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return all products for the account
{{baseUrl}}/api/product/all
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/product/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/product/all" {:headers {:x-auth-key ""
                                                                     :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/product/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/product/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/product/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/product/all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/product/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/product/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/product/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/product/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/product/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/product/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/product/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/product/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/product/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/product/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/product/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/product/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/product/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/product/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/product/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/product/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/product/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/product/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/product/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/product/all');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/product/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/product/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/product/all' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/product/all", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/product/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/product/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/product/all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/product/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/product/all";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/product/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/product/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/product/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/product/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return product details
{{baseUrl}}/api/product/details
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/product/details?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/product/details" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :query-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/api/product/details?id="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/product/details?id="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/product/details?id=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/product/details?id="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/product/details?id= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/product/details?id=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/product/details?id="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/product/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/product/details?id=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/product/details?id=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/product/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/product/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/product/details?id=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/product/details?id=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/product/details?id=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/product/details',
  qs: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/product/details');

req.query({
  id: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/product/details',
  params: {id: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/product/details?id=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/product/details?id="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/product/details?id=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/product/details?id=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/product/details?id=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/product/details');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/product/details');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'id' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/product/details?id=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/product/details?id=' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/product/details?id=", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/product/details"

querystring = {"id":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/product/details"

queryString <- list(id = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/product/details?id=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/product/details') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['id'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/product/details";

    let querystring = [
        ("id", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/product/details?id=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/product/details?id=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/product/details?id='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/product/details?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Update an existing product
{{baseUrl}}/api/product/update
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/product/update");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/product/update" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}
                                                               :content-type :json
                                                               :form-params {:AfterPaymentDescription ""
                                                                             :Attachments [{:Id 0
                                                                                            :Link ""
                                                                                            :ObfuscatedFileName ""
                                                                                            :OriginalFileName ""
                                                                                            :Size 0
                                                                                            :Type ""}]
                                                                             :ButtonCallToAction ""
                                                                             :Coupons [{:Code ""
                                                                                        :DiscountAmount ""
                                                                                        :DiscountPercentage ""
                                                                                        :Id 0
                                                                                        :ValidUntil ""}]
                                                                             :CurrencyId 0
                                                                             :Description ""
                                                                             :Discounts [{:DiscountAmount ""
                                                                                          :DiscountPercentage ""
                                                                                          :Id 0
                                                                                          :Name ""
                                                                                          :ValidFrom ""
                                                                                          :ValidTo ""}]
                                                                             :Id 0
                                                                             :IsFeatured false
                                                                             :Items [{:Cost ""
                                                                                      :Description ""
                                                                                      :Id 0
                                                                                      :MinimumQuantity ""
                                                                                      :ReferenceId ""
                                                                                      :SubTotalAmount ""
                                                                                      :TaxAmount ""
                                                                                      :TaxId 0
                                                                                      :TaxPercentage ""
                                                                                      :TotalAmount ""
                                                                                      :WorkTypeId 0}]
                                                                             :Name ""
                                                                             :PaymentGateways [{:Name ""}]
                                                                             :ShippingAmount ""
                                                                             :ShippingDescription ""
                                                                             :Status ""
                                                                             :WhatHappensNextDescription ""}})
require "http/client"

url = "{{baseUrl}}/api/product/update"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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}}/api/product/update"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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}}/api/product/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/product/update"

	payload := strings.NewReader("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/product/update HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 1081

{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/product/update")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/product/update"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/product/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/product/update")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ButtonCallToAction: '',
  Coupons: [
    {
      Code: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      ValidUntil: ''
    }
  ],
  CurrencyId: 0,
  Description: '',
  Discounts: [
    {
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      Name: '',
      ValidFrom: '',
      ValidTo: ''
    }
  ],
  Id: 0,
  IsFeatured: false,
  Items: [
    {
      Cost: '',
      Description: '',
      Id: 0,
      MinimumQuantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  WhatHappensNextDescription: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/product/update');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/product/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AfterPaymentDescription: '',
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ButtonCallToAction: '',
    Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
    CurrencyId: 0,
    Description: '',
    Discounts: [
      {
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        Name: '',
        ValidFrom: '',
        ValidTo: ''
      }
    ],
    Id: 0,
    IsFeatured: false,
    Items: [
      {
        Cost: '',
        Description: '',
        Id: 0,
        MinimumQuantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    PaymentGateways: [{Name: ''}],
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    WhatHappensNextDescription: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/product/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AfterPaymentDescription":"","Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ButtonCallToAction":"","Coupons":[{"Code":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"ValidUntil":""}],"CurrencyId":0,"Description":"","Discounts":[{"DiscountAmount":"","DiscountPercentage":"","Id":0,"Name":"","ValidFrom":"","ValidTo":""}],"Id":0,"IsFeatured":false,"Items":[{"Cost":"","Description":"","Id":0,"MinimumQuantity":"","ReferenceId":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Name":"","PaymentGateways":[{"Name":""}],"ShippingAmount":"","ShippingDescription":"","Status":"","WhatHappensNextDescription":""}'
};

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}}/api/product/update',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "AfterPaymentDescription": "",\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ButtonCallToAction": "",\n  "Coupons": [\n    {\n      "Code": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "ValidUntil": ""\n    }\n  ],\n  "CurrencyId": 0,\n  "Description": "",\n  "Discounts": [\n    {\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Name": "",\n      "ValidFrom": "",\n      "ValidTo": ""\n    }\n  ],\n  "Id": 0,\n  "IsFeatured": false,\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "Id": 0,\n      "MinimumQuantity": "",\n      "ReferenceId": "",\n      "SubTotalAmount": "",\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Name": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "ShippingAmount": "",\n  "ShippingDescription": "",\n  "Status": "",\n  "WhatHappensNextDescription": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/product/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/product/update',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ButtonCallToAction: '',
  Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
  CurrencyId: 0,
  Description: '',
  Discounts: [
    {
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      Name: '',
      ValidFrom: '',
      ValidTo: ''
    }
  ],
  Id: 0,
  IsFeatured: false,
  Items: [
    {
      Cost: '',
      Description: '',
      Id: 0,
      MinimumQuantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  PaymentGateways: [{Name: ''}],
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  WhatHappensNextDescription: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/product/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {
    AfterPaymentDescription: '',
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ButtonCallToAction: '',
    Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
    CurrencyId: 0,
    Description: '',
    Discounts: [
      {
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        Name: '',
        ValidFrom: '',
        ValidTo: ''
      }
    ],
    Id: 0,
    IsFeatured: false,
    Items: [
      {
        Cost: '',
        Description: '',
        Id: 0,
        MinimumQuantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    PaymentGateways: [{Name: ''}],
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    WhatHappensNextDescription: ''
  },
  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}}/api/product/update');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  AfterPaymentDescription: '',
  Attachments: [
    {
      Id: 0,
      Link: '',
      ObfuscatedFileName: '',
      OriginalFileName: '',
      Size: 0,
      Type: ''
    }
  ],
  ButtonCallToAction: '',
  Coupons: [
    {
      Code: '',
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      ValidUntil: ''
    }
  ],
  CurrencyId: 0,
  Description: '',
  Discounts: [
    {
      DiscountAmount: '',
      DiscountPercentage: '',
      Id: 0,
      Name: '',
      ValidFrom: '',
      ValidTo: ''
    }
  ],
  Id: 0,
  IsFeatured: false,
  Items: [
    {
      Cost: '',
      Description: '',
      Id: 0,
      MinimumQuantity: '',
      ReferenceId: '',
      SubTotalAmount: '',
      TaxAmount: '',
      TaxId: 0,
      TaxPercentage: '',
      TotalAmount: '',
      WorkTypeId: 0
    }
  ],
  Name: '',
  PaymentGateways: [
    {
      Name: ''
    }
  ],
  ShippingAmount: '',
  ShippingDescription: '',
  Status: '',
  WhatHappensNextDescription: ''
});

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}}/api/product/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {
    AfterPaymentDescription: '',
    Attachments: [
      {
        Id: 0,
        Link: '',
        ObfuscatedFileName: '',
        OriginalFileName: '',
        Size: 0,
        Type: ''
      }
    ],
    ButtonCallToAction: '',
    Coupons: [{Code: '', DiscountAmount: '', DiscountPercentage: '', Id: 0, ValidUntil: ''}],
    CurrencyId: 0,
    Description: '',
    Discounts: [
      {
        DiscountAmount: '',
        DiscountPercentage: '',
        Id: 0,
        Name: '',
        ValidFrom: '',
        ValidTo: ''
      }
    ],
    Id: 0,
    IsFeatured: false,
    Items: [
      {
        Cost: '',
        Description: '',
        Id: 0,
        MinimumQuantity: '',
        ReferenceId: '',
        SubTotalAmount: '',
        TaxAmount: '',
        TaxId: 0,
        TaxPercentage: '',
        TotalAmount: '',
        WorkTypeId: 0
      }
    ],
    Name: '',
    PaymentGateways: [{Name: ''}],
    ShippingAmount: '',
    ShippingDescription: '',
    Status: '',
    WhatHappensNextDescription: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/product/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"AfterPaymentDescription":"","Attachments":[{"Id":0,"Link":"","ObfuscatedFileName":"","OriginalFileName":"","Size":0,"Type":""}],"ButtonCallToAction":"","Coupons":[{"Code":"","DiscountAmount":"","DiscountPercentage":"","Id":0,"ValidUntil":""}],"CurrencyId":0,"Description":"","Discounts":[{"DiscountAmount":"","DiscountPercentage":"","Id":0,"Name":"","ValidFrom":"","ValidTo":""}],"Id":0,"IsFeatured":false,"Items":[{"Cost":"","Description":"","Id":0,"MinimumQuantity":"","ReferenceId":"","SubTotalAmount":"","TaxAmount":"","TaxId":0,"TaxPercentage":"","TotalAmount":"","WorkTypeId":0}],"Name":"","PaymentGateways":[{"Name":""}],"ShippingAmount":"","ShippingDescription":"","Status":"","WhatHappensNextDescription":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"AfterPaymentDescription": @"",
                              @"Attachments": @[ @{ @"Id": @0, @"Link": @"", @"ObfuscatedFileName": @"", @"OriginalFileName": @"", @"Size": @0, @"Type": @"" } ],
                              @"ButtonCallToAction": @"",
                              @"Coupons": @[ @{ @"Code": @"", @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"ValidUntil": @"" } ],
                              @"CurrencyId": @0,
                              @"Description": @"",
                              @"Discounts": @[ @{ @"DiscountAmount": @"", @"DiscountPercentage": @"", @"Id": @0, @"Name": @"", @"ValidFrom": @"", @"ValidTo": @"" } ],
                              @"Id": @0,
                              @"IsFeatured": @NO,
                              @"Items": @[ @{ @"Cost": @"", @"Description": @"", @"Id": @0, @"MinimumQuantity": @"", @"ReferenceId": @"", @"SubTotalAmount": @"", @"TaxAmount": @"", @"TaxId": @0, @"TaxPercentage": @"", @"TotalAmount": @"", @"WorkTypeId": @0 } ],
                              @"Name": @"",
                              @"PaymentGateways": @[ @{ @"Name": @"" } ],
                              @"ShippingAmount": @"",
                              @"ShippingDescription": @"",
                              @"Status": @"",
                              @"WhatHappensNextDescription": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/product/update"]
                                                       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}}/api/product/update" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/product/update",
  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([
    'AfterPaymentDescription' => '',
    'Attachments' => [
        [
                'Id' => 0,
                'Link' => '',
                'ObfuscatedFileName' => '',
                'OriginalFileName' => '',
                'Size' => 0,
                'Type' => ''
        ]
    ],
    'ButtonCallToAction' => '',
    'Coupons' => [
        [
                'Code' => '',
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'ValidUntil' => ''
        ]
    ],
    'CurrencyId' => 0,
    'Description' => '',
    'Discounts' => [
        [
                'DiscountAmount' => '',
                'DiscountPercentage' => '',
                'Id' => 0,
                'Name' => '',
                'ValidFrom' => '',
                'ValidTo' => ''
        ]
    ],
    'Id' => 0,
    'IsFeatured' => null,
    'Items' => [
        [
                'Cost' => '',
                'Description' => '',
                'Id' => 0,
                'MinimumQuantity' => '',
                'ReferenceId' => '',
                'SubTotalAmount' => '',
                'TaxAmount' => '',
                'TaxId' => 0,
                'TaxPercentage' => '',
                'TotalAmount' => '',
                'WorkTypeId' => 0
        ]
    ],
    'Name' => '',
    'PaymentGateways' => [
        [
                'Name' => ''
        ]
    ],
    'ShippingAmount' => '',
    'ShippingDescription' => '',
    'Status' => '',
    'WhatHappensNextDescription' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/product/update', [
  'body' => '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/product/update');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'AfterPaymentDescription' => '',
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ButtonCallToAction' => '',
  'Coupons' => [
    [
        'Code' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'ValidUntil' => ''
    ]
  ],
  'CurrencyId' => 0,
  'Description' => '',
  'Discounts' => [
    [
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Name' => '',
        'ValidFrom' => '',
        'ValidTo' => ''
    ]
  ],
  'Id' => 0,
  'IsFeatured' => null,
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'Id' => 0,
        'MinimumQuantity' => '',
        'ReferenceId' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Name' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'ShippingAmount' => '',
  'ShippingDescription' => '',
  'Status' => '',
  'WhatHappensNextDescription' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'AfterPaymentDescription' => '',
  'Attachments' => [
    [
        'Id' => 0,
        'Link' => '',
        'ObfuscatedFileName' => '',
        'OriginalFileName' => '',
        'Size' => 0,
        'Type' => ''
    ]
  ],
  'ButtonCallToAction' => '',
  'Coupons' => [
    [
        'Code' => '',
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'ValidUntil' => ''
    ]
  ],
  'CurrencyId' => 0,
  'Description' => '',
  'Discounts' => [
    [
        'DiscountAmount' => '',
        'DiscountPercentage' => '',
        'Id' => 0,
        'Name' => '',
        'ValidFrom' => '',
        'ValidTo' => ''
    ]
  ],
  'Id' => 0,
  'IsFeatured' => null,
  'Items' => [
    [
        'Cost' => '',
        'Description' => '',
        'Id' => 0,
        'MinimumQuantity' => '',
        'ReferenceId' => '',
        'SubTotalAmount' => '',
        'TaxAmount' => '',
        'TaxId' => 0,
        'TaxPercentage' => '',
        'TotalAmount' => '',
        'WorkTypeId' => 0
    ]
  ],
  'Name' => '',
  'PaymentGateways' => [
    [
        'Name' => ''
    ]
  ],
  'ShippingAmount' => '',
  'ShippingDescription' => '',
  'Status' => '',
  'WhatHappensNextDescription' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/product/update');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/product/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/product/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/product/update", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/product/update"

payload = {
    "AfterPaymentDescription": "",
    "Attachments": [
        {
            "Id": 0,
            "Link": "",
            "ObfuscatedFileName": "",
            "OriginalFileName": "",
            "Size": 0,
            "Type": ""
        }
    ],
    "ButtonCallToAction": "",
    "Coupons": [
        {
            "Code": "",
            "DiscountAmount": "",
            "DiscountPercentage": "",
            "Id": 0,
            "ValidUntil": ""
        }
    ],
    "CurrencyId": 0,
    "Description": "",
    "Discounts": [
        {
            "DiscountAmount": "",
            "DiscountPercentage": "",
            "Id": 0,
            "Name": "",
            "ValidFrom": "",
            "ValidTo": ""
        }
    ],
    "Id": 0,
    "IsFeatured": False,
    "Items": [
        {
            "Cost": "",
            "Description": "",
            "Id": 0,
            "MinimumQuantity": "",
            "ReferenceId": "",
            "SubTotalAmount": "",
            "TaxAmount": "",
            "TaxId": 0,
            "TaxPercentage": "",
            "TotalAmount": "",
            "WorkTypeId": 0
        }
    ],
    "Name": "",
    "PaymentGateways": [{ "Name": "" }],
    "ShippingAmount": "",
    "ShippingDescription": "",
    "Status": "",
    "WhatHappensNextDescription": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/product/update"

payload <- "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/product/update")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\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/api/product/update') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"AfterPaymentDescription\": \"\",\n  \"Attachments\": [\n    {\n      \"Id\": 0,\n      \"Link\": \"\",\n      \"ObfuscatedFileName\": \"\",\n      \"OriginalFileName\": \"\",\n      \"Size\": 0,\n      \"Type\": \"\"\n    }\n  ],\n  \"ButtonCallToAction\": \"\",\n  \"Coupons\": [\n    {\n      \"Code\": \"\",\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"ValidUntil\": \"\"\n    }\n  ],\n  \"CurrencyId\": 0,\n  \"Description\": \"\",\n  \"Discounts\": [\n    {\n      \"DiscountAmount\": \"\",\n      \"DiscountPercentage\": \"\",\n      \"Id\": 0,\n      \"Name\": \"\",\n      \"ValidFrom\": \"\",\n      \"ValidTo\": \"\"\n    }\n  ],\n  \"Id\": 0,\n  \"IsFeatured\": false,\n  \"Items\": [\n    {\n      \"Cost\": \"\",\n      \"Description\": \"\",\n      \"Id\": 0,\n      \"MinimumQuantity\": \"\",\n      \"ReferenceId\": \"\",\n      \"SubTotalAmount\": \"\",\n      \"TaxAmount\": \"\",\n      \"TaxId\": 0,\n      \"TaxPercentage\": \"\",\n      \"TotalAmount\": \"\",\n      \"WorkTypeId\": 0\n    }\n  ],\n  \"Name\": \"\",\n  \"PaymentGateways\": [\n    {\n      \"Name\": \"\"\n    }\n  ],\n  \"ShippingAmount\": \"\",\n  \"ShippingDescription\": \"\",\n  \"Status\": \"\",\n  \"WhatHappensNextDescription\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/product/update";

    let payload = json!({
        "AfterPaymentDescription": "",
        "Attachments": (
            json!({
                "Id": 0,
                "Link": "",
                "ObfuscatedFileName": "",
                "OriginalFileName": "",
                "Size": 0,
                "Type": ""
            })
        ),
        "ButtonCallToAction": "",
        "Coupons": (
            json!({
                "Code": "",
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "ValidUntil": ""
            })
        ),
        "CurrencyId": 0,
        "Description": "",
        "Discounts": (
            json!({
                "DiscountAmount": "",
                "DiscountPercentage": "",
                "Id": 0,
                "Name": "",
                "ValidFrom": "",
                "ValidTo": ""
            })
        ),
        "Id": 0,
        "IsFeatured": false,
        "Items": (
            json!({
                "Cost": "",
                "Description": "",
                "Id": 0,
                "MinimumQuantity": "",
                "ReferenceId": "",
                "SubTotalAmount": "",
                "TaxAmount": "",
                "TaxId": 0,
                "TaxPercentage": "",
                "TotalAmount": "",
                "WorkTypeId": 0
            })
        ),
        "Name": "",
        "PaymentGateways": (json!({"Name": ""})),
        "ShippingAmount": "",
        "ShippingDescription": "",
        "Status": "",
        "WhatHappensNextDescription": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/product/update \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}'
echo '{
  "AfterPaymentDescription": "",
  "Attachments": [
    {
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    }
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    {
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    }
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    {
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    }
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    {
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    }
  ],
  "Name": "",
  "PaymentGateways": [
    {
      "Name": ""
    }
  ],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
}' |  \
  http POST {{baseUrl}}/api/product/update \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "AfterPaymentDescription": "",\n  "Attachments": [\n    {\n      "Id": 0,\n      "Link": "",\n      "ObfuscatedFileName": "",\n      "OriginalFileName": "",\n      "Size": 0,\n      "Type": ""\n    }\n  ],\n  "ButtonCallToAction": "",\n  "Coupons": [\n    {\n      "Code": "",\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "ValidUntil": ""\n    }\n  ],\n  "CurrencyId": 0,\n  "Description": "",\n  "Discounts": [\n    {\n      "DiscountAmount": "",\n      "DiscountPercentage": "",\n      "Id": 0,\n      "Name": "",\n      "ValidFrom": "",\n      "ValidTo": ""\n    }\n  ],\n  "Id": 0,\n  "IsFeatured": false,\n  "Items": [\n    {\n      "Cost": "",\n      "Description": "",\n      "Id": 0,\n      "MinimumQuantity": "",\n      "ReferenceId": "",\n      "SubTotalAmount": "",\n      "TaxAmount": "",\n      "TaxId": 0,\n      "TaxPercentage": "",\n      "TotalAmount": "",\n      "WorkTypeId": 0\n    }\n  ],\n  "Name": "",\n  "PaymentGateways": [\n    {\n      "Name": ""\n    }\n  ],\n  "ShippingAmount": "",\n  "ShippingDescription": "",\n  "Status": "",\n  "WhatHappensNextDescription": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/product/update
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "AfterPaymentDescription": "",
  "Attachments": [
    [
      "Id": 0,
      "Link": "",
      "ObfuscatedFileName": "",
      "OriginalFileName": "",
      "Size": 0,
      "Type": ""
    ]
  ],
  "ButtonCallToAction": "",
  "Coupons": [
    [
      "Code": "",
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "ValidUntil": ""
    ]
  ],
  "CurrencyId": 0,
  "Description": "",
  "Discounts": [
    [
      "DiscountAmount": "",
      "DiscountPercentage": "",
      "Id": 0,
      "Name": "",
      "ValidFrom": "",
      "ValidTo": ""
    ]
  ],
  "Id": 0,
  "IsFeatured": false,
  "Items": [
    [
      "Cost": "",
      "Description": "",
      "Id": 0,
      "MinimumQuantity": "",
      "ReferenceId": "",
      "SubTotalAmount": "",
      "TaxAmount": "",
      "TaxId": 0,
      "TaxPercentage": "",
      "TotalAmount": "",
      "WorkTypeId": 0
    ]
  ],
  "Name": "",
  "PaymentGateways": [["Name": ""]],
  "ShippingAmount": "",
  "ShippingDescription": "",
  "Status": "",
  "WhatHappensNextDescription": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/product/update")! 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()
POST Create a tax
{{baseUrl}}/api/tax/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Name": "",
  "Percentage": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/tax/new");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/tax/new" {:headers {:x-auth-key ""
                                                                  :x-auth-secret ""}
                                                        :content-type :json
                                                        :form-params {:Name ""
                                                                      :Percentage ""}})
require "http/client"

url = "{{baseUrl}}/api/tax/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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}}/api/tax/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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}}/api/tax/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/tax/new"

	payload := strings.NewReader("{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/tax/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 36

{
  "Name": "",
  "Percentage": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/tax/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/tax/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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  \"Name\": \"\",\n  \"Percentage\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/tax/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/tax/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Name: '',
  Percentage: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/tax/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/tax/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Name: '', Percentage: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/tax/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Name":"","Percentage":""}'
};

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}}/api/tax/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Name": "",\n  "Percentage": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/tax/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/tax/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Name: '', Percentage: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/tax/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Name: '', Percentage: ''},
  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}}/api/tax/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Name: '',
  Percentage: ''
});

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}}/api/tax/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Name: '', Percentage: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/tax/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Name":"","Percentage":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Name": @"",
                              @"Percentage": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/tax/new"]
                                                       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}}/api/tax/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/tax/new",
  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([
    'Name' => '',
    'Percentage' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/tax/new', [
  'body' => '{
  "Name": "",
  "Percentage": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/tax/new');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Name' => '',
  'Percentage' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Name' => '',
  'Percentage' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/tax/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/tax/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Name": "",
  "Percentage": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/tax/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Name": "",
  "Percentage": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/tax/new", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/tax/new"

payload = {
    "Name": "",
    "Percentage": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/tax/new"

payload <- "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/tax/new")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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/api/tax/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/tax/new";

    let payload = json!({
        "Name": "",
        "Percentage": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/tax/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Name": "",
  "Percentage": ""
}'
echo '{
  "Name": "",
  "Percentage": ""
}' |  \
  http POST {{baseUrl}}/api/tax/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Name": "",\n  "Percentage": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/tax/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Name": "",
  "Percentage": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/tax/new")! 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()
POST Delete an existing tax
{{baseUrl}}/api/tax/delete
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/tax/delete");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/tax/delete" {:headers {:x-auth-key ""
                                                                     :x-auth-secret ""}
                                                           :content-type :json
                                                           :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/tax/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/tax/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/tax/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/tax/delete"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/tax/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/tax/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/tax/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/tax/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/tax/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/tax/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/tax/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/tax/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/tax/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/tax/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/tax/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/tax/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/tax/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/tax/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/tax/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/tax/delete"]
                                                       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}}/api/tax/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/tax/delete",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/tax/delete', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/tax/delete');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/tax/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/tax/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/tax/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/tax/delete", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/tax/delete"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/tax/delete"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/tax/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/tax/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/tax/delete";

    let payload = json!({"Id": 0});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/tax/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/tax/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/tax/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/tax/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return all taxes for the account
{{baseUrl}}/api/tax/all
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/tax/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/tax/all" {:headers {:x-auth-key ""
                                                                 :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/tax/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/tax/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/tax/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/tax/all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/tax/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/tax/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/tax/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/tax/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/tax/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/tax/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/tax/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/tax/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/tax/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/tax/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/tax/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/tax/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/tax/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/tax/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/tax/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/tax/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/tax/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/tax/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/tax/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/tax/all');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/tax/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/tax/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/tax/all' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/tax/all", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/tax/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/tax/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/tax/all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/tax/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/tax/all";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/tax/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/tax/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/tax/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/tax/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Update an existing tax
{{baseUrl}}/api/tax/update
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0,
  "Name": "",
  "Percentage": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/tax/update");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/tax/update" {:headers {:x-auth-key ""
                                                                     :x-auth-secret ""}
                                                           :content-type :json
                                                           :form-params {:Id 0
                                                                         :Name ""
                                                                         :Percentage ""}})
require "http/client"

url = "{{baseUrl}}/api/tax/update"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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}}/api/tax/update"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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}}/api/tax/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/tax/update"

	payload := strings.NewReader("{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/tax/update HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 47

{
  "Id": 0,
  "Name": "",
  "Percentage": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/tax/update")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/tax/update"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/tax/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/tax/update")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Id: 0,
  Name: '',
  Percentage: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/tax/update');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/tax/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Name: '', Percentage: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/tax/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Name":"","Percentage":""}'
};

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}}/api/tax/update',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0,\n  "Name": "",\n  "Percentage": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/tax/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/tax/update',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0, Name: '', Percentage: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/tax/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0, Name: '', Percentage: ''},
  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}}/api/tax/update');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0,
  Name: '',
  Percentage: ''
});

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}}/api/tax/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Name: '', Percentage: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/tax/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Name":"","Percentage":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0,
                              @"Name": @"",
                              @"Percentage": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/tax/update"]
                                                       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}}/api/tax/update" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/tax/update",
  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([
    'Id' => 0,
    'Name' => '',
    'Percentage' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/tax/update', [
  'body' => '{
  "Id": 0,
  "Name": "",
  "Percentage": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/tax/update');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0,
  'Name' => '',
  'Percentage' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0,
  'Name' => '',
  'Percentage' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/tax/update');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/tax/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Name": "",
  "Percentage": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/tax/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Name": "",
  "Percentage": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/tax/update", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/tax/update"

payload = {
    "Id": 0,
    "Name": "",
    "Percentage": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/tax/update"

payload <- "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/tax/update")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\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/api/tax/update') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0,\n  \"Name\": \"\",\n  \"Percentage\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/tax/update";

    let payload = json!({
        "Id": 0,
        "Name": "",
        "Percentage": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/tax/update \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0,
  "Name": "",
  "Percentage": ""
}'
echo '{
  "Id": 0,
  "Name": "",
  "Percentage": ""
}' |  \
  http POST {{baseUrl}}/api/tax/update \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0,\n  "Name": "",\n  "Percentage": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/tax/update
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Id": 0,
  "Name": "",
  "Percentage": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/tax/update")! 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()
POST Create a work type
{{baseUrl}}/api/worktype/new
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Title": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/worktype/new");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Title\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/worktype/new" {:headers {:x-auth-key ""
                                                                       :x-auth-secret ""}
                                                             :content-type :json
                                                             :form-params {:Title ""}})
require "http/client"

url = "{{baseUrl}}/api/worktype/new"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Title\": \"\"\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}}/api/worktype/new"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Title\": \"\"\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}}/api/worktype/new");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Title\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/worktype/new"

	payload := strings.NewReader("{\n  \"Title\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/worktype/new HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 17

{
  "Title": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/worktype/new")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Title\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/worktype/new"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Title\": \"\"\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  \"Title\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/worktype/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/worktype/new")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Title\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Title: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/worktype/new');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/worktype/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Title: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/worktype/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Title":""}'
};

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}}/api/worktype/new',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Title": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Title\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/worktype/new")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/worktype/new',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Title: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/worktype/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Title: ''},
  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}}/api/worktype/new');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Title: ''
});

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}}/api/worktype/new',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Title: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/worktype/new';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Title":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Title": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/worktype/new"]
                                                       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}}/api/worktype/new" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Title\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/worktype/new",
  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([
    'Title' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/worktype/new', [
  'body' => '{
  "Title": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/worktype/new');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Title' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Title' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/worktype/new');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/worktype/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Title": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/worktype/new' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Title": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Title\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/worktype/new", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/worktype/new"

payload = { "Title": "" }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/worktype/new"

payload <- "{\n  \"Title\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/worktype/new")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Title\": \"\"\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/api/worktype/new') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Title\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/worktype/new";

    let payload = json!({"Title": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/worktype/new \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Title": ""
}'
echo '{
  "Title": ""
}' |  \
  http POST {{baseUrl}}/api/worktype/new \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Title": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/worktype/new
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Title": ""] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/worktype/new")! 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()
POST Delete an existing work type
{{baseUrl}}/api/worktype/delete
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/worktype/delete");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/worktype/delete" {:headers {:x-auth-key ""
                                                                          :x-auth-secret ""}
                                                                :content-type :json
                                                                :form-params {:Id 0}})
require "http/client"

url = "{{baseUrl}}/api/worktype/delete"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0\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}}/api/worktype/delete"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0\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}}/api/worktype/delete");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/worktype/delete"

	payload := strings.NewReader("{\n  \"Id\": 0\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/worktype/delete HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 13

{
  "Id": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/worktype/delete")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/worktype/delete"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0\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  \"Id\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/worktype/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/worktype/delete")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0\n}")
  .asString();
const data = JSON.stringify({
  Id: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/worktype/delete');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/worktype/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/worktype/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

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}}/api/worktype/delete',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/worktype/delete")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/worktype/delete',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/worktype/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0},
  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}}/api/worktype/delete');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0
});

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}}/api/worktype/delete',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/worktype/delete';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/worktype/delete"]
                                                       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}}/api/worktype/delete" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/worktype/delete",
  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([
    'Id' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/worktype/delete', [
  'body' => '{
  "Id": 0
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/worktype/delete');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0
]));
$request->setRequestUrl('{{baseUrl}}/api/worktype/delete');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/worktype/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/worktype/delete' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/worktype/delete", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/worktype/delete"

payload = { "Id": 0 }
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/worktype/delete"

payload <- "{\n  \"Id\": 0\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/worktype/delete")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0\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/api/worktype/delete') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/worktype/delete";

    let payload = json!({"Id": 0});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/worktype/delete \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0
}'
echo '{
  "Id": 0
}' |  \
  http POST {{baseUrl}}/api/worktype/delete \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0\n}' \
  --output-document \
  - {{baseUrl}}/api/worktype/delete
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = ["Id": 0] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/worktype/delete")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return all work types for the account that match the query param
{{baseUrl}}/api/worktype/search
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/worktype/search");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/worktype/search" {:headers {:x-auth-key ""
                                                                         :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/worktype/search"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/worktype/search"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/worktype/search");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/worktype/search"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/worktype/search HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/worktype/search")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/worktype/search"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/worktype/search")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/worktype/search")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/worktype/search');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/worktype/search',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/worktype/search';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/worktype/search',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/worktype/search")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/worktype/search',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/worktype/search',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/worktype/search');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/worktype/search',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/worktype/search';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/worktype/search"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/worktype/search" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/worktype/search",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/worktype/search', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/worktype/search');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/worktype/search');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/worktype/search' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/worktype/search' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/worktype/search", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/worktype/search"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/worktype/search"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/worktype/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/worktype/search') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/worktype/search";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/worktype/search \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/worktype/search \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/worktype/search
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/worktype/search")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return all work types for the account
{{baseUrl}}/api/worktype/all
HEADERS

x-auth-key
x-auth-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/worktype/all");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/worktype/all" {:headers {:x-auth-key ""
                                                                      :x-auth-secret ""}})
require "http/client"

url = "{{baseUrl}}/api/worktype/all"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/worktype/all"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/worktype/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/worktype/all"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/worktype/all HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/worktype/all")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/worktype/all"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/worktype/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/worktype/all")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/worktype/all');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/worktype/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/worktype/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/worktype/all',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/worktype/all")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/worktype/all',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/worktype/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/worktype/all');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/worktype/all',
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/worktype/all';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/worktype/all"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/worktype/all" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/worktype/all",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/worktype/all', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/worktype/all');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/worktype/all');
$request->setRequestMethod('GET');
$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/worktype/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/worktype/all' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/worktype/all", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/worktype/all"

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/worktype/all"

response <- VERB("GET", url, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/worktype/all")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/worktype/all') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/worktype/all";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/api/worktype/all \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET {{baseUrl}}/api/worktype/all \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - {{baseUrl}}/api/worktype/all
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/worktype/all")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Return work type details
{{baseUrl}}/api/worktype/details
HEADERS

x-auth-key
x-auth-secret
QUERY PARAMS

workTypeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/worktype/details?workTypeId=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/api/worktype/details" {:headers {:x-auth-key ""
                                                                          :x-auth-secret ""}
                                                                :query-params {:workTypeId ""}})
require "http/client"

url = "{{baseUrl}}/api/worktype/details?workTypeId="
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/api/worktype/details?workTypeId="),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/api/worktype/details?workTypeId=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/worktype/details?workTypeId="

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/api/worktype/details?workTypeId= HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/api/worktype/details?workTypeId=")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/worktype/details?workTypeId="))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .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}}/api/worktype/details?workTypeId=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/api/worktype/details?workTypeId=")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .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}}/api/worktype/details?workTypeId=');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/api/worktype/details',
  params: {workTypeId: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/worktype/details?workTypeId=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

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}}/api/worktype/details?workTypeId=',
  method: 'GET',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/api/worktype/details?workTypeId=")
  .get()
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/api/worktype/details?workTypeId=',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': ''
  }
};

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}}/api/worktype/details',
  qs: {workTypeId: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/api/worktype/details');

req.query({
  workTypeId: ''
});

req.headers({
  'x-auth-key': '',
  'x-auth-secret': ''
});

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}}/api/worktype/details',
  params: {workTypeId: ''},
  headers: {'x-auth-key': '', 'x-auth-secret': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/worktype/details?workTypeId=';
const options = {method: 'GET', headers: {'x-auth-key': '', 'x-auth-secret': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/worktype/details?workTypeId="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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}}/api/worktype/details?workTypeId=" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/worktype/details?workTypeId=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/api/worktype/details?workTypeId=', [
  'headers' => [
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/worktype/details');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'workTypeId' => ''
]);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/api/worktype/details');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'workTypeId' => ''
]));

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => ''
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/worktype/details?workTypeId=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/worktype/details?workTypeId=' -Method GET -Headers $headers
import http.client

conn = http.client.HTTPSConnection("example.com")

headers = {
    'x-auth-key': "",
    'x-auth-secret': ""
}

conn.request("GET", "/baseUrl/api/worktype/details?workTypeId=", headers=headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/worktype/details"

querystring = {"workTypeId":""}

headers = {
    "x-auth-key": "",
    "x-auth-secret": ""
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/worktype/details"

queryString <- list(workTypeId = "")

response <- VERB("GET", url, query = queryString, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/worktype/details?workTypeId=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/api/worktype/details') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.params['workTypeId'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/worktype/details";

    let querystring = [
        ("workTypeId", ""),
    ];

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .headers(headers)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/api/worktype/details?workTypeId=' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: '
http GET '{{baseUrl}}/api/worktype/details?workTypeId=' \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method GET \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --output-document \
  - '{{baseUrl}}/api/worktype/details?workTypeId='
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/worktype/details?workTypeId=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
POST Update an existing work type
{{baseUrl}}/api/worktype/update
HEADERS

x-auth-key
x-auth-secret
BODY json

{
  "Id": 0,
  "Title": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/api/worktype/update");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-auth-key: ");
headers = curl_slist_append(headers, "x-auth-secret: ");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"Id\": 0,\n  \"Title\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/api/worktype/update" {:headers {:x-auth-key ""
                                                                          :x-auth-secret ""}
                                                                :content-type :json
                                                                :form-params {:Id 0
                                                                              :Title ""}})
require "http/client"

url = "{{baseUrl}}/api/worktype/update"
headers = HTTP::Headers{
  "x-auth-key" => ""
  "x-auth-secret" => ""
  "content-type" => "application/json"
}
reqBody = "{\n  \"Id\": 0,\n  \"Title\": \"\"\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}}/api/worktype/update"),
    Headers =
    {
        { "x-auth-key", "" },
        { "x-auth-secret", "" },
    },
    Content = new StringContent("{\n  \"Id\": 0,\n  \"Title\": \"\"\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}}/api/worktype/update");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-auth-key", "");
request.AddHeader("x-auth-secret", "");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"Id\": 0,\n  \"Title\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/api/worktype/update"

	payload := strings.NewReader("{\n  \"Id\": 0,\n  \"Title\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-auth-key", "")
	req.Header.Add("x-auth-secret", "")
	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/api/worktype/update HTTP/1.1
X-Auth-Key: 
X-Auth-Secret: 
Content-Type: application/json
Host: example.com
Content-Length: 28

{
  "Id": 0,
  "Title": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/api/worktype/update")
  .setHeader("x-auth-key", "")
  .setHeader("x-auth-secret", "")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"Id\": 0,\n  \"Title\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/api/worktype/update"))
    .header("x-auth-key", "")
    .header("x-auth-secret", "")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"Id\": 0,\n  \"Title\": \"\"\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  \"Id\": 0,\n  \"Title\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/api/worktype/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/api/worktype/update")
  .header("x-auth-key", "")
  .header("x-auth-secret", "")
  .header("content-type", "application/json")
  .body("{\n  \"Id\": 0,\n  \"Title\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  Id: 0,
  Title: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/api/worktype/update');
xhr.setRequestHeader('x-auth-key', '');
xhr.setRequestHeader('x-auth-secret', '');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/worktype/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Title: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/api/worktype/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Title":""}'
};

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}}/api/worktype/update',
  method: 'POST',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "Id": 0,\n  "Title": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"Id\": 0,\n  \"Title\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/api/worktype/update")
  .post(body)
  .addHeader("x-auth-key", "")
  .addHeader("x-auth-secret", "")
  .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/api/worktype/update',
  headers: {
    'x-auth-key': '',
    'x-auth-secret': '',
    '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({Id: 0, Title: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/api/worktype/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: {Id: 0, Title: ''},
  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}}/api/worktype/update');

req.headers({
  'x-auth-key': '',
  'x-auth-secret': '',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  Id: 0,
  Title: ''
});

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}}/api/worktype/update',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  data: {Id: 0, Title: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/api/worktype/update';
const options = {
  method: 'POST',
  headers: {'x-auth-key': '', 'x-auth-secret': '', 'content-type': 'application/json'},
  body: '{"Id":0,"Title":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"x-auth-key": @"",
                           @"x-auth-secret": @"",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"Id": @0,
                              @"Title": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/api/worktype/update"]
                                                       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}}/api/worktype/update" in
let headers = Header.add_list (Header.init ()) [
  ("x-auth-key", "");
  ("x-auth-secret", "");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"Id\": 0,\n  \"Title\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/api/worktype/update",
  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([
    'Id' => 0,
    'Title' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-auth-key: ",
    "x-auth-secret: "
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/api/worktype/update', [
  'body' => '{
  "Id": 0,
  "Title": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-auth-key' => '',
    'x-auth-secret' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/api/worktype/update');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'Id' => 0,
  'Title' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'Id' => 0,
  'Title' => ''
]));
$request->setRequestUrl('{{baseUrl}}/api/worktype/update');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-auth-key' => '',
  'x-auth-secret' => '',
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/api/worktype/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Title": ""
}'
$headers=@{}
$headers.Add("x-auth-key", "")
$headers.Add("x-auth-secret", "")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/api/worktype/update' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "Id": 0,
  "Title": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"Id\": 0,\n  \"Title\": \"\"\n}"

headers = {
    'x-auth-key': "",
    'x-auth-secret': "",
    'content-type': "application/json"
}

conn.request("POST", "/baseUrl/api/worktype/update", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/api/worktype/update"

payload = {
    "Id": 0,
    "Title": ""
}
headers = {
    "x-auth-key": "",
    "x-auth-secret": "",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/api/worktype/update"

payload <- "{\n  \"Id\": 0,\n  \"Title\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-auth-key' = '', 'x-auth-secret' = ''), content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/api/worktype/update")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-auth-key"] = ''
request["x-auth-secret"] = ''
request["content-type"] = 'application/json'
request.body = "{\n  \"Id\": 0,\n  \"Title\": \"\"\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/api/worktype/update') do |req|
  req.headers['x-auth-key'] = ''
  req.headers['x-auth-secret'] = ''
  req.body = "{\n  \"Id\": 0,\n  \"Title\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/api/worktype/update";

    let payload = json!({
        "Id": 0,
        "Title": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-auth-key", "".parse().unwrap());
    headers.insert("x-auth-secret", "".parse().unwrap());
    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}}/api/worktype/update \
  --header 'content-type: application/json' \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --data '{
  "Id": 0,
  "Title": ""
}'
echo '{
  "Id": 0,
  "Title": ""
}' |  \
  http POST {{baseUrl}}/api/worktype/update \
  content-type:application/json \
  x-auth-key:'' \
  x-auth-secret:''
wget --quiet \
  --method POST \
  --header 'x-auth-key: ' \
  --header 'x-auth-secret: ' \
  --header 'content-type: application/json' \
  --body-data '{\n  "Id": 0,\n  "Title": ""\n}' \
  --output-document \
  - {{baseUrl}}/api/worktype/update
import Foundation

let headers = [
  "x-auth-key": "",
  "x-auth-secret": "",
  "content-type": "application/json"
]
let parameters = [
  "Id": 0,
  "Title": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/api/worktype/update")! 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()