curl --request POST \
--url https://api.vori.com/v1/house-accounts/{id}/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "199.99",
"idempotency_key": "<string>",
"description": "<string>",
"employee_id": "<string>",
"metadata": {
"order_source": "shopify",
"fulfillment_id": "88213"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "<string>"
}
'import requests
url = "https://api.vori.com/v1/house-accounts/{id}/transactions"
payload = {
"amount": "199.99",
"idempotency_key": "<string>",
"description": "<string>",
"employee_id": "<string>",
"metadata": {
"order_source": "shopify",
"fulfillment_id": "88213"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '199.99',
idempotency_key: '<string>',
description: '<string>',
employee_id: '<string>',
metadata: {order_source: 'shopify', fulfillment_id: '88213'},
order_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
store_id: '<string>'
})
};
fetch('https://api.vori.com/v1/house-accounts/{id}/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.vori.com/v1/house-accounts/{id}/transactions",
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([
'amount' => '199.99',
'idempotency_key' => '<string>',
'description' => '<string>',
'employee_id' => '<string>',
'metadata' => [
'order_source' => 'shopify',
'fulfillment_id' => '88213'
],
'order_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'store_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.vori.com/v1/house-accounts/{id}/transactions"
payload := strings.NewReader("{\n \"amount\": \"199.99\",\n \"idempotency_key\": \"<string>\",\n \"description\": \"<string>\",\n \"employee_id\": \"<string>\",\n \"metadata\": {\n \"order_source\": \"shopify\",\n \"fulfillment_id\": \"88213\"\n },\n \"order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.vori.com/v1/house-accounts/{id}/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"199.99\",\n \"idempotency_key\": \"<string>\",\n \"description\": \"<string>\",\n \"employee_id\": \"<string>\",\n \"metadata\": {\n \"order_source\": \"shopify\",\n \"fulfillment_id\": \"88213\"\n },\n \"order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vori.com/v1/house-accounts/{id}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"199.99\",\n \"idempotency_key\": \"<string>\",\n \"description\": \"<string>\",\n \"employee_id\": \"<string>\",\n \"metadata\": {\n \"order_source\": \"shopify\",\n \"fulfillment_id\": \"88213\"\n },\n \"order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"<string>\"\n}"
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>",
"mode": "live",
"payment_method_details": {
"brand": "american_express",
"last4": "<string>",
"type": "card"
},
"payment_method_type": "ach_debit"
},
"order": {
"id": "<string>",
"shopper_facing_id": "<string>"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pos_payment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"employee_id": "<string>",
"lane_id": "<string>",
"payment_type": "<string>"
},
"store_id": "<string>",
"type": "manual_adjustment",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"store": {
"id": "<string>",
"name": "<string>"
}
}{
"error_code": "duplicate_idempotency_key"
}{
"error_code": "insufficient_permissions",
"error_details": {
"action": "*",
"resource": "*"
}
}Create a house account transaction
Records a charge or payment against a house account and moves its balance by the amount. Supply an idempotency key so a retry returns the transaction already recorded rather than moving the balance twice.
curl --request POST \
--url https://api.vori.com/v1/house-accounts/{id}/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "199.99",
"idempotency_key": "<string>",
"description": "<string>",
"employee_id": "<string>",
"metadata": {
"order_source": "shopify",
"fulfillment_id": "88213"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "<string>"
}
'import requests
url = "https://api.vori.com/v1/house-accounts/{id}/transactions"
payload = {
"amount": "199.99",
"idempotency_key": "<string>",
"description": "<string>",
"employee_id": "<string>",
"metadata": {
"order_source": "shopify",
"fulfillment_id": "88213"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"store_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: '199.99',
idempotency_key: '<string>',
description: '<string>',
employee_id: '<string>',
metadata: {order_source: 'shopify', fulfillment_id: '88213'},
order_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
store_id: '<string>'
})
};
fetch('https://api.vori.com/v1/house-accounts/{id}/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.vori.com/v1/house-accounts/{id}/transactions",
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([
'amount' => '199.99',
'idempotency_key' => '<string>',
'description' => '<string>',
'employee_id' => '<string>',
'metadata' => [
'order_source' => 'shopify',
'fulfillment_id' => '88213'
],
'order_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'store_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.vori.com/v1/house-accounts/{id}/transactions"
payload := strings.NewReader("{\n \"amount\": \"199.99\",\n \"idempotency_key\": \"<string>\",\n \"description\": \"<string>\",\n \"employee_id\": \"<string>\",\n \"metadata\": {\n \"order_source\": \"shopify\",\n \"fulfillment_id\": \"88213\"\n },\n \"order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.vori.com/v1/house-accounts/{id}/transactions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"199.99\",\n \"idempotency_key\": \"<string>\",\n \"description\": \"<string>\",\n \"employee_id\": \"<string>\",\n \"metadata\": {\n \"order_source\": \"shopify\",\n \"fulfillment_id\": \"88213\"\n },\n \"order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vori.com/v1/house-accounts/{id}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": \"199.99\",\n \"idempotency_key\": \"<string>\",\n \"description\": \"<string>\",\n \"employee_id\": \"<string>\",\n \"metadata\": {\n \"order_source\": \"shopify\",\n \"fulfillment_id\": \"88213\"\n },\n \"order_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"store_id\": \"<string>\"\n}"
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>",
"mode": "live",
"payment_method_details": {
"brand": "american_express",
"last4": "<string>",
"type": "card"
},
"payment_method_type": "ach_debit"
},
"order": {
"id": "<string>",
"shopper_facing_id": "<string>"
},
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pos_payment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"employee_id": "<string>",
"lane_id": "<string>",
"payment_type": "<string>"
},
"store_id": "<string>",
"type": "manual_adjustment",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"store": {
"id": "<string>",
"name": "<string>"
}
}{
"error_code": "duplicate_idempotency_key"
}{
"error_code": "insufficient_permissions",
"error_details": {
"action": "*",
"resource": "*"
}
}Authorizations
Body
Records a charge or payment against a house account, either a sale tendered to the account or an adjustment such as a customer settling what they owe.
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. A payment is recorded only where it was taken, so this endpoint rejects pos_payment and online_payment.
manual_adjustment, online_payment, order_payment, pos_payment Your own key/value pairs, stored as sent and returned unchanged. Vori never interprets them. Up to 50 keys; key names up to 40 characters of letters, numbers, underscores, and hyphens; values up to 500 characters. Keys beginning with "vori" are reserved. Do not put personal or sensitive information here — these values flow into reporting and data exports.
Show child attributes
Show child attributes
{
"order_source": "shopify",
"fulfillment_id": "88213"
}
Response
House account transaction created successfully.
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.
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 Was this page helpful?