purchasing:writeInserts a row in the canonical vendor_credits ledger and posts a balanced
GL journal entry (DR vendor_returns_receivable / CR vendor_credits) under
source_type='VENDOR_CREDIT'. Apply the credit to an open vendor bill by
passing the credit id in vendor_credit_ids[] on POST /v1/ap-payments.
Idempotency: if source_id is supplied, the canonical helper short-circuits
on (entity_id, source_type, source_id) and returns the existing row with
idempotent: true. The Idempotency-Key header (standard public-API
replay guard) is also honored.
Documentation Index
Fetch the complete documentation index at: https://docs.arcuserp.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
Vendor account id
Positive amount being credited
Free-text reason recorded in activity_log
Origin of the credit; recorded on the ledger row
manual, vendor_return, price_adjustment, rebate, duplicate_payment, other Linked vendor_return or vendor_bill id (used for idempotency)
Future date; defaults to entity setting (NULL = never expire)
Created vendor credit
A vendor credit -- a ledger entry that reduces what you owe a vendor.
Issued from a vendor return, a negotiated discount, or a manual grant.
Posts GL: DR vendor_returns_receivable / CR vendor_credits at issuance.
Apply to an open vendor bill via POST /v1/ap-payments with
vendor_credit_ids[]. Mirrors the canonical public.vendor_credits
ledger (NOT the legacy vendor_bills negative-amount pattern).