PUT Create-Update GiftCard Provider by ID
{{baseUrl}}/giftcardproviders/:giftCardProviderID
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcardproviders/:giftCardProviderID");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: application/vnd.vtex.giftcardproviders.v1+json");
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/put "{{baseUrl}}/giftcardproviders/:giftCardProviderID" {:headers {:accept ""
                                                                                           :content-type "application/vnd.vtex.giftcardproviders.v1+json"
                                                                                           :x-vtex-api-appkey ""
                                                                                           :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => "application/vnd.vtex.giftcardproviders.v1+json"
  "x-vtex-api-appkey" => ""
  "x-vtex-api-apptoken" => ""
}

response = HTTP::Client.put url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/giftcardproviders/:giftCardProviderID"),
    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}}/giftcardproviders/:giftCardProviderID");
var request = new RestRequest("", Method.Put);
request.AddHeader("accept", "");
request.AddHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
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}}/giftcardproviders/:giftCardProviderID"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
	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))

}
PUT /baseUrl/giftcardproviders/:giftCardProviderID HTTP/1.1
Accept: 
Content-Type: application/vnd.vtex.giftcardproviders.v1+json
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/giftcardproviders/:giftCardProviderID")
  .setHeader("accept", "")
  .setHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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}}/giftcardproviders/:giftCardProviderID"))
    .header("accept", "")
    .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .method("PUT", 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}}/giftcardproviders/:giftCardProviderID")
  .put(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/giftcardproviders/:giftCardProviderID")
  .header("accept", "")
  .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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('PUT', '{{baseUrl}}/giftcardproviders/:giftCardProviderID');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', 'application/vnd.vtex.giftcardproviders.v1+json');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID';
const options = {
  method: 'PUT',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID',
  method: 'PUT',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID")
  .put(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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: 'PUT',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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('PUT', '{{baseUrl}}/giftcardproviders/:giftCardProviderID');

req.headers({
  accept: '',
  'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
  '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: 'PUT',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID';
const options = {
  method: 'PUT',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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 = @{ @"accept": @"",
                           @"content-type": @"application/vnd.vtex.giftcardproviders.v1+json",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[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}}/giftcardproviders/:giftCardProviderID" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: application/vnd.vtex.giftcardproviders.v1+json",
    "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('PUT', '{{baseUrl}}/giftcardproviders/:giftCardProviderID', [
  'headers' => [
    'accept' => '',
    'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID');
$request->setRequestMethod('PUT');
$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID' -Method PUT -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID' -Method PUT -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': "application/vnd.vtex.giftcardproviders.v1+json",
    'x-vtex-api-appkey': "",
    'x-vtex-api-apptoken': ""
}

conn.request("PUT", "/baseUrl/giftcardproviders/:giftCardProviderID", headers=headers)

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

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

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID"

headers = {
    "accept": "",
    "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
    "x-vtex-api-appkey": "",
    "x-vtex-api-apptoken": ""
}

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID"

response <- VERB("PUT", 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}}/giftcardproviders/:giftCardProviderID")

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

request = Net::HTTP::Put.new(url)
request["accept"] = ''
request["content-type"] = 'application/vnd.vtex.giftcardproviders.v1+json'
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',
  headers: {'Content-Type' => 'application/vnd.vtex.giftcardproviders.v1+json'}
)

response = conn.put('/baseUrl/giftcardproviders/:giftCardProviderID') 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 std::str::FromStr;
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "application/vnd.vtex.giftcardproviders.v1+json".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.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .send()
        .await;

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/giftcardproviders/:giftCardProviderID \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: '
http PUT {{baseUrl}}/giftcardproviders/:giftCardProviderID \
  accept:'' \
  content-type:'application/vnd.vtex.giftcardproviders.v1+json' \
  x-vtex-api-appkey:'' \
  x-vtex-api-apptoken:''
wget --quiet \
  --method PUT \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --output-document \
  - {{baseUrl}}/giftcardproviders/:giftCardProviderID
import Foundation

let headers = [
  "accept": "",
  "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
  "x-vtex-api-appkey": "",
  "x-vtex-api-apptoken": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
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()
DELETE Delete GiftCard Provider by ID
{{baseUrl}}/giftcardproviders/:giftCardProviderID
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcardproviders/:giftCardProviderID");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/delete "{{baseUrl}}/giftcardproviders/:giftCardProviderID" {:headers {:accept ""
                                                                                              :content-type ""
                                                                                              :x-vtex-api-appkey ""
                                                                                              :x-vtex-api-apptoken ""}})
require "http/client"

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

response = HTTP::Client.delete url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/giftcardproviders/:giftCardProviderID"),
    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}}/giftcardproviders/:giftCardProviderID");
var request = new RestRequest("", Method.Delete);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderID"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

}
DELETE /baseUrl/giftcardproviders/:giftCardProviderID HTTP/1.1
Accept: 
Content-Type: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/giftcardproviders/:giftCardProviderID")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderID"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .method("DELETE", 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}}/giftcardproviders/:giftCardProviderID")
  .delete(null)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/giftcardproviders/:giftCardProviderID")
  .header("accept", "")
  .header("content-type", "")
  .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('DELETE', '{{baseUrl}}/giftcardproviders/:giftCardProviderID');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID';
const options = {
  method: 'DELETE',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID',
  method: 'DELETE',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID")
  .delete(null)
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'DELETE',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': '',
    '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('DELETE', '{{baseUrl}}/giftcardproviders/:giftCardProviderID');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'DELETE',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID';
const options = {
  method: 'DELETE',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];
[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}}/giftcardproviders/:giftCardProviderID" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
  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('DELETE', '{{baseUrl}}/giftcardproviders/:giftCardProviderID', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID');
$request->setMethod(HTTP_METH_DELETE);

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

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

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

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

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

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

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

conn.request("DELETE", "/baseUrl/giftcardproviders/:giftCardProviderID", headers=headers)

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

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

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID"

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

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID"

response <- VERB("DELETE", 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}}/giftcardproviders/:giftCardProviderID")

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

request = Net::HTTP::Delete.new(url)
request["accept"] = ''
request["content-type"] = ''
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.delete('/baseUrl/giftcardproviders/:giftCardProviderID') 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 std::str::FromStr;
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .headers(headers)
        .send()
        .await;

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

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

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

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

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

dataTask.resume()
GET Get GiftCard Provider by ID
{{baseUrl}}/giftcardproviders/:giftCardProviderId
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/giftcardproviders/:giftCardProviderId");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders/:giftCardProviderId" {:headers {:accept ""
                                                                                           :content-type ""
                                                                                           :x-vtex-api-appkey ""
                                                                                           :x-vtex-api-apptoken ""}})
require "http/client"

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

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}}/giftcardproviders/:giftCardProviderId"),
    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}}/giftcardproviders/:giftCardProviderId");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderId"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

}
GET /baseUrl/giftcardproviders/:giftCardProviderId HTTP/1.1
Accept: 
Content-Type: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders/:giftCardProviderId")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderId"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders/:giftCardProviderId")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders/:giftCardProviderId")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderId');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderId',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderId';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderId',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderId")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderId',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderId',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderId');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderId',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderId';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderId"]
                                                       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}}/giftcardproviders/:giftCardProviderId" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderId",
  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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderId', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/giftcardproviders/:giftCardProviderId", headers=headers)

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

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

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderId"

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

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderId"

response <- VERB("GET", 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}}/giftcardproviders/:giftCardProviderId")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''
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.get('/baseUrl/giftcardproviders/:giftCardProviderId') 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}}/giftcardproviders/:giftCardProviderId";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

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

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

dataTask.resume()
GET List All GiftCard Providers
{{baseUrl}}/giftcardproviders
HEADERS

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

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders" {:headers {:accept ""
                                                                       :content-type ""
                                                                       :x-vtex-api-appkey ""
                                                                       :x-vtex-api-apptoken ""}})
require "http/client"

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

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}}/giftcardproviders"),
    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}}/giftcardproviders");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

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

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders"]
                                                       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}}/giftcardproviders" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders",
  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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/giftcardproviders", headers=headers)

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

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

url = "{{baseUrl}}/giftcardproviders"

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

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

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

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

response <- VERB("GET", 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}}/giftcardproviders")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''
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.get('/baseUrl/giftcardproviders') 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}}/giftcardproviders";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

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

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

dataTask.resume()
POST Create GiftCard Cancellation Transaction
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
tId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: application/vnd.vtex.giftcardproviders.v1+json");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations" {:headers {:accept ""
                                                                                                                                                  :content-type "application/vnd.vtex.giftcardproviders.v1+json"
                                                                                                                                                  :x-vtex-api-appkey ""
                                                                                                                                                  :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => "application/vnd.vtex.giftcardproviders.v1+json"
  "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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
	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/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations HTTP/1.1
Accept: 
Content-Type: application/vnd.vtex.giftcardproviders.v1+json
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .setHeader("accept", "")
  .setHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"))
    .header("accept", "")
    .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .header("accept", "")
  .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', 'application/vnd.vtex.giftcardproviders.v1+json');
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations');

req.headers({
  accept: '',
  'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
  '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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 = @{ @"accept": @"",
                           @"content-type": @"application/vnd.vtex.giftcardproviders.v1+json",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"]
                                                       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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations",
  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: application/vnd.vtex.giftcardproviders.v1+json",
    "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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations', [
  'headers' => [
    'accept' => '',
    'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations');
$request->setRequestMethod('POST');
$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations' -Method POST -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations' -Method POST -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': "application/vnd.vtex.giftcardproviders.v1+json",
    'x-vtex-api-appkey': "",
    'x-vtex-api-apptoken': ""
}

conn.request("POST", "/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations", headers=headers)

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

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

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"

headers = {
    "accept": "",
    "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
    "x-vtex-api-appkey": "",
    "x-vtex-api-apptoken": ""
}

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = 'application/vnd.vtex.giftcardproviders.v1+json'
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',
  headers: {'Content-Type' => 'application/vnd.vtex.giftcardproviders.v1+json'}
)

response = conn.post('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "application/vnd.vtex.giftcardproviders.v1+json".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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: '
http POST {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations \
  accept:'' \
  content-type:'application/vnd.vtex.giftcardproviders.v1+json' \
  x-vtex-api-appkey:'' \
  x-vtex-api-apptoken:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --output-document \
  - {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations
import Foundation

let headers = [
  "accept": "",
  "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
  "x-vtex-api-appkey": "",
  "x-vtex-api-apptoken": ""
]

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

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

dataTask.resume()
POST Create GiftCard Settlement Transaction
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements
HEADERS

Accept
Content-Type
QUERY PARAMS

giftCardProviderID
giftCardID
tId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}");

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

(client/post "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements" {:headers {:accept ""}
                                                                                                                                      :content-type :json
                                                                                                                                      :form-params {:cart {:discounts -20
                                                                                                                                                           :grandTotal 182
                                                                                                                                                           :items [{:id "2000002"
                                                                                                                                                                    :name nil
                                                                                                                                                                    :price 200
                                                                                                                                                                    :productId "2000000"
                                                                                                                                                                    :quantity 1
                                                                                                                                                                    :refId "MEV41"}]
                                                                                                                                                           :itemsTotal 200
                                                                                                                                                           :redemptionCode "FASD-ASDS-ASDA-ASDA"
                                                                                                                                                           :relationName "loyalty-program"
                                                                                                                                                           :shipping 2
                                                                                                                                                           :taxes 0}
                                                                                                                                                    :client {:document "42151783120"
                                                                                                                                                             :email "convidadovtex@gmail.com"
                                                                                                                                                             :id "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"}}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => "application/json;charset=utf-8"
}
reqBody = "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"),
    Headers =
    {
        { "accept", "" },
    },
    Content = new StringContent("{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "application/json;charset=utf-8");
request.AddParameter("application/json;charset=utf-8", "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"

	payload := strings.NewReader("{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}")

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "application/json;charset=utf-8")

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

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

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

}
POST /baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements HTTP/1.1
Accept: 
Content-Type: application/json;charset=utf-8
Host: example.com
Content-Length: 531

{
  "cart": {
    "discounts": -20,
    "grandTotal": 182,
    "items": [
      {
        "id": "2000002",
        "name": null,
        "price": 200,
        "productId": "2000000",
        "quantity": 1,
        "refId": "MEV41"
      }
    ],
    "itemsTotal": 200,
    "redemptionCode": "FASD-ASDS-ASDA-ASDA",
    "relationName": "loyalty-program",
    "shipping": 2,
    "taxes": 0
  },
  "client": {
    "document": "42151783120",
    "email": "convidadovtex@gmail.com",
    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .setHeader("accept", "")
  .setHeader("content-type", "application/json;charset=utf-8")
  .setBody("{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"))
    .header("accept", "")
    .header("content-type", "application/json;charset=utf-8")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\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\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "application/json;charset=utf-8")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .header("accept", "")
  .header("content-type", "application/json;charset=utf-8")
  .body("{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  cart: {
    discounts: -20,
    grandTotal: 182,
    items: [
      {
        id: '2000002',
        name: null,
        price: 200,
        productId: '2000000',
        quantity: 1,
        refId: 'MEV41'
      }
    ],
    itemsTotal: 200,
    redemptionCode: 'FASD-ASDS-ASDA-ASDA',
    relationName: 'loyalty-program',
    shipping: 2,
    taxes: 0
  },
  client: {
    document: '42151783120',
    email: 'convidadovtex@gmail.com',
    id: '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
  }
});

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

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

xhr.open('POST', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', 'application/json;charset=utf-8');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {accept: '', 'content-type': 'application/json;charset=utf-8'},
  data: {
    cart: {
      discounts: -20,
      grandTotal: 182,
      items: [
        {
          id: '2000002',
          name: null,
          price: 200,
          productId: '2000000',
          quantity: 1,
          refId: 'MEV41'
        }
      ],
      itemsTotal: 200,
      redemptionCode: 'FASD-ASDS-ASDA-ASDA',
      relationName: 'loyalty-program',
      shipping: 2,
      taxes: 0
    },
    client: {
      document: '42151783120',
      email: 'convidadovtex@gmail.com',
      id: '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': 'application/json;charset=utf-8'},
  body: '{"cart":{"discounts":-20,"grandTotal":182,"items":[{"id":"2000002","name":null,"price":200,"productId":"2000000","quantity":1,"refId":"MEV41"}],"itemsTotal":200,"redemptionCode":"FASD-ASDS-ASDA-ASDA","relationName":"loyalty-program","shipping":2,"taxes":0},"client":{"document":"42151783120","email":"convidadovtex@gmail.com","id":"3b1abc17-988e-4a14-8b7f-31fc6a5b955c"}}'
};

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/json;charset=utf-8'
  },
  processData: false,
  data: '{\n  "cart": {\n    "discounts": -20,\n    "grandTotal": 182,\n    "items": [\n      {\n        "id": "2000002",\n        "name": null,\n        "price": 200,\n        "productId": "2000000",\n        "quantity": 1,\n        "refId": "MEV41"\n      }\n    ],\n    "itemsTotal": 200,\n    "redemptionCode": "FASD-ASDS-ASDA-ASDA",\n    "relationName": "loyalty-program",\n    "shipping": 2,\n    "taxes": 0\n  },\n  "client": {\n    "document": "42151783120",\n    "email": "convidadovtex@gmail.com",\n    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"\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\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .post(body)
  .addHeader("accept", "")
  .addHeader("content-type", "application/json;charset=utf-8")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {
    accept: '',
    'content-type': 'application/json;charset=utf-8'
  }
};

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: -20,
    grandTotal: 182,
    items: [
      {
        id: '2000002',
        name: null,
        price: 200,
        productId: '2000000',
        quantity: 1,
        refId: 'MEV41'
      }
    ],
    itemsTotal: 200,
    redemptionCode: 'FASD-ASDS-ASDA-ASDA',
    relationName: 'loyalty-program',
    shipping: 2,
    taxes: 0
  },
  client: {
    document: '42151783120',
    email: 'convidadovtex@gmail.com',
    id: '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {accept: '', 'content-type': 'application/json;charset=utf-8'},
  body: {
    cart: {
      discounts: -20,
      grandTotal: 182,
      items: [
        {
          id: '2000002',
          name: null,
          price: 200,
          productId: '2000000',
          quantity: 1,
          refId: 'MEV41'
        }
      ],
      itemsTotal: 200,
      redemptionCode: 'FASD-ASDS-ASDA-ASDA',
      relationName: 'loyalty-program',
      shipping: 2,
      taxes: 0
    },
    client: {
      document: '42151783120',
      email: 'convidadovtex@gmail.com',
      id: '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
    }
  },
  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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements');

req.headers({
  accept: '',
  'content-type': 'application/json;charset=utf-8'
});

req.type('json');
req.send({
  cart: {
    discounts: -20,
    grandTotal: 182,
    items: [
      {
        id: '2000002',
        name: null,
        price: 200,
        productId: '2000000',
        quantity: 1,
        refId: 'MEV41'
      }
    ],
    itemsTotal: 200,
    redemptionCode: 'FASD-ASDS-ASDA-ASDA',
    relationName: 'loyalty-program',
    shipping: 2,
    taxes: 0
  },
  client: {
    document: '42151783120',
    email: 'convidadovtex@gmail.com',
    id: '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
  }
});

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {accept: '', 'content-type': 'application/json;charset=utf-8'},
  data: {
    cart: {
      discounts: -20,
      grandTotal: 182,
      items: [
        {
          id: '2000002',
          name: null,
          price: 200,
          productId: '2000000',
          quantity: 1,
          refId: 'MEV41'
        }
      ],
      itemsTotal: 200,
      redemptionCode: 'FASD-ASDS-ASDA-ASDA',
      relationName: 'loyalty-program',
      shipping: 2,
      taxes: 0
    },
    client: {
      document: '42151783120',
      email: 'convidadovtex@gmail.com',
      id: '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
    }
  }
};

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

const url = '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements';
const options = {
  method: 'POST',
  headers: {accept: '', 'content-type': 'application/json;charset=utf-8'},
  body: '{"cart":{"discounts":-20,"grandTotal":182,"items":[{"id":"2000002","name":null,"price":200,"productId":"2000000","quantity":1,"refId":"MEV41"}],"itemsTotal":200,"redemptionCode":"FASD-ASDS-ASDA-ASDA","relationName":"loyalty-program","shipping":2,"taxes":0},"client":{"document":"42151783120","email":"convidadovtex@gmail.com","id":"3b1abc17-988e-4a14-8b7f-31fc6a5b955c"}}'
};

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": @"application/json;charset=utf-8" };
NSDictionary *parameters = @{ @"cart": @{ @"discounts": @-20, @"grandTotal": @182, @"items": @[ @{ @"id": @"2000002", @"name": , @"price": @200, @"productId": @"2000000", @"quantity": @1, @"refId": @"MEV41" } ], @"itemsTotal": @200, @"redemptionCode": @"FASD-ASDS-ASDA-ASDA", @"relationName": @"loyalty-program", @"shipping": @2, @"taxes": @0 },
                              @"client": @{ @"document": @"42151783120", @"email": @"convidadovtex@gmail.com", @"id": @"3b1abc17-988e-4a14-8b7f-31fc6a5b955c" } };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "application/json;charset=utf-8");
] in
let body = Cohttp_lwt_body.of_string "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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([
    'cart' => [
        'discounts' => -20,
        'grandTotal' => 182,
        'items' => [
                [
                                'id' => '2000002',
                                'name' => null,
                                'price' => 200,
                                'productId' => '2000000',
                                'quantity' => 1,
                                'refId' => 'MEV41'
                ]
        ],
        'itemsTotal' => 200,
        'redemptionCode' => 'FASD-ASDS-ASDA-ASDA',
        'relationName' => 'loyalty-program',
        'shipping' => 2,
        'taxes' => 0
    ],
    'client' => [
        'document' => '42151783120',
        'email' => 'convidadovtex@gmail.com',
        'id' => '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "accept: ",
    "content-type: application/json;charset=utf-8"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements', [
  'body' => '{
  "cart": {
    "discounts": -20,
    "grandTotal": 182,
    "items": [
      {
        "id": "2000002",
        "name": null,
        "price": 200,
        "productId": "2000000",
        "quantity": 1,
        "refId": "MEV41"
      }
    ],
    "itemsTotal": 200,
    "redemptionCode": "FASD-ASDS-ASDA-ASDA",
    "relationName": "loyalty-program",
    "shipping": 2,
    "taxes": 0
  },
  "client": {
    "document": "42151783120",
    "email": "convidadovtex@gmail.com",
    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
  }
}',
  'headers' => [
    'accept' => '',
    'content-type' => 'application/json;charset=utf-8',
  ],
]);

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

$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/json;charset=utf-8'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'cart' => [
    'discounts' => -20,
    'grandTotal' => 182,
    'items' => [
        [
                'id' => '2000002',
                'name' => null,
                'price' => 200,
                'productId' => '2000000',
                'quantity' => 1,
                'refId' => 'MEV41'
        ]
    ],
    'itemsTotal' => 200,
    'redemptionCode' => 'FASD-ASDS-ASDA-ASDA',
    'relationName' => 'loyalty-program',
    'shipping' => 2,
    'taxes' => 0
  ],
  'client' => [
    'document' => '42151783120',
    'email' => 'convidadovtex@gmail.com',
    'id' => '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
  ]
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'cart' => [
    'discounts' => -20,
    'grandTotal' => 182,
    'items' => [
        [
                'id' => '2000002',
                'name' => null,
                'price' => 200,
                'productId' => '2000000',
                'quantity' => 1,
                'refId' => 'MEV41'
        ]
    ],
    'itemsTotal' => 200,
    'redemptionCode' => 'FASD-ASDS-ASDA-ASDA',
    'relationName' => 'loyalty-program',
    'shipping' => 2,
    'taxes' => 0
  ],
  'client' => [
    'document' => '42151783120',
    'email' => 'convidadovtex@gmail.com',
    'id' => '3b1abc17-988e-4a14-8b7f-31fc6a5b955c'
  ]
]));
$request->setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/json;charset=utf-8'
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/json;charset=utf-8")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements' -Method POST -Headers $headers -ContentType 'application/json;charset=utf-8' -Body '{
  "cart": {
    "discounts": -20,
    "grandTotal": 182,
    "items": [
      {
        "id": "2000002",
        "name": null,
        "price": 200,
        "productId": "2000000",
        "quantity": 1,
        "refId": "MEV41"
      }
    ],
    "itemsTotal": 200,
    "redemptionCode": "FASD-ASDS-ASDA-ASDA",
    "relationName": "loyalty-program",
    "shipping": 2,
    "taxes": 0
  },
  "client": {
    "document": "42151783120",
    "email": "convidadovtex@gmail.com",
    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
  }
}'
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/json;charset=utf-8")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements' -Method POST -Headers $headers -ContentType 'application/json;charset=utf-8' -Body '{
  "cart": {
    "discounts": -20,
    "grandTotal": 182,
    "items": [
      {
        "id": "2000002",
        "name": null,
        "price": 200,
        "productId": "2000000",
        "quantity": 1,
        "refId": "MEV41"
      }
    ],
    "itemsTotal": 200,
    "redemptionCode": "FASD-ASDS-ASDA-ASDA",
    "relationName": "loyalty-program",
    "shipping": 2,
    "taxes": 0
  },
  "client": {
    "document": "42151783120",
    "email": "convidadovtex@gmail.com",
    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
  }
}'
import http.client

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

payload = "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}"

headers = {
    'accept': "",
    'content-type': "application/json;charset=utf-8"
}

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

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

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

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"

payload = {
    "cart": {
        "discounts": -20,
        "grandTotal": 182,
        "items": [
            {
                "id": "2000002",
                "name": None,
                "price": 200,
                "productId": "2000000",
                "quantity": 1,
                "refId": "MEV41"
            }
        ],
        "itemsTotal": 200,
        "redemptionCode": "FASD-ASDS-ASDA-ASDA",
        "relationName": "loyalty-program",
        "shipping": 2,
        "taxes": 0
    },
    "client": {
        "document": "42151783120",
        "email": "convidadovtex@gmail.com",
        "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
    }
}
headers = {
    "accept": "",
    "content-type": "application/json;charset=utf-8"
}

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"

payload <- "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = 'application/json;charset=utf-8'
request.body = "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}"

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

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

response = conn.post('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements') do |req|
  req.headers['accept'] = ''
  req.body = "{\n  \"cart\": {\n    \"discounts\": -20,\n    \"grandTotal\": 182,\n    \"items\": [\n      {\n        \"id\": \"2000002\",\n        \"name\": null,\n        \"price\": 200,\n        \"productId\": \"2000000\",\n        \"quantity\": 1,\n        \"refId\": \"MEV41\"\n      }\n    ],\n    \"itemsTotal\": 200,\n    \"redemptionCode\": \"FASD-ASDS-ASDA-ASDA\",\n    \"relationName\": \"loyalty-program\",\n    \"shipping\": 2,\n    \"taxes\": 0\n  },\n  \"client\": {\n    \"document\": \"42151783120\",\n    \"email\": \"convidadovtex@gmail.com\",\n    \"id\": \"3b1abc17-988e-4a14-8b7f-31fc6a5b955c\"\n  }\n}"
end

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

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

    let payload = json!({
        "cart": json!({
            "discounts": -20,
            "grandTotal": 182,
            "items": (
                json!({
                    "id": "2000002",
                    "name": json!(null),
                    "price": 200,
                    "productId": "2000000",
                    "quantity": 1,
                    "refId": "MEV41"
                })
            ),
            "itemsTotal": 200,
            "redemptionCode": "FASD-ASDS-ASDA-ASDA",
            "relationName": "loyalty-program",
            "shipping": 2,
            "taxes": 0
        }),
        "client": json!({
            "document": "42151783120",
            "email": "convidadovtex@gmail.com",
            "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "application/json;charset=utf-8".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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements \
  --header 'accept: ' \
  --header 'content-type: application/json;charset=utf-8' \
  --data '{
  "cart": {
    "discounts": -20,
    "grandTotal": 182,
    "items": [
      {
        "id": "2000002",
        "name": null,
        "price": 200,
        "productId": "2000000",
        "quantity": 1,
        "refId": "MEV41"
      }
    ],
    "itemsTotal": 200,
    "redemptionCode": "FASD-ASDS-ASDA-ASDA",
    "relationName": "loyalty-program",
    "shipping": 2,
    "taxes": 0
  },
  "client": {
    "document": "42151783120",
    "email": "convidadovtex@gmail.com",
    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
  }
}'
echo '{
  "cart": {
    "discounts": -20,
    "grandTotal": 182,
    "items": [
      {
        "id": "2000002",
        "name": null,
        "price": 200,
        "productId": "2000000",
        "quantity": 1,
        "refId": "MEV41"
      }
    ],
    "itemsTotal": 200,
    "redemptionCode": "FASD-ASDS-ASDA-ASDA",
    "relationName": "loyalty-program",
    "shipping": 2,
    "taxes": 0
  },
  "client": {
    "document": "42151783120",
    "email": "convidadovtex@gmail.com",
    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
  }
}' |  \
  http POST {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements \
  accept:'' \
  content-type:'application/json;charset=utf-8'
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: application/json;charset=utf-8' \
  --body-data '{\n  "cart": {\n    "discounts": -20,\n    "grandTotal": 182,\n    "items": [\n      {\n        "id": "2000002",\n        "name": null,\n        "price": 200,\n        "productId": "2000000",\n        "quantity": 1,\n        "refId": "MEV41"\n      }\n    ],\n    "itemsTotal": 200,\n    "redemptionCode": "FASD-ASDS-ASDA-ASDA",\n    "relationName": "loyalty-program",\n    "shipping": 2,\n    "taxes": 0\n  },\n  "client": {\n    "document": "42151783120",\n    "email": "convidadovtex@gmail.com",\n    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"\n  }\n}' \
  --output-document \
  - {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements
import Foundation

let headers = [
  "accept": "",
  "content-type": "application/json;charset=utf-8"
]
let parameters = [
  "cart": [
    "discounts": -20,
    "grandTotal": 182,
    "items": [
      [
        "id": "2000002",
        "name": ,
        "price": 200,
        "productId": "2000000",
        "quantity": 1,
        "refId": "MEV41"
      ]
    ],
    "itemsTotal": 200,
    "redemptionCode": "FASD-ASDS-ASDA-ASDA",
    "relationName": "loyalty-program",
    "shipping": 2,
    "taxes": 0
  ],
  "client": [
    "document": "42151783120",
    "email": "convidadovtex@gmail.com",
    "id": "3b1abc17-988e-4a14-8b7f-31fc6a5b955c"
  ]
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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()
POST Create GiftCard Transaction
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: application/vnd.vtex.giftcardproviders.v1+json");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions" {:headers {:accept ""
                                                                                                                               :content-type "application/vnd.vtex.giftcardproviders.v1+json"
                                                                                                                               :x-vtex-api-appkey ""
                                                                                                                               :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => "application/vnd.vtex.giftcardproviders.v1+json"
  "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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
	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/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions HTTP/1.1
Accept: 
Content-Type: application/vnd.vtex.giftcardproviders.v1+json
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .setHeader("accept", "")
  .setHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"))
    .header("accept", "")
    .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .header("accept", "")
  .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', 'application/vnd.vtex.giftcardproviders.v1+json');
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions');

req.headers({
  accept: '',
  'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
  '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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 = @{ @"accept": @"",
                           @"content-type": @"application/vnd.vtex.giftcardproviders.v1+json",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"]
                                                       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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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_HTTPHEADER => [
    "accept: ",
    "content-type: application/vnd.vtex.giftcardproviders.v1+json",
    "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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions', [
  'headers' => [
    'accept' => '',
    'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions');
$request->setRequestMethod('POST');
$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

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

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

headers = {
    'accept': "",
    'content-type': "application/vnd.vtex.giftcardproviders.v1+json",
    'x-vtex-api-appkey': "",
    'x-vtex-api-apptoken': ""
}

conn.request("POST", "/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions", headers=headers)

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

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

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

headers = {
    "accept": "",
    "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
    "x-vtex-api-appkey": "",
    "x-vtex-api-apptoken": ""
}

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

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

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

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}}/giftcardproviders/:giftCardProviderID/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"] = 'application/vnd.vtex.giftcardproviders.v1+json'
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',
  headers: {'Content-Type' => 'application/vnd.vtex.giftcardproviders.v1+json'}
)

response = conn.post('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "application/vnd.vtex.giftcardproviders.v1+json".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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: '
http POST {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions \
  accept:'' \
  content-type:'application/vnd.vtex.giftcardproviders.v1+json' \
  x-vtex-api-appkey:'' \
  x-vtex-api-apptoken:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --output-document \
  - {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions
import Foundation

let headers = [
  "accept": "",
  "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
  "x-vtex-api-appkey": "",
  "x-vtex-api-apptoken": ""
]

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

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

dataTask.resume()
POST Create GiftCard in GiftCard Provider
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: application/vnd.vtex.giftcardproviders.v1+json");
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}}/giftcardproviders/:giftCardProviderID/giftcards" {:headers {:accept ""
                                                                                                      :content-type "application/vnd.vtex.giftcardproviders.v1+json"
                                                                                                      :x-vtex-api-appkey ""
                                                                                                      :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => "application/vnd.vtex.giftcardproviders.v1+json"
  "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}}/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
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}}/giftcardproviders/:giftCardProviderID/giftcards"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
	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/giftcardproviders/:giftCardProviderID/giftcards HTTP/1.1
Accept: 
Content-Type: application/vnd.vtex.giftcardproviders.v1+json
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards")
  .setHeader("accept", "")
  .setHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards"))
    .header("accept", "")
    .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards")
  .header("accept", "")
  .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', 'application/vnd.vtex.giftcardproviders.v1+json');
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}}/giftcardproviders/:giftCardProviderID/giftcards',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .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/giftcardproviders/:giftCardProviderID/giftcards',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards');

req.headers({
  accept: '',
  'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
  '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}}/giftcardproviders/:giftCardProviderID/giftcards',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    '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 = @{ @"accept": @"",
                           @"content-type": @"application/vnd.vtex.giftcardproviders.v1+json",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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: application/vnd.vtex.giftcardproviders.v1+json",
    "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}}/giftcardproviders/:giftCardProviderID/giftcards', [
  'headers' => [
    'accept' => '',
    'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards');
$request->setRequestMethod('POST');
$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

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

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

headers = {
    'accept': "",
    'content-type': "application/vnd.vtex.giftcardproviders.v1+json",
    'x-vtex-api-appkey': "",
    'x-vtex-api-apptoken': ""
}

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

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

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

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

headers = {
    "accept": "",
    "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
    "x-vtex-api-appkey": "",
    "x-vtex-api-apptoken": ""
}

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards")

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

request = Net::HTTP::Post.new(url)
request["accept"] = ''
request["content-type"] = 'application/vnd.vtex.giftcardproviders.v1+json'
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',
  headers: {'Content-Type' => 'application/vnd.vtex.giftcardproviders.v1+json'}
)

response = conn.post('/baseUrl/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "application/vnd.vtex.giftcardproviders.v1+json".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}}/giftcardproviders/:giftCardProviderID/giftcards \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: '
http POST {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards \
  accept:'' \
  content-type:'application/vnd.vtex.giftcardproviders.v1+json' \
  x-vtex-api-appkey:'' \
  x-vtex-api-apptoken:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --output-document \
  - {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards
import Foundation

let headers = [
  "accept": "",
  "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
  "x-vtex-api-appkey": "",
  "x-vtex-api-apptoken": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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()
GET Get GiftCard Authorization Transaction
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
transactionID
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization" {:headers {:accept ""
                                                                                                                                                           :content-type ""
                                                                                                                                                           :x-vtex-api-appkey ""
                                                                                                                                                           :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
  "x-vtex-api-appkey" => ""
  "x-vtex-api-apptoken" => ""
}

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

}
GET /baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization HTTP/1.1
Accept: 
Content-Type: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response <- VERB("GET", 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}}/giftcardproviders/:giftCardProviderID/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"] = ''
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.get('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID/authorization";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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()
GET Get GiftCard Transaction by ID
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
transactionID
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID" {:headers {:accept ""
                                                                                                                                             :content-type ""
                                                                                                                                             :x-vtex-api-appkey ""
                                                                                                                                             :x-vtex-api-apptoken ""}})
require "http/client"

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

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

}
GET /baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID HTTP/1.1
Accept: 
Content-Type: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response <- VERB("GET", 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}}/giftcardproviders/:giftCardProviderID/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"] = ''
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.get('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:transactionID";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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()
GET Get GiftCard from GiftCard Provider by ID
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID" {:headers {:accept ""
                                                                                                                 :content-type ""
                                                                                                                 :x-vtex-api-appkey ""
                                                                                                                 :x-vtex-api-apptoken ""}})
require "http/client"

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

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

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

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response <- VERB("GET", 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}}/giftcardproviders/:giftCardProviderID/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"] = ''
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.get('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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()
POST Get GiftCard from GiftCard Provider
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
REST-Range
QUERY PARAMS

giftCardProviderID
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: application/vnd.vtex.giftcardproviders.v1+json");
headers = curl_slist_append(headers, "x-vtex-api-appkey: ");
headers = curl_slist_append(headers, "x-vtex-api-apptoken: ");
headers = curl_slist_append(headers, "rest-range: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

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

(client/post "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search" {:headers {:accept ""
                                                                                                              :content-type "application/vnd.vtex.giftcardproviders.v1+json"
                                                                                                              :x-vtex-api-appkey ""
                                                                                                              :x-vtex-api-apptoken ""
                                                                                                              :rest-range ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => "application/vnd.vtex.giftcardproviders.v1+json"
  "x-vtex-api-appkey" => ""
  "x-vtex-api-apptoken" => ""
  "rest-range" => ""
}

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}}/giftcardproviders/:giftCardProviderID/giftcards/_search"),
    Headers =
    {
        { "accept", "" },
        { "x-vtex-api-appkey", "" },
        { "x-vtex-api-apptoken", "" },
        { "rest-range", "" },
    },
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search");
var request = new RestRequest("", Method.Post);
request.AddHeader("accept", "");
request.AddHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
request.AddHeader("x-vtex-api-appkey", "");
request.AddHeader("x-vtex-api-apptoken", "");
request.AddHeader("rest-range", "");
var response = client.Execute(request);
package main

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

func main() {

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

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
	req.Header.Add("x-vtex-api-appkey", "")
	req.Header.Add("x-vtex-api-apptoken", "")
	req.Header.Add("rest-range", "")

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

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

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

}
POST /baseUrl/giftcardproviders/:giftCardProviderID/giftcards/_search HTTP/1.1
Accept: 
Content-Type: application/vnd.vtex.giftcardproviders.v1+json
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Rest-Range: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search")
  .setHeader("accept", "")
  .setHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .setHeader("x-vtex-api-appkey", "")
  .setHeader("x-vtex-api-apptoken", "")
  .setHeader("rest-range", "")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search"))
    .header("accept", "")
    .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .header("rest-range", "")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/_search")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .addHeader("rest-range", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search")
  .header("accept", "")
  .header("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .header("x-vtex-api-appkey", "")
  .header("x-vtex-api-apptoken", "")
  .header("rest-range", "")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/_search');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', 'application/vnd.vtex.giftcardproviders.v1+json');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');
xhr.setRequestHeader('rest-range', '');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    'rest-range': ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    'rest-range': ''
  }
};

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}}/giftcardproviders/:giftCardProviderID/giftcards/_search',
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    'rest-range': ''
  }
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search")
  .post(null)
  .addHeader("accept", "")
  .addHeader("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .addHeader("rest-range", "")
  .build()

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

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/_search',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    'rest-range': ''
  }
};

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}}/giftcardproviders/:giftCardProviderID/giftcards/_search',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    'rest-range': ''
  }
};

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

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

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

req.headers({
  accept: '',
  'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey': '',
  'x-vtex-api-apptoken': '',
  'rest-range': ''
});

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}}/giftcardproviders/:giftCardProviderID/giftcards/_search',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    'rest-range': ''
  }
};

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

const url = '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search';
const options = {
  method: 'POST',
  headers: {
    accept: '',
    'content-type': 'application/vnd.vtex.giftcardproviders.v1+json',
    'x-vtex-api-appkey': '',
    'x-vtex-api-apptoken': '',
    'rest-range': ''
  }
};

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": @"application/vnd.vtex.giftcardproviders.v1+json",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"",
                           @"rest-range": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search"]
                                                       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}}/giftcardproviders/:giftCardProviderID/giftcards/_search" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "application/vnd.vtex.giftcardproviders.v1+json");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
  ("rest-range", "");
] in

Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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_HTTPHEADER => [
    "accept: ",
    "content-type: application/vnd.vtex.giftcardproviders.v1+json",
    "rest-range: ",
    "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}}/giftcardproviders/:giftCardProviderID/giftcards/_search', [
  'headers' => [
    'accept' => '',
    'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
    'rest-range' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => '',
  'rest-range' => ''
]);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search');
$request->setRequestMethod('POST');
$request->setHeaders([
  'accept' => '',
  'content-type' => 'application/vnd.vtex.giftcardproviders.v1+json',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => '',
  'rest-range' => ''
]);

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

echo $response->getBody();
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$headers.Add("rest-range", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search' -Method POST -Headers $headers
$headers=@{}
$headers.Add("accept", "")
$headers.Add("content-type", "application/vnd.vtex.giftcardproviders.v1+json")
$headers.Add("x-vtex-api-appkey", "")
$headers.Add("x-vtex-api-apptoken", "")
$headers.Add("rest-range", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search' -Method POST -Headers $headers
import http.client

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

headers = {
    'accept': "",
    'content-type': "application/vnd.vtex.giftcardproviders.v1+json",
    'x-vtex-api-appkey': "",
    'x-vtex-api-apptoken': "",
    'rest-range': ""
}

conn.request("POST", "/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/_search", headers=headers)

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

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

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

headers = {
    "accept": "",
    "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
    "x-vtex-api-appkey": "",
    "x-vtex-api-apptoken": "",
    "rest-range": ""
}

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search"

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

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

url = URI("{{baseUrl}}/giftcardproviders/:giftCardProviderID/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"] = 'application/vnd.vtex.giftcardproviders.v1+json'
request["x-vtex-api-appkey"] = ''
request["x-vtex-api-apptoken"] = ''
request["rest-range"] = ''

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

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

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

puts response.status
puts response.body
use reqwest;

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

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "application/vnd.vtex.giftcardproviders.v1+json".parse().unwrap());
    headers.insert("x-vtex-api-appkey", "".parse().unwrap());
    headers.insert("x-vtex-api-apptoken", "".parse().unwrap());
    headers.insert("rest-range", "".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}}/giftcardproviders/:giftCardProviderID/giftcards/_search \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'rest-range: ' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: '
http POST {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search \
  accept:'' \
  content-type:'application/vnd.vtex.giftcardproviders.v1+json' \
  rest-range:'' \
  x-vtex-api-appkey:'' \
  x-vtex-api-apptoken:''
wget --quiet \
  --method POST \
  --header 'accept: ' \
  --header 'content-type: application/vnd.vtex.giftcardproviders.v1+json' \
  --header 'x-vtex-api-appkey: ' \
  --header 'x-vtex-api-apptoken: ' \
  --header 'rest-range: ' \
  --output-document \
  - {{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search
import Foundation

let headers = [
  "accept": "",
  "content-type": "application/vnd.vtex.giftcardproviders.v1+json",
  "x-vtex-api-appkey": "",
  "x-vtex-api-apptoken": "",
  "rest-range": ""
]

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/_search")! 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()
GET List All GiftCard Cancellation Transactions
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
tId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations" {:headers {:accept ""
                                                                                                                                                 :content-type ""
                                                                                                                                                 :x-vtex-api-appkey ""
                                                                                                                                                 :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
  "x-vtex-api-appkey" => ""
  "x-vtex-api-apptoken" => ""
}

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

}
GET /baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations HTTP/1.1
Accept: 
Content-Type: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => '',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

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

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

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

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

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

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

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"

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

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations"

response <- VERB("GET", 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''
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.get('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/cancellations";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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()
GET List All GiftCard Settlement Transactions
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
tId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements" {:headers {:accept ""
                                                                                                                                               :content-type ""
                                                                                                                                               :x-vtex-api-appkey ""
                                                                                                                                               :x-vtex-api-apptoken ""}})
require "http/client"

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"
headers = HTTP::Headers{
  "accept" => ""
  "content-type" => ""
  "x-vtex-api-appkey" => ""
  "x-vtex-api-apptoken" => ""
}

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

}
GET /baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements HTTP/1.1
Accept: 
Content-Type: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements');
$request->setRequestMethod('GET');
$request->setHeaders([
  'accept' => '',
  'content-type' => '',
  'x-vtex-api-appkey' => '',
  'x-vtex-api-apptoken' => ''
]);

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

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

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

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

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

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

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

url = "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"

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

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

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

url <- "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements"

response <- VERB("GET", 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements")

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

request = Net::HTTP::Get.new(url)
request["accept"] = ''
request["content-type"] = ''
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.get('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/settlements";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions/:tId/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()
GET List All GiftCard Transactions
{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions
HEADERS

Accept
Content-Type
X-VTEX-API-AppKey
X-VTEX-API-AppToken
QUERY PARAMS

giftCardProviderID
giftCardID
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: ");
headers = curl_slist_append(headers, "content-type: ");
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/get "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions" {:headers {:accept ""
                                                                                                                              :content-type ""
                                                                                                                              :x-vtex-api-appkey ""
                                                                                                                              :x-vtex-api-apptoken ""}})
require "http/client"

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

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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"),
    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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions");
var request = new RestRequest("", Method.Get);
request.AddHeader("accept", "");
request.AddHeader("content-type", "");
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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"

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

	req.Header.Add("accept", "")
	req.Header.Add("content-type", "")
	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))

}
GET /baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions HTTP/1.1
Accept: 
Content-Type: 
X-Vtex-Api-Appkey: 
X-Vtex-Api-Apptoken: 
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .setHeader("accept", "")
  .setHeader("content-type", "")
  .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions"))
    .header("accept", "")
    .header("content-type", "")
    .header("x-vtex-api-appkey", "")
    .header("x-vtex-api-apptoken", "")
    .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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .header("accept", "")
  .header("content-type", "")
  .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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions');
xhr.setRequestHeader('accept', '');
xhr.setRequestHeader('content-type', '');
xhr.setRequestHeader('x-vtex-api-appkey', '');
xhr.setRequestHeader('x-vtex-api-apptoken', '');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions")
  .get()
  .addHeader("accept", "")
  .addHeader("content-type", "")
  .addHeader("x-vtex-api-appkey", "")
  .addHeader("x-vtex-api-apptoken", "")
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': '',
    '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': '',
    '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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions');

req.headers({
  accept: '',
  'content-type': '',
  '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: 'GET',
  url: '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions',
  headers: {
    accept: '',
    'content-type': '',
    '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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions';
const options = {
  method: 'GET',
  headers: {
    accept: '',
    'content-type': '',
    '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 = @{ @"accept": @"",
                           @"content-type": @"",
                           @"x-vtex-api-appkey": @"",
                           @"x-vtex-api-apptoken": @"" };

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/giftcardproviders/:giftCardProviderID/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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions" in
let headers = Header.add_list (Header.init ()) [
  ("accept", "");
  ("content-type", "");
  ("x-vtex-api-appkey", "");
  ("x-vtex-api-apptoken", "");
] in

Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/giftcardproviders/:giftCardProviderID/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: ",
    "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('GET', '{{baseUrl}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions', [
  'headers' => [
    'accept' => '',
    'content-type' => '',
    'x-vtex-api-appkey' => '',
    'x-vtex-api-apptoken' => '',
  ],
]);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response <- VERB("GET", 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}}/giftcardproviders/:giftCardProviderID/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"] = ''
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.get('/baseUrl/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions') 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}}/giftcardproviders/:giftCardProviderID/giftcards/:giftCardID/transactions";

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("accept", "".parse().unwrap());
    headers.insert("content-type", "".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.get(url)
        .headers(headers)
        .send()
        .await;

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

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

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

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