A payment is a transaction that records a payment against a bill or adjustment. The payment object gives you access to payment details for each payment entry. For example, you can apply line level credits/discounts to a payment entry through one or more payment detail objects.
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.
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.
required | object Financial account from which the reconciliation is done. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
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: "2021-01-23" | ||||||||||||||||||||||||||||||
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 base currency. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object Transaction totals in the currency in which it was paid. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object Exchange rate details used to calculate the base amount. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
paymentRequestMethod | string Default: "useVendorPreference" Determines how request are generated. If the PAYMENTMETHOD value is "jointCheck" then the PAYMENTREQUESTMETHOD value must be "bill" Example: "generateOneRequestPerBill" | ||||||||||||||||||||||||||||||
Array of objects non-empty Array of details for the payment, including transaction payment amounts, line items, discounts, adjustments, and so forth. | |||||||||||||||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||||||||||||||
Array of objects Array of payment lines in the payment. | |||||||||||||||||||||||||||||||
Array
|
Created
Bad Request
{- "financialEntity": {
- "id": "BOA"
}, - "paymentDate": "2023-04-04",
- "action": "draft",
- "description": "description",
- "documentNumber": "123",
- "documentId": "123",
- "paymentRequestMethod": "useVendorPreference",
- "baseCurrency": {
- "currency": "USD"
}, - "txnCurrency": {
- "currency": "USD"
}, - "paymentMethod": "creditCard",
- "vendor": {
- "id": "201"
}, - "details": [
- {
- "txnCurrency": {
- "paymentAmount": "10.00",
- "inlineAmount": "10.00",
- "adjustmentAmount": "10.00",
- "postedAdvanceAmount": "10.00"
}, - "bill": {
- "key": "3318"
}, - "apDebitAdjustment": {
- "key": "3319"
}, - "apDebitAdjustmentLine": {
- "key": "30854"
}, - "apAdvance": {
- "key": "3320"
}, - "apAdvanceLine": {
- "key": "30856"
}, - "inlineBill": {
- "key": "3321"
}, - "inlineBillLine": {
- "key": "30866"
}
}
]
}
{- "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.
key required | string System-assigned key for the payment. Example: 3323 |
OK
Bad Request
{- "ia::result": {
- "id": "3302",
- "key": "3302",
- "paymentSummary": {
- "id": "1843",
- "key": "1843",
- "name": "Payments: 2023/03/30 04:08:58:5637 Batch",
- "postingDate": "2023-03-21",
- "href": "/objects/accounts-payable/summary/1843"
}, - "recordType": "pp",
- "financialEntity": {
- "id": "BOA"
}, - "state": "submitted",
- "paymentMethod": "creditCard",
- "vendor": {
- "entity": "V201",
- "id": "201",
- "name": "PG & E"
}, - "documentNumber": "123",
- "description": "Payment for 2023-03-21",
- "documentId": "Paid For PrjUS_InvWParent_4",
- "txnDate": "2023-03-21",
- "txnPaidDate": "2023-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": "2023-03-29T18:08:57Z",
- "modifiedDateTime": "2023-03-29T18:08:59Z",
- "createdBy": "1",
- "modifiedBy": "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"
}, - "department": {
- "id": null,
- "name": null
}, - "location": {
- "id": "2",
- "name": "India"
}, - "description": "Create_MP_02",
- "exchangeRate": {
- "date": "2023-03-21",
- "typeId": null,
- "rate": "1"
}, - "lineNumber": 1,
- "paymentLineRecord": "pp",
- "bankLocation": "2",
- "audit": {
- "createdDateTime": "2023-03-29T18:08:57Z",
- "modifiedDateTime": "2023-03-29T18:08:59Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "taxDetail": {
- "id": null,
- "key": null
}, - "isTax": false,
- "dimensions": {
- "nsp::rgldim43731355_10015": {
- "key": "",
- "id": ""
}, - "nsp::rgldim43731355_10074": {
- "key": "",
- "id": ""
}, - "nsp::rgldim43731355_10127": {
- "key": "",
- "id": ""
}, - "nsp::rgldim44774013_10178": {
- "key": "",
- "id": ""
}, - "nsp::rgldim44774013_10232": {
- "key": "",
- "id": ""
}
}, - "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": "2023-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": "2023-03-29T18:08:58Z",
- "modifiedDateTime": "2023-03-29T18:08:58Z",
- "createdBy": "1",
- "modifiedBy": "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.
key required | string System-assigned key for the payment. Example: 3323 |
object Financial account from which the reconciliation is done. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
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: "2021-01-23" | ||||||||||||||||||||||||||||||
object Transaction totals in base currency. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
object Transaction totals in the currency in which it was paid. | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
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" Determines how request are generated. If the PAYMENTMETHOD value is "jointCheck" then the PAYMENTREQUESTMETHOD value must be "bill" Example: "generateOneRequestPerBill" | ||||||||||||||||||||||||||||||
Array of objects non-empty Array of details for the payment, including transaction payment amounts, line items, discounts, adjustments, and so forth. | |||||||||||||||||||||||||||||||
Array (non-empty)
| |||||||||||||||||||||||||||||||
Array of objects Array of payment lines in the payment. | |||||||||||||||||||||||||||||||
Array
|
OK
Bad Request
{- "description": "Payment for DOC Number: 22345",
- "paymentDate": "2023-04-05",
- "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.
key required | string System-assigned 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 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-payable/vendor",
- "fields": [
- "id",
- "name",
- "status",
- "href"
], - "filters": [
- {
- "$eq": {
- "status": "active"
}
}, - {
- "$eq": {
- "billingType": "openItem"
}
}
], - "filterExpression": "1 and 2",
- "orderBy": [
- {
- "id": "asc"
}
]
}
{- "ia::result": [
- {
- "id": "Vend-00002",
- "name": "Test vendor",
- "status": "active",
- "href": "/objects/accounts-payable/vendor/85"
}, - {
- "id": "VEND-00010",
- "name": "Design Works",
- "status": "active",
- "href": "/objects/accounts-payable/vendor/111"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}