| GET POST | /Payment/PaymentGet | Get existing payments | Uses your API Key and optional Filters in an array format and returns the search results using the given filters.
You can also use mvDocumentIds to limit the results to payments associated with the specified documents.
Optionally, you can use ReturnTopNRecords to limit the number of the results to the specified number (omit, or add ReturnTopNRecords = -1 to get all the available results).
A. Return the first pending payment for the specified document. The result is returned as mvPayments objects.
Value: {
"mvDocumentIds": [
48222
],
"Filters": [
{
"FieldName": "PaymentStatus",
"SearchOperator": "Equals",
"SearchValue": "Pending"
}
],
"ReturnTopNRecords": 1
}
Response: {
"mvPayments": [
{
"PaymentId": 1051,
"CompanyId": 1,
"SupplierClientId": 5471,
"PaymentTransactionId": "202606151814280950",
"PaymentComments": "",
"PaymentAmount": 1,
"PaymentCurrencyCode": "EUR",
"PaymentIssueDate": "/Date(1781510705120-0000)/",
"ParentPaymentId": 0,
"PaymentApplication": "Megaventory",
"PaymentApplicationReference": "",
"PaymentCreatedDate": "/Date(1781510705127-0000)/",
"PaymentUpdatedDate": "/Date(1781510705127-0000)/",
"PaymentMethod": "NotSet",
"PaymentType": "Payment",
"PaymentInvoiceType": "SalesInvoice",
"PaymentStatus": "Pending"
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
|
|---|