POST Caste Certificate
{{baseUrl}}/ctcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/ctcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/ctcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/ctcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/ctcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/ctcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/ctcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ctcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ctcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ctcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ctcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/ctcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ctcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ctcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/ctcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ctcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/ctcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ctcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/ctcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/ctcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/ctcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ctcer/certificate"]
                                                       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}}/ctcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ctcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ctcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ctcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ctcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ctcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/ctcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/ctcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/ctcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/ctcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/ctcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/ctcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/ctcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Community Certificate
{{baseUrl}}/cmcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/cmcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/cmcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/cmcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/cmcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/cmcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/cmcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/cmcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cmcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/cmcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/cmcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/cmcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cmcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/cmcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/cmcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/cmcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/cmcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/cmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/cmcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/cmcer/certificate"]
                                                       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}}/cmcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cmcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/cmcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/cmcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/cmcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cmcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/cmcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/cmcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/cmcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/cmcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/cmcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/cmcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/cmcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Conversion Certificate
{{baseUrl}}/cncer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/cncer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/cncer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/cncer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/cncer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/cncer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/cncer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/cncer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/cncer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/cncer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/cncer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/cncer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/cncer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/cncer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/cncer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/cncer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/cncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/cncer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/cncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/cncer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/cncer/certificate"]
                                                       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}}/cncer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/cncer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/cncer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/cncer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/cncer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/cncer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/cncer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/cncer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/cncer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/cncer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/cncer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/cncer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/cncer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Dependency Certificate
{{baseUrl}}/dpcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/dpcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/dpcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/dpcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/dpcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/dpcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/dpcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/dpcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/dpcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/dpcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/dpcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/dpcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/dpcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/dpcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/dpcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/dpcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/dpcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/dpcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/dpcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/dpcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/dpcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/dpcer/certificate"]
                                                       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}}/dpcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/dpcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/dpcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/dpcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/dpcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/dpcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/dpcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/dpcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/dpcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/dpcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/dpcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/dpcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/dpcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Destitute Certificate
{{baseUrl}}/dscer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/dscer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/dscer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/dscer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/dscer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/dscer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/dscer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/dscer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/dscer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/dscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/dscer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/dscer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/dscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/dscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/dscer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/dscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/dscer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/dscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/dscer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/dscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/dscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/dscer/certificate"]
                                                       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}}/dscer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/dscer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/dscer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/dscer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/dscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/dscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/dscer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/dscer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/dscer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/dscer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/dscer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/dscer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/dscer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Domicile Certificate
{{baseUrl}}/dmcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/dmcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/dmcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/dmcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/dmcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/dmcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/dmcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/dmcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/dmcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/dmcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/dmcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/dmcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/dmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/dmcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/dmcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/dmcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/dmcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/dmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/dmcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/dmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/dmcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/dmcer/certificate"]
                                                       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}}/dmcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/dmcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/dmcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/dmcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/dmcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/dmcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/dmcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/dmcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/dmcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/dmcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/dmcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/dmcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/dmcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Family Membership Certificate
{{baseUrl}}/fmcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/fmcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/fmcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/fmcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/fmcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/fmcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/fmcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/fmcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/fmcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/fmcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/fmcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/fmcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/fmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/fmcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/fmcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/fmcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/fmcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/fmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/fmcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/fmcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/fmcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/fmcer/certificate"]
                                                       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}}/fmcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/fmcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/fmcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/fmcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/fmcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/fmcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/fmcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/fmcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/fmcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/fmcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/fmcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/fmcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/fmcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Identification Certificate
{{baseUrl}}/idcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/idcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/idcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/idcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/idcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/idcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/idcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/idcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/idcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/idcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/idcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/idcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/idcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/idcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/idcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/idcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/idcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/idcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/idcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/idcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/idcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/idcer/certificate"]
                                                       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}}/idcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/idcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/idcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/idcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/idcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/idcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/idcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/idcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/idcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/idcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/idcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/idcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/idcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Income Certificate
{{baseUrl}}/incer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/incer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/incer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/incer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/incer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/incer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/incer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/incer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/incer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/incer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/incer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/incer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/incer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/incer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/incer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/incer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/incer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/incer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/incer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/incer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/incer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/incer/certificate"]
                                                       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}}/incer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/incer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/incer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/incer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/incer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/incer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/incer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/incer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/incer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/incer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/incer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/incer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/incer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Inter-Caste Marriage Certificate
{{baseUrl}}/imcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/imcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/imcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/imcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/imcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/imcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/imcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/imcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/imcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/imcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/imcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/imcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/imcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/imcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/imcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/imcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/imcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/imcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/imcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/imcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/imcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/imcer/certificate"]
                                                       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}}/imcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/imcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/imcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/imcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/imcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/imcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/imcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/imcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/imcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/imcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/imcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/imcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/imcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/lhcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/lhcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/lhcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/lhcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/lhcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/lhcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/lhcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/lhcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/lhcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/lhcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/lhcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/lhcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/lhcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/lhcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/lhcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/lhcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/lhcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/lhcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/lhcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/lhcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/lhcer/certificate"]
                                                       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}}/lhcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/lhcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/lhcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/lhcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/lhcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/lhcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/lhcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/lhcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/lhcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/lhcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/lhcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/lhcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/lhcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Life Certificate
{{baseUrl}}/lfcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/lfcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/lfcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/lfcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/lfcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/lfcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/lfcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/lfcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/lfcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/lfcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/lfcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/lfcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/lfcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/lfcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/lfcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/lfcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/lfcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/lfcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/lfcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/lfcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/lfcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/lfcer/certificate"]
                                                       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}}/lfcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/lfcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/lfcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/lfcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/lfcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/lfcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/lfcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/lfcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/lfcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/lfcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/lfcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/lfcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/lfcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Location Certificate
{{baseUrl}}/locer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/locer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/locer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/locer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/locer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/locer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/locer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/locer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/locer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/locer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/locer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/locer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/locer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/locer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/locer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/locer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/locer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/locer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/locer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/locer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/locer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/locer/certificate"]
                                                       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}}/locer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/locer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/locer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/locer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/locer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/locer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/locer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/locer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/locer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/locer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/locer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/locer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/locer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Minority Certificate
{{baseUrl}}/mncer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/mncer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/mncer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/mncer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/mncer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/mncer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/mncer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/mncer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/mncer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/mncer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/mncer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/mncer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/mncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/mncer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/mncer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/mncer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/mncer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/mncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/mncer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/mncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/mncer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/mncer/certificate"]
                                                       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}}/mncer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/mncer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/mncer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/mncer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/mncer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/mncer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/mncer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/mncer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/mncer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/mncer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/mncer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/mncer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/mncer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Nativity Certificate
{{baseUrl}}/ntcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/ntcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/ntcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/ntcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/ntcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/ntcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/ntcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/ntcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/ntcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/ntcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/ntcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/ntcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ntcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/ntcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/ntcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/ntcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/ntcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/ntcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/ntcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/ntcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/ntcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/ntcer/certificate"]
                                                       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}}/ntcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/ntcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/ntcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/ntcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/ntcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/ntcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/ntcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/ntcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/ntcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/ntcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/ntcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/ntcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/ntcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Non-Remarriage Certificate
{{baseUrl}}/nrcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/nrcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/nrcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/nrcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/nrcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/nrcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/nrcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/nrcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/nrcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/nrcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/nrcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/nrcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/nrcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/nrcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/nrcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/nrcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/nrcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/nrcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/nrcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/nrcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/nrcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/nrcer/certificate"]
                                                       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}}/nrcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/nrcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/nrcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/nrcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/nrcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/nrcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/nrcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/nrcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/nrcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/nrcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/nrcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/nrcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/nrcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST One and the Same Certificate
{{baseUrl}}/oscer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/oscer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/oscer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/oscer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/oscer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/oscer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/oscer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/oscer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/oscer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/oscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/oscer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/oscer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/oscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/oscer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/oscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/oscer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/oscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/oscer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/oscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/oscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/oscer/certificate"]
                                                       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}}/oscer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/oscer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/oscer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/oscer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/oscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/oscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/oscer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/oscer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/oscer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/oscer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/oscer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/oscer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/oscer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Possession Certificate
{{baseUrl}}/pscer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/pscer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/pscer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/pscer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/pscer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/pscer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/pscer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/pscer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pscer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/pscer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/pscer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/pscer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/pscer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/pscer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/pscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/pscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pscer/certificate"]
                                                       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}}/pscer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pscer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/pscer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/pscer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/pscer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/pscer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/pscer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/pscer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/pscer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/pscer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/pscer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Possession and Non-Attachment Certificate
{{baseUrl}}/pncer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/pncer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/pncer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/pncer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/pncer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/pncer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/pncer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/pncer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/pncer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/pncer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/pncer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/pncer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/pncer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/pncer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/pncer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/pncer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/pncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/pncer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/pncer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/pncer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/pncer/certificate"]
                                                       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}}/pncer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/pncer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/pncer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/pncer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/pncer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/pncer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/pncer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/pncer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/pncer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/pncer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/pncer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/pncer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/pncer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Relationship Certificate
{{baseUrl}}/rlcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/rlcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/rlcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/rlcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/rlcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/rlcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/rlcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/rlcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/rlcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/rlcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/rlcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/rlcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/rlcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/rlcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/rlcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/rlcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/rlcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/rlcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/rlcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/rlcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/rlcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/rlcer/certificate"]
                                                       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}}/rlcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/rlcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/rlcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/rlcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/rlcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/rlcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/rlcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/rlcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/rlcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/rlcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/rlcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/rlcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/rlcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Residence Certificate
{{baseUrl}}/rscer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/rscer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/rscer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/rscer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/rscer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/rscer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/rscer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/rscer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/rscer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/rscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/rscer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/rscer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/rscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/rscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/rscer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/rscer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/rscer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/rscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/rscer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/rscer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/rscer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/rscer/certificate"]
                                                       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}}/rscer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/rscer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/rscer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/rscer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/rscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/rscer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/rscer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/rscer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/rscer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/rscer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/rscer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/rscer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/rscer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Solvency Certificate
{{baseUrl}}/slcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/slcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/slcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/slcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/slcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/slcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/slcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/slcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/slcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/slcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/slcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/slcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/slcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/slcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/slcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/slcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/slcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/slcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/slcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/slcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/slcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/slcer/certificate"]
                                                       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}}/slcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/slcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/slcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/slcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/slcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/slcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/slcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/slcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/slcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/slcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/slcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/slcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/slcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Valuation Certificate
{{baseUrl}}/vlcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/vlcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/vlcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/vlcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/vlcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/vlcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/vlcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/vlcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/vlcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/vlcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/vlcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/vlcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/vlcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/vlcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/vlcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/vlcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/vlcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/vlcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/vlcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/vlcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/vlcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/vlcer/certificate"]
                                                       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}}/vlcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/vlcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/vlcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/vlcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/vlcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/vlcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/vlcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/vlcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/vlcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/vlcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/vlcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/vlcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/vlcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.
POST Widow-Widower Certificate
{{baseUrl}}/wwcer/certificate
HEADERS

X-APISETU-APIKEY
{{apiKey}}
BODY json

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-apisetu-apikey: {{apiKey}}");
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");

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

(client/post "{{baseUrl}}/wwcer/certificate" {:headers {:x-apisetu-apikey "{{apiKey}}"}
                                                              :content-type :json
                                                              :form-params {:certificateParameters {:aplno ""
                                                                                                    :certno ""
                                                                                                    :sccd ""}
                                                                            :consentArtifact ""
                                                                            :format ""
                                                                            :txnId ""}})
require "http/client"

url = "{{baseUrl}}/wwcer/certificate"
headers = HTTP::Headers{
  "x-apisetu-apikey" => "{{apiKey}}"
  "content-type" => "application/json"
}
reqBody = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/wwcer/certificate"),
    Headers =
    {
        { "x-apisetu-apikey", "{{apiKey}}" },
    },
    Content = new StringContent("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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}}/wwcer/certificate");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-apisetu-apikey", "{{apiKey}}");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/wwcer/certificate"

	payload := strings.NewReader("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")

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

	req.Header.Add("x-apisetu-apikey", "{{apiKey}}")
	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/wwcer/certificate HTTP/1.1
X-Apisetu-Apikey: {{apiKey}}
Content-Type: application/json
Host: example.com
Content-Length: 142

{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/wwcer/certificate")
  .setHeader("x-apisetu-apikey", "{{apiKey}}")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/wwcer/certificate"))
    .header("x-apisetu-apikey", "{{apiKey}}")
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/wwcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/wwcer/certificate")
  .header("x-apisetu-apikey", "{{apiKey}}")
  .header("content-type", "application/json")
  .body("{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/wwcer/certificate');
xhr.setRequestHeader('x-apisetu-apikey', '{{apiKey}}');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wwcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/wwcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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}}/wwcer/certificate',
  method: 'POST',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/wwcer/certificate")
  .post(body)
  .addHeader("x-apisetu-apikey", "{{apiKey}}")
  .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/wwcer/certificate',
  headers: {
    'x-apisetu-apikey': '{{apiKey}}',
    '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({
  certificateParameters: {aplno: '', certno: '', sccd: ''},
  consentArtifact: '',
  format: '',
  txnId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/wwcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  },
  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}}/wwcer/certificate');

req.headers({
  'x-apisetu-apikey': '{{apiKey}}',
  'content-type': 'application/json'
});

req.type('json');
req.send({
  certificateParameters: {
    aplno: '',
    certno: '',
    sccd: ''
  },
  consentArtifact: '',
  format: '',
  txnId: ''
});

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}}/wwcer/certificate',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  data: {
    certificateParameters: {aplno: '', certno: '', sccd: ''},
    consentArtifact: '',
    format: '',
    txnId: ''
  }
};

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

const url = '{{baseUrl}}/wwcer/certificate';
const options = {
  method: 'POST',
  headers: {'x-apisetu-apikey': '{{apiKey}}', 'content-type': 'application/json'},
  body: '{"certificateParameters":{"aplno":"","certno":"","sccd":""},"consentArtifact":"","format":"","txnId":""}'
};

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

NSDictionary *headers = @{ @"x-apisetu-apikey": @"{{apiKey}}",
                           @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"certificateParameters": @{ @"aplno": @"", @"certno": @"", @"sccd": @"" },
                              @"consentArtifact": @"",
                              @"format": @"",
                              @"txnId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/wwcer/certificate"]
                                                       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}}/wwcer/certificate" in
let headers = Header.add_list (Header.init ()) [
  ("x-apisetu-apikey", "{{apiKey}}");
  ("content-type", "application/json");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/wwcer/certificate",
  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([
    'certificateParameters' => [
        'aplno' => '',
        'certno' => '',
        'sccd' => ''
    ],
    'consentArtifact' => '',
    'format' => '',
    'txnId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json",
    "x-apisetu-apikey: {{apiKey}}"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/wwcer/certificate', [
  'body' => '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
    'x-apisetu-apikey' => '{{apiKey}}',
  ],
]);

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

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'certificateParameters' => [
    'aplno' => '',
    'certno' => '',
    'sccd' => ''
  ],
  'consentArtifact' => '',
  'format' => '',
  'txnId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/wwcer/certificate');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'x-apisetu-apikey' => '{{apiKey}}',
  'content-type' => 'application/json'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/wwcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
$headers=@{}
$headers.Add("x-apisetu-apikey", "{{apiKey}}")
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/wwcer/certificate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
import http.client

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

payload = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

headers = {
    'x-apisetu-apikey': "{{apiKey}}",
    'content-type': "application/json"
}

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

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

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

url = "{{baseUrl}}/wwcer/certificate"

payload = {
    "certificateParameters": {
        "aplno": "",
        "certno": "",
        "sccd": ""
    },
    "consentArtifact": "",
    "format": "",
    "txnId": ""
}
headers = {
    "x-apisetu-apikey": "{{apiKey}}",
    "content-type": "application/json"
}

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

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

url <- "{{baseUrl}}/wwcer/certificate"

payload <- "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, add_headers('x-apisetu-apikey' = '{{apiKey}}'), content_type("application/json"), encode = encode)

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

url = URI("{{baseUrl}}/wwcer/certificate")

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

request = Net::HTTP::Post.new(url)
request["x-apisetu-apikey"] = '{{apiKey}}'
request["content-type"] = 'application/json'
request.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\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/wwcer/certificate') do |req|
  req.headers['x-apisetu-apikey'] = '{{apiKey}}'
  req.body = "{\n  \"certificateParameters\": {\n    \"aplno\": \"\",\n    \"certno\": \"\",\n    \"sccd\": \"\"\n  },\n  \"consentArtifact\": \"\",\n  \"format\": \"\",\n  \"txnId\": \"\"\n}"
end

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

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

    let payload = json!({
        "certificateParameters": json!({
            "aplno": "",
            "certno": "",
            "sccd": ""
        }),
        "consentArtifact": "",
        "format": "",
        "txnId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("x-apisetu-apikey", "{{apiKey}}".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}}/wwcer/certificate \
  --header 'content-type: application/json' \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --data '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}'
echo '{
  "certificateParameters": {
    "aplno": "",
    "certno": "",
    "sccd": ""
  },
  "consentArtifact": "",
  "format": "",
  "txnId": ""
}' |  \
  http POST {{baseUrl}}/wwcer/certificate \
  content-type:application/json \
  x-apisetu-apikey:'{{apiKey}}'
wget --quiet \
  --method POST \
  --header 'x-apisetu-apikey: {{apiKey}}' \
  --header 'content-type: application/json' \
  --body-data '{\n  "certificateParameters": {\n    "aplno": "",\n    "certno": "",\n    "sccd": ""\n  },\n  "consentArtifact": "",\n  "format": "",\n  "txnId": ""\n}' \
  --output-document \
  - {{baseUrl}}/wwcer/certificate
import Foundation

let headers = [
  "x-apisetu-apikey": "{{apiKey}}",
  "content-type": "application/json"
]
let parameters = [
  "certificateParameters": [
    "aplno": "",
    "certno": "",
    "sccd": ""
  ],
  "consentArtifact": "",
  "format": "",
  "txnId": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/pdf
RESPONSE BODY text

Response body contains contents of the certificate in PDF format.