Create merchant claim
curl --request POST \
--url https://api.sandbox.bitwage.com/api/merchant/claim/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"payer_id": "<string>",
"amount": 123,
"denomination_currency": "<string>",
"funding_currency": "<string>"
}
'import requests
url = "https://api.sandbox.bitwage.com/api/merchant/claim/create"
payload = {
"payer_id": "<string>",
"amount": 123,
"denomination_currency": "<string>",
"funding_currency": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payer_id: '<string>',
amount: 123,
denomination_currency: '<string>',
funding_currency: '<string>'
})
};
fetch('https://api.sandbox.bitwage.com/api/merchant/claim/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.bitwage.com/api/merchant/claim/create",
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([
'payer_id' => '<string>',
'amount' => 123,
'denomination_currency' => '<string>',
'funding_currency' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.bitwage.com/api/merchant/claim/create"
payload := strings.NewReader("{\n \"payer_id\": \"<string>\",\n \"amount\": 123,\n \"denomination_currency\": \"<string>\",\n \"funding_currency\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.bitwage.com/api/merchant/claim/create")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"payer_id\": \"<string>\",\n \"amount\": 123,\n \"denomination_currency\": \"<string>\",\n \"funding_currency\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.bitwage.com/api/merchant/claim/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payer_id\": \"<string>\",\n \"amount\": 123,\n \"denomination_currency\": \"<string>\",\n \"funding_currency\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"claim_id": "<string>",
"quote_id": "<string>",
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"rate": "<string>",
"denomination_currency": "<string>",
"funding_currency": "<string>",
"denomination_amount": "<string>",
"funding_amount": "<string>",
"funding_details": {
"address": "<string>",
"network": "<string>"
}
}Merchant
Create merchant claim
Create a merchant claim and a claim-scoped crypto quote for BTC checkout.
POST
/
api
/
merchant
/
claim
/
create
Create merchant claim
curl --request POST \
--url https://api.sandbox.bitwage.com/api/merchant/claim/create \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"payer_id": "<string>",
"amount": 123,
"denomination_currency": "<string>",
"funding_currency": "<string>"
}
'import requests
url = "https://api.sandbox.bitwage.com/api/merchant/claim/create"
payload = {
"payer_id": "<string>",
"amount": 123,
"denomination_currency": "<string>",
"funding_currency": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payer_id: '<string>',
amount: 123,
denomination_currency: '<string>',
funding_currency: '<string>'
})
};
fetch('https://api.sandbox.bitwage.com/api/merchant/claim/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.bitwage.com/api/merchant/claim/create",
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([
'payer_id' => '<string>',
'amount' => 123,
'denomination_currency' => '<string>',
'funding_currency' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.bitwage.com/api/merchant/claim/create"
payload := strings.NewReader("{\n \"payer_id\": \"<string>\",\n \"amount\": 123,\n \"denomination_currency\": \"<string>\",\n \"funding_currency\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.bitwage.com/api/merchant/claim/create")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"payer_id\": \"<string>\",\n \"amount\": 123,\n \"denomination_currency\": \"<string>\",\n \"funding_currency\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.bitwage.com/api/merchant/claim/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payer_id\": \"<string>\",\n \"amount\": 123,\n \"denomination_currency\": \"<string>\",\n \"funding_currency\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"claim_id": "<string>",
"quote_id": "<string>",
"valid_from": "2023-11-07T05:31:56Z",
"valid_to": "2023-11-07T05:31:56Z",
"rate": "<string>",
"denomination_currency": "<string>",
"funding_currency": "<string>",
"denomination_amount": "<string>",
"funding_amount": "<string>",
"funding_details": {
"address": "<string>",
"network": "<string>"
}
}Authorizations
api_keyoauth
API key authentication. Include your access token as:
Authorization: Basic <ACCESS_TOKEN>
Body
application/json
⌘I