Get all transactions
curl --request GET \
--url https://api-dev.rain.xyz/v1/issuing/transactions \
--header 'Api-Key: <api-key>'import requests
url = "https://api-dev.rain.xyz/v1/issuing/transactions"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api-dev.rain.xyz/v1/issuing/transactions', 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-dev.rain.xyz/v1/issuing/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 => [
"Api-Key: <api-key>"
],
]);
$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-dev.rain.xyz/v1/issuing/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
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-dev.rain.xyz/v1/issuing/transactions")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.rain.xyz/v1/issuing/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "spend",
"spend": {
"amount": 123,
"currency": "<string>",
"receipt": false,
"merchantName": "<string>",
"merchantCategory": "<string>",
"merchantCategoryCode": "<string>",
"cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardType": "physical",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userFirstName": "<string>",
"userEmail": "<string>",
"status": "pending",
"authorizedAt": "<string>",
"localAmount": 123,
"localCurrency": "<string>",
"authorizedAmount": 123,
"authorizationMethod": "<string>",
"memo": "<string>",
"merchantId": "<string>",
"enrichedMerchantIcon": "<string>",
"enrichedMerchantName": "<string>",
"enrichedMerchantCategory": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userLastName": "<string>",
"declinedReason": "<string>",
"postedAt": "<string>",
"isForcePosted": true,
"closedAuthorizationTransactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refundMethod": "onchain_refund",
"referenceInfo": {
"reference": "<string>",
"rail": "<string>"
}
}
}
]Transactions
Get all transactions
GET
/
issuing
/
transactions
Get all transactions
curl --request GET \
--url https://api-dev.rain.xyz/v1/issuing/transactions \
--header 'Api-Key: <api-key>'import requests
url = "https://api-dev.rain.xyz/v1/issuing/transactions"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api-dev.rain.xyz/v1/issuing/transactions', 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-dev.rain.xyz/v1/issuing/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 => [
"Api-Key: <api-key>"
],
]);
$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-dev.rain.xyz/v1/issuing/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
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-dev.rain.xyz/v1/issuing/transactions")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.rain.xyz/v1/issuing/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "spend",
"spend": {
"amount": 123,
"currency": "<string>",
"receipt": false,
"merchantName": "<string>",
"merchantCategory": "<string>",
"merchantCategoryCode": "<string>",
"cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardType": "physical",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userFirstName": "<string>",
"userEmail": "<string>",
"status": "pending",
"authorizedAt": "<string>",
"localAmount": 123,
"localCurrency": "<string>",
"authorizedAmount": 123,
"authorizationMethod": "<string>",
"memo": "<string>",
"merchantId": "<string>",
"enrichedMerchantIcon": "<string>",
"enrichedMerchantName": "<string>",
"enrichedMerchantCategory": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userLastName": "<string>",
"declinedReason": "<string>",
"postedAt": "<string>",
"isForcePosted": true,
"closedAuthorizationTransactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"refundMethod": "onchain_refund",
"referenceInfo": {
"reference": "<string>",
"rail": "<string>"
}
}
}
]Authorizations
Query Parameters
For corporate cards, id of the company to get transactions for
Id of the user to get transactions for
Id of the card to get transactions for
Type of transaction to get
Available options:
spend, collateral, payment, fee, transfer Hash of the transaction to get
Get transactions authorized before this date
Get transactions authorized after this date
Get transactions posted before this date
Get transactions posted after this date
The id of the resource after which to start fetching
The number of resources to fetch
Required range:
1 <= x <= 100