POST Create GiftCard
{{baseUrl}}/giftcards
HEADERS

Content-Type
Accept
X-VTEX-API-AppKey
X-VTEX-API-AppToken
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: ");
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "x-vtex-api-appkey: ");
headers = curl_slist_append(headers, "x-vtex-api-apptoken: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/giftcards" {:headers {:content-type ""
                                                                :accept ""
                                                                :x-vtex-api-appkey ""
                                                                :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcards"
headers = HTTP::Headers{
  "content-type" => ""
  "accept" => ""
  "x-vtex-api-appkey" => ""
  "x-vtex-api-apptoken" => ""
}

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

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

func main() {

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

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

	req.Header.Add("content-type", "")
	req.Header.Add("accept", "")
	req.Header.Add("x-vtex-api-appkey", "")
	req.Header.Add("x-vtex-api-apptoken", "")

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

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

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

}
POST /baseUrl/giftcards HTTP/1.1
Content-Type: 
Accept: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcards")
  .setHeader("content-type", "")
  .setHeader("accept", "")
  .setHeader("x-vtex-api-appkey", "")
  .setHeader("x-vtex-api-apptoken", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards"))
    .header("content-type", "")
    .header("accept", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards")
  .post(null)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcards")
  .header("content-type", "")
  .header("accept", "")
  .header("x-vtex-api-appkey", "")
  .header("x-vtex-api-apptoken", "")
  .asString();
const data = null;

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

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

xhr.open('POST', '{{baseUrl}}/giftcards');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards',
  headers: {
    'content-type': '',
    accept: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards';
const options = {
  method: 'POST',
  headers: {
    'content-type': '',
    accept: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': ''
  }
};

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}}/giftcards',
  method: 'POST',
  headers: {
    'content-type': '',
    accept: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcards")
  .post(null)
  .addHeader("content-type", "")
  .addHeader("accept", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards',
  headers: {
    'content-type': '',
    accept: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': ''
  }
};

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards',
  headers: {
    'content-type': '',
    accept: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': ''
  }
};

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

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

const req = unirest('POST', '{{baseUrl}}/giftcards');

req.headers({
  'content-type': '',
  accept: '',
  'x-vtex-api-appkey': '',
  'x-vtex-api-apptoken': ''
});

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}}/giftcards',
  headers: {
    'content-type': '',
    accept: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': ''
  }
};

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

const url = '{{baseUrl}}/giftcards';
const options = {
  method: 'POST',
  headers: {
    'content-type': '',
    accept: '',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': ''
  }
};

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

NSDictionary *headers = @{ @"content-type": @"",
                           @"accept": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/giftcards" in
let headers = Header.add_list (Header.init ()) [
  ("content-type", "");
  ("accept", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: ",
    "x-vtex-api-appkey: ",
    "x-vtex-api-apptoken: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/giftcards', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

$request->setHeaders([
  'content-type' => '',
  'accept' => '',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcards');
$request->setRequestMethod('POST');
$request->setHeaders([
  'content-type' => '',
  'accept' => '',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards' -Method POST -Headers $headers
$headers=@{}
$headers.Add("content-type", "")
$headers.Add("accept", "")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards' -Method POST -Headers $headers
import http.client

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

headers = {
    'content-type': "",
    'accept': "",
    'x-vtex-api-appkey': "",
    'x-vtex-api-apptoken': ""
}

conn.request("POST", "/baseUrl/giftcards", headers=headers)

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

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

url = "{{baseUrl}}/giftcards"

headers = {
    "content-type": "",
    "accept": "",
    "x-vtex-api-appkey": "",
    "x-vtex-api-apptoken": ""
}

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

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

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

response <- VERB("POST", url, add_headers('x-vtex-api-appkey' = '', 'x-vtex-api-apptoken' = ''), content_type("application/octet-stream"))

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

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

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

request = Net::HTTP::Post.new(url)
request["content-type"] = ''
request["accept"] = ''
request["x-vtex-api-appkey"] = ''
request["x-vtex-api-apptoken"] = ''

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

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

response = conn.post('/baseUrl/giftcards') do |req|
  req.headers['accept'] = ''
  req.headers['x-vtex-api-appkey'] = ''
  req.headers['x-vtex-api-apptoken'] = ''
end

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "".parse().unwrap());
    headers.insert("accept", "".parse().unwrap());
    headers.insert("x-vtex-api-appkey", "".parse().unwrap());
    headers.insert("x-vtex-api-apptoken", "".parse().unwrap());

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/giftcards \
  --header 'accept: ' \
  --header 'content-type: ' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: '
http POST {{baseUrl}}/giftcards \
  accept:'' \
  content-type:'' \
  x-vtex-api-appkey:'' \
  x-vtex-api-apptoken:''
wget --quiet \
  --method POST \
  --header 'content-type: ' \
  --header 'accept: ' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --output-document \
  - {{baseUrl}}/giftcards
import Foundation

let headers = [
  "content-type": "",
  "accept": "",
  "x-vtex-api-appkey": "",
  "x-vtex-api-apptoken": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "balance": 0,
  "caption": "Programa Vtex Fidelidade",
  "emissionDate": "2014-04-24T20:22:58.163",
  "expiringDate": "2016-01-01T00:00:00",
  "id": "954",
  "redemptionCode": "***********ASDQ",
  "redemptionToken": "32ScL57220Vapb8pc50HJ3mWH1cl1L8x",
  "relationName": "cardName",
  "transactions": {
    "href": "cards/954/transactions"
  }
}
GET Get GiftCard by ID
{{baseUrl}}/giftcards/:giftCardID
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID");

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

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

(client/get "{{baseUrl}}/giftcards/:giftCardID" {:headers {:accept ""
                                                                           :content-type ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/giftcards/:giftCardID HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcards/:giftCardID")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID"))
    .header("accept", "")
    .header("content-type", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcards/:giftCardID")
  .header("accept", "")
  .header("content-type", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/giftcards/:giftCardID');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/giftcards/:giftCardID',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID',
  headers: {accept: '', 'content-type': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/giftcards/:giftCardID');

req.headers({
  accept: '',
  'content-type': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/giftcards/:giftCardID" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/giftcards/:giftCardID', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

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

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcards/:giftCardID');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/giftcards/:giftCardID", headers=headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID"

headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/giftcards/:giftCardID') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/giftcards/:giftCardID \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/giftcards/:giftCardID \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "balance": 0,
  "caption": "Programa Vtex Fidelidade",
  "emissionDate": "2014-04-24T20:22:58.163",
  "expiringDate": "2016-01-01T00:00:00",
  "id": "954",
  "redemptionCode": "***********ASDQ",
  "redemptionToken": "32ScL57220Vapb8pc50HJ3mWH1cl1L8x",
  "relationName": "cardName",
  "transactions": {
    "href": "cards/954/transactions"
  }
}
POST Get GiftCard using JSON
{{baseUrl}}/giftcards/_search
HEADERS

Accept
Content-Type
BODY json

{
  "cart": {
    "discounts": 0,
    "grandTotal": "",
    "items": [
      {
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      }
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  },
  "client": {
    "document": "",
    "email": "",
    "id": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}");

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

(client/post "{{baseUrl}}/giftcards/_search" {:headers {:accept ""}
                                                              :content-type :json
                                                              :form-params {:cart {:discounts 0
                                                                                   :grandTotal ""
                                                                                   :items [{:id ""
                                                                                            :name ""
                                                                                            :price 0
                                                                                            :productId ""
                                                                                            :quantity 0
                                                                                            :refId ""}]
                                                                                   :itemsTotal 0
                                                                                   :redemptionCode ""
                                                                                   :relationName ""
                                                                                   :shipping 0
                                                                                   :taxes 0}
                                                                            :client {:document ""
                                                                                     :email ""
                                                                                     :id ""}}})
require "http/client"

url = "{{baseUrl}}/giftcards/_search"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/giftcards/_search"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/giftcards/_search");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/_search"

	payload := strings.NewReader("{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/giftcards/_search HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 399

{
  "cart": {
    "discounts": 0,
    "grandTotal": "",
    "items": [
      {
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      }
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  },
  "client": {
    "document": "",
    "email": "",
    "id": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcards/_search")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/_search"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/_search")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcards/_search")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  cart: {
    discounts: 0,
    grandTotal: '',
    items: [
      {
        id: '',
        name: '',
        price: 0,
        productId: '',
        quantity: 0,
        refId: ''
      }
    ],
    itemsTotal: 0,
    redemptionCode: '',
    relationName: '',
    shipping: 0,
    taxes: 0
  },
  client: {
    document: '',
    email: '',
    id: ''
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/giftcards/_search');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/_search',
  headers: {accept: '', 'content-type': ''},
  data: {
    cart: {
      discounts: 0,
      grandTotal: '',
      items: [{id: '', name: '', price: 0, productId: '', quantity: 0, refId: ''}],
      itemsTotal: 0,
      redemptionCode: '',
      relationName: '',
      shipping: 0,
      taxes: 0
    },
    client: {document: '', email: '', id: ''}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/_search';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"cart":{"discounts":0,"grandTotal":"","items":[{"id":"","name":"","price":0,"productId":"","quantity":0,"refId":""}],"itemsTotal":0,"redemptionCode":"","relationName":"","shipping":0,"taxes":0},"client":{"document":"","email":"","id":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/giftcards/_search',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "cart": {\n    "discounts": 0,\n    "grandTotal": "",\n    "items": [\n      {\n        "id": "",\n        "name": "",\n        "price": 0,\n        "productId": "",\n        "quantity": 0,\n        "refId": ""\n      }\n    ],\n    "itemsTotal": 0,\n    "redemptionCode": "",\n    "relationName": "",\n    "shipping": 0,\n    "taxes": 0\n  },\n  "client": {\n    "document": "",\n    "email": "",\n    "id": ""\n  }\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/_search")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/_search',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({
  cart: {
    discounts: 0,
    grandTotal: '',
    items: [{id: '', name: '', price: 0, productId: '', quantity: 0, refId: ''}],
    itemsTotal: 0,
    redemptionCode: '',
    relationName: '',
    shipping: 0,
    taxes: 0
  },
  client: {document: '', email: '', id: ''}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/_search',
  headers: {accept: '', 'content-type': ''},
  body: {
    cart: {
      discounts: 0,
      grandTotal: '',
      items: [{id: '', name: '', price: 0, productId: '', quantity: 0, refId: ''}],
      itemsTotal: 0,
      redemptionCode: '',
      relationName: '',
      shipping: 0,
      taxes: 0
    },
    client: {document: '', email: '', id: ''}
  },
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/giftcards/_search');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  cart: {
    discounts: 0,
    grandTotal: '',
    items: [
      {
        id: '',
        name: '',
        price: 0,
        productId: '',
        quantity: 0,
        refId: ''
      }
    ],
    itemsTotal: 0,
    redemptionCode: '',
    relationName: '',
    shipping: 0,
    taxes: 0
  },
  client: {
    document: '',
    email: '',
    id: ''
  }
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/_search',
  headers: {accept: '', 'content-type': ''},
  data: {
    cart: {
      discounts: 0,
      grandTotal: '',
      items: [{id: '', name: '', price: 0, productId: '', quantity: 0, refId: ''}],
      itemsTotal: 0,
      redemptionCode: '',
      relationName: '',
      shipping: 0,
      taxes: 0
    },
    client: {document: '', email: '', id: ''}
  }
};

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

const url = '{{baseUrl}}/giftcards/_search';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"cart":{"discounts":0,"grandTotal":"","items":[{"id":"","name":"","price":0,"productId":"","quantity":0,"refId":""}],"itemsTotal":0,"redemptionCode":"","relationName":"","shipping":0,"taxes":0},"client":{"document":"","email":"","id":""}}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"cart": @{ @"discounts": @0, @"grandTotal": @"", @"items": @[ @{ @"id": @"", @"name": @"", @"price": @0, @"productId": @"", @"quantity": @0, @"refId": @"" } ], @"itemsTotal": @0, @"redemptionCode": @"", @"relationName": @"", @"shipping": @0, @"taxes": @0 },
                              @"client": @{ @"document": @"", @"email": @"", @"id": @"" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/_search"]
                                                       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}}/giftcards/_search" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/_search",
  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([
    'cart' => [
        'discounts' => 0,
        'grandTotal' => '',
        'items' => [
                [
                                'id' => '',
                                'name' => '',
                                'price' => 0,
                                'productId' => '',
                                'quantity' => 0,
                                'refId' => ''
                ]
        ],
        'itemsTotal' => 0,
        'redemptionCode' => '',
        'relationName' => '',
        'shipping' => 0,
        'taxes' => 0
    ],
    'client' => [
        'document' => '',
        'email' => '',
        'id' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/giftcards/_search', [
  'body' => '{
  "cart": {
    "discounts": 0,
    "grandTotal": "",
    "items": [
      {
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      }
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  },
  "client": {
    "document": "",
    "email": "",
    "id": ""
  }
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

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

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'cart' => [
    'discounts' => 0,
    'grandTotal' => '',
    'items' => [
        [
                'id' => '',
                'name' => '',
                'price' => 0,
                'productId' => '',
                'quantity' => 0,
                'refId' => ''
        ]
    ],
    'itemsTotal' => 0,
    'redemptionCode' => '',
    'relationName' => '',
    'shipping' => 0,
    'taxes' => 0
  ],
  'client' => [
    'document' => '',
    'email' => '',
    'id' => ''
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'cart' => [
    'discounts' => 0,
    'grandTotal' => '',
    'items' => [
        [
                'id' => '',
                'name' => '',
                'price' => 0,
                'productId' => '',
                'quantity' => 0,
                'refId' => ''
        ]
    ],
    'itemsTotal' => 0,
    'redemptionCode' => '',
    'relationName' => '',
    'shipping' => 0,
    'taxes' => 0
  ],
  'client' => [
    'document' => '',
    'email' => '',
    'id' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/giftcards/_search');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/_search' -Method POST -Headers $headers -ContentType '' -Body '{
  "cart": {
    "discounts": 0,
    "grandTotal": "",
    "items": [
      {
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      }
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  },
  "client": {
    "document": "",
    "email": "",
    "id": ""
  }
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/_search' -Method POST -Headers $headers -ContentType '' -Body '{
  "cart": {
    "discounts": 0,
    "grandTotal": "",
    "items": [
      {
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      }
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  },
  "client": {
    "document": "",
    "email": "",
    "id": ""
  }
}'
import http.client

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

payload = "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}"

headers = {
    'accept': "",
    'content-type': ""
}

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

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

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

url = "{{baseUrl}}/giftcards/_search"

payload = {
    "cart": {
        "discounts": 0,
        "grandTotal": "",
        "items": [
            {
                "id": "",
                "name": "",
                "price": 0,
                "productId": "",
                "quantity": 0,
                "refId": ""
            }
        ],
        "itemsTotal": 0,
        "redemptionCode": "",
        "relationName": "",
        "shipping": 0,
        "taxes": 0
    },
    "client": {
        "document": "",
        "email": "",
        "id": ""
    }
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/_search"

payload <- "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/giftcards/_search")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}"

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

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

response = conn.post('/baseUrl/giftcards/_search') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"cart\": {\n    \"discounts\": 0,\n    \"grandTotal\": \"\",\n    \"items\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"price\": 0,\n        \"productId\": \"\",\n        \"quantity\": 0,\n        \"refId\": \"\"\n      }\n    ],\n    \"itemsTotal\": 0,\n    \"redemptionCode\": \"\",\n    \"relationName\": \"\",\n    \"shipping\": 0,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"\",\n    \"email\": \"\",\n    \"id\": \"\"\n  }\n}"
end

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

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

    let payload = json!({
        "cart": json!({
            "discounts": 0,
            "grandTotal": "",
            "items": (
                json!({
                    "id": "",
                    "name": "",
                    "price": 0,
                    "productId": "",
                    "quantity": 0,
                    "refId": ""
                })
            ),
            "itemsTotal": 0,
            "redemptionCode": "",
            "relationName": "",
            "shipping": 0,
            "taxes": 0
        }),
        "client": json!({
            "document": "",
            "email": "",
            "id": ""
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/giftcards/_search \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "cart": {
    "discounts": 0,
    "grandTotal": "",
    "items": [
      {
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      }
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  },
  "client": {
    "document": "",
    "email": "",
    "id": ""
  }
}'
echo '{
  "cart": {
    "discounts": 0,
    "grandTotal": "",
    "items": [
      {
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      }
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  },
  "client": {
    "document": "",
    "email": "",
    "id": ""
  }
}' |  \
  http POST {{baseUrl}}/giftcards/_search \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "cart": {\n    "discounts": 0,\n    "grandTotal": "",\n    "items": [\n      {\n        "id": "",\n        "name": "",\n        "price": 0,\n        "productId": "",\n        "quantity": 0,\n        "refId": ""\n      }\n    ],\n    "itemsTotal": 0,\n    "redemptionCode": "",\n    "relationName": "",\n    "shipping": 0,\n    "taxes": 0\n  },\n  "client": {\n    "document": "",\n    "email": "",\n    "id": ""\n  }\n}' \
  --output-document \
  - {{baseUrl}}/giftcards/_search
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "cart": [
    "discounts": 0,
    "grandTotal": "",
    "items": [
      [
        "id": "",
        "name": "",
        "price": 0,
        "productId": "",
        "quantity": 0,
        "refId": ""
      ]
    ],
    "itemsTotal": 0,
    "redemptionCode": "",
    "relationName": "",
    "shipping": 0,
    "taxes": 0
  ],
  "client": [
    "document": "",
    "email": "",
    "id": ""
  ]
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "items": [
    {
      "_self": {
        "href": "cards/589"
      },
      "id": "589"
    },
    {
      "_self": {
        "href": "cards/590"
      },
      "id": "590"
    },
    {
      "_self": {
        "href": "cards/591"
      },
      "id": "591"
    },
    {
      "_self": {
        "href": "cards/592"
      },
      "id": "592"
    }
  ],
  "paging": {
    "page": 0,
    "pages": 1,
    "perPage": 10,
    "total": 4
  }
}
POST Cancel GiftCard Transaction
{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
transactionID
BODY json

{
  "requestId": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}");

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

(client/post "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations" {:headers {:accept ""}
                                                                                                            :content-type :json
                                                                                                            :form-params {:requestId ""
                                                                                                                          :value ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\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}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"requestId\": \"\",\n  \"value\": \"\"\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}}/giftcards/:giftCardID/transactions/:transactionID/cancellations");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"

	payload := strings.NewReader("{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 36

{
  "requestId": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"requestId\": \"\",\n  \"value\": \"\"\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  \"requestId\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  requestId: '',
  value: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {accept: '', 'content-type': ''},
  data: {requestId: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"requestId":"","value":""}'
};

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}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "requestId": "",\n  "value": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({requestId: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {accept: '', 'content-type': ''},
  body: {requestId: '', value: ''},
  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}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  requestId: '',
  value: ''
});

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}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {accept: '', 'content-type': ''},
  data: {requestId: '', value: ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"requestId":"","value":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"requestId": @"",
                              @"value": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"]
                                                       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}}/giftcards/:giftCardID/transactions/:transactionID/cancellations" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations",
  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([
    'requestId' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations', [
  'body' => '{
  "requestId": "",
  "value": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'requestId' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations' -Method POST -Headers $headers -ContentType '' -Body '{
  "requestId": "",
  "value": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations' -Method POST -Headers $headers -ContentType '' -Body '{
  "requestId": "",
  "value": ""
}'
import http.client

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

payload = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations", payload, headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"

payload = {
    "requestId": "",
    "value": ""
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"

payload <- "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

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

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

response = conn.post('/baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations";

    let payload = json!({
        "requestId": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/giftcards/:giftCardID/transactions/:transactionID/cancellations \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "requestId": "",
  "value": ""
}'
echo '{
  "requestId": "",
  "value": ""
}' |  \
  http POST {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "requestId": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "requestId": "",
  "value": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2016-04-06T00:00:00",
  "oid": "239d35b430fc75379db966c1d3670c6f",
  "value": 13.4
}
POST Create GiftCard Transaction
{{baseUrl}}/giftcards/:giftCardID/transactions
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
BODY json

{
  "description": "",
  "operation": "",
  "orderInfo": {
    "cart": {
      "discounts": "",
      "grandTotal": 0,
      "items": [
        {
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            {
              "name": "",
              "value": 0
            }
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        }
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    },
    "clientProfile": {
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    },
    "orderId": "",
    "sequence": 0,
    "shipping": {
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    }
  },
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}");

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

(client/post "{{baseUrl}}/giftcards/:giftCardID/transactions" {:headers {:accept ""}
                                                                               :content-type :json
                                                                               :form-params {:description ""
                                                                                             :operation ""
                                                                                             :orderInfo {:cart {:discounts ""
                                                                                                                :grandTotal 0
                                                                                                                :items [{:discount ""
                                                                                                                         :id ""
                                                                                                                         :name ""
                                                                                                                         :price ""
                                                                                                                         :priceTags [{:name ""
                                                                                                                                      :value 0}]
                                                                                                                         :productId ""
                                                                                                                         :quantity 0
                                                                                                                         :refId ""
                                                                                                                         :shippingDiscount 0
                                                                                                                         :value ""}]
                                                                                                                :itemsTotal ""
                                                                                                                :shipping ""
                                                                                                                :taxes 0}
                                                                                                         :clientProfile {:birthDate ""
                                                                                                                         :document ""
                                                                                                                         :email ""
                                                                                                                         :firstName ""
                                                                                                                         :isCorporate false
                                                                                                                         :lastName ""
                                                                                                                         :phone ""}
                                                                                                         :orderId ""
                                                                                                         :sequence 0
                                                                                                         :shipping {:city ""
                                                                                                                    :complement ""
                                                                                                                    :country ""
                                                                                                                    :neighborhood ""
                                                                                                                    :number ""
                                                                                                                    :postalCode ""
                                                                                                                    :receiverName ""
                                                                                                                    :reference ""
                                                                                                                    :state ""
                                                                                                                    :street ""}}
                                                                                             :redemptionCode ""
                                                                                             :redemptionToken ""
                                                                                             :requestId ""
                                                                                             :value ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\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}}/giftcards/:giftCardID/transactions"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\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}}/giftcards/:giftCardID/transactions");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions"

	payload := strings.NewReader("{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/giftcards/:giftCardID/transactions HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 1128

{
  "description": "",
  "operation": "",
  "orderInfo": {
    "cart": {
      "discounts": "",
      "grandTotal": 0,
      "items": [
        {
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            {
              "name": "",
              "value": 0
            }
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        }
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    },
    "clientProfile": {
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    },
    "orderId": "",
    "sequence": 0,
    "shipping": {
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    }
  },
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcards/:giftCardID/transactions")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\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  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcards/:giftCardID/transactions")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  description: '',
  operation: '',
  orderInfo: {
    cart: {
      discounts: '',
      grandTotal: 0,
      items: [
        {
          discount: '',
          id: '',
          name: '',
          price: '',
          priceTags: [
            {
              name: '',
              value: 0
            }
          ],
          productId: '',
          quantity: 0,
          refId: '',
          shippingDiscount: 0,
          value: ''
        }
      ],
      itemsTotal: '',
      shipping: '',
      taxes: 0
    },
    clientProfile: {
      birthDate: '',
      document: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: ''
    },
    orderId: '',
    sequence: 0,
    shipping: {
      city: '',
      complement: '',
      country: '',
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    }
  },
  redemptionCode: '',
  redemptionToken: '',
  requestId: '',
  value: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/giftcards/:giftCardID/transactions');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions',
  headers: {accept: '', 'content-type': ''},
  data: {
    description: '',
    operation: '',
    orderInfo: {
      cart: {
        discounts: '',
        grandTotal: 0,
        items: [
          {
            discount: '',
            id: '',
            name: '',
            price: '',
            priceTags: [{name: '', value: 0}],
            productId: '',
            quantity: 0,
            refId: '',
            shippingDiscount: 0,
            value: ''
          }
        ],
        itemsTotal: '',
        shipping: '',
        taxes: 0
      },
      clientProfile: {
        birthDate: '',
        document: '',
        email: '',
        firstName: '',
        isCorporate: false,
        lastName: '',
        phone: ''
      },
      orderId: '',
      sequence: 0,
      shipping: {
        city: '',
        complement: '',
        country: '',
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      }
    },
    redemptionCode: '',
    redemptionToken: '',
    requestId: '',
    value: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"description":"","operation":"","orderInfo":{"cart":{"discounts":"","grandTotal":0,"items":[{"discount":"","id":"","name":"","price":"","priceTags":[{"name":"","value":0}],"productId":"","quantity":0,"refId":"","shippingDiscount":0,"value":""}],"itemsTotal":"","shipping":"","taxes":0},"clientProfile":{"birthDate":"","document":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":""},"orderId":"","sequence":0,"shipping":{"city":"","complement":"","country":"","neighborhood":"","number":"","postalCode":"","receiverName":"","reference":"","state":"","street":""}},"redemptionCode":"","redemptionToken":"","requestId":"","value":""}'
};

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}}/giftcards/:giftCardID/transactions',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "description": "",\n  "operation": "",\n  "orderInfo": {\n    "cart": {\n      "discounts": "",\n      "grandTotal": 0,\n      "items": [\n        {\n          "discount": "",\n          "id": "",\n          "name": "",\n          "price": "",\n          "priceTags": [\n            {\n              "name": "",\n              "value": 0\n            }\n          ],\n          "productId": "",\n          "quantity": 0,\n          "refId": "",\n          "shippingDiscount": 0,\n          "value": ""\n        }\n      ],\n      "itemsTotal": "",\n      "shipping": "",\n      "taxes": 0\n    },\n    "clientProfile": {\n      "birthDate": "",\n      "document": "",\n      "email": "",\n      "firstName": "",\n      "isCorporate": false,\n      "lastName": "",\n      "phone": ""\n    },\n    "orderId": "",\n    "sequence": 0,\n    "shipping": {\n      "city": "",\n      "complement": "",\n      "country": "",\n      "neighborhood": "",\n      "number": "",\n      "postalCode": "",\n      "receiverName": "",\n      "reference": "",\n      "state": "",\n      "street": ""\n    }\n  },\n  "redemptionCode": "",\n  "redemptionToken": "",\n  "requestId": "",\n  "value": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

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

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

req.write(JSON.stringify({
  description: '',
  operation: '',
  orderInfo: {
    cart: {
      discounts: '',
      grandTotal: 0,
      items: [
        {
          discount: '',
          id: '',
          name: '',
          price: '',
          priceTags: [{name: '', value: 0}],
          productId: '',
          quantity: 0,
          refId: '',
          shippingDiscount: 0,
          value: ''
        }
      ],
      itemsTotal: '',
      shipping: '',
      taxes: 0
    },
    clientProfile: {
      birthDate: '',
      document: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: ''
    },
    orderId: '',
    sequence: 0,
    shipping: {
      city: '',
      complement: '',
      country: '',
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    }
  },
  redemptionCode: '',
  redemptionToken: '',
  requestId: '',
  value: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions',
  headers: {accept: '', 'content-type': ''},
  body: {
    description: '',
    operation: '',
    orderInfo: {
      cart: {
        discounts: '',
        grandTotal: 0,
        items: [
          {
            discount: '',
            id: '',
            name: '',
            price: '',
            priceTags: [{name: '', value: 0}],
            productId: '',
            quantity: 0,
            refId: '',
            shippingDiscount: 0,
            value: ''
          }
        ],
        itemsTotal: '',
        shipping: '',
        taxes: 0
      },
      clientProfile: {
        birthDate: '',
        document: '',
        email: '',
        firstName: '',
        isCorporate: false,
        lastName: '',
        phone: ''
      },
      orderId: '',
      sequence: 0,
      shipping: {
        city: '',
        complement: '',
        country: '',
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      }
    },
    redemptionCode: '',
    redemptionToken: '',
    requestId: '',
    value: ''
  },
  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}}/giftcards/:giftCardID/transactions');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  description: '',
  operation: '',
  orderInfo: {
    cart: {
      discounts: '',
      grandTotal: 0,
      items: [
        {
          discount: '',
          id: '',
          name: '',
          price: '',
          priceTags: [
            {
              name: '',
              value: 0
            }
          ],
          productId: '',
          quantity: 0,
          refId: '',
          shippingDiscount: 0,
          value: ''
        }
      ],
      itemsTotal: '',
      shipping: '',
      taxes: 0
    },
    clientProfile: {
      birthDate: '',
      document: '',
      email: '',
      firstName: '',
      isCorporate: false,
      lastName: '',
      phone: ''
    },
    orderId: '',
    sequence: 0,
    shipping: {
      city: '',
      complement: '',
      country: '',
      neighborhood: '',
      number: '',
      postalCode: '',
      receiverName: '',
      reference: '',
      state: '',
      street: ''
    }
  },
  redemptionCode: '',
  redemptionToken: '',
  requestId: '',
  value: ''
});

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}}/giftcards/:giftCardID/transactions',
  headers: {accept: '', 'content-type': ''},
  data: {
    description: '',
    operation: '',
    orderInfo: {
      cart: {
        discounts: '',
        grandTotal: 0,
        items: [
          {
            discount: '',
            id: '',
            name: '',
            price: '',
            priceTags: [{name: '', value: 0}],
            productId: '',
            quantity: 0,
            refId: '',
            shippingDiscount: 0,
            value: ''
          }
        ],
        itemsTotal: '',
        shipping: '',
        taxes: 0
      },
      clientProfile: {
        birthDate: '',
        document: '',
        email: '',
        firstName: '',
        isCorporate: false,
        lastName: '',
        phone: ''
      },
      orderId: '',
      sequence: 0,
      shipping: {
        city: '',
        complement: '',
        country: '',
        neighborhood: '',
        number: '',
        postalCode: '',
        receiverName: '',
        reference: '',
        state: '',
        street: ''
      }
    },
    redemptionCode: '',
    redemptionToken: '',
    requestId: '',
    value: ''
  }
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"description":"","operation":"","orderInfo":{"cart":{"discounts":"","grandTotal":0,"items":[{"discount":"","id":"","name":"","price":"","priceTags":[{"name":"","value":0}],"productId":"","quantity":0,"refId":"","shippingDiscount":0,"value":""}],"itemsTotal":"","shipping":"","taxes":0},"clientProfile":{"birthDate":"","document":"","email":"","firstName":"","isCorporate":false,"lastName":"","phone":""},"orderId":"","sequence":0,"shipping":{"city":"","complement":"","country":"","neighborhood":"","number":"","postalCode":"","receiverName":"","reference":"","state":"","street":""}},"redemptionCode":"","redemptionToken":"","requestId":"","value":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"description": @"",
                              @"operation": @"",
                              @"orderInfo": @{ @"cart": @{ @"discounts": @"", @"grandTotal": @0, @"items": @[ @{ @"discount": @"", @"id": @"", @"name": @"", @"price": @"", @"priceTags": @[ @{ @"name": @"", @"value": @0 } ], @"productId": @"", @"quantity": @0, @"refId": @"", @"shippingDiscount": @0, @"value": @"" } ], @"itemsTotal": @"", @"shipping": @"", @"taxes": @0 }, @"clientProfile": @{ @"birthDate": @"", @"document": @"", @"email": @"", @"firstName": @"", @"isCorporate": @NO, @"lastName": @"", @"phone": @"" }, @"orderId": @"", @"sequence": @0, @"shipping": @{ @"city": @"", @"complement": @"", @"country": @"", @"neighborhood": @"", @"number": @"", @"postalCode": @"", @"receiverName": @"", @"reference": @"", @"state": @"", @"street": @"" } },
                              @"redemptionCode": @"",
                              @"redemptionToken": @"",
                              @"requestId": @"",
                              @"value": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/:giftCardID/transactions"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/giftcards/:giftCardID/transactions" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'description' => '',
    'operation' => '',
    'orderInfo' => [
        'cart' => [
                'discounts' => '',
                'grandTotal' => 0,
                'items' => [
                                [
                                                                'discount' => '',
                                                                'id' => '',
                                                                'name' => '',
                                                                'price' => '',
                                                                'priceTags' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'value' => 0
                                                                                                                                ]
                                                                ],
                                                                'productId' => '',
                                                                'quantity' => 0,
                                                                'refId' => '',
                                                                'shippingDiscount' => 0,
                                                                'value' => ''
                                ]
                ],
                'itemsTotal' => '',
                'shipping' => '',
                'taxes' => 0
        ],
        'clientProfile' => [
                'birthDate' => '',
                'document' => '',
                'email' => '',
                'firstName' => '',
                'isCorporate' => null,
                'lastName' => '',
                'phone' => ''
        ],
        'orderId' => '',
        'sequence' => 0,
        'shipping' => [
                'city' => '',
                'complement' => '',
                'country' => '',
                'neighborhood' => '',
                'number' => '',
                'postalCode' => '',
                'receiverName' => '',
                'reference' => '',
                'state' => '',
                'street' => ''
        ]
    ],
    'redemptionCode' => '',
    'redemptionToken' => '',
    'requestId' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/giftcards/:giftCardID/transactions', [
  'body' => '{
  "description": "",
  "operation": "",
  "orderInfo": {
    "cart": {
      "discounts": "",
      "grandTotal": 0,
      "items": [
        {
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            {
              "name": "",
              "value": 0
            }
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        }
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    },
    "clientProfile": {
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    },
    "orderId": "",
    "sequence": 0,
    "shipping": {
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    }
  },
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'description' => '',
  'operation' => '',
  'orderInfo' => [
    'cart' => [
        'discounts' => '',
        'grandTotal' => 0,
        'items' => [
                [
                                'discount' => '',
                                'id' => '',
                                'name' => '',
                                'price' => '',
                                'priceTags' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'value' => 0
                                                                ]
                                ],
                                'productId' => '',
                                'quantity' => 0,
                                'refId' => '',
                                'shippingDiscount' => 0,
                                'value' => ''
                ]
        ],
        'itemsTotal' => '',
        'shipping' => '',
        'taxes' => 0
    ],
    'clientProfile' => [
        'birthDate' => '',
        'document' => '',
        'email' => '',
        'firstName' => '',
        'isCorporate' => null,
        'lastName' => '',
        'phone' => ''
    ],
    'orderId' => '',
    'sequence' => 0,
    'shipping' => [
        'city' => '',
        'complement' => '',
        'country' => '',
        'neighborhood' => '',
        'number' => '',
        'postalCode' => '',
        'receiverName' => '',
        'reference' => '',
        'state' => '',
        'street' => ''
    ]
  ],
  'redemptionCode' => '',
  'redemptionToken' => '',
  'requestId' => '',
  'value' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'description' => '',
  'operation' => '',
  'orderInfo' => [
    'cart' => [
        'discounts' => '',
        'grandTotal' => 0,
        'items' => [
                [
                                'discount' => '',
                                'id' => '',
                                'name' => '',
                                'price' => '',
                                'priceTags' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'value' => 0
                                                                ]
                                ],
                                'productId' => '',
                                'quantity' => 0,
                                'refId' => '',
                                'shippingDiscount' => 0,
                                'value' => ''
                ]
        ],
        'itemsTotal' => '',
        'shipping' => '',
        'taxes' => 0
    ],
    'clientProfile' => [
        'birthDate' => '',
        'document' => '',
        'email' => '',
        'firstName' => '',
        'isCorporate' => null,
        'lastName' => '',
        'phone' => ''
    ],
    'orderId' => '',
    'sequence' => 0,
    'shipping' => [
        'city' => '',
        'complement' => '',
        'country' => '',
        'neighborhood' => '',
        'number' => '',
        'postalCode' => '',
        'receiverName' => '',
        'reference' => '',
        'state' => '',
        'street' => ''
    ]
  ],
  'redemptionCode' => '',
  'redemptionToken' => '',
  'requestId' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions' -Method POST -Headers $headers -ContentType '' -Body '{
  "description": "",
  "operation": "",
  "orderInfo": {
    "cart": {
      "discounts": "",
      "grandTotal": 0,
      "items": [
        {
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            {
              "name": "",
              "value": 0
            }
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        }
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    },
    "clientProfile": {
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    },
    "orderId": "",
    "sequence": 0,
    "shipping": {
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    }
  },
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions' -Method POST -Headers $headers -ContentType '' -Body '{
  "description": "",
  "operation": "",
  "orderInfo": {
    "cart": {
      "discounts": "",
      "grandTotal": 0,
      "items": [
        {
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            {
              "name": "",
              "value": 0
            }
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        }
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    },
    "clientProfile": {
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    },
    "orderId": "",
    "sequence": 0,
    "shipping": {
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    }
  },
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
}'
import http.client

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

payload = "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/giftcards/:giftCardID/transactions", payload, headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions"

payload = {
    "description": "",
    "operation": "",
    "orderInfo": {
        "cart": {
            "discounts": "",
            "grandTotal": 0,
            "items": [
                {
                    "discount": "",
                    "id": "",
                    "name": "",
                    "price": "",
                    "priceTags": [
                        {
                            "name": "",
                            "value": 0
                        }
                    ],
                    "productId": "",
                    "quantity": 0,
                    "refId": "",
                    "shippingDiscount": 0,
                    "value": ""
                }
            ],
            "itemsTotal": "",
            "shipping": "",
            "taxes": 0
        },
        "clientProfile": {
            "birthDate": "",
            "document": "",
            "email": "",
            "firstName": "",
            "isCorporate": False,
            "lastName": "",
            "phone": ""
        },
        "orderId": "",
        "sequence": 0,
        "shipping": {
            "city": "",
            "complement": "",
            "country": "",
            "neighborhood": "",
            "number": "",
            "postalCode": "",
            "receiverName": "",
            "reference": "",
            "state": "",
            "street": ""
        }
    },
    "redemptionCode": "",
    "redemptionToken": "",
    "requestId": "",
    "value": ""
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions"

payload <- "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

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

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

response = conn.post('/baseUrl/giftcards/:giftCardID/transactions') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"description\": \"\",\n  \"operation\": \"\",\n  \"orderInfo\": {\n    \"cart\": {\n      \"discounts\": \"\",\n      \"grandTotal\": 0,\n      \"items\": [\n        {\n          \"discount\": \"\",\n          \"id\": \"\",\n          \"name\": \"\",\n          \"price\": \"\",\n          \"priceTags\": [\n            {\n              \"name\": \"\",\n              \"value\": 0\n            }\n          ],\n          \"productId\": \"\",\n          \"quantity\": 0,\n          \"refId\": \"\",\n          \"shippingDiscount\": 0,\n          \"value\": \"\"\n        }\n      ],\n      \"itemsTotal\": \"\",\n      \"shipping\": \"\",\n      \"taxes\": 0\n    },\n    \"clientProfile\": {\n      \"birthDate\": \"\",\n      \"document\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"isCorporate\": false,\n      \"lastName\": \"\",\n      \"phone\": \"\"\n    },\n    \"orderId\": \"\",\n    \"sequence\": 0,\n    \"shipping\": {\n      \"city\": \"\",\n      \"complement\": \"\",\n      \"country\": \"\",\n      \"neighborhood\": \"\",\n      \"number\": \"\",\n      \"postalCode\": \"\",\n      \"receiverName\": \"\",\n      \"reference\": \"\",\n      \"state\": \"\",\n      \"street\": \"\"\n    }\n  },\n  \"redemptionCode\": \"\",\n  \"redemptionToken\": \"\",\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"
end

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

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

    let payload = json!({
        "description": "",
        "operation": "",
        "orderInfo": json!({
            "cart": json!({
                "discounts": "",
                "grandTotal": 0,
                "items": (
                    json!({
                        "discount": "",
                        "id": "",
                        "name": "",
                        "price": "",
                        "priceTags": (
                            json!({
                                "name": "",
                                "value": 0
                            })
                        ),
                        "productId": "",
                        "quantity": 0,
                        "refId": "",
                        "shippingDiscount": 0,
                        "value": ""
                    })
                ),
                "itemsTotal": "",
                "shipping": "",
                "taxes": 0
            }),
            "clientProfile": json!({
                "birthDate": "",
                "document": "",
                "email": "",
                "firstName": "",
                "isCorporate": false,
                "lastName": "",
                "phone": ""
            }),
            "orderId": "",
            "sequence": 0,
            "shipping": json!({
                "city": "",
                "complement": "",
                "country": "",
                "neighborhood": "",
                "number": "",
                "postalCode": "",
                "receiverName": "",
                "reference": "",
                "state": "",
                "street": ""
            })
        }),
        "redemptionCode": "",
        "redemptionToken": "",
        "requestId": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/giftcards/:giftCardID/transactions \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "description": "",
  "operation": "",
  "orderInfo": {
    "cart": {
      "discounts": "",
      "grandTotal": 0,
      "items": [
        {
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            {
              "name": "",
              "value": 0
            }
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        }
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    },
    "clientProfile": {
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    },
    "orderId": "",
    "sequence": 0,
    "shipping": {
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    }
  },
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
}'
echo '{
  "description": "",
  "operation": "",
  "orderInfo": {
    "cart": {
      "discounts": "",
      "grandTotal": 0,
      "items": [
        {
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            {
              "name": "",
              "value": 0
            }
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        }
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    },
    "clientProfile": {
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    },
    "orderId": "",
    "sequence": 0,
    "shipping": {
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    }
  },
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
}' |  \
  http POST {{baseUrl}}/giftcards/:giftCardID/transactions \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "description": "",\n  "operation": "",\n  "orderInfo": {\n    "cart": {\n      "discounts": "",\n      "grandTotal": 0,\n      "items": [\n        {\n          "discount": "",\n          "id": "",\n          "name": "",\n          "price": "",\n          "priceTags": [\n            {\n              "name": "",\n              "value": 0\n            }\n          ],\n          "productId": "",\n          "quantity": 0,\n          "refId": "",\n          "shippingDiscount": 0,\n          "value": ""\n        }\n      ],\n      "itemsTotal": "",\n      "shipping": "",\n      "taxes": 0\n    },\n    "clientProfile": {\n      "birthDate": "",\n      "document": "",\n      "email": "",\n      "firstName": "",\n      "isCorporate": false,\n      "lastName": "",\n      "phone": ""\n    },\n    "orderId": "",\n    "sequence": 0,\n    "shipping": {\n      "city": "",\n      "complement": "",\n      "country": "",\n      "neighborhood": "",\n      "number": "",\n      "postalCode": "",\n      "receiverName": "",\n      "reference": "",\n      "state": "",\n      "street": ""\n    }\n  },\n  "redemptionCode": "",\n  "redemptionToken": "",\n  "requestId": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "description": "",
  "operation": "",
  "orderInfo": [
    "cart": [
      "discounts": "",
      "grandTotal": 0,
      "items": [
        [
          "discount": "",
          "id": "",
          "name": "",
          "price": "",
          "priceTags": [
            [
              "name": "",
              "value": 0
            ]
          ],
          "productId": "",
          "quantity": 0,
          "refId": "",
          "shippingDiscount": 0,
          "value": ""
        ]
      ],
      "itemsTotal": "",
      "shipping": "",
      "taxes": 0
    ],
    "clientProfile": [
      "birthDate": "",
      "document": "",
      "email": "",
      "firstName": "",
      "isCorporate": false,
      "lastName": "",
      "phone": ""
    ],
    "orderId": "",
    "sequence": 0,
    "shipping": [
      "city": "",
      "complement": "",
      "country": "",
      "neighborhood": "",
      "number": "",
      "postalCode": "",
      "receiverName": "",
      "reference": "",
      "state": "",
      "street": ""
    ]
  ],
  "redemptionCode": "",
  "redemptionToken": "",
  "requestId": "",
  "value": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "_self": {
    "href": "providers/VtexGiftCardProvider/cards/890/transactions/2451"
  },
  "id": "2541"
}
GET Get GiftCard Transaction by ID
{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
transactionID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID");

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

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

(client/get "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID" {:headers {:accept ""
                                                                                                       :content-type ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/giftcards/:giftCardID/transactions/:transactionID HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID"))
    .header("accept", "")
    .header("content-type", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID")
  .header("accept", "")
  .header("content-type", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions/:transactionID',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID',
  headers: {accept: '', 'content-type': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID');

req.headers({
  accept: '',
  'content-type': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/giftcards/:giftCardID/transactions/:transactionID", headers=headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID"

headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/giftcards/:giftCardID/transactions/:transactionID') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2016-01-01T00:00:00",
  "description": "CrC)dito relacionado a compra 10281230-01",
  "redemptionMode": "redemptionToken",
  "value": 123.4
}
GET Get GiftCard Transactions
{{baseUrl}}/giftcards/:giftCardID/transactions
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions");

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

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

(client/get "{{baseUrl}}/giftcards/:giftCardID/transactions" {:headers {:accept ""
                                                                                        :content-type ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

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

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/giftcards/:giftCardID/transactions HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcards/:giftCardID/transactions")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions"))
    .header("accept", "")
    .header("content-type", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcards/:giftCardID/transactions")
  .header("accept", "")
  .header("content-type", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions',
  headers: {accept: '', 'content-type': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions');

req.headers({
  accept: '',
  'content-type': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

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

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

let uri = Uri.of_string "{{baseUrl}}/giftcards/:giftCardID/transactions" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/giftcards/:giftCardID/transactions", headers=headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions"

headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/giftcards/:giftCardID/transactions') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

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

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/giftcards/:giftCardID/transactions \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/giftcards/:giftCardID/transactions \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "_self": {
      "href": "cards/890/transactions/268"
    },
    "id": "268"
  },
  {
    "_self": {
      "href": "cards/890/transactions/269"
    },
    "id": "269"
  },
  {
    "_self": {
      "href": "cards/890/transactions/270"
    },
    "id": "270"
  }
]
GET Get Transaction Authorizations
{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
transactionID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization");

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

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

(client/get "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization" {:headers {:accept ""
                                                                                                                     :content-type ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/giftcards/:giftCardID/transactions/:transactionID/authorization HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization"))
    .header("accept", "")
    .header("content-type", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .header("accept", "")
  .header("content-type", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {accept: '', 'content-type': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization');

req.headers({
  accept: '',
  'content-type': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/giftcards/:giftCardID/transactions/:transactionID/authorization", headers=headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization"

headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/giftcards/:giftCardID/transactions/:transactionID/authorization') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization";

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/authorization")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2016-01-01T00:00:00",
  "oid": "7cf8d7970e1c81d05620e46cceb6819f",
  "value": 123.4
}
GET Get Transaction Cancellations
{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
transactionID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations");

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

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

(client/get "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations" {:headers {:accept ""
                                                                                                                     :content-type ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"))
    .header("accept", "")
    .header("content-type", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .header("accept", "")
  .header("content-type", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {accept: '', 'content-type': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');

req.headers({
  accept: '',
  'content-type': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations", headers=headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"

headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/giftcards/:giftCardID/transactions/:transactionID/cancellations') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations";

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/cancellations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "date": "2016-04-06T00:00:00",
    "id": "239d35b430fc75379db966c1d3670c6f",
    "value": 13.4
  },
  {
    "date": "2016-05-06T00:00:00",
    "id": "49f0bad299687c62334182178bfd75d8",
    "value": 10.4
  }
]
GET Get Transaction Settlements
{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
transactionID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements");

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

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

(client/get "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements" {:headers {:accept ""
                                                                                                                   :content-type ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}

response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"),
    Headers =
    {
        { "accept", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
GET /baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements HTTP/1.1
Accept: 
Content-Type: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"))
    .header("accept", "")
    .header("content-type", "")
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .header("accept", "")
  .header("content-type", "")
  .asString();
const data = null;

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

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

xhr.open('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {accept: '', 'content-type': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {accept: '', 'content-type': ''}
};

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

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

const req = unirest('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements');

req.headers({
  accept: '',
  'content-type': ''
});

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {accept: '', 'content-type': ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements';
const options = {method: 'GET', headers: {accept: '', 'content-type': ''}};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];

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

let uri = Uri.of_string "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements' -Method GET -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements' -Method GET -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("GET", "/baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements", headers=headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"

headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''

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

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

response = conn.get('/baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements') do |req|
  req.headers['accept'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements";

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

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

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

    dbg!(results);
}
curl --request GET \
  --url {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements \
  --header 'accept: ' \
  --header 'content-type: '
http GET {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements \
  accept:'' \
  content-type:''
wget --quiet \
  --method GET \
  --header 'accept: ' \
  --header 'content-type: ' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

[
  {
    "date": "2016-04-06T00:00:00",
    "oid": "b8e0c606b2fe543e5b0e639575cd9723",
    "value": 17.4
  },
  {
    "date": "2016-05-06T00:00:00",
    "oid": "6cb6cd63c16e219b1eee61f2",
    "value": 10.4
  }
]
POST Settle GiftCard Transaction
{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardID
transactionID
BODY json

{
  "requestId": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements");

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}");

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

(client/post "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements" {:headers {:accept ""}
                                                                                                          :content-type :json
                                                                                                          :form-params {:requestId ""
                                                                                                                        :value ""}})
require "http/client"

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
}
reqBody = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\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}}/giftcards/:giftCardID/transactions/:transactionID/settlements"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"requestId\": \"\",\n  \"value\": \"\"\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}}/giftcards/:giftCardID/transactions/:transactionID/settlements");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
request.AddParameter("", "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"

	payload := strings.NewReader("{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")

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

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

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

}
POST /baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements HTTP/1.1
Accept: 
Content-Type: 
Host: example.com
Content-Length: 36

{
  "requestId": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .setBody("{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"))
    .header("accept", "")
    .header("content-type", "")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"requestId\": \"\",\n  \"value\": \"\"\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  \"requestId\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .header("accept", "")
  .header("content-type", "")
  .body("{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  requestId: '',
  value: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {accept: '', 'content-type': ''},
  data: {requestId: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"requestId":"","value":""}'
};

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}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': ''
  },
  processData: false,
  data: '{\n  "requestId": "",\n  "value": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {
    accept: '',
    'content-type': ''
  }
};

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({requestId: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {accept: '', 'content-type': ''},
  body: {requestId: '', value: ''},
  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}}/giftcards/:giftCardID/transactions/:transactionID/settlements');

req.headers({
  accept: '',
  'content-type': ''
});

req.type('json');
req.send({
  requestId: '',
  value: ''
});

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}}/giftcards/:giftCardID/transactions/:transactionID/settlements',
  headers: {accept: '', 'content-type': ''},
  data: {requestId: '', value: ''}
};

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

const url = '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': ''},
  body: '{"requestId":"","value":""}'
};

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

NSDictionary *headers = @{ @"accept": @"",
                           @"content-type": @"" };
NSDictionary *parameters = @{ @"requestId": @"",
                              @"value": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"]
                                                       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}}/giftcards/:giftCardID/transactions/:transactionID/settlements" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements",
  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([
    'requestId' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: "
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements', [
  'body' => '{
  "requestId": "",
  "value": ""
}',
  'headers' => [
    'accept' => '',
    'content-type' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'requestId' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements' -Method POST -Headers $headers -ContentType '' -Body '{
  "requestId": "",
  "value": ""
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements' -Method POST -Headers $headers -ContentType '' -Body '{
  "requestId": "",
  "value": ""
}'
import http.client

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

payload = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

headers = {
    'accept': "",
    'content-type': ""
}

conn.request("POST", "/baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements", payload, headers)

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

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

url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"

payload = {
    "requestId": "",
    "value": ""
}
headers = {
    "accept": "",
    "content-type": ""
}

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

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

url <- "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements"

payload <- "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = ''
request.body = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"

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

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

response = conn.post('/baseUrl/giftcards/:giftCardID/transactions/:transactionID/settlements') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"requestId\": \"\",\n  \"value\": \"\"\n}"
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements";

    let payload = json!({
        "requestId": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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}}/giftcards/:giftCardID/transactions/:transactionID/settlements \
  --header 'accept: ' \
  --header 'content-type: ' \
  --data '{
  "requestId": "",
  "value": ""
}'
echo '{
  "requestId": "",
  "value": ""
}' |  \
  http POST {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements \
  accept:'' \
  content-type:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: ' \
  --body-data '{\n  "requestId": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/giftcards/:giftCardID/transactions/:transactionID/settlements
import Foundation

let headers = [
  "accept": "",
  "content-type": ""
]
let parameters = [
  "requestId": "",
  "value": ""
] as [String : Any]

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

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

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

dataTask.resume()
RESPONSE HEADERS

Content-Type
application/json
RESPONSE BODY json

{
  "date": "2016-04-06T00:00:00",
  "oid": "b8e0c606b2fe543e5b0e639575cd9723",
  "value": 17.4
}