curl --request POST \
--url https://api.arcuserp.com/v1/vendor-bills/{id}/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"future_reason": "<string>",
"backdate_reason": "<string>",
"allow_duplicate_override": true,
"duplicate_override_reason": "<string>"
}
'import requests
url = "https://api.arcuserp.com/v1/vendor-bills/{id}/approve"
payload = {
"future_reason": "<string>",
"backdate_reason": "<string>",
"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({
future_reason: '<string>',
backdate_reason: '<string>',
allow_duplicate_override: true,
duplicate_override_reason: '<string>'
})
};
fetch('https://api.arcuserp.com/v1/vendor-bills/{id}/approve', 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/{id}/approve",
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([
'future_reason' => '<string>',
'backdate_reason' => '<string>',
'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/{id}/approve"
payload := strings.NewReader("{\n \"future_reason\": \"<string>\",\n \"backdate_reason\": \"<string>\",\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/{id}/approve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"future_reason\": \"<string>\",\n \"backdate_reason\": \"<string>\",\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/{id}/approve")
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 \"future_reason\": \"<string>\",\n \"backdate_reason\": \"<string>\",\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_status": "approved",
"status": "<string>",
"journal_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revaluation": {
"skipped_reason": "<string>",
"total_variance_cents": 123,
"mode": "<string>"
},
"auto_created_assets": [
{}
],
"quick_check_payment": {},
"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_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,
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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"
}Approve a vendor bill
Approves a vendor bill in pending_approval status, moving it to approved and making it eligible for payment, and posts a journal entry debiting the expense account and crediting Accounts Payable. Requires purchasing:write scope. The approver is the API key’s owner (a request body never names it): a key with no owner is refused 403 approval_requires_a_named_user, and a key whose owner created the bill is refused 422 (the creator cannot approve their own bill).
curl --request POST \
--url https://api.arcuserp.com/v1/vendor-bills/{id}/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"future_reason": "<string>",
"backdate_reason": "<string>",
"allow_duplicate_override": true,
"duplicate_override_reason": "<string>"
}
'import requests
url = "https://api.arcuserp.com/v1/vendor-bills/{id}/approve"
payload = {
"future_reason": "<string>",
"backdate_reason": "<string>",
"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({
future_reason: '<string>',
backdate_reason: '<string>',
allow_duplicate_override: true,
duplicate_override_reason: '<string>'
})
};
fetch('https://api.arcuserp.com/v1/vendor-bills/{id}/approve', 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/{id}/approve",
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([
'future_reason' => '<string>',
'backdate_reason' => '<string>',
'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/{id}/approve"
payload := strings.NewReader("{\n \"future_reason\": \"<string>\",\n \"backdate_reason\": \"<string>\",\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/{id}/approve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"future_reason\": \"<string>\",\n \"backdate_reason\": \"<string>\",\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/{id}/approve")
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 \"future_reason\": \"<string>\",\n \"backdate_reason\": \"<string>\",\n \"allow_duplicate_override\": true,\n \"duplicate_override_reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"success": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_status": "approved",
"status": "<string>",
"journal_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revaluation": {
"skipped_reason": "<string>",
"total_variance_cents": 123,
"mode": "<string>"
},
"auto_created_assets": [
{}
],
"quick_check_payment": {},
"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_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,
"bill_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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"
}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.
Path Parameters
Body
Why the bill may post further ahead of today (UTC) than the entity's forward posting window. The window is re-read at approval, so a bill created inside it can be refused here; read only when the window refuses the bill's posting date. Granted when the approver holds accounting.close_period and a MONTHLY accounting period covers the date; recorded once, on the approval's audit row.
4 - 500The backward mirror of future_reason, for a posting date further back than the backdate window at approval.
4 - 500Overrides a likely duplicate landed charge found at approval (the approval judges the landed lines it makes live, as create does), with duplicate_override_reason; audited.
Why the landed charge is separate (required with allow_duplicate_override; written to the audit trail).
Response
The bill is approved and posted. The answer is the approval itself, under data, not the bill record: its id, approval_status approved, the bill's new status, the journal entry the approval posted, the revaluation of any matched purchase-order lines, the fixed assets it created, the quick-check payment when one was taken, the landed warnings (every other landed bill on the receipts this approval allocates onto; allocated_on_these_receipts is omitted without the margin permission) and landed_duplicate_overridden when the approval overrode a likely duplicate landed charge. Read the bill with getVendorBillV1.
Show child attributes
Show child attributes
Was this page helpful?

