Skip to content

SupplierPayment

Return, create and delete supplier payments

Released
Updated
URLSupports
/{cf_uri}/Purchase/SupplierPayment
GETPUTPOSTDELETE

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 supplier payment.
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 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.
SupplierobjectThe following set of information pulls through details for the Supplier contact
Supplier.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the supplier assigned to the supplier payment.
Supplier.Name
Read-only
String (30)Name of the supplier.
Supplier.DisplayIDString (15)Supplier contact Card ID, can also be used as a unique supplier contact identifier.
Supplier.URI
Read-only
StringUniform resource identifier associated with the supplier object.
PayeeAddressString (255)Payee name and address of the supplier contact.
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 (8)ID No of payment transaction
DateDateTimeTransaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-08-11 13:33:02' }
AmountPaidDecimal (13.2)Total of all amounts paid to the purchase bill/bills.
AmountPaidForeignDecimal (13.2)Total of all amounts paid to the purchase bill/bills in foreign currency.
MemoString (255)Memo text of the supplier payment entry.
LinesarrayAn array of purchase bill/order line information
Lines.RowId
Read-only
IntegerSequence of the entry within the supplier payment set.
Lines.TypeStringPurchase type, can consist of the following: Bill Order
Lines.PurchaseobjectThe following set of information pulls through details for the Purchase Bill or Order
Lines.Purchase.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the supplier purchase bill or order.
Lines.Purchase.Number
Read-only
String (8)Purchase bill/order number
Lines.Purchase.URI
Read-only
StringUniform resource identifier associated with the purchase bill/order object.
Lines.AmountApplied
Required
Decimal (13.2)Mandatory for a Local currency record : Amount applied to the purchase bill or order
Lines.AmountAppliedForeign
Required
Decimal (13.2)Mandatory for a Foreign currency record : Amount applied to the purchase bill or order in foreign currency.
Lines.RowVersionStringIncrementing number that can be used for change control but does does not preserve a date or a time.
DeliveryStatusString (20)Delivery status assigned to payment: Print = ToBePrinted Email = ToBeEmailed PrintAndEmail = ToBePrintedAndEmailed Nothing = AlreadyPrintedOrSent
ForeignCurrencyobjectForeign currency information in the transaction.
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.
CurrencyExchangeRate
Read-only
DecimalCurrency exchange rate for the associated currency object.
URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
RowVersionStringNumber 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": "7976deea-7c9c-4fe5-bd63-2131ff541337",
  "PayFrom": "Account",
  "PayeeAddress": "Curbys Super Stands 67 Mountain Road Leura NSW 2477 Australia",
  "StatementParticulars": "",
  "PaymentNumber": "106",
  "Date": "2013-10-03T00:00:00",
  "AmountPaid": "69.95",
  "AmountPaidForeign": "null",
  "Memo": "Curbys Super Stands for PJ000009",
  "RowID": "403",
  "Type": "Bill",
  "AmountApplied": "69.95",
  "AmountAppliedForeign": "null",
  "RowVersion": "5223612617796354048",
  "DeliveryStatus": "Print",
  "CurrencyExchangeRate": "null",
  "URI": "{cf_uri}/Purchase/SupplierPayment/7976deea-7c9c-4fe5-bd63-2131ff541337"
}

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