AI agent? Read this page as Markdown at /accounting/transaction/Create_a_transaction.md — append .md to any docs URL, or start from /llms.txt.

Create a transaction

POST/accounting/{connection_id}/transaction

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection

Payload

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
memostring
total_amountnumber
negative for CREDIT, positive for DEBIT
tax_amountnumber
negative for CREDIT, positive for DEBIT
account_idstring
(reference to AccountingAccount)
referencestring
sub_total_amountnumber
split_account_idstring
payment_methodstring
payment_termsstring
customer_messagestring
typestring
eg. CreditCardCharge, Check, Invoice, ReceivePayment, JournalEntry, Bill, CreditCardCredit, VendorCredit, Credit, BillPaymentCheck, BillPaymentCreditCard, Charge, Transfer, Deposit, BANK_DEPOSIT, BANK_TRANSFER, Statement, BillableCharge, TimeActivity, CashPurchase, SalesReceipt, CreditMemo, CreditRefund, Estimate, InventoryQuantityAdjustment, PurchaseOrder, GlobalTaxPayment, GlobalTaxAdjustment, Service Tax Refund, Service Tax Gross Adjustment, Service Tax Reversal, Service Tax Defer, Service Tax Partial Utilisation
lineitems array
currencystring
contacts array
organization_idstring
category_idsstring array
(reference to AccountingCategory)
project_idstring
(reference to TaskProject)

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
memostring
total_amountnumber
negative for CREDIT, positive for DEBIT
tax_amountnumber
negative for CREDIT, positive for DEBIT
account_idstring
(reference to AccountingAccount)
referencestring
sub_total_amountnumber
split_account_idstring
payment_methodstring
payment_termsstring
customer_messagestring
typestring
eg. CreditCardCharge, Check, Invoice, ReceivePayment, JournalEntry, Bill, CreditCardCredit, VendorCredit, Credit, BillPaymentCheck, BillPaymentCreditCard, Charge, Transfer, Deposit, BANK_DEPOSIT, BANK_TRANSFER, Statement, BillableCharge, TimeActivity, CashPurchase, SalesReceipt, CreditMemo, CreditRefund, Estimate, InventoryQuantityAdjustment, PurchaseOrder, GlobalTaxPayment, GlobalTaxAdjustment, Service Tax Refund, Service Tax Gross Adjustment, Service Tax Reversal, Service Tax Defer, Service Tax Partial Utilisation
lineitems array
currencystring
contacts array
organization_idstring
category_idsstring array
(reference to AccountingCategory)
project_idstring
(reference to TaskProject)
const options = {
  method: 'POST',
  url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/transaction',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?