DebitSettlement
Return, create and delete debit settlements.
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Purchase/DebitSettlement |
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 settled debit note. |
DebitFromBill | object | The following set of information pulls through details for a purchase bill debit. |
DebitFromBill.UID | Guid (36) | Foreign Key : Unique identifier for a purchase bill in the form of a guid. |
DebitFromBill.Number | String (8) | Purchase bill number |
DebitFromBill.URI | String | Uniform resource identifier associated with the purchase bill object. |
Supplier | object | The following set of information pulls through details for supplier contact. Note: This is optional on POST, defaults to supplier on DebitFromBill |
Supplier.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the supplier assigned to the debit settlement. |
Supplier.Name | String (30) | Name of the supplier contact. |
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. |
Number | String (8) | ID transaction number, if left blank on POST will auto increment based upon last recorded. |
Date | DateTime | Transaction date, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-12-19 11:33:02' } |
DebitAmount | Decimal (13.2) | Total debit amount to be applied, can only be less than or equal to DebitFromBill amount. |
Memo | String (255) | Memo text describing the settled debit. |
Lines | array | The following set of information pulls through line details for the debit settlement. |
Lines.Type | String | Purchase type which can consist of the following: Bill Order |
Lines.Purchase | object | The following set of information pulls through details for a purchase. |
Lines.Purchase.UID | Guid (36) | Foreign Key : Unique identifier for a purchase in the form of a guid. |
Lines.Purchase.Number | String (8) | Purchase transaction number. |
Lines.Purchase.URI | String | Uniform resource identifier associated with the purchase transaction object. |
Lines.AmountApplied | Decimal (13.2) | Debit amount applied to purchases transactions, amount must be greater than 0. |
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. |
Example json GET response
Example
{
"UID": "81f72366-be5e-435b-8c1e-27eebdda67b7",
"Number": "PJ001009",
"Date": "2013-11-12T00:00:00",
"DebitAmount": "350.63",
"Memo": "Mountain Spring: Debit from 00000068",
"Type": "Bill",
"AmountApplied": "350.63",
"URI": "{cf_uri}/Purchase/DebitSettlement/81f72366-be5e-435b-8c1e-27eebdda67b7",
"RowVersion": "8927346127557099520"
}The {cf_uri} is provided by the businessId parameter as described here.