Get a bill payment
643 matches
100 actions
Accounting
100 actions
- Aged creditors reportGETv1.0.0
- Aged debtors reportGETv1.0.0
- Create accountPOSTv1.0.0
- Create bank accountPOSTv1.0.0
- Create billPOSTv1.0.0
- Create bill credit notePOSTv1.0.0
- Create bill paymentsPOSTv1.0.0
- Create credit notePOSTv1.0.0
- Create customerPOSTv1.0.0
- Create direct costPOSTv1.0.0
- Create direct incomePOSTv1.0.0
- Create invoicePOSTv1.0.0
- Create itemPOSTv1.0.0
- Create journalPOSTv1.0.0
- Create journal entryPOSTv1.0.0
- Create paymentPOSTv1.0.0
- Create purchase orderPOSTv1.0.0
- Create suppliersPOSTv1.0.0
- Create transferPOSTv1.0.0
- Delete billDELETEv1.0.0
- Get accountGETv1.0.0
- Get account transactionGETv1.0.0
- Get balance sheetGETv1.0.0
- Get bank accountGETv1.0.0
- Get bank accountGETv1.0.0
- Get billGETv1.0.0
- Get bill attachmentGETv1.0.0
- Get bill credit noteGETv1.0.0
- Get bill paymentGETv1.0.0
- Get cash flow statementGETv1.0.0
- Get company infoGETv1.0.0
- Get create account modelGETv1.0.0
- Get create bill payment modelGETv1.0.0
- Get create direct cost modelGETv1.0.0
- Get create direct income modelGETv1.0.0
- Get create item modelGETv1.0.0
- Get create journal entry modelGETv1.0.0
- Get create journal modelGETv1.0.0
- Get create payment modelGETv1.0.0
- Get create transfer modelGETv1.0.0
- Get create/update bank account modelGETv1.0.0
- Get create/update bill credit note modelGETv1.0.0
- Get create/update bill modelGETv1.0.0
- Get create/update credit note modelGETv1.0.0
- Get create/update customer modelGETv1.0.0
- Get create/update invoice modelGETv1.0.0
- Get create/update purchase order modelGETv1.0.0
- Get create/update supplier modelGETv1.0.0
- Get credit noteGETv1.0.0
- Get customerGETv1.0.0
- Get customer attachmentGETv1.0.0
- Get direct costGETv1.0.0
- Get direct cost attachmentGETv1.0.0
- Get direct incomeGETv1.0.0
- Get direct income attachmentGETv1.0.0
- Get direct incomesGETv1.0.0
- Get invoiceGETv1.0.0
- Get invoice attachmentGETv1.0.0
- Get invoice attachmentsGETv1.0.0
- Get itemGETv1.0.0
- Get journalGETv1.0.0
- Get journal entryGETv1.0.0
- Get paymentGETv1.0.0
- Get payment methodGETv1.0.0
- Get profit and lossGETv1.0.0
- Get purchase orderGETv1.0.0
- Get sales orderGETv1.0.0
- Get supplierGETv1.0.0
- Get supplier attachmentGETv1.0.0
- Get tax rateGETv1.0.0
- Get tracking categoriesGETv1.0.0
- Get transferGETv1.0.0
- List accountsGETv1.0.0
- List all bank transactionsGETv1.0.0
- List all payment methodsGETv1.0.0
- List all tax ratesGETv1.0.0
- List bank accountsGETv1.0.0
- List bill attachmentsGETv1.0.0
- List bill credit notesGETv1.0.0
- List bill paymentsGETv1.0.0
- List billsGETv1.0.0
- List credit notesGETv1.0.0
- List customer attachmentsGETv1.0.0
- List customersGETv1.0.0
- List direct cost attachmentsGETv1.0.0
- List direct costsGETv1.0.0
- List direct income attachmentsGETv1.0.0
- List invoicesGETv1.0.0
- List itemsGETv1.0.0
- List journal entriesGETv1.0.0
- List journalsGETv1.0.0
- List paymentsGETv1.0.0
- List purchase ordersGETv1.0.0
- List push options for bank account bank transactionsGETv1.0.0
- List sales ordersGETv1.0.0
- List supplier attachmentsGETv1.0.0
- List suppliersGETv1.0.0
- List tracking categoriesGETv1.0.0
- List transfersGETv1.0.0
- Refresh company infoPOSTv1.0.0
Finance/Accounting
Get bill payment
v1.0.0Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
{
"type": "object",
"description": "> **Bill payments or payments?** \n> \n> In Codat, bill payments represent accounts payable only. For accounts receivable, see [payments](https://docs.codat.io/accounting-api#/schemas/Payment), which includes [invoices](https://docs.codat.io/accounting-api#/schemas/Invoice) and [credit notes](https://docs.codat.io/accounting-api#/schemas/CreditNote).\n\n> View the coverage for bill payments in the <a className=\"external\" href=\"https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billPayments\" target=\"_blank\">Data coverage explorer</a>.\n\n## Overview\n\nBill payments include all accounts payable transaction data. This includes [bills](https://docs.codat.io/accounting-api#/schemas/Bill) and [credit notes against bills](https://docs.codat.io/accounting-api#/schemas/BillCreditNote).\n\nA bill payment in Codat usually represents an allocation of money within any customer accounts payable account. This includes, but is not strictly limited to:\n\n- A payment made against a bill — for example, a credit card payment, cheque payment, or cash payment.\n- An allocation of a supplier's credit note to a bill or perhaps a refund.\n- A bill payment made directly to an accounts payable account. This could be an overpayment or a prepayment, or a refund of a payment made directly to an accounts payable account.\n\nDepending on the bill payments which are allowed by the underlying accounting package, some of these types may be combined. Please see the example data section for samples of what these cases look like.\n\nIn Codat, a bill payment contains details of:\n\n- When the bill payment was recorded in the accounting system.\n- How much it is for and in the currency.\n- Who the payment has been paid to, the _supplier_.\n- The types of bill payments, the _line items_. \n\nSome accounting platforms give a separate name to purchases where the payment is made immediately, such as something bought with a credit card or online payment. One example of this would be QuickBooks Online's _expenses_. You can find these types of transactions in our [Direct costs](https://docs.codat.io/accounting-api#/schemas/DirectCost) data model.\n\nBill payments is a child data type of [account transactions](https://docs.codat.io/accounting-api#/schemas/AccountTransaction).\n\n---\n\n## Bill payment types\n\n### Payment of a bill\n\nA payment paying a single bill should have the following properties:\n\n- A `totalAmount` indicating the amount of the bill that was paid. This is always positive.\n- A `lines` array containing one element with the following properties:\n - An `amount` equal to the `totalAmount` above.\n - A `links` array containing one element with the following properties:\n - A `type` indicating the type of link, in this case a `Bill`.\n - An `id` containing the ID of the bill that was paid.\n - An amount of `-totalAmount` (negative `totalAmount`), indicating that the entirety of the paid amount is allocated to the bill.\n\n### Payment of multiple bills\n\nIt is possible for one payment to pay multiple bills. This can be represented using two possible formats, depending on how the supplier keeps their books:\n\n1. The payment has multiple entries in its **lines** array, one for each bill that is paid. Each line will follow the above example for paying a bill, and the rules detailed in the data model.\n2. The payment has a line with multiple links to each bill. This occurs when the proportion of the original payment allocated to each bill is not available.\n\nEach line is the same as those described above, with the **amount** indicating how much of the payment is allocated to the bill. The **amount** on the lines sum to the **totalAmount** on the payment.\n\n> Pushing batch payments to Xero\n> \n> When pushing a single bill payment to Xero to pay multiple bills, only the first format is supported—multiple entries in the payment **lines** array.\n\n### Payments and refunds on account\n\nA payment on account, that is a payment that doesn’t pay a specific bill, has one entry in its lines array.\n\nThe line has the following properties:\n\n- A **totalAmount** indicating the amount paid by a supplier or refunded to them by a company. A payment to the supplier is always negative. A refund is always positive.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of link. For a payment this is `PaymentOnAccount`. For a refund this is `Refund`.\n - The **id** containing the ID of the supplier.\n - An amount for the link is `0` **totalAmount** or the amount of the payment or refund.\n\nIt is possible to have a payment that is part on account and part allocated to a bill. Each line should follow the examples above.\n\n### Using a credit note to pay a bill\n\nThe payment of a bill using a credit note has one entry in its `lines` array. This **line** has the following properties:\n\n- An **amount** indicating the amount of money moved, which in this case is `0`, as the credit note and bill allocation must balance each other.\n- A **links** array containing two elements:\n - The first link has:\n - A **type** indicating the type of link, in this case a `Bill`.\n - An **id** containing the ID of the bill that was paid.\n - The second link has:\n - A **type** indicating the type of link, in this case a `CreditNote`.\n - An **id** containing the ID of the credit note used by this payment.\n\nThe **amount** field on the **line** equals the **totalAmount** on the payment.\n\n### Refunding a credit note\n\nA bill payment refunding a credit note has one entry in its **lines** array. This line has the following properties:\n\n- An **amount** indicating the amount of the credit note that was refunded. This is always negative, indicating that it is a refund.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of `link`, in this case a `CreditNote`.\n - An **id** containing the ID of the credit note that was refunded.\n\nThe **totalAmount** field on the payment equals the line's **amount** field. These are both negative, as this is money leaving accounts payable.\n\n### Refunding a payment\n\nIf a payment is refunded, for example, when a company overpaid a bill and the overpayment is returned, there are two payment records: \n\n- One for the incoming overpayment.\n- Another for the outgoing refund.\n\nThe payment issuing the refund is identified by the fact that the **totalAmount** is negative. This payment has one entry in its lines array that have the following properties:\n\n- An **amount** indicating the amount that was refunded. This is always negative.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of a the link, in this case a `BillPayment`.\n - An **id** containing the ID of the payment that was refunded.\n\nThe **amount** field on the line equals the **totalAmount** on the payment and is negative as this is money leaving accounts payable.\n\nThe payment that was refunded can be identified as it has a line where the `amount` on its `line` is positive and the type of the link is `Refund`. This payment may have several entries in its **lines** array if it was partly used to pay an bill. For example, a £1,050 payment paying a £1,000 bill with a refund of £50 has two lines: \n\n- One for £1,000 linked to the bill that was paid\n- Another for £50 linked to the payment that refunded the over payment. This link is of type `Refund` but the ID corresponds to a bill payment.\n\nThe line linked to the bill payment has the following properties:\n\n- An **amount** indicating the amount that was refunded. This is positive as its money that was added to accounts payable, but is balanced out by the negative amount of the refund.\n- A **links** array containing one element with the following properties:\n - A **type** indicating the type of the link, in this case a `Refund`.\n - An **id** containing the ID of the payment that refunded this line.\n\n> Linked payments\n> \n> Not all accounting packages support linked payments in this way. In these platforms you may see a payment on account and a refund on account.\n\n## Foreign currencies\n\nThere are two types of currency rate that are detailed in the bill payments data type: \n\nPayment currency rate: \n\n- Base currency of the accounts payable account.\n- Foreign currency of the bill payment.\n\nPayment line link currency rate: \n\n- Base currency of the item that the link represents.\n- Foreign currency of the payment.\n\nThese two rates allow the calculation of currency loss or gain for any of the transactions affected by the payment lines. The second rate is used when a bill payment is applied to an item in a currency that does not match either:\n\n- The base currency for the accounts payable account. \n- The currency of the item.\n",
"required": [
"date"
]
}