curl --request POST \
--url https://api.arcuserp.com/v1/vendor-bills \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_date": "2023-12-25",
"items": [
{
"description": "<string>",
"amount": 123,
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unit_cost": 123,
"tax_rate": 123,
"po_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_amount": 123,
"gl_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landed_cost_category": "<string>",
"landed_manual_shares": [
{
"receiving_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
]
}
],
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_date": "2023-12-25",
"backdate_reason": "<string>",
"future_reason": "<string>",
"due_date": "2023-12-25",
"notes": "<string>",
"suppress_gl": true,
"landed_cost_receipt_txn_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"allow_duplicate_override": true,
"duplicate_override_reason": "<string>"
}
'import requests
url = "https://api.arcuserp.com/v1/vendor-bills"
payload = {
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_date": "2023-12-25",
"items": [
{
"description": "<string>",
"amount": 123,
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unit_cost": 123,
"tax_rate": 123,
"po_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_amount": 123,
"gl_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landed_cost_category": "<string>",
"landed_manual_shares": [
{
"receiving_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
]
}
],
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_date": "2023-12-25",
"backdate_reason": "<string>",
"future_reason": "<string>",
"due_date": "2023-12-25",
"notes": "<string>",
"suppress_gl": True,
"landed_cost_receipt_txn_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"allow_duplicate_override": True,
"duplicate_override_reason": "<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({
vendor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bill_date: '2023-12-25',
items: [
{
description: '<string>',
amount: 123,
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 123,
unit_cost: 123,
tax_rate: 123,
po_item_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
tax_amount: 123,
gl_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
landed_cost_category: '<string>',
landed_manual_shares: [{receiving_transaction_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', amount: 1}]
}
],
po_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
effective_date: '2023-12-25',
backdate_reason: '<string>',
future_reason: '<string>',
due_date: '2023-12-25',
notes: '<string>',
suppress_gl: true,
landed_cost_receipt_txn_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
allow_duplicate_override: true,
duplicate_override_reason: '<string>'
})
};
fetch('https://api.arcuserp.com/v1/vendor-bills', 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.arcuserp.com/v1/vendor-bills",
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([
'vendor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bill_date' => '2023-12-25',
'items' => [
[
'description' => '<string>',
'amount' => 123,
'product_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'quantity' => 123,
'unit_cost' => 123,
'tax_rate' => 123,
'po_item_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'tax_amount' => 123,
'gl_account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'landed_cost_category' => '<string>',
'landed_manual_shares' => [
[
'receiving_transaction_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount' => 1
]
]
]
],
'po_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'effective_date' => '2023-12-25',
'backdate_reason' => '<string>',
'future_reason' => '<string>',
'due_date' => '2023-12-25',
'notes' => '<string>',
'suppress_gl' => true,
'landed_cost_receipt_txn_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'allow_duplicate_override' => true,
'duplicate_override_reason' => '<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.arcuserp.com/v1/vendor-bills"
payload := strings.NewReader("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bill_date\": \"2023-12-25\",\n \"items\": [\n {\n \"description\": \"<string>\",\n \"amount\": 123,\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 123,\n \"unit_cost\": 123,\n \"tax_rate\": 123,\n \"po_item_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tax_amount\": 123,\n \"gl_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"landed_cost_category\": \"<string>\",\n \"landed_manual_shares\": [\n {\n \"receiving_transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1\n }\n ]\n }\n ],\n \"po_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_date\": \"2023-12-25\",\n \"backdate_reason\": \"<string>\",\n \"future_reason\": \"<string>\",\n \"due_date\": \"2023-12-25\",\n \"notes\": \"<string>\",\n \"suppress_gl\": true,\n \"landed_cost_receipt_txn_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<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.arcuserp.com/v1/vendor-bills")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bill_date\": \"2023-12-25\",\n \"items\": [\n {\n \"description\": \"<string>\",\n \"amount\": 123,\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 123,\n \"unit_cost\": 123,\n \"tax_rate\": 123,\n \"po_item_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tax_amount\": 123,\n \"gl_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"landed_cost_category\": \"<string>\",\n \"landed_manual_shares\": [\n {\n \"receiving_transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1\n }\n ]\n }\n ],\n \"po_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_date\": \"2023-12-25\",\n \"backdate_reason\": \"<string>\",\n \"future_reason\": \"<string>\",\n \"due_date\": \"2023-12-25\",\n \"notes\": \"<string>\",\n \"suppress_gl\": true,\n \"landed_cost_receipt_txn_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcuserp.com/v1/vendor-bills")
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 \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bill_date\": \"2023-12-25\",\n \"items\": [\n {\n \"description\": \"<string>\",\n \"amount\": 123,\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 123,\n \"unit_cost\": 123,\n \"tax_rate\": 123,\n \"po_item_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tax_amount\": 123,\n \"gl_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"landed_cost_category\": \"<string>\",\n \"landed_manual_shares\": [\n {\n \"receiving_transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1\n }\n ]\n }\n ],\n \"po_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_date\": \"2023-12-25\",\n \"backdate_reason\": \"<string>\",\n \"future_reason\": \"<string>\",\n \"due_date\": \"2023-12-25\",\n \"notes\": \"<string>\",\n \"suppress_gl\": true,\n \"landed_cost_receipt_txn_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "vendor_bill",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_invoice_number": "<string>",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "draft",
"bill_date": "2023-12-25",
"effective_date": "2023-12-25",
"posted_entry_date": "2023-12-25",
"ledger_posting_date": "2023-12-25",
"redate_block": {
"code": "<string>",
"message": "<string>"
},
"redate_latest_date": "2023-12-25",
"posting_corrections": [
{
"sequence": 123,
"out_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"out_entry_number": "<string>",
"from_date": "2023-12-25",
"corrects_je_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"in_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"in_entry_number": "<string>",
"to_date": "2023-12-25",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"live": true,
"reason": "<string>"
}
],
"due_date": "2023-12-25",
"subtotal": 123,
"tax_total": 123,
"shipping_total": 123,
"bill_total": 123,
"amount_paid": 123,
"balance_due": 123,
"currency": "USD",
"payment_term_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"landed_receipts_reached": [
{
"kind": "receipt",
"receiving_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"purchase_receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference_number": "<string>",
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"po_number": "<string>",
"received_date": "2023-12-25",
"allocation_rows": 123,
"allocated_amount": 123
}
],
"landed_receipt_warnings": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"bill_date": "2023-12-25",
"status": "<string>",
"receipt_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"categories": [
"<string>"
],
"landed_amount": 123,
"allocated_on_these_receipts": 123,
"allocated_on_this_receipt": 123,
"landed_lines": [
{
"category": "<string>",
"amount": 123
}
],
"sentence": "<string>"
}
],
"landed_allocation": {
"journal_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landed_total_cents": 123,
"inventory_portion_cents": 123,
"cogs_portion_cents": 123,
"allocation_mode": "receipt_set",
"allocation_bases": [
{
"item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requested_basis": "<string>",
"basis_used": "<string>",
"fell_back": true
}
]
},
"landed_duplicate_overridden": true
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "<string>",
"code": "<string>",
"hint": "<string>",
"duplicates": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_name": "<string>",
"bill_date": "2023-12-25",
"category": "<string>",
"existing_amount": 123,
"new_amount": 123
}
],
"landed_receipt_warnings": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"bill_date": "2023-12-25",
"status": "<string>",
"receipt_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"categories": [
"<string>"
],
"landed_amount": 123,
"allocated_on_these_receipts": 123,
"allocated_on_this_receipt": 123,
"landed_lines": [
{
"category": "<string>",
"amount": 123
}
],
"sentence": "<string>"
}
],
"requires_override": true
}{
"error": "future_beyond_allowed_range",
"code": "future_beyond_allowed_range",
"message": "Posting date 2026-10-16 is 18 days in the future; the posting window allows 0 days ahead.",
"picked": "2026-10-16",
"today": "2026-09-28",
"delta_days": 18,
"max_future_days": 0,
"posting_date": "2026-10-16",
"param": "effective_date",
"override_available": true,
"reason_required": true,
"required_permission": "accounting.close_period",
"window_days": 0,
"days_out": 18
}Create a vendor bill
Creates a new vendor bill (AP invoice) for the entity. Requires purchasing:write scope; passing suppress_gl: true together with the migration:write scope skips GL posting for migration loads only.
curl --request POST \
--url https://api.arcuserp.com/v1/vendor-bills \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_date": "2023-12-25",
"items": [
{
"description": "<string>",
"amount": 123,
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unit_cost": 123,
"tax_rate": 123,
"po_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_amount": 123,
"gl_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landed_cost_category": "<string>",
"landed_manual_shares": [
{
"receiving_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
]
}
],
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_date": "2023-12-25",
"backdate_reason": "<string>",
"future_reason": "<string>",
"due_date": "2023-12-25",
"notes": "<string>",
"suppress_gl": true,
"landed_cost_receipt_txn_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"allow_duplicate_override": true,
"duplicate_override_reason": "<string>"
}
'import requests
url = "https://api.arcuserp.com/v1/vendor-bills"
payload = {
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_date": "2023-12-25",
"items": [
{
"description": "<string>",
"amount": 123,
"product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"unit_cost": 123,
"tax_rate": 123,
"po_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_amount": 123,
"gl_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landed_cost_category": "<string>",
"landed_manual_shares": [
{
"receiving_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1
}
]
}
],
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_date": "2023-12-25",
"backdate_reason": "<string>",
"future_reason": "<string>",
"due_date": "2023-12-25",
"notes": "<string>",
"suppress_gl": True,
"landed_cost_receipt_txn_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"allow_duplicate_override": True,
"duplicate_override_reason": "<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({
vendor_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
bill_date: '2023-12-25',
items: [
{
description: '<string>',
amount: 123,
product_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
quantity: 123,
unit_cost: 123,
tax_rate: 123,
po_item_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
tax_amount: 123,
gl_account_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
landed_cost_category: '<string>',
landed_manual_shares: [{receiving_transaction_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', amount: 1}]
}
],
po_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
effective_date: '2023-12-25',
backdate_reason: '<string>',
future_reason: '<string>',
due_date: '2023-12-25',
notes: '<string>',
suppress_gl: true,
landed_cost_receipt_txn_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
allow_duplicate_override: true,
duplicate_override_reason: '<string>'
})
};
fetch('https://api.arcuserp.com/v1/vendor-bills', 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.arcuserp.com/v1/vendor-bills",
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([
'vendor_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'bill_date' => '2023-12-25',
'items' => [
[
'description' => '<string>',
'amount' => 123,
'product_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'quantity' => 123,
'unit_cost' => 123,
'tax_rate' => 123,
'po_item_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'tax_amount' => 123,
'gl_account_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'landed_cost_category' => '<string>',
'landed_manual_shares' => [
[
'receiving_transaction_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount' => 1
]
]
]
],
'po_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'effective_date' => '2023-12-25',
'backdate_reason' => '<string>',
'future_reason' => '<string>',
'due_date' => '2023-12-25',
'notes' => '<string>',
'suppress_gl' => true,
'landed_cost_receipt_txn_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'allow_duplicate_override' => true,
'duplicate_override_reason' => '<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.arcuserp.com/v1/vendor-bills"
payload := strings.NewReader("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bill_date\": \"2023-12-25\",\n \"items\": [\n {\n \"description\": \"<string>\",\n \"amount\": 123,\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 123,\n \"unit_cost\": 123,\n \"tax_rate\": 123,\n \"po_item_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tax_amount\": 123,\n \"gl_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"landed_cost_category\": \"<string>\",\n \"landed_manual_shares\": [\n {\n \"receiving_transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1\n }\n ]\n }\n ],\n \"po_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_date\": \"2023-12-25\",\n \"backdate_reason\": \"<string>\",\n \"future_reason\": \"<string>\",\n \"due_date\": \"2023-12-25\",\n \"notes\": \"<string>\",\n \"suppress_gl\": true,\n \"landed_cost_receipt_txn_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<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.arcuserp.com/v1/vendor-bills")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bill_date\": \"2023-12-25\",\n \"items\": [\n {\n \"description\": \"<string>\",\n \"amount\": 123,\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 123,\n \"unit_cost\": 123,\n \"tax_rate\": 123,\n \"po_item_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tax_amount\": 123,\n \"gl_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"landed_cost_category\": \"<string>\",\n \"landed_manual_shares\": [\n {\n \"receiving_transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1\n }\n ]\n }\n ],\n \"po_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_date\": \"2023-12-25\",\n \"backdate_reason\": \"<string>\",\n \"future_reason\": \"<string>\",\n \"due_date\": \"2023-12-25\",\n \"notes\": \"<string>\",\n \"suppress_gl\": true,\n \"landed_cost_receipt_txn_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcuserp.com/v1/vendor-bills")
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 \"vendor_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"bill_date\": \"2023-12-25\",\n \"items\": [\n {\n \"description\": \"<string>\",\n \"amount\": 123,\n \"product_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"quantity\": 123,\n \"unit_cost\": 123,\n \"tax_rate\": 123,\n \"po_item_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"tax_amount\": 123,\n \"gl_account_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"landed_cost_category\": \"<string>\",\n \"landed_manual_shares\": [\n {\n \"receiving_transaction_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"amount\": 1\n }\n ]\n }\n ],\n \"po_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"effective_date\": \"2023-12-25\",\n \"backdate_reason\": \"<string>\",\n \"future_reason\": \"<string>\",\n \"due_date\": \"2023-12-25\",\n \"notes\": \"<string>\",\n \"suppress_gl\": true,\n \"landed_cost_receipt_txn_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "vendor_bill",
"entity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_invoice_number": "<string>",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "draft",
"bill_date": "2023-12-25",
"effective_date": "2023-12-25",
"posted_entry_date": "2023-12-25",
"ledger_posting_date": "2023-12-25",
"redate_block": {
"code": "<string>",
"message": "<string>"
},
"redate_latest_date": "2023-12-25",
"posting_corrections": [
{
"sequence": 123,
"out_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"out_entry_number": "<string>",
"from_date": "2023-12-25",
"corrects_je_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"in_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"in_entry_number": "<string>",
"to_date": "2023-12-25",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_by_name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"live": true,
"reason": "<string>"
}
],
"due_date": "2023-12-25",
"subtotal": 123,
"tax_total": 123,
"shipping_total": 123,
"bill_total": 123,
"amount_paid": 123,
"balance_due": 123,
"currency": "USD",
"payment_term_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"notes": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"landed_receipts_reached": [
{
"kind": "receipt",
"receiving_transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"purchase_receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference_number": "<string>",
"po_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"po_number": "<string>",
"received_date": "2023-12-25",
"allocation_rows": 123,
"allocated_amount": 123
}
],
"landed_receipt_warnings": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"bill_date": "2023-12-25",
"status": "<string>",
"receipt_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"categories": [
"<string>"
],
"landed_amount": 123,
"allocated_on_these_receipts": 123,
"allocated_on_this_receipt": 123,
"landed_lines": [
{
"category": "<string>",
"amount": 123
}
],
"sentence": "<string>"
}
],
"landed_allocation": {
"journal_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"landed_total_cents": 123,
"inventory_portion_cents": 123,
"cogs_portion_cents": 123,
"allocation_mode": "receipt_set",
"allocation_bases": [
{
"item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requested_basis": "<string>",
"basis_used": "<string>",
"fell_back": true
}
]
},
"landed_duplicate_overridden": true
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "not_found",
"code": "not_found",
"type": "not_found",
"hint": "The requested order does not exist or does not belong to this entity.",
"param": "expand[0]",
"required": "accounts:read",
"request_id": "req_abc123"
}{
"error": "<string>",
"code": "<string>",
"hint": "<string>",
"duplicates": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_name": "<string>",
"bill_date": "2023-12-25",
"category": "<string>",
"existing_amount": 123,
"new_amount": 123
}
],
"landed_receipt_warnings": [
{
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_number": "<string>",
"vendor_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_name": "<string>",
"bill_date": "2023-12-25",
"status": "<string>",
"receipt_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"categories": [
"<string>"
],
"landed_amount": 123,
"allocated_on_these_receipts": 123,
"allocated_on_this_receipt": 123,
"landed_lines": [
{
"category": "<string>",
"amount": 123
}
],
"sentence": "<string>"
}
],
"requires_override": true
}{
"error": "future_beyond_allowed_range",
"code": "future_beyond_allowed_range",
"message": "Posting date 2026-10-16 is 18 days in the future; the posting window allows 0 days ahead.",
"picked": "2026-10-16",
"today": "2026-09-28",
"delta_days": 18,
"max_future_days": 0,
"posting_date": "2026-10-16",
"param": "effective_date",
"override_available": true,
"reason_required": true,
"required_permission": "accounting.close_period",
"window_days": 0,
"days_out": 18
}Authorizations
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Body
The bill's lines (VendorBillLineInput, the one line shape every bill door reads).
Show child attributes
Show child attributes
The posting date: the date the bill's journal entries post on, and the anchor of its due date. Defaults to bill_date. It must fall inside the entity's posting-date window (entities.settings.manual_je_future_days ahead of today UTC, default 0; manual_je_backdate_days behind it, default 180), in an open accounting period, and outside a locked AP tax year; otherwise the bill is refused 422 and nothing is written.
Why the posting date is further back than the backdate window. Read only when the window refuses it; granted when the calling identity holds accounting.close_period and an accounting period covers the date, and recorded on the bill's own audit row.
4 - 500The forward mirror of backdate_reason: why the posting date is further ahead of today (UTC) than the forward window. Granted on the same terms (and a MONTHLY accounting period covering the date); the bill's entry then posts on that date. Recorded on the bill's own audit row.
4 - 500Migration:write scope required. Skip GL posting for historical import.
For a standalone landed bill (landed lines, no goods lines, no po_id): the purchase receipts it lands on. A non-empty set on a bill that names a po_id is refused 422 landed_receipt_set_with_po on every bill door (a landed line on a PO-linked bill lands on that PO's receipts). Any number of landed bills may land on one receipt (freight and duty on one shipment); an id that is not a purchase receipt of the entity is refused 422 invalid_receipt. Every landed bill already on these receipts is returned in landed_receipt_warnings (bill, vendor, categories, amount, date, and a sentence).
Overrides a duplicate refusal, with duplicate_override_reason; the override is audited. It answers the vendor-invoice-number duplicate (409 duplicate_vendor_invoice_number) and the likely duplicate LANDED charge (409 landed_duplicate_charge: a bill already covering every receipt this bill lands on, in any mode, carries a landed line of the same category within one percent of a new line; the refusal lists the candidates and requires_override). Never a hard block.
Why the duplicate is a separate charge (required with allow_duplicate_override; written to the audit trail).
Response
Created vendor bill. A bill with landed lines also carries, beside data, landed_receipt_warnings (every landed bill already on the receipts it lands on, in any mode), landed_allocation (what the allocation posted and the basis each landed line actually used, a fallback named) and landed_duplicate_overridden when an override was used. The cost figures in them follow the margin permission (an API key never receives them).
A vendor invoice (AP). Posts to AP and inventory/expense on approval.
vendor_bill Sequential bill number per entity.
Vendor's invoice number.
draft, pending_approval, approved, rejected, paid, partially_paid, voided The vendor's document date.
The posting date: the date the bill's journal entries post to the general ledger and the anchor of its due date. Defaults to bill_date. It may be ahead of or behind bill_date inside the entity's posting-date window (Settings > Fiscal Year); a posted bill's posting date moves only through a linked pair of correcting entries, never by editing this field.
The date of the bill's own journal entry (returned by GET /v1/vendor_bills/{id}).
The date the bill's liability sits on in the ledger now, which follows a posting-date correction (returned by GET /v1/vendor_bills/{id}).
Null when the bill's posting date can still be moved; otherwise why not, as the re-date door would refuse it (for example bill_terminal for a voided bill). Returned by GET /v1/vendor_bills/{id}.
Show child attributes
Show child attributes
The latest date the bill's posting date may move to: the first day money or credit relieved the bill (a posted payment, an applied vendor credit, an applied prepayment), so the vendor's payable never runs negative in between; null when nothing has relieved it. Returned by GET /v1/vendor_bills/{id}.
Every posting-date correction of this bill, newest first. Each is a linked pair of CORRECTION journal entries: the OUT leg removes the liability from from_date and the IN leg records it on to_date. At most one pair is live (the one carrying the liability now). Returned by GET /v1/vendor_bills/{id}.
Show child attributes
Show child attributes
bill_total minus amount_paid. Unlike the sales-side orders.balance_due, this is NEVER coerced to 0 by document lifecycle: a draft or terminal vendor bill still reports its true remaining payable. There is therefore no separate amount_due field on this resource. SSOT: utils/ap-helpers.mjs::updateAPBalance.
Every receipt the bill's landed allocations reached, in all three modes (Case A, a landed-only bill naming a PO, a receipt set); allocated_amount only for a caller with the margin permission (never an API key today). Returned by GET /v1/vendor-bills/{id}.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
What a landed allocation posted and the basis each landed line actually used (a fallback is named). The inventory and COGS portions are omitted for a caller without the margin permission (every API key today).
Show child attributes
Show child attributes
Was this page helpful?

