Create order
Use the ForgingBlock API to create an order with price and currency.
Simplify your integration using ForgingBlock Checkout.
It dynamically adapts to your customer’s device and location to increase conversion, and supports coupons, tax rates, and more.
Build production-ready integrations in minutes using ForgingBlock’s unified API. Create orders, share hosted payment pages, and receive real-time webhooks — all without managing wallets or blockchain logic.
curl -X POST https://api.forgingblock.io/api/v1/orders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order_id": "order_1001",
"title": "Premium Subscription",
"price_amount": 29.99,
"price_currency": "USD"
}'
const fetch = require("node-fetch")
async function createOrder() {
const response = await fetch(
"https://api.forgingblock.io/api/v1/orders",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
},
body: JSON.stringify({
order_id: "order_1001",
title: "Premium Subscription",
price_amount: 29.99,
price_currency: "USD"
})
}
)
const data = await response.json()
console.log(data)
}
createOrder()
<?php
$ch = curl_init("https://api.forgingblock.io/api/v1/orders");
$data = json_encode([
"order_id" => "order_1001",
"title" => "Premium Subscription",
"price_amount" => 29.99,
"price_currency" => "USD"
]);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Content-Type: application/json",
"Authorization: Bearer YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
echo $response;
curl_close($ch);
package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
json := []byte(`{
"order_id":"order_1001",
"title":"Premium Subscription",
"price_amount":29.99,
"price_currency":"USD"
}`)
req, _ := http.NewRequest(
"POST",
"https://api.forgingblock.io/api/v1/orders",
bytes.NewBuffer(json),
)
req.Header.Set("Content-Type","application/json")
req.Header.Set("Authorization","Bearer YOUR_API_KEY")
client := &http.Client{}
resp, _ := client.Do(req)
body,_ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
ForgingBlock Dashboard provides key insights with Control Panel reports.
Our Cryptocurrency payment API enables you to build custom reports for your specific needs.
Use the ForgingBlock API to create an order with price and currency.
Receive a hosted invoice URL and share it with your customer.
The customer completes the payment using crypto on the invoice page.
Get real-time payment status via API or webhook callback.
We support up to TLS 1.3 and Perfect Forward Secrecy. Your token keys are stored encrypted in our database. We utilise additional methods to avoid forged requests. Because communication with our API and services is encrypted at all steps, and critical services only run in the local network, the risk of data interception or leaks is almost zero.
We try to minimize the amount of data we collect about you. The critical and main functionality is available with only the email provided. Technically we allow anonymous payments; however, if the buyer has not provided an email at all, it is harder for the seller to contact him.
We don't store your funds. Our white-label solution allows services to be run independently from our infrastructure and specially customized for the merchant and use case.
We are constantly improving for the businesses and merchants that work with us. We understand that there is no perfect solution for every situation and case, but we are open to dialog and can easily adapt or scale depending on the needs and resources at the hand.