SpendMoneyTxn
Return, update, create and delete spend money transactions
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Banking/SpendMoneyTxn |
Attribute Details
Paging: default page size is set to 400 with a maximum of 1000 results.
| Attribute | Type | Notes |
|---|---|---|
UID | 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 | String | If allocating a banking account for the payment specify Account If using electronic payments specify ElectronicPayments What are electronic payments? |
Account | object | The following set of information pulls through details for the Pay from Account |
Account.UID | 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 | String (30) | Account name belonging to the account record. |
Account.DisplayID | String (6) | Account code format includes separator ie 1-1100 { 'DisplayID': '1-1100' } |
Account.URI | String | Uniform resource identifier associated with the account object. |
Contact | object | The following set of information pulls through details for the contact card. Note: contact can be null on a void transaction. |
Contact.UID | 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 | String (30) | Name of the contact record. |
Contact.Type | String (8) | Card type of the contact record, can be either Customer , Supplier , Employee or Personal . |
Contact.DisplayID | String (15) | Contact Card ID, can also be used as a unique contact identifier. |
Contact.URI | String | Uniform resource identifier associated with the contact card object. |
PayeeAddress | String (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. |
StatementParticulars | String | ONLY applicable for Electronic Payments. Particulars attached to electronic payment. What are electronic payments? |
StatementCode | String | ONLY APPLICABLE FOR NZ REGION. Code attached to electronic payment. |
StatementReference | String | ONLY APPLICABLE FOR NZ REGION. Reference attached to electronic payment. |
PaymentNumber | String (13) | ID No of payment transaction, if left blank on POST will auto increment based upon last recorded # |
Date | DateTime | Transaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2020-09-14 14:33:02' } |
AmountPaid | Decimal (13.2) | Total of all amounts paid. |
IsTaxInclusive | Boolean | True 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 | Decimal (13.2) | Total of all tax amounts applicable to the spend money. |
Memo | String (255) | Memo text describing the spend money transaction. |
Lines | array | An array of spend money line information |
Lines.RowId | Integer | Sequence of the entry within the spend money set. REQUIRED only when passing the RowVersion for updating an existing spend money line. |
Lines.Account | object | The following set of information pulls through details for an account |
Lines.Account.UID | Guid (36) | Foreign Key : Unique identifier for the account in the form of a guid. |
Lines.Account.Name | String (30) | Account name belonging to the account record. |
Lines.Account.DisplayID | String (6) | Account code format includes separator ie 1-1100 { 'DisplayID': '1-1100' } |
Lines.Account.URI | String | Uniform resource identifier associated with the account object. |
Lines.Job | object | The following set of information pulls through the details for a job |
Lines.Job.UID | GUID (36) | Foreign Key : Unique guid identifier belonging to the job for the line. |
Lines.Job.Number | String (30) | Number assigned to the job |
Lines.Job.Name | String (30) | Name assigned to the job |
Lines.Job.URI | String | Uniform resource identifier associated with the job object |
Lines.TaxCode | object | The following set of information pulls through details for the Tax Code |
Lines.TaxCode.UID | GUID (36) | Foreign Key : Unique tax code identifier in the form of a guid |
Lines.TaxCode.Code | String (3) | 3 digit code assigned to the tax code. |
Lines.TaxCode.URI | String | Uniform resource identifier associated with the tax code object. |
Lines.Amount | Decimal (13.2) | Amount to be allocated to the account. |
Lines.Memo | String (1000) | Memo text describing the transaction line. |
Lines.UnitCount | Decimal (19.6) | Quantity value of the spend money transaction. |
Lines.RowVersion | String | ONLY required on PUT for updating an existing spend money line. NOT required when creating a new spend money transaction. |
ChequePrinted | Boolean | True indicates you don't need to print a cheque for this spend money. False indicates you can print a cheque for spend money . |
DeliveryStatus | String (20) | Delivery status assigned to payment: Print Email PrintAndEmail Nothing |
Category | object | The following outlines category information. |
Category.UID | GUID (36) | Foreign Key : Unique guid identifier belonging to the category assigned to the spend money. |
Category.Name | String (30) | Name of the category |
Category.DisplayID | String (15) | Display id for the category |
Category.URI | String | Uniform resource identifier associated with the category object |
ForeignCurrency | object | Null if no foreign currency is set. |
ForeignCurrency.UID | Guid (36) | Foreign Key : Unique identifier for the currency in the form of a guid. |
ForeignCurrency.Code | String (3) | The currency code. |
ForeignCurrency.CurrencyName | String | The full name of the currency |
ForeignCurrency.URI | String | Uniform resource identifier associated with the currency object. |
URI | String | Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web. |
RowVersion | String | Number 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
{
"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.