A payment is a transaction used to record a payment against an invoice or an adjustment/debit memo.
Returns a collection with a key, ID, and link for each payment. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
Subscription | Accounts Receivable |
---|---|
User ype | Business |
Permissions | List, View payments |
OK
Bad Request
{- "ia::result": [
- {
- "key": "212",
- "id": "212",
- "href": "/objects/accounts-receivable/payment/212"
}, - {
- "key": "201",
- "id": "201",
- "href": "/objects/accounts-receivable/payment/201"
}, - {
- "key": "289",
- "id": "289",
- "href": "/objects/accounts-receivable/payment/289"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": 101,
- "previous": null
}
}
Creates a new payment. To successfully create a payment, you must include either the entityId
for a financialEntity
or the id
for an undepositedGLAccount
in your request.
Subscription | Accounts Receivable |
---|---|
User ype | Business |
Permissions | List, View, Add payments |
paymentMethod required | string Payment Method Example: "printedCheck" | ||||||||||||||||||||||||||||||||||
payerName | string Name of the payer. Example: "NF Power and Light" | ||||||||||||||||||||||||||||||||||
object Financial account from which the payment will be made. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
object Multi-entity payment details. | |||||||||||||||||||||||||||||||||||
documentNumber | string Document number, such as a check number. Example: "1567" | ||||||||||||||||||||||||||||||||||
description | string <= 1000 characters Memo or notes about the AR payment. Example: "Regular payment for services" | ||||||||||||||||||||||||||||||||||
object For multi-currency companies, the company's base currency. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
object Transaction currency for the payment. Example: "USD" | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
referenceNumber | string <= 21 characters Reference number, which can be a transaction number from the bank or a document number. Example: "1234" | ||||||||||||||||||||||||||||||||||
object AR summary the payment is part of. Summaries are collections of transactions grouped together for processing. Example: "2021-01-23" | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
object Undeposited funds account associated with this payment. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
object Customer associated with the AR payment. Example: "1" | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
object Supporting document for the payment. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
paidDate | string <date> Date when the invoice was fully paid. Example: "2023-01-23" | ||||||||||||||||||||||||||||||||||
object Overpayments can be applied to future invoices and can be tagged to specific dimensions for future use. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
overPaymentAmount | string <decimal-precision-2> Amount of the overpayment. When a payment is received that exceeds what the customer owes on all invoices and the amount of the payment is entered, Sage Intacct tracks the excess as an overpayment. Example: "100.20" | ||||||||||||||||||||||||||||||||||
object Contact information for the AR payment. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
Array of objects Details for the AR payment. | |||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||
Array of objects Line items of the AR payment. | |||||||||||||||||||||||||||||||||||
Array
|
Created
Bad Request
{- "financialEntity": {
- "entityId": "BOA"
}, - "paymentMethod": "cash",
- "customer": {
- "id": "Cust-00064"
}, - "documentNumber": "1567",
- "paymentSummary": {
- "id": "1259",
- "receiptDate": "2023-03-23"
}, - "paidDate": "2023-03-23",
- "baseCurrency": {
- "currency": "USD",
- "amountToPay": "0.06"
}, - "txnCurrency": {
- "currency": "USD",
- "amountToPay": "1"
}, - "paymentDetails": [
- {
- "arInvoice": {
- "id": "2085"
}
}, - {
- "arInvoiceLine": {
- "id": "4313"
}
}
]
}
{- "ia::result": {
- "id": "2096",
- "key": "2096",
- "href": "/objects/accounts-receivable/payment/2096"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified payment.
Subscription | Accounts Receivable |
---|---|
User ype | Business |
Permissions | List, View payments |
key required | string System-assigned unique key for the payment. |
OK
Bad Request
{- "ia::result": {
- "id": "464",
- "key": "464",
- "paymentSummary": {
- "key": "281",
- "id": "281",
- "title": "Receipts(Bank-BOA): 2022/10/10 Batch",
- "receiptDate": "2022-10-10",
- "name": "Receipts(Bank-BOA): 2022/10/10 Batch"
}, - "undepositedGLAccount": {
- "key": null,
- "id": null
}, - "recordType": "rp",
- "financialEntity": {
- "entityId": "BOA",
- "entityType": "ba",
- "name": "Bank of America",
- "currency": "USD"
}, - "state": null,
- "paymentMethod": "cash",
- "customer": {
- "key": "8",
- "id": "C-000012",
- "name": "Power Aerospace Materials",
- "href": "objects/customer/8"
}, - "documentNumber": "1567",
- "description": "Regular payment for services",
- "audit": {
- "createdDateTime": "2022-10-10T00:00:00Z",
- "modifiedDateTime": "2022-12-12T06:51:22Z",
- "createdBy": "39",
- "modifiedBy": "39"
}, - "paidDate": "2022-11-20",
- "baseCurrency": {
- "currency": "USD",
- "totalAmount": "250",
- "totalSelected": "0",
- "totalPaid": "250",
- "totalDue": "0"
}, - "txnCurrency": {
- "currency": "USD",
- "totalAmount": "250",
- "totalSelected": "0",
- "totalPaid": "250",
- "totalDue": "0"
}, - "exchangeRate": {
- "date": "2020-08-01",
- "typeId": null,
- "rate": 1
}, - "contacts": {
- "payTo": {
- "id": "Klay Vanderbilt",
- "key": "8"
}
}, - "bankReconciliationStatus": "false",
- "bankReconciliationDate": null,
- "referenceNumber": null,
- "attachment": {
- "id": "123",
- "key": "123"
}, - "multiEntityPayment": {
- "key": "1077",
- "id": "PAY-00136",
- "href": "/objects/accounts-receivable/payment/1077"
}, - "lines": [
- {
- "id": "1011",
- "key": "1011",
- "arPayment": {
- "key": "464",
- "href": "/objects/accounts-receivable/payment/464"
}, - "glAccount": {
- "key": "36",
- "id": "1200",
- "name": "Accounts Receivable",
- "href": "/objects/general-ledger/account/36"
}, - "baseCurrency": {
- "amount": "10",
- "currency": "USD",
- "totalPaid": "10",
- "totalSelected": "0"
}, - "txnCurrency": {
- "amount": "10",
- "currency": "USD",
- "totalPaid": "10",
- "totalSelected": "0"
}, - "dimensions": {
- "department": {
- "key": null,
- "id": null,
- "name": null
}, - "location": {
- "key": "1",
- "id": "1",
- "name": "United States of America",
- "href": "/objects/company-config/location/1"
}, - "project": {
- "key": null,
- "id": null,
- "name": null
}, - "customer": {
- "key": "C-00013",
- "id": "C-00013",
- "name": "Power Aerospace Materials",
- "href": "/objects/accounts-receivable/customer/1"
}, - "vendor": {
- "key": null,
- "id": null,
- "name": null
}, - "employee": {
- "key": null,
- "id": null,
- "name": null
}, - "item": {
- "key": null,
- "id": null,
- "name": null
}, - "class": {
- "key": null,
- "id": null,
- "name": null
}
}, - "memo": "Regular payment for services",
- "exchangeRate": {
- "date": "10/10/2022",
- "typeId": null,
- "rate": 1
}, - "lineNumber": "1",
- "recordType": "rp",
- "offsetGLAccount": {
- "key": "9",
- "href": "/objects/general-ledger/account/9"
}, - "audit": {
- "createdDateTime": "2022-12-12T06:51:21Z",
- "modifiedDateTime": "2022-12-12T06:51:22Z",
- "createdBy": "38",
- "modifiedBy": "38"
}, - "href": "/objects/accounts-receivable/payment-line/1011"
}
], - "paymentDetails": [
- {
- "id": "127",
- "key": "127",
- "baseCurrency": {
- "paymentAmount": "10",
- "inlineAmount": null,
- "postedAdvanceAmount": null,
- "postedOverPaymentAmount": null,
- "negetiveInvoiceAmount": null,
- "adjustmentAmount": null
}, - "txnCurrency": {
- "inlineAmount": null,
- "postedAdvanceAmount": null,
- "postedOverPaymentAmount": null,
- "negetiveInvoiceAmount": null,
- "adjustmentAmount": null,
- "paymentAmount": "10.00",
- "currency": "USD"
}, - "arInvoice": {
- "id": "406",
- "key": "406",
- "href": "/objects/accounts-receivable/invoice/406"
}, - "arInvoiceLine": {
- "id": "886",
- "key": "886",
- "href": "/objects/accounts-receivable/invoice-line/886"
}, - "positiveAdjustment": {
- "key": null,
- "id": null
}, - "positiveAdjustmentLine": {
- "id": null,
- "key": null
}, - "inlineTxn": {
- "key": null,
- "id": null
}, - "inlineTxnLine": {
- "id": null,
- "key": null
}, - "postedAdvance": {
- "key": null,
- "id": null
}, - "postedAdvanceLine": {
- "id": null,
- "key": null
}, - "postedOverPayment": {
- "key": null,
- "id": null
}, - "postedOverPaymentLine": {
- "id": null,
- "key": null
}, - "arAdjustment": {
- "key": null,
- "id": null
}, - "arAdjustmentLine": {
- "id": null,
- "key": null
}, - "arPayment": {
- "id": "464",
- "key": "464",
- "href": "/objects/accounts-receivable/payment/464"
}, - "arPaymentLine": {
- "id": "1011",
- "key": "1011",
- "href": "/objects/accounts-receivable/payment-line/1011\""
}, - "paymentDate": "2019-03-20",
- "audit": {
- "createdDateTime": "2022-12-12T06:51:21Z",
- "modifiedDateTime": "2022-12-12T06:51:21Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/accounts-receivable/payment-detail/127"
}
], - "href": "/objects/accounts-receivable/payment/464"
}, - "ia::meta": {
- "totalCount": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "accounts-receivable/payment" | ||||||||
fields | Array of strings List of fields to include in the response. Can be any combination of these:
Example: ["key","id","max:vendor.creditLimit"] | ||||||||
Array of equal (object) or not equal (object) or less than (object) or (less than or equal (object)) or greater than (object) or (greater than or equal (object)) or in (object) or not in (object) or between (object) or not between (object) or contains (object) or does not contain (object) or starts with (object) or does not start with (object) or ends with (object) or does not end with (object) Filter conditions to select the objects to return based on their field values. You use operators and conditions to build your filter, such as Example: [{"$eq":{"status":"active"}},{"$gt":{"totalDue":"1000"}},{"$contains":{"name":"Acme"}}] | |||||||||
Array Any of: Field value must be equal to this specified value. For date fields, you can use these macro values that are relative to the current date or the
These are most useful for queries that you want to save and use repeatedly, such as for views or reports. Just change the For example,
| |||||||||
filterExpression | string Default: "and" Logical operators to apply when there are multiple filter conditions. The conditions in the Shortcuts:
Example: "(1 and 2) or 3" | ||||||||
| |||||||||
Array of objects Set the order of the results by specifying field names to sort by and whether they should be in ascending or descending order. Example: [{"totalDue":"asc"},{"lastPaymentMadeDate":"desc"}] | |||||||||
Array
| |||||||||
start | integer First record of the result set to include in the response. Example: 1 | ||||||||
size | integer Number of records to include in the response. Example: 100 |
OK
Bad Request
{- "object": "accounts-receivable/payment",
- "filters": [
- {
- "$eq": {
- "customer.name": "MetroAtlantic, Inc."
}
}
], - "fields": [
- "key",
- "id",
- "paymentSummary.id",
- "financialEntity.name"
], - "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "key": "725",
- "id": "725",
- "paymentSummary.id": "640",
- "financialEntity.name": "HSBC"
}, - {
- "key": "736",
- "id": "736",
- "paymentSummary.id": "651",
- "financialEntity.name": "HSBC"
}, - {
- "key": "738",
- "id": "738",
- "paymentSummary.id": "651",
- "financialEntity.name": "HSBC"
}, - {
- "key": "860",
- "id": "860",
- "paymentSummary.id": "775",
- "financialEntity.name": "HSBC"
}, - {
- "key": "861",
- "id": "861",
- "paymentSummary.id": "775",
- "financialEntity.name": "HSBC"
}, - {
- "key": "862",
- "id": "862",
- "paymentSummary.id": "775",
- "financialEntity.name": "HSBC"
}
], - "ia::meta": {
- "totalCount": 6,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}