DebitRefund
Return, create and delete debit refunds paid from suppliers
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Purchase/DebitRefund |
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 debit refund. |
DepositTo | String | If allocating a banking account for the payment specify Account If using undeposited funds specify UndepositedFunds |
Account | object | The following set of information pulls through details for an 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 4-1100 { 'DisplayID': '4-1100' } |
Account.URI | String | Uniform resource identifier associated with the account object. |
Bill | object | The following set of information pulls through details for a purchase bill. |
Bill.UID | Guid (36) | Foreign Key : Unique identifier for a bill in the form of a guid. |
Bill.Number | String (8) | Purchase bill number |
Bill.URI | String | Uniform resource identifier associated with the bill object. |
Supplier | object | The following set of information pulls through details for the supplier contact. Note: Optional on POST, will default to Supplier on Bill. |
Supplier.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the supplier assigned to the debit refund. |
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 number assigned to transaction, 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-11-29 10:33:02' } |
Amount | Decimal (13.2) | Total amount of the debit to be refunded, can be equal to or less than the bill amount. |
Memo | String (255) | Memo text describing the debit refund. |
PaymentMethod | String | Payment method text. |
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": "ad917331-d14a-4e63-bd79-f00500dabbc6",
"DepositTo": "Account",
"Number": "CR000043",
"Date": "2013-10-31T00:00:00",
"Amount": "244",
"Memo": "Huston & Huston Packaging: Debit from 00000025",
"PaymentMethod": "null",
"URI": "{cf_uri}/Purchase/DebitRefund/ad917331-d14a-4e63-bd79-f00500dabbc6",
"RowVersion": "-8726764411735244800"
}The {cf_uri} is provided by the businessId parameter as described here.