Skip to content

CustomerPayment

Return, create and delete customer payments

Released
Updated
URLSupports
/{cf_uri}/Sale/CustomerPayment
GETPOSTDELETE

Attribute Details

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

AttributeTypeNotes
UIDGuid (36)Unique guid identifier created for a customer payment.
DepositTo
Required
StringIf allocating a banking account for the payment specify Account If using undeposited funds specify UndepositedFunds What are undeposited funds?
AccountobjectThe following set of information pulls through details for the Account
Account.UID
Required
Guid (36)Foreign Key : Unique identifier for the account in the form of a guid.
Account.Name
Read-only
String (60)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.
CustomerobjectThe following set of information pulls through details for the Customer contact
Customer.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the customer assigned to the customer payment.
Customer.Name
Read-only
String (30)Name of the customer.
Customer.DisplayIDString (15)Customer contact Card ID, can also be used as a unique customer contact identifier.
Customer.URI
Read-only
StringUniform resource identifier associated with the customer object.
ReceiptNumberString (13)ID No of payment transaction.
DateDateTimeTransaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-08-11 13:33:02' }
AmountReceivedDecimal (13.2)Total of all amounts applicable to the sale invoice.
AmountReceivedForeignDecimal (13.2)Total of all amounts applicable to the sale invoice in foreign currency.
PaymentMethodPaymentMethodPayment methods must exist in company file, default methods consist of the following: (Users can add new methods through AccountRight UI) American Express Bank Card Barter Card Cash Cheque Diners Club EFTPOS MasterCard Money Order Other Visa
MemoString (255)Memo text of the customer payment entry.
InvoicesarrayAn array of line invoice information
Invoices.RowIdIntegerSequence of the entry within the customer payment set.
Invoices.NumberString (8)Sales invoice number
Invoices.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the invoice assigned to the customer payment.
Invoices.AmountApplied
Required
Decimal (13.2)Mandatory for a Local currency record : Amount applied to invoice.
Invoices.AmountAppliedForeign
Required
Decimal (13.2)Mandatory for a Foreign currency record : Amount applied to invoice in foreign currency.
Invoices.Type
Required
StringSale type, can consist of the following: Invoice Order
Invoices.TransactionID
Read-only
StringTransaction ID of payment transaction.
Invoices.ForeignCurrencyobjectForeign currency information in the transaction.
Invoices.ForeignCurrency.UID
Read-only
Guid (36)Foreign Key : Unique identifier for the currency in the form of a guid.
Invoices.ForeignCurrency.Code
Read-only
String (3)The currency code.
Invoices.ForeignCurrency.Name
Read-only
StringThe full name of the currency.
Invoices.ForeignCurrency.URI
Read-only
StringUniform resource identifier associated with the currency object.
Invoices.CurrencyExchangeRate
Read-only
DecimalCurrency exchange rate in the associated currency object.
Invoices.URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
Invoices.RowVersion
Read-only
StringNumber value that changes upon a record update, can be used for change control but does does not preserve a date or a time.

Example json GET response

Example

json
{
  "UID": "962db553-3a04-43c6-a45e-d77d3d94bf87",
  "DepositTo": "Account",
  "ReceiptNumber": "CR000022",
  "Date": "2014-03-26T00:00:00",
  "AmountReceived": "46.2",
  "AmountReceivedForeign": "null",
  "PaymentMethod": "Visa",
  "Memo": "Payment; A-Z Stationery Supplies",
  "RowID": "433",
  "Number": "00000028",
  "AmountApplied": "46.2",
  "AmountAppliedForeign": "null",
  "Type": "Invoice",
  "URI": "{cf_uri}/Sale/CustomerPayment/292c4c5a-0f42-4fc3-8f78-d53f135e1a11",
  "TransactionID": "null",
  "ForeignCurrency": "null",
  "CurrencyExchangeRate": "null",
  "RowVersion": "-6665890398461755392"
}

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