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 the query service to find objects that meet certain criteria and specify the 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 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 Deprecated Default: "draft" This field has been deprecated. Use the
| ||||||||||||||||||||||||||||||
state | string Default: "draft" Current state of the AP payment. The state can be modified through workflow operations like Submit and Reverse, but cannot be changed using the PATCH operation. Example: "approved" | ||||||||||||||||||||||||||||||
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 or null 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",
- "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.
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": "uncleared",
- "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.
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 Deprecated Default: "draft" This field has been deprecated. Use the
| ||||||||||||||||||||||||||||||
state | string Default: "draft" Current state of the AP payment. The state can be modified through workflow operations like Submit and Reverse, but cannot be changed using the PATCH operation. Example: "approved" | ||||||||||||||||||||||||||||||
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 or null 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.
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
}
}