SupplierPayment
Return, create and delete supplier payments
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Purchase/SupplierPayment |
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 supplier payment. |
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 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. |
Supplier | object | The following set of information pulls through details for the Supplier contact |
Supplier.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the supplier assigned to the supplier payment. |
Supplier.Name | String (30) | Name of the supplier. |
Supplier.DisplayID | String (15) | Supplier contact Card ID, can also be used as a unique supplier contact identifier. |
Supplier.URI | String | Uniform resource identifier associated with the supplier object. |
PayeeAddress | String (255) | Payee name and address of the supplier contact. |
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 (8) | ID No of payment transaction |
Date | DateTime | Transaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-08-11 13:33:02' } |
AmountPaid | Decimal (13.2) | Total of all amounts paid to the purchase bill/bills. |
AmountPaidForeign | Decimal (13.2) | Total of all amounts paid to the purchase bill/bills in foreign currency. |
Memo | String (255) | Memo text of the supplier payment entry. |
Lines | array | An array of purchase bill/order line information |
Lines.RowId | Integer | Sequence of the entry within the supplier payment set. |
Lines.Type | String | Purchase type, can consist of the following: Bill Order |
Lines.Purchase | object | The following set of information pulls through details for the Purchase Bill or Order |
Lines.Purchase.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the supplier purchase bill or order. |
Lines.Purchase.Number | String (8) | Purchase bill/order number |
Lines.Purchase.URI | String | Uniform resource identifier associated with the purchase bill/order object. |
Lines.AmountApplied | Decimal (13.2) | Mandatory for a Local currency record : Amount applied to the purchase bill or order |
Lines.AmountAppliedForeign | Decimal (13.2) | Mandatory for a Foreign currency record : Amount applied to the purchase bill or order in foreign currency. |
Lines.RowVersion | String | Incrementing number that can be used for change control but does does not preserve a date or a time. |
DeliveryStatus | String (20) | Delivery status assigned to payment: Print = ToBePrinted Email = ToBeEmailed PrintAndEmail = ToBePrintedAndEmailed Nothing = AlreadyPrintedOrSent |
ForeignCurrency | object | Foreign currency information in the transaction. |
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. |
CurrencyExchangeRate | Decimal | Currency exchange rate for the associated 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. |
Example json GET response
Example
{
"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.