Difference between revisions of "Xero Accounting Endpoint: Prepayments"
Jump to navigation
Jump to search
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
The Xero '''Prepayments''' [[Endpoints|endpoint]] provides the list of prepayments transactions recorded within Xero. | The Xero '''Prepayments''' [[Xero Accounting Endpoints|endpoint]] provides the list of prepayments transactions recorded within Xero. | ||
This endpoint does not provide access to all fields and details. It is optimised for small data files that do not have many | This endpoint does not provide access to all fields and details. It is optimised for small data files that do not have many prepayments. | ||
In most situations, it is recommended to use the [[Xero Accounting Endpoint: PrepaymentsExpanded|PrepaymentsExpanded]]. It provides many additional fields and is also optimised for larger data files. | In most situations, it is recommended to use the [[Xero Accounting Endpoint: PrepaymentsExpanded|PrepaymentsExpanded]]. It provides many additional fields and is also optimised for larger data files. | ||
Line 17: | Line 17: | ||
;Type | ;Type | ||
:A [[Field Type: Text|text field]] that indicates the type of | :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 31: | Line 31: | ||
: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 | :* '''AUTHORISED''': Indicates the transaction is authorised. | ||
:* ''' | :* '''PAID''': Indicates the transaction has been processed and paid. | ||
:* '''VOIDED''': Indicates the transaction has been deleted. | |||
;Contact | ;Contact | ||
Line 38: | Line 39: | ||
;Payments | ;Payments | ||
:A [[Field Type: Table|table field]] that provides the | :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 [[ | :A [[Field Type: Table|table field]] that provides the amount allocated to the invoice. | ||
:See [[#Allocations Fields|Allocations Fields]] for more information. | |||
;Subtotal | ;Subtotal | ||
:A [[Field Type: Decimal|decimal | :A [[Field Type: Decimal|decimal field]] that provides the tax exclusive amount of the transaction. | ||
;TotalTax | ;TotalTax | ||
:A [[Field Type: Decimal|decimal | :A [[Field Type: Decimal|decimal field]] that provides the tax amount of the transaction. | ||
;Total | ;Total | ||
:A [[Field Type: Decimal|decimal | :A [[Field Type: Decimal|decimal field]] that provides the total amount of the transaction. | ||
;RemainingCredit | ;RemainingCredit | ||
:A [[Field Type: Decimal|decimal | :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 | :A [[Field Type: Text|text field]] that indicates the [[Xero Accounting Endpoint: Currencies|currency]] of the transaction. | ||
;CurrencyRate | ;CurrencyRate | ||
:A [[Field Type: Decimal|decimal | :A [[Field Type: Decimal|decimal field]] that provides the exchange rate applied to the transaction. | ||
;HasAttachments | ;HasAttachments | ||
Line 65: | Line 68: | ||
;UpdatedDateUTC | ;UpdatedDateUTC | ||
:A [[Field Type: DateTimeOffset|date time field]] that indicates the date and time this | :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 78: | Line 120: | ||
:[[Xero Accounting Field: Contacts|Contacts]] | :[[Xero Accounting Field: Contacts|Contacts]] | ||
:[[Xero Accounting Field: Invoices|Invoices]] | :[[Xero Accounting Field: Invoices|Invoices]] | ||
Line 84: | Line 125: | ||
:[[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 91: | Line 135: | ||
:[[Xero Accounting Endpoint: Payments|Payments]] | :[[Xero Accounting Endpoint: Payments|Payments]] | ||
:[[Xero Accounting Endpoint: PrepaymentsExpanded|PrepaymentsExpanded]] | :[[Xero Accounting Endpoint: PrepaymentsExpanded|PrepaymentsExpanded]] | ||
== Related Topics == | |||
:[[Xero Accounting Models]] | |||
:[[Xero Accounting Endpoints]] |
Latest revision as of 00:20, 22 September 2021
Overview
The Xero Prepayments endpoint provides the list of prepayments transactions recorded within Xero.
This endpoint does not provide access to all fields and details. It is optimised for small data files that do not have many prepayments.
In most situations, it is recommended to use the PrepaymentsExpanded. It provides many additional fields and is also optimised for larger data files.
Fields
The following fields are available for the Prepayments endpoint.
- PrepaymentID
- A guid field that provides the id of the prepayment.
- Type
- A text field that indicates the type of prepayment.
- Possible values are:
- RECEIVE-PREPAYMENT: Indicates the prepayment is for accounts receivable / customer side.
- SPEND-PREPAYMENT: Indicates the prepayment is for accounts payable / supplier side.
- Reference
- A text field that provides the reference of the prepayment.
- Date
- A date field that provides the date on which the prepayment occurred.
- Status
- A text field that indicates the status of the prepayment.
- Possible values are:
- AUTHORISED: Indicates the transaction is authorised.
- PAID: Indicates the transaction has been processed and paid.
- VOIDED: Indicates the transaction has been deleted.
- Contact
- A record field that provides the Contacts associated with the prepayment.
- Payments
- A table field that provides the payments information.
- See Payments Fields for more information.
- Allocations
- A table field that provides the amount allocated to the invoice.
- See Allocations Fields for more information.
- Subtotal
- A decimal field that provides the tax exclusive amount of the transaction.
- TotalTax
- A decimal field that provides the tax amount of the transaction.
- Total
- A decimal field that provides the total amount of the transaction.
- RemainingCredit
- A decimal field that provides the remaining credit that can be applied to other invoices.
- CurrencyCode
- A text field that indicates the currency of the transaction.
- CurrencyRate
- A decimal field that provides the exchange rate applied to the transaction.
- HasAttachments
- A true/false field that indicates if attachments were uploaded against the transaction.
- UpdatedDateUTC
- A date time field that indicates the date and time this prepayment was created and/or updated.
Payments Fields
The Payments Fields include the following sub fields.
- PaymentID
- A GUID field representing the internal id of a payment.
- This field can be linked to the Payments endpoint.
- BatchPaymentID
- A GUID field representing the internal id of a batch payment.
- This field can be linked to the BatchPayments endpoint.
- Date
- A date field that provides the date on which the link occurred.
- Amount
- A decimal field that provides the amount associated with the payment.
- CurrencyRate
- A decimal field that provides the exchange rate applicable.
- Reference
- A text field that provides the reference.
Allocations Fields
The Allocations Fields include the following sub fields.
- Amount
- A decimal field that provides the amount allocated to an invoice.
- Date
- A date field that provides the date on which the amount was allocated to an invcoice.
- Invoice
- A record field that provides the invoice details.
Xero API
For a detailed run through of the endpoint, you can see the Xero API.
Related Fields
Related Endpoints
- Accounts
- BankTransactions
- BankTransactionsExpanded
- BatchPayments
- Contacts
- ContactsExpanded
- Currencies
- Invoices
- InvoicesExpanded
- Payments
- PrepaymentsExpanded