curl --request GET \
--url https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}', 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.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}",
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.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}"
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.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}")
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>",
"amount": "199.99",
"api_client_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"effective_at": "2023-11-07T05:31:56Z",
"employee_id": "<string>",
"ending_balance": "199.99",
"idempotency_key": "<string>",
"metadata": {
"order_source": "shopify",
"fulfillment_id": "88213"
},
"online_payment": {
"id": "<string>",
"payment_method_details": {
"brand": "american_express",
"last4": "<string>",
"type": "card"
},
"payment_method_type": "ach_debit"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "<string>",
"type": "manual_adjustment",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"store": {
"id": "<string>",
"name": "<string>"
}
}{
"error_code": "insufficient_permissions",
"error_details": {
"action": "*",
"resource": "*"
}
}Retrieve a house account transaction
Retrieves one charge or payment on a house account.
curl --request GET \
--url https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}', 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.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}",
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.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}"
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.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vori.com/v1/house-accounts/{id}/transactions/{transaction_id}")
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>",
"amount": "199.99",
"api_client_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"effective_at": "2023-11-07T05:31:56Z",
"employee_id": "<string>",
"ending_balance": "199.99",
"idempotency_key": "<string>",
"metadata": {
"order_source": "shopify",
"fulfillment_id": "88213"
},
"online_payment": {
"id": "<string>",
"payment_method_details": {
"brand": "american_express",
"last4": "<string>",
"type": "card"
},
"payment_method_type": "ach_debit"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "<string>",
"type": "manual_adjustment",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"store": {
"id": "<string>",
"name": "<string>"
}
}{
"error_code": "insufficient_permissions",
"error_details": {
"action": "*",
"resource": "*"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the house account.
ID of the transaction.
Response
One charge or payment on a house account. The ledger is append-only, so a transaction is never edited or removed once recorded; a correction is another transaction.
Unique identifier for the record.
Money the transaction moved. A negative amount is a charge, which grows what the customer owes; a positive amount is a payment or refund, which reduces it.
^-?[0-9]+(\.[0-9]+)?$"199.99"
ID of the API credential that recorded the transaction. Null when a person did.
When the record was created.
Note written alongside the transaction, such as why an adjustment was made.
When the transaction took effect. A sale carries the time it was completed at the register, which can be earlier than when it reached the ledger.
ID of the employee who took the transaction at a register, or null when it was made in the back office.
^[0-9]+$The account balance after this transaction. A negative balance is what the customer owes the store. A positive balance is credit the customer can spend.
^-?[0-9]+(\.[0-9]+)?$"199.99"
Key supplied when the transaction was created, unique within the banner. Sending the same key again returns the transaction already recorded rather than charging the account twice.
Your own key/value pairs, exactly as supplied when the transaction was recorded.
Show child attributes
Show child attributes
{
"order_source": "shopify",
"fulfillment_id": "88213"
}
The charge behind an online payment.
Show child attributes
Show child attributes
ID of the checkout this settled, from the transactions resource. Null when the ledger entry is not tied to a checkout.
ID of the store where the transaction took place.
^[0-9]+$What produced the transaction: a sale or refund rung up at a register, a payment accepted at a register toward the balance, a payment made online through Vori toward the balance, or an adjustment made in the back office.
manual_adjustment, online_payment, order_payment, pos_payment When the record was last changed.
ID of the back-office user who made the adjustment. Null for a transaction taken at a register.
^[0-9]+$The store where the transaction took place.
Show child attributes
Show child attributes
Was this page helpful?