Xero Accounting Endpoint: PrepaymentsExpanded: Difference between revisions

No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==


The Xero '''PrepaymentExpanded''' [[Endpoints|endpoint]] provides the list of prepayments transactions recorded within Xero.
The Xero '''PrepaymentsExpanded''' [[Xero Accounting Endpoints|endpoint]] provides the list of prepayments transactions recorded within Xero.


This endpoints provides access to all fields and details. It is also optimised for larger data files.
This endpoints provides access to all fields and details. It is also optimised for larger data files.
Line 10: Line 10:
== Fields ==
== Fields ==


The following fields are available for the BatchPayments endpoint.
The following fields are available for the PrepaymentsExpanded endpoint.


;PrepaymentID
;PrepaymentID
Line 16: Line 16:


;Type
;Type
:A [[Field Type: Text|text field]] that indicates the type of batch payment.
:A [[Field Type: Text|text field]] that indicates the type of prepayment.
:Possible values are:  
:Possible values are:  
:* '''RECEIVE-PREPAYMENT''': Indicates the prepayment is for accounts receivable / customer side.
:* '''RECEIVE-PREPAYMENT''': Indicates the prepayment is for accounts receivable / customer side.
Line 30: Line 30:
:A [[Field Type: Text|text field]] that indicates the status of the prepayment.
:A [[Field Type: Text|text field]] that indicates the status of the prepayment.
:Possible values are:  
:Possible values are:  
:* '''AUTHORISED''': Indicates the transaction is authorised and has been processed.
:* '''AUTHORISED''': Indicates the transaction is authorised.
:* '''DELETED''': Indicates the transaction has been deleted.
:* '''PAID''': Indicates the transaction has been processed and paid.
:* '''VOIDED''': Indicates the transaction has been deleted.


;Contact
;Contact
Line 37: Line 38:


;Payments
;Payments
:A [[Field Type: Table|table field]] that provides the detailed [[Xero Accounting Field: Payments|payments]] associated with this prepayment.
:A [[Field Type: Table|table field]] that provides the payments information.
:See [[#Payments Fields|Payments Fields]] for more information.


;Allocations
;Allocations
:A [[Field Type: Table|table field]] that provides the [[Xero Accounting Field: Invoices|invoices]] on which the prepayment was applied.
:A [[Field Type: Table|table field]] that provides the amount allocated to the invoice.
:See [[#Allocations Fields|Allocations Fields]] for more information.


;LineAmountTypes
;LineAmountTypes
Line 54: Line 57:


;Subtotal
;Subtotal
:A [[Field Type: Decimal|decimal value]] that provides the tax exclusive amount of the transaction.
:A [[Field Type: Decimal|decimal field]] that provides the tax exclusive amount of the transaction.


;TotalTax
;TotalTax
:A [[Field Type: Decimal|decimal value]] that provides the tax amount of the transaction.
:A [[Field Type: Decimal|decimal field]] that provides the tax amount of the transaction.


;Total
;Total
:A [[Field Type: Decimal|decimal value]] that provides the total amount of the transaction.
:A [[Field Type: Decimal|decimal field]] that provides the total amount of the transaction.


;RemainingCredit
;RemainingCredit
:A [[Field Type: Decimal|decimal value]] that provides the remaining credit that can be applied to other invoices.
:A [[Field Type: Decimal|decimal field]] that provides the remaining credit that can be applied to other invoices.


;CurrencyCode
;CurrencyCode
:A [[Field Type: Text|text field]] that indicates the [[Xero Accounting Endpoint: Currencies|currency]] of the bank transaction.
:A [[Field Type: Text|text field]] that indicates the [[Xero Accounting Endpoint: Currencies|currency]] of the transaction.


;CurrencyRate
;CurrencyRate
:A [[Field Type: Decimal|decimal value]] that provides the exchange rate applied to the transaction.
:A [[Field Type: Decimal|decimal field]] that provides the exchange rate applied to the transaction.


;HasAttachments
;HasAttachments
Line 75: Line 78:


;UpdatedDateUTC
;UpdatedDateUTC
:A [[Field Type: DateTimeOffset|date time field]] that indicates the date and time this batch payment was created and/or updated.
:A [[Field Type: DateTimeOffset|date time field]] that indicates the date and time this prepayment was created and/or updated.


== Payments Fields ==
The [[#Fields|Payments Fields]] include the following sub fields.
;PaymentID
:A [[Field Type: GUID|GUID field]] representing the internal id of a payment.
:This field can be linked to the [[Xero Accounting Endpoint: Payments|Payments]] endpoint.
;BatchPaymentID
:A [[Field Type: GUID|GUID field]] representing the internal id of a batch payment.
:This field can be linked to the [[Xero Accounting Endpoint: BatchPayments|BatchPayments]] endpoint.
;Date
:A [[Field Type: Date|date field]] that provides the date on which the link occurred.
;Amount
:A [[Field Type: Decimal|decimal field]] that provides the amount associated with the payment.
;CurrencyRate
:A [[Field Type: Decimal|decimal field]] that provides the exchange rate applicable.
;Reference
:A [[Field Type: Text|text field]] that provides the reference.
== Allocations Fields ==
The [[#Fields|Allocations Fields]] include the following sub fields.
;Amount
:A [[Field Type: Decimal|decimal field]] that provides the amount allocated to an invoice.
;Date
:A [[Field Type: Date|date field]] that provides the date on which the amount was allocated to an invcoice.
;Invoice
:A [[Field Type: Record|record field]] that provides the [[Xero Accounting Field: Invoices|invoice]] details.




Line 90: Line 131:


;Quantity
;Quantity
:A [[Field Type: Decimal|decimal value]] that provides the quantity entered on the line.
:A [[Field Type: Decimal|decimal field]] that provides the quantity entered on the line.


;UnitAmount
;UnitAmount
:A [[Field Type: Decimal|decimal value]] that provides the unit amount of the line.
:A [[Field Type: Decimal|decimal field]] that provides the unit amount of the line.


;LineAmount
;LineAmount
:A [[Field Type: Decimal|decimal value]] that provides the amount of the line.
:A [[Field Type: Decimal|decimal field]] that provides the amount of the line.


;TaxAmount
;TaxAmount
:A [[Field Type: Decimal|decimal value]] that provides the tax amount of the line.
:A [[Field Type: Decimal|decimal field]] that provides the tax amount of the line.


;AccountID
;AccountID
Line 124: Line 165:
:[[Xero Accounting Field: Contacts|Contacts]]
:[[Xero Accounting Field: Contacts|Contacts]]
:[[Xero Accounting Field: Invoices|Invoices]]
:[[Xero Accounting Field: Invoices|Invoices]]
:[[Xero Accounting Field: Payments|Payments]]
:[[Xero Accounting Field: TaxTypes|TaxTypes]]
:[[Xero Accounting Field: TaxTypes|TaxTypes]]
:[[Xero Accounting Field: TrackingCategories|TrackingCategories]]
:[[Xero Accounting Field: TrackingCategories|TrackingCategories]]
Line 132: Line 172:


:[[Xero Accounting Endpoint: Accounts|Accounts]]
:[[Xero Accounting Endpoint: Accounts|Accounts]]
:[[Xero Accounting Endpoint: BankTransactions|BankTransactions]]
:[[Xero Accounting Endpoint: BankTransactionsExpanded|BankTransactionsExpanded]]
:[[Xero Accounting Endpoint: BatchPayments|BatchPayments]]
:[[Xero Accounting Endpoint: Contacts|Contacts]]
:[[Xero Accounting Endpoint: Contacts|Contacts]]
:[[Xero Accounting Endpoint: ContactsExpanded|ContactsExpanded]]
:[[Xero Accounting Endpoint: ContactsExpanded|ContactsExpanded]]
Line 141: Line 184:
:[[Xero Accounting Endpoint: TaxRates|TaxRates]]
:[[Xero Accounting Endpoint: TaxRates|TaxRates]]
:[[Xero Accounting Endpoint: TrackingCategories|TrackingCategories]]
:[[Xero Accounting Endpoint: TrackingCategories|TrackingCategories]]
== Related Topics ==
:[[Xero Accounting Models]]
:[[Xero Accounting Endpoints]]