Returns up to 100 object references from the collection with a key, ID, and link for each AP payment. This operation is mostly for use in testing; use query to find objects that meet certain criteria and specify the properties that are returned.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View Payments |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1718",
- "id": "1718",
- "href": "/objects/accounts-payable/payment/1718"
}, - {
- "key": "1717",
- "id": "1717",
- "href": "/objects/accounts-payable/payment/1717"
}, - {
- "key": "3228",
- "id": "3228",
- "href": "/objects/accounts-payable/payment/3228"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new payment.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Add Payments |
required | object Financial account from which the payment is made. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
required | object Vendor to receive the payment. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
paymentMethod required | string Payment method for the payment. Example: "printedCheck" | ||||||||||||||||||||||||||||||
paymentDate required | string <date> The date to make the payment. Example: "2024-11-23" | ||||||||||||||||||||||||||||||
recordType | string Record type Example: "apBill" | ||||||||||||||||||||||||||||||
action | string Default: "draft" The action to take when the payment is created or updated.
Example: "submit" | ||||||||||||||||||||||||||||||
documentNumber | string or null Reference number for the payment, which can be the check number or the transaction number, depending on the payment method used. Example: "3086" | ||||||||||||||||||||||||||||||
description | string or null Description of the payment (memo). Example: "From billing through August 31" | ||||||||||||||||||||||||||||||
documentId | string or null Document ID for the payment. Example: "Prim-Vendor-Invoice-VI#0008#doc" | ||||||||||||||||||||||||||||||
object Transaction totals in the base currency. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object For companies that use multi-currency transactions, totals in the transaction currency. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object Exchange rate details used to calculate the base amount. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
paymentRequestMethod | string Default: "useVendorPreference" Specifies how payment requests are generated. Example: "generateOneRequestPerBill" | ||||||||||||||||||||||||||||||
Array of objects non-empty Payment deails, including transaction payment amounts, line items, and discounts. | |||||||||||||||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||||||||||||||
Array of objects Line items in the payment. | |||||||||||||||||||||||||||||||
Array
|
Created
Bad Request
{- "financialEntity": {
- "id": "BOA"
}, - "paymentDate": "2024-04-04",
- "action": "submit",
- "description": "From billing through March",
- "documentNumber": "3086",
- "documentId": "Prim-Vendor-Invoice-VI#0008",
- "paymentRequestMethod": "generateOneRequestPerBill",
- "baseCurrency": {
- "currency": "USD"
}, - "txnCurrency": {
- "currency": "USD"
}, - "paymentMethod": "creditCard",
- "vendor": {
- "id": "201"
}, - "details": [
- {
- "txnCurrency": {
- "paymentAmount": "10.00"
}, - "bill": {
- "key": "1221"
}
}
]
}
{- "ia::result": {
- "id": "3323",
- "key": "3323",
- "href": "/objects/accounts-payable/payment/3323"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified payment.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View Payments |
key required | string System-assigned unique key for the payment. Example: 3323 |
OK
Bad Request
{- "ia::result": {
- "id": "3302",
- "key": "3302",
- "paymentSummary": {
- "id": "1843",
- "key": "1843",
- "name": "Payments: 2024/03/30 04:08:58:5637 Batch",
- "postingDate": "2024-03-21",
- "href": "/objects/accounts-payable/summary/1843"
}, - "recordType": "apPayment",
- "financialEntity": {
- "id": "BOA"
}, - "state": "submitted",
- "paymentMethod": "creditCard",
- "vendor": {
- "entity": "V201",
- "id": "201",
- "name": "PG & E",
- "key": "38",
- "href": "/objects/accounts-payable/payment/38"
}, - "entity": {
- "id": "1",
- "key": "1",
- "name": "United States of America"
}, - "documentNumber": "123",
- "description": "Payment for 2024-03-21",
- "documentId": "Paid For PrjUS_InvWParent_4",
- "txnDate": "2024-03-21",
- "txnPaidDate": "2024-03-21",
- "baseCurrency": {
- "currency": "USD",
- "totalAmount": "10.00",
- "totalSelected": "0.00",
- "totalPaid": "10.00",
- "totalDue": "0.00"
}, - "txnCurrency": {
- "currency": "USD",
- "totalAmount": "10.00",
- "totalSelected": "0.00",
- "totalPaid": "10.00",
- "totalDue": "0.00"
}, - "exchangeRate": {
- "date": null,
- "typeId": null,
- "rate": null
}, - "payTo": {
- "id": "PG & E(V201)",
- "key": "6886",
- "href": "/objects/company-config/contact/6886"
}, - "audit": {
- "createdDateTime": "2024-03-29T18:08:57Z",
- "modifiedDateTime": "2024-03-29T18:08:59Z",
- "createdByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}, - "modifiedByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}
}, - "cleared": false,
- "clearedDate": null,
- "isInclusiveTax": false,
- "taxSolution": {
- "key": null,
- "id": null,
- "taxCalculationMethod": null
}, - "paymentRequestMethod": "useVendorPreference",
- "jointPayee": {
- "id": null,
- "key": null
}, - "lines": [
- {
- "id": "30762",
- "key": "30762",
- "apPayment": {
- "id": "3302",
- "key": "3302",
- "href": "/objects/accounts-payable/payment/3302"
}, - "glAccount": {
- "key": "376",
- "id": "2000.02",
- "name": "Accounts Payable2",
- "href": "/objects/general-ledger/account/376"
}, - "baseCurrency": {
- "amount": "10.00",
- "currency": "USD",
- "totalPaid": "10.00",
- "totalSelected": "0.00"
}, - "txnCurrency": {
- "amount": "10.00",
- "currency": "USD",
- "totalPaid": "10.00",
- "totalSelected": "0.00"
}, - "dimensions": {
- "department": {
- "id": null,
- "name": null
}, - "location": {
- "id": "1",
- "name": "United States"
}, - "customer": {
- "key": null,
- "id": null,
- "name": null
}, - "vendor": {
- "key": null,
- "id": null,
- "name": null
}, - "employee": {
- "key": null,
- "id": null,
- "name": null
}, - "item": {
- "key": null,
- "id": null,
- "name": null
}, - "project": {
- "key": null,
- "id": null,
- "name": null
}, - "class": {
- "key": null,
- "id": null,
- "name": null
}
}, - "description": "Create_MP_02",
- "exchangeRate": {
- "date": "2024-03-21",
- "typeId": null,
- "rate": "1"
}, - "lineNumber": 1,
- "paymentLineRecord": "pp",
- "bankLocation": "1",
- "audit": {
- "createdDateTime": "2024-03-29T18:08:57Z",
- "modifiedDateTime": "2024-03-29T18:08:59Z",
- "createdByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}, - "modifiedByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}
}, - "taxDetail": {
- "id": null,
- "key": null
}, - "isTax": false,
- "href": "/objects/accounts-payable/payment-line/30762"
}
], - "details": [
- {
- "id": "1059",
- "key": "1059",
- "bill": {
- "id": "3289",
- "key": "3289",
- "href": "/objects/accounts-payable/bill/3289"
}, - "billLine": {
- "id": "30724",
- "key": "30724",
- "href": "/objects/accounts-payable/bill-line/30724"
}, - "apCreditAdjustment": {
- "id": null,
- "key": null
}, - "apCreditAdjustmentLine": {
- "id": null,
- "key": null
}, - "apPayment": {
- "id": "3302",
- "key": "3302",
- "href": "/objects/accounts-payable/payment/3302"
}, - "apPaymentLine": {
- "id": "30762",
- "key": "30762",
- "href": "/objects/accounts-payable/payment-line/30762"
}, - "paymentDate": "2024-03-21",
- "baseCurrency": {
- "paymentAmount": "10.00",
- "inlineAmount": null,
- "discountAmount": null,
- "adjustmentAmount": null,
- "postedAdvanceAmount": null
}, - "txnCurrency": {
- "paymentAmount": "10.00",
- "inlineAmount": null,
- "discountAmount": null,
- "adjustmentAmount": null,
- "postedAdvanceAmount": null,
- "currency": "USD"
}, - "inlineBill": {
- "id": null,
- "key": null
}, - "inlineBillLine": {
- "id": null,
- "key": null
}, - "apDiscount": {
- "id": null,
- "key": null
}, - "apDiscountLine": {
- "id": null,
- "key": null
}, - "discountDate": null,
- "apDebitAdjustment": {
- "id": null,
- "key": null
}, - "apDebitAdjustmentLine": {
- "id": null,
- "key": null
}, - "apAdvance": {
- "id": null,
- "key": null
}, - "apAdvanceLine": {
- "id": null,
- "key": null
}, - "apPostedAdvance": {
- "id": null,
- "key": null
}, - "apPostedAdvanceLine": {
- "id": null,
- "key": null
}, - "state": "confirmed",
- "moduleKey": "3.AP",
- "audit": {
- "createdDateTime": "2024-03-29T18:08:58Z",
- "modifiedDateTime": "2024-03-29T18:08:58Z",
- "createdByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}, - "modifiedByUser": {
- "key": "1",
- "href": "/objects/company-config/user/1"
}
}, - "jointPayee": {
- "id": null,
- "key": null
}, - "href": "/objects/accounts-payable/payment-detail/1059"
}
], - "href": "/objects/accounts-payable/payment/3302"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing payment by setting field values. Any fields not provided remain unchanged.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Edit Payments |
key required | string System-assigned unique key for the payment. Example: 3323 |
recordType | string Record type Example: "apBill" | ||||||||||||||||||||||||||||||
object Financial account from which the payment is made. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
action | string Default: "draft" The action to take when the payment is created or updated.
Example: "submit" | ||||||||||||||||||||||||||||||
documentNumber | string or null Reference number for the payment, which can be the check number or the transaction number, depending on the payment method used. Example: "3086" | ||||||||||||||||||||||||||||||
description | string or null Description of the payment (memo). Example: "From billing through August 31" | ||||||||||||||||||||||||||||||
documentId | string or null Document ID for the payment. Example: "Prim-Vendor-Invoice-VI#0008#doc" | ||||||||||||||||||||||||||||||
paymentDate | string <date> The date to make the payment. Example: "2024-11-23" | ||||||||||||||||||||||||||||||
object Transaction totals in the base currency. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object For companies that use multi-currency transactions, totals in the transaction currency. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object Exchange rate details used to calculate the base amount. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
paymentMethod | string Payment method for the payment. Example: "printedCheck" | ||||||||||||||||||||||||||||||
object Vendor to receive the payment. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
paymentRequestMethod | string Default: "useVendorPreference" Specifies how payment requests are generated. Example: "generateOneRequestPerBill" | ||||||||||||||||||||||||||||||
Array of objects non-empty Payment deails, including transaction payment amounts, line items, and discounts. | |||||||||||||||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||||||||||||||
Array of objects Line items in the payment. | |||||||||||||||||||||||||||||||
Array
|
OK
Bad Request
{- "description": "Payment for DOC Number: 22345",
- "documentNumber": "22345",
- "documentId": "22345"
}
{- "ia::result": {
- "id": "3325",
- "key": "3325",
- "href": "/objects/accounts-payable/payment/3325"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a payment.
Subscription | Accounts Payable |
---|---|
User type | Business |
Permissions | List, View, Delete Payments |
key required | string System-assigned unique key for the payment. Example: 3323 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Queries an object for filtered data.
object | string Object type to query, in the form Example: "accounts-payable/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 has (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 result set, 4000 maximum. Example: 100 |
OK
Bad Request
{- "object": "accounts-payable/payment",
- "fields": [
- "id",
- "baseCurrency.totalAmount",
- "paymentMethod",
- "href"
], - "filters": [
- {
- "$eq": {
- "state": "approved"
}
}, - {
- "$gte": {
- "baseCurrency.totalAmount": "100.00"
}
}
], - "filterExpression": "1 and 2",
- "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "id": "188",
- "baseCurrency.totalAmount": "5934.08",
- "paymentMethod": "Printed Check",
- "href": "/objects/accounts-payable/payment/188"
}, - {
- "id": "191",
- "baseCurrency.totalAmount": "6591.89",
- "paymentMethod": "Printed Check",
- "href": "/objects/accounts-payable/payment/191"
}, - {
- "id": "285",
- "baseCurrency.totalAmount": "301.56",
- "paymentMethod": "Printed Check",
- "href": "/objects/accounts-payable/payment/285"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}