Skip to content

SpendMoneyTxn

Return, update, create and delete spend money transactions

Released
Updated
URLSupports
/{cf_uri}/Banking/SpendMoneyTxn
GETPUTPOSTDELETE

Attribute Details

Paging: default page size is set to 400 with a maximum of 1000 results.

AttributeTypeNotes
UID
Required
Guid (36)Unique guid identifier created for a spend money transaction. ONLY required for updating an existing spend money. NOT required when creating a new spend money.
PayFrom
Required
StringIf allocating a banking account for the payment specify Account If using electronic payments specify ElectronicPayments What are electronic payments?
AccountobjectThe following set of information pulls through details for the Pay from Account
Account.UID
Required
Guid (36)Please note: Passing the Account UID is optional if you are assigning ElectronicPayments , if allocating a bank account the UID is required. Foreign Key : Unique identifier for the account in the form of a guid.
Account.Name
Read-only
String (30)Account name belonging to the account record.
Account.DisplayID
Read-only
String (6)Account code format includes separator ie 1-1100 { 'DisplayID': '1-1100' }
Account.URI
Read-only
StringUniform resource identifier associated with the account object.
ContactobjectThe following set of information pulls through details for the contact card. Note: contact can be null on a void transaction.
Contact.UID
Required
Guid (36)Please note: only required if specifying a contact card on POST. Foreign Key : Unique guid identifier belonging to the contact card assigned to the money received.
Contact.Name
Read-only
String (30)Name of the contact record.
Contact.TypeString (8)Card type of the contact record, can be either Customer , Supplier , Employee or Personal .
Contact.DisplayIDString (15)Contact Card ID, can also be used as a unique contact identifier.
Contact.URI
Read-only
StringUniform resource identifier associated with the contact card object.
PayeeAddressString (255)Name and address of Payee, if a contact is supplied on POST and PayeeAddress is left blank, Address 1 of the contact will default. If neither Contact or PayAddress are assigned on POST then will default to null.
StatementParticularsStringONLY applicable for Electronic Payments. Particulars attached to electronic payment. What are electronic payments?
StatementCodeStringONLY APPLICABLE FOR NZ REGION. Code attached to electronic payment.
StatementReferenceStringONLY APPLICABLE FOR NZ REGION. Reference attached to electronic payment.
PaymentNumberString (13)ID No of payment transaction, if left blank on POST will auto increment based upon last recorded #
Date
Required
DateTimeTransaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2020-09-14 14:33:02' }
AmountPaid
Read-only
Decimal (13.2)Total of all amounts paid.
IsTaxInclusiveBooleanTrue indicates the transaction is set to tax inclusive with the Amount inclusive of tax. False indicates the transaction is not tax inclusive with the Amount value tax exclusive.
TotalTax
Read-only
Decimal (13.2)Total of all tax amounts applicable to the spend money.
MemoString (255)Memo text describing the spend money transaction.
LinesarrayAn array of spend money line information
Lines.RowIdIntegerSequence of the entry within the spend money set. REQUIRED only when passing the RowVersion for updating an existing spend money line.
Lines.AccountobjectThe following set of information pulls through details for an account
Lines.Account.UID
Required
Guid (36)Foreign Key : Unique identifier for the account in the form of a guid.
Lines.Account.Name
Read-only
String (30)Account name belonging to the account record.
Lines.Account.DisplayID
Read-only
String (6)Account code format includes separator ie 1-1100 { 'DisplayID': '1-1100' }
Lines.Account.URI
Read-only
StringUniform resource identifier associated with the account object.
Lines.JobobjectThe following set of information pulls through the details for a job
Lines.Job.UIDGUID (36)Foreign Key : Unique guid identifier belonging to the job for the line.
Lines.Job.Number
Read-only
String (30)Number assigned to the job
Lines.Job.Name
Read-only
String (30)Name assigned to the job
Lines.Job.URI
Read-only
StringUniform resource identifier associated with the job object
Lines.TaxCodeobjectThe following set of information pulls through details for the Tax Code
Lines.TaxCode.UID
Required
GUID (36)Foreign Key : Unique tax code identifier in the form of a guid
Lines.TaxCode.Code
Read-only
String (3)3 digit code assigned to the tax code.
Lines.TaxCode.URI
Read-only
StringUniform resource identifier associated with the tax code object.
Lines.Amount
Required
Decimal (13.2)Amount to be allocated to the account.
Lines.MemoString (1000)Memo text describing the transaction line.
Lines.UnitCountDecimal (19.6)Quantity value of the spend money transaction.
Lines.RowVersion
Required
StringONLY required on PUT for updating an existing spend money line. NOT required when creating a new spend money transaction.
ChequePrintedBooleanTrue indicates you don't need to print a cheque for this spend money. False indicates you can print a cheque for spend money .
DeliveryStatusString (20)Delivery status assigned to payment: Print Email PrintAndEmail Nothing
CategoryobjectThe following outlines category information.
Category.UIDGUID (36)Foreign Key : Unique guid identifier belonging to the category assigned to the spend money.
Category.Name
Read-only
String (30)Name of the category
Category.DisplayID
Read-only
String (15)Display id for the category
Category.URI
Read-only
StringUniform resource identifier associated with the category object
ForeignCurrencyobjectNull if no foreign currency is set.
ForeignCurrency.UID
Read-only
Guid (36)Foreign Key : Unique identifier for the currency in the form of a guid.
ForeignCurrency.Code
Read-only
String (3)The currency code.
ForeignCurrency.CurrencyName
Read-only
StringThe full name of the currency
ForeignCurrency.URI
Read-only
StringUniform resource identifier associated with the currency object.
URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
RowVersion
Required
StringNumber value that changes upon a record update, can be used for change control but does does not preserve a date or a time. ONLY required for updating an existing spend money. NOT required when creating a new spend money.

Example json GET response

Example

json
{
  "UID": "f716e839-6b33-4b29-9724-5b0a7b5569e1",
  "PayFrom": "ElectronicPayments",
  "PayeeAddress": "Contact 2",
  "StatementParticulars": "PAYMENT 1",
  "PaymentNumber": "1",
  "Date": "2020-09-14T00:00:00",
  "AmountPaid": "186.830000",
  "IsTaxInclusive": "true",
  "TotalTax": "16.990000",
  "Memo": "Contact 2",
  "ChequePrinted": "false",
  "DeliveryStatus": "Print",
  "Category": "null",
  "URI": "{cf_uri}/Banking/SpendMoneyTxn/f716e839-6b33-4b29-9724-5b0a7b5569e1",
  "RowVersion": "-5414171177029468160"
}

The {cf_uri} is provided by the businessId parameter as described here.