curl --request GET \
--url https://api.meum.io/v1/transactions/by-hash/{transactionHash} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.meum.io/v1/transactions/by-hash/{transactionHash}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.meum.io/v1/transactions/by-hash/{transactionHash}', 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.meum.io/v1/transactions/by-hash/{transactionHash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meum.io/v1/transactions/by-hash/{transactionHash}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meum.io/v1/transactions/by-hash/{transactionHash}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meum.io/v1/transactions/by-hash/{transactionHash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"invoice_id": "<string>",
"type": "payment_origin",
"network": "near",
"token": "USDC",
"amount": "100.00",
"transaction_hash": "0xabc123def4567890abcdef1234567890abcdef1234567890abcdef1234567890",
"from_wallet": "<string>",
"to_wallet": "<string>",
"confirmations": 123,
"status": "confirmed",
"verified": true,
"confirmed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "not_found",
"code": "invoice_not_found",
"message": "Invoice not found",
"request_id": "req_a1b2c3d4e5f6789012345678"
}
}Get transaction by hash
curl --request GET \
--url https://api.meum.io/v1/transactions/by-hash/{transactionHash} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.meum.io/v1/transactions/by-hash/{transactionHash}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.meum.io/v1/transactions/by-hash/{transactionHash}', 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.meum.io/v1/transactions/by-hash/{transactionHash}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.meum.io/v1/transactions/by-hash/{transactionHash}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.meum.io/v1/transactions/by-hash/{transactionHash}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.meum.io/v1/transactions/by-hash/{transactionHash}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"invoice_id": "<string>",
"type": "payment_origin",
"network": "near",
"token": "USDC",
"amount": "100.00",
"transaction_hash": "0xabc123def4567890abcdef1234567890abcdef1234567890abcdef1234567890",
"from_wallet": "<string>",
"to_wallet": "<string>",
"confirmations": 123,
"status": "confirmed",
"verified": true,
"confirmed_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"type": "not_found",
"code": "invoice_not_found",
"message": "Invoice not found",
"request_id": "req_a1b2c3d4e5f6789012345678"
}
}Authorizations
Store-scoped API key. Prefix with sk_live_.
Example: Authorization: Bearer sk_live_EXAMPLE_DO_NOT_USE
Path Parameters
On-chain transaction hash
"0xabc123def4567890abcdef1234567890abcdef1234567890abcdef1234567890"
Response
Transaction details
A payment, payout, or refund movement tied to an invoice.
Transaction ID (txn_...).
^(inv_|txn_|plink_|wh_|whd_|evt_|int_)[0-9a-z]{20,32}$Invoice this transaction belongs to (inv_...).
^(inv_|txn_|plink_|wh_|whd_|evt_|int_)[0-9a-z]{20,32}$What kind of movement this is:
payment_origin: money the customer sentsettlement: money paid out to your walletrefund: money returned to the customer
payment_origin, settlement, refund "payment_origin"
Blockchain used (e.g. near, ethereum). null if not on-chain.
"near"
Token involved (e.g. USDC).
"USDC"
Amount moved, as a decimal string (e.g. "100.00").
"100.00"
On-chain transaction ID (block explorer lookup).
"0xabc123def4567890abcdef1234567890abcdef1234567890abcdef1234567890"
Wallet that sent the funds.
Wallet that received the funds.
How many blocks have confirmed this transaction. null if not tracked.
Current state (for example pending, confirmed).
"confirmed"
true when the transaction has been verified on the blockchain.
When enough confirmations were reached (UTC). null if still pending.
When this record was created (UTC).
When this record was last updated (UTC).